scieee AI-readable full text Open interactive document viewer

Simple approximative algorithms for free-support Wasserstein barycenters

Lindheim, Johannes von

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Lindheim, Johannes von Article — Published Version Simple approximative algorithms for free-support Wasserstein barycenters Computational Optimization and Applications Provided in Cooperation with: Springer Nature Suggested Citation: Lindheim, Johannes von (2023) : Simple approximative algorithms for freesupport Wasserstein barycenters, Computational Optimization and Applications, ISSN 1573-2894, Springer US, New York, NY, Vol. 85, Iss. 1, pp. 213-246, https://doi.org/10.1007/s10589-023-00458-3 This Version is available at: https://hdl.handle.net/10419/309813 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ Computational Optimization and Applications https://doi.org/10.1007/s10589-023-00458-3 Simple approximative algorithms for free-support Wasserstein barycenters Johannes von Lindheim1 Received: 9 October 2022 / Accepted: 19 January 2023 © The Author(s) 2023 Abstract ComputingWassersteinbarycentersofdiscretemeasureshasrecentlyattractedconsiderable attention due to its wide variety of applications in data science. In general, this problem is NP-hard, calling for practical approximative algorithms. In this paper, we analyze a well-known simple framework for approximating Wasserstein-pbarycen- ters, where we mainly consider the most common case p=2and p=1, which is not as well discussed. The framework produces sparse support solutions and shows good numerical results in the free-support setting. Depending on the desired level of accuracy, this requires only N−1or N(N −1)/2 standard two-marginal optimal transport (OT) computations between the Ninput measures, respectively, which is fast, memory-efficient and easy to implement using any OT solver as a black box. What is more, these methods yield a relative error of at most Nand 2, respectively, for both p=1, 2. We show that these bounds are practically sharp. In light of the hardness of the problem, it is not surprising that such guarantees cannot be close to optimality in general. Nevertheless, these error bounds usually turn out to be drastically lower for a given particular problem in practice and can be evaluated with almost no computational overhead, in particular without knowledge of the optimal solution. In our numerical experiments, this guaranteed errors of at most a few percent. Keywords Optimal transport ·Discrete Wasserstein barycenter ·Approximative algorithm ·Error analysis ·Sparsity Mathematics Subject Classification 65D18 ·68U10 ·90B80 BJohannes von Lindheim [email protected] 1Institute of Mathematics, Technische Universität Berlin, Strasse des 17. Juni 136, 10587 Berlin, Germany 123 J. v. Lindheim 1 Introduction Wasserstein barycenters are an increasingly popular application of optimal transport in data science [1,2]. They have nice mathematical properties, since they are the Fréchet means with respect to the Wasserstein distance [3–5]. Their applications range from mixing textures [6,7], stippling patterns and bidirectional reflectance distribution functions [8], or color distributions and shapes [9] over averaging of sensor data [10] to Bayesian statistics [11], just to name a few. For further reading, we refer to the surveys [12,13]. Unfortunately, Wasserstein barycenters are in general hard to compute [14]. Many algorithms restrict the support of the solution to a fixed set and minimize only over the weights. Such methods include projected subgradient [15], iterative Bregman projections [16], (proximal) algorithms based on the latter [17], interior point methods [18], Gauss-Seidel based alternating direction of multipliers [19], multi-marginal Sinkhorn algorithms and its accelerated variants [20], debiased Sinkhorn barycenter algorithms [21], methods using the Wasserstein distance on a tree [22], accelerated Bregman projections [23] and methods based on mirror proximal maps or on a dual extrapolation scheme [24], among others. While iterative Bregman projections are a standard benchmarkthatarehardtobeatinterms ofsimplicityandspeed,fixed-supportmethods applied on a grid suffer from the curse of dimensionality. On the other hand, barycenters without such restriction are called free-support barycenters.Thisapproachcanovercomethecurseofdimensionality,sincetheoptimal solutionis sparse. Free-supportbarycenters can becomputed directly fromthesolution of the closely related multi-marginal optimal transport (MOT) problem. The latter was originally introduced in [25] in the continuous setting for squared Euclidean costs and further generalized in various ways, e.g., to entropy regularized [26,27] and unbalanced variants with non-exact marginal constraints [28]. The solution to MOT can be obtained by solving a linear program (LP) that unfortunately scales exponentially in N, however [29]. Although there are exact polynomial-time methods for measures on Rdfor fixed d[30], see also LP-based methods in [29,31,32], these are not necessarily fast in practice and rather involved to implement. A remedy is to resort to approximative approaches, which include so far a Newton-approach that iteratively alternates between optimizing over the weights and supports [15], another LP-based method [33], an inexact proximal alternating minimization method [34], an iterative stochastic algorithm [35] and the iterative swapping algorithm [2]. A free-support barycenter method based on the Frank–Wolfe algorithm is given in [36]. Another method in [37] computes continuous barycenters using another way of parameterizing them. For approaches for MOT similar to this paper, see [38]. Further speedups can be obtained by subsampling the given measures [39] or dimensionality reduction of the support point clouds [40]. Despite the plethora of literature, many algorithms with low theoretical computational complexity or high accuracy solutions are rather involved to implement. This impedes its actual usage and further research in practice. To the best of our knowledge, there does not exist an algorithm that fulfills the following list of desiderata in the free-support setting: 123 Simple algorithms for Wasserstein barycenters •simple to implement, •sharp theoretical error bounds, •sparse solutions, and •good numerical results in practice. Thepurposeofthis paper is toshowthatall of thesepoints canbe achievedusingone iteration of a simple well-known fixed-point algorithm, which only requires some offthe-shelve two-marginal OT solver as ingredient to its otherwise easy implementation. Here we consider the cases p=2 and p=1, where the latter has received less attention in the literature so far. One such fixed-point iteration consists in computing optimal transport plans from a given measure to the input measures and pushing each atom to the p-barycenter of its target locations. For the cost of N−1 OT plans, this yields a relative error bound of N, or a 2-approximation, respectively, when averaging over these results, which requires to solve N(N−1)/2 OT problems. The key to these theoretical bounds is based on the observation that the they are already fulfilled for the input measures or their mixture, respectively, which we choose as initialization. On the other hand, we show that the aforementioned fixed-point iteration guarantees to at least retain the current approximation quality, but improves it considerably in practice in the first step. Note that other algorithms with an upper error bound of 2 have been proposed in [33]forp=2. The basic algorithm produces a barycenter with support ∪N i=1supp(μi) by solving an LP over its weights. However, while this support choice leads to bad approximations in practice (consider, e.g., two distinct Dirac measures as input), for a merely theoretical 2-approximation, no computation is necessary as mentioned above. On the other hand, the implementation and proofs of the other algorithms in that paper with better results in practice are rather involved. In view of the hardness of the Wasserstein barycenter problem [14], it is clear that the derived relative error bounds cannot be close to 1 for every set of inputs, unless P = NP. However, the improvement made by one iteration is straightforward to evaluate in the proposed algorithms, such that it can output relative error bounds specific to the given problem without knowing the optimal solution. We observe these resulting improved bounds to be close to 1 in the numerical experiments. This paper is organized as follows: We introduce the Wasserstein barycenter problem and our notation in Sect. 2. In Sect. 3, we state the algorithms considered in this paper. In Sect. 4, we analyze their worst-case relative error. In Sect. 5, we provide a comparison with other algorithms on a synthetic data set, a numerical exploration of Wasserstein-1 barycenters, and two applications of the discussed framework. Concluding remarks are given in Sect. 6. 123 J. v. Lindheim 2 Wasserstein barycenter problem In the following, we denote by ·the Euclidean norm on Rdand by P(Rd)the space of probability measures on Rd.Let1≤p<∞. For two discrete measures μ1= n1  k=1 μ1 kδ(x1 k), μ2= n2  l=1 μ2 lδ(x2 l), the Wasserstein-p distance is defined by Wp p(μ1,μ 2)=min π∈(μ1,μ2) cp,π, where cp,π=Rd×Rdcpdπwith cp(x,y):=x−ypand (μ1,μ 2)denotes the set of probability measures on Rd×Rdwith marginals μ1and μ2. The above optimization problem is convex, but can have multiple minimizers π. In this paper, we are given Ndiscrete probability measures μi∈P(Rd)supported at supp(μi)={xi 1,...,xi ni}, where the xi lare pairwise different for every i, i.e., μi= ni  l=1 μi lδ(xi l), i=1,...,N. Let N:= {λ∈(0,1)N:N i=1λi=1}denote the open probability simplex. For given weights λ=(λ1,...,λN)∈N, we are interested in the computation of Wasserstein barycenters, which are the solutions to the optimization problem min ν∈P(Rd) p(ν), p(ν):= N  i=1 λiWp p(ν, μi). (2.1) The following theorem restates important results from [41, Prop. 3], which connects barycenter problems with what is nowadays known as multi-marginal optimal transport, as well as [29, Prop. 1, Thm. 2] and [42, Thm. 1] in our notation. Theorem 2.1 The barycenter problem (2.1) has at least one optimal solution ˆν. Every optimal solution ˆνfulfills supp(ˆν) ⊆N  i=1 λixi:xi∈supp(μi), i=1,...,N.(2.2) Moreover, there exists an optimal solution ˆν, such that #supp(ˆν) ≤ N  i=1 ni−N+1.(2.3) 123 Simple algorithms for Wasserstein barycenters Proof Note that (2.2) is straightforward to obtain from the relation to multi-marginal optimal transport [41, Prop. 3]. In the special case p=2, the results from [29], in particular (2.3), can readily be generalized to arbitrary λ∈N. For general p≥1 and barycenter problems with even more general cost functions, this follows from sparsity of multi-marginal optimal transport recently shown in [42, Thm. 1] in combination with [41, Prop. 3].  In particular, the theorem says that finding optimal Wasserstein barycenters is a discrete optimization problem over the weights of its finite support, which is contained in the convex hull of the supports of the μi. However, the number of possible support points scales exponentially in N. 3 Algorithms for barycenter approximation In this section, after motivating the main framework considered in this paper in Sect. 3.1, we discuss two more concrete configurations of it in Sects. 3.2 and 3.3. 3.1 Motivation In its core, the algorithms in this paper approximate barycenters by “averaging optimal transport plans” from a particular reference measure to the input measures in some sense. This approach is well-known and comes in various flavors in the literature. For example, it can be viewed through the lens of generalized geodesics in Wasserstein spaces [43] and recent literature on linear optimal transport and relatives [44–48]. On the other hand, in [15], one of the first papers on the numerical approximation of Wassersteinbarycenters,the ideaispresentedas a Newtoniteration. The sameiteration is analyzed in the continuous setting in [49], and it can be used as a characterization of Wassersteinbarycentersintermsoffixedpointsofthisprocedure,evenforuncountably many input measures [50]. See also [51] for this algorithm in the context of weak optimal transport. Let us define the averaging of transport plans more precisely. Definition 3.1 Given a discrete measure ν=nν k=1νkδ(yk)∈P(Rd)and transport plans πi:= nν  k=1 ni  l=1 πi k,lδ(yk,xi l)∈(ν, μi), i=1,...,N, set π=(π1,...,πN)and let for k=1,...,nν,p≥1, the barycentric map Mp λ,π :supp(ν) →Rdbe defined as mk=Mp λ,π (yk):= argminm∈Rd N  i=1 λi ni  l=1 πi k,l νk m−xi lp. 123 J. v. Lindheim Furthermore, we define the mapping Gp λ,π (ν):= nν  k=1 νkδ(mk). (3.1) That is, each atom ykin the measure νis pushed to the weighted barycenter mkof its target locations xi l, where the weights are given by the λiand the weights of the source locations as given by the transport plans πi, relative to the corresponding transported mass νk. Note that for p=2, the map Mp λ,π is the classical mean, whereas for p=1, it is called geometric median. It is uniquely defined, whenever the points are not collinear, see [52]. Otherwise, in case of ambiguity, the set of minimizers is a one-dimensional line segment, of which we choose the midpoint. However, unlike in the case p=2, there is no explicit formula or exact algorithm involving only arithmetic operations and k-th roots to compute Mp λ,π ,see[53]. Nevertheless, the geometric median can be approximated using Weiszfeld’s algorithm, which consists mainly in the fixed point iteration m(k+1)=N  i=1 λi xi−m(k)−1N  i=1 λixi xi−m(k), with a particular choice of the starting point m(0)that guarantees m(k)= xifor all i=1,...,Nand k≥0. This method is a gradient descent method and accelerated methods are also available. For more details, we refer to the survey [52]. Next, we comment on the relation of Gp λ,π to Wasserstein barycenters. In the most important case p=2, formula (3.1) simplifies when the transport plans are non-mass- splitting, that is, for every i=1,...,N, each πiis supported on the graph of some transport maps Ti:supp(ν) →supp(μi)with Ti #ν=μi. In that case, Gp λ,π pushes νforward by the average of the transport maps, Gp λ,π =N  i=1 λiTi#. This is called McCann interpolation for N=2. In the nondiscrete setting, if νis absolutely continuous, then optimal transport maps Tiexist by Brenier’s theorem, see e.g. [54, Thm. 1.22]. In fact, [49] discusses the following fixed-point iteration for approximate barycenter computation: 1. Compute the optimal transport maps Tifrom νto μi,i=1,...,N 2. Update ν←N i=1λiTi#ν, repeat. Itisshownthatifthereisauniquefixedpoint,thenthisistheoptimalbarycenterandthe iteration converges, which is the case for, e.g., Gaussian measures. The convergence is numerically observed to be very fast, and in certain special cases, it is reached already in one iteration. Taking the geometric structure of the Wasserstein space into 123 Simple algorithms for Wasserstein barycenters Fig. 1 Barycenter cost 2(ν(k))over the number of iterations kin blue. The black dashed line depicts the optimal cost 2(ˆν) account, see, e.g., [43], the fixed-point procedure above is the the typical algorithm for computing Fréchet means on manifolds [3–5]. This motivates the algorithms presented in this paper, which consist in deliberately performing only the first iteration of the fixed-point procedure above. More precisely, the approximate barycenters are of the form ˜ν=Gp λ,π (ν) for certain plans πiand initial measures ν. We found that this yields the best tradeoff between speed and accuracy in practice, since the error improvement of further iterations is typically rather small. We illustrate this claim by the following numerical example. We create N=10 discrete measures μi=n l=11 nδ(xi l),i=1,...,N, with n=50 points each, which we sample uniformly from the unit disk and center to have mean zero. We initialize with ν(0):=μ1and perform the iteration above until convergence after 5 iterations, that is, ν(6)=ν(5). Optimal transport maps Tialways exist here, since we have empirical measures with the same number of atoms. In Fig. 1, we show the cost 2(ν(k))with respect to kand compare to the cost 2(ˆν) of an optimal barycenter ˆν,thatis,a solution of (2.1). While the error 2(ν(k))−2(ˆν) is decreased in the first step by 83.2%, the improvement in the second iteration is only 37% of the remaining error and decreases even further until convergence to a suboptimal solution. Moreover, the absolute cost decrease 2(ν(2))−2(ν(1))in the second iteration is only 7.5% of the decrease 2(ν(1))−2(ν(0))of the first iteration. This also makes sense intuitively, since it seems reasonable that the largest improvement is gained by pushing every support point from some rather arbitrary initialization to the barycenter of several other reasonably chosen support points of the μi. Furthermore, from a theoretical standpoint, there are simple examples with convergence after one iteration for both presented algorithms below, such that we cannot expect in general to gain any improvements using more than one iteration either. In particular, as in the numerical example above, there is no way to guarantee convergence to the optimum of this iterative procedure in general, which is the case for any algorithm due to the NP-hardness of the problem [14]. 123 J. v. Lindheim 3.2 Reference algorithm In this section, we choose ν=μjas initialization. For simplicity of notation, reorder the measures such that j=1. That is, we compute N−1 optimal transport plans πi= n1  k=1 ni  l=1 πi k,lδ(x1 k,xi l)∈argminπ∈(μ1,μi)cp,π,i=2,...,N and consider the approximate barycenter defined by ˜ν= n1  k=1 μ1 kδ(Mp λ,π (x1 k)). (3.2) Note that the support of ˜νgiven by (3.2) is very sparse, since it contains only n1 elements, which is an interesting feature from a computational point of view. For p=2, if the input measures are given in terms of matrices Xi∈Rni×d, where the rows are the support points, and the corresponding mass weights are the vectors μi∈Rnifor all i=1,...,N, then computing the support matrix Y∈Rn1×dof (3.2) can be written as an average of Nmatrix products as outlined in Algorithm 1. Algorithm 1 Reference algorithm, p=2 Input: Support points Xi∈Rni×d, masses μi∈Rni,i=1,...,N, weights 0<λ∈RN π1:= diag(μ1) for i=2,...,Ndo Compute πi∈argminπ∈(μ1,μi)c,π∈Rn1×ni end for Y:= diag(μ1)−1N i=1λiπi·Xi Output: support Y∈Rn1×d, masses μ1∈Rn1 In the case p=1, since there is no closed form for Mp λ,π (x1 k),wehavetomake slight modifications to the algorithm in that case. Remark 3.2 Let fx,λ(m):= N i=1λixi−mand ˆm=argminm∈Rdf(m).Weshow that Weiszfeld’s algorithm is guaranteed to approximate f(ˆm)up to a multiplicative factorof (1+ε) foracertainminimalnumberof iterations that is explicitlycomputable. In [52, Thm. 8.2] it is shown for the Weiszfeld iterates m(k)that f(m(k))−f(ˆm)≤M km(0)−ˆm2, with an explicit formula for M, depending only on the xiand m(0). Since fis convex, from ∇f=0, a simple calculation shows that ˆmmust lie in the convex hull of the xi. Thus 123 Simple algorithms for Wasserstein barycenters (iii) If νis chosen randomly as one of the μiwith probabilities λi, then also E[p(ν)] p(ˆν) ≤2. Proof (i) Let ν:=μj, then we see that p(ν) =p(μj)= N  i=1 λiWp p(μi,μj). By (4.4), p(ˆν) ≥ N  i<j λiλjWp p(μi,μj)≥λj N  i=1 λiWp p(μi,μj), such that p(ν) p(ˆν) ≤1 λj . (ii) For the choice ν:= N i=1λiμi, taking πij ∈argminπ∈(μi,μ j)cp,π, we note that N  j=1 λjπji ∈(ν, μi). Hence, p(ν) = N  i=1 λiWp pN  j=1 λjμj,μ i≤ N  i=1 λicp, N  j=1 λjπji =2 N  i<j λiλjWp p(μi,μj), such that p(ν) p(ˆν) ≤2. (iii) This follows similarly as (ii) does by linearity of expectation.  123 J. v. Lindheim In general, there is no polynomial-time algorithm that will achieve an error arbitrarily close to 1 with high probability, see [14]. In light of this result, it is interesting to see that it is possible to obtain a relative error bound of 2 as in [33], but without performing any computations. However, note that merely using a mixture of the inputs yields rather useless barycenter approximations in practice; consider, e.g., two distinct Dirac measures. Although we will see that the bounds above are still more or less sharp for Algorithms 1–4, these algorithms perform a lot better in practice. Moreover, these bounds aretypicallydrasticallyimprovedassoonasaspecificproblemisgiven,seeRemark4.6 and Sect. 5. Using one of the mentioned trivial choices as initial measures, all algorithms above aim to improve the approximation quality using the mapping Gp λ,π . Next, we show that given any approximate barycenter ν, executing Gp λ,π on νnever makes the approximation worse, if we choose the OT plans πi∈(ν, μi)to be optimal. Proposition 4.4 Given a discrete ν=nν k=1νkδ(yk)∈P(Rd),p≥1,let πi:= nν  k=1 ni  l=1 πi k,lδ(yk,xi l)∈argmin π∈(ν,μi)cp,π be optimal transport plans. Then it holds p(Gp λ,π (ν)) ≤p(ν). Proof By definition of πi, we have for all i=1,...,Nthat Wp p(ν, μi)=cp,πi= nν  k=1 ni  l=1 πi k,lyk−xi lp. Set ˜πi:= nν  k=1 ni  l=1 πi k,lδ(mk,xi l)∈(Gp λ,π (ν), μi), where mk=Mp λ,π (yk). Then it holds that p(Gp λ,π (ν)) = N  i=1 λiWp p(Gp λ,π (ν), μi)≤ N  i=1 λicp,˜πi = N  i=1 λi nν  k=1 ni  l=1 πi k,lmk−xi lp= nν  k=1 νk N  i=1 λi ni  l=1 πi k,l νk mk−xi lp = nν  k=1 νkmin m∈Rd N  i=1 λi ni  l=1 πi k,l νk m−xi lp 123 Simple algorithms for Wasserstein barycenters ≤ nν  k=1 νk N  i=1 λi ni  l=1 πi k,l νk yk−xi lp= N  i=1 λi nν  k=1 ni  l=1 πi k,lyk−xi lp = N  i=1 λiWp p(ν, μi)=p(ν).  Combining the results above, we immediately get the following error bounds for the algorithms introduced in Sect. 3. Corollary 4.5 Let p ∈{1,2}and let ˆνbe an optimal barycenter. (i) If ˜νis obtained by Algorithm 1(case p =2) or Algorithm 2(case p =1), then it holds that p(˜ν) p(ˆν) ≤1 λ1or p(˜ν) p(ˆν) ≤1+ε λ1, respectively. Moreover, if instead the reference measure is chosen randomly with probabilities equal to the corresponding λi, then E[p(˜ν)] p(ˆν) ≤2or E[p(˜ν)] p(ˆν) ≤2(1+ε). (ii) If ˜νis obtained by Algorithm 3(case p =2) or Algorithm 4(case p =1), then it holds that p(˜ν) p(ˆν) ≤2or p(˜ν) p(ˆν) ≤2(1+ε), respectively. Proof This follows immediately by combining Propositions 4.3 and 4.4, and the fact that N  i=1 λi ni  l=1 πi k,l νk m−xi l is only optimized by mkup to a factor (1+ε) for every k=1,...,nνin the case p=1.  Remark 4.6 Next,weshowhowtoimproveonthe2-approximationboundforaspecific givenproblem.We assume that we are givenoptimalorcloseto optimal transport plans πi= nν  k=1 ni  l=1 πi k,lδ(yk,xi l)∈(ν, μi), i=1,...,N. 123 J. v. Lindheim In case of the pairwise algorithm (Algorithms 3and 4), we use πi= N  j=1 λjπji ∈(ν, μi), where πji ∈argminπ∈(μj,μi)cp,π. Given our approximate barycenter ˜ν= nν  k=1 νkδ(mk), mk=Mp λ,π (yk), consider again ˜πi:= nν  k=1 ni  l=1 πi k,lδ(mk,xi l)∈(˜ν,μi). Then p(˜ν) = N  i=1 λiWp p(˜ν,μi)≤ N  i=1 λicp,˜πi= N  i=1 λi nν  k=1 ni  l=1 πi k,lmk−xi lp. Together with (4.4), this gives p(˜ν) p(ˆν) ≤N i=1λinν k=1ni l=1πi k,lmk−xi lp N i<jλiλjWp p(μi,μj).(4.5) In the case p=2, since mk=Mp λ,π (yk)= N  i=1 λi ni  l=1 πi k,l νk xi lwith N  i=1 λi ni  l=1 πi k,l νk =1, by incorporating (4.1), the denominator in (4.5) simplifies to 2(˜ν) ≤ nν  k=1 νk N  i=1 λi ni  l=1 πi k,l νk mk−xi l2 = nν  k=1 νkN  i=1 λi ni  l=1 πi k,l νk yk−xi l2−mk−yk2 = N  i=1 λi nν  k=1 ni  l=1 πi k,lmk−xi l2− nν  k=1 νkmk−yk2 123 Simple algorithms for Wasserstein barycenters =2(ν) − nν  k=1 νkmk−yk2, such that by Proposition 4.3 (ii), we get 2(˜ν) 2(ˆν) ≤2−nν k=1νkmk−yk2 N i<jλiλjW2 2(μi,μj).(4.6) Either way, for both p=1,2, the right-hand sides of (4.5) and (4.6) can be evaluated withalmostnocomputationaloverheadaftertheexecutionofAlgorithmsAlgorithms3 and 4, since the optimal transport plans πij between μiand μjhave already been computed.Thisusuallygivesboundsmuchclosertoonethantheworst-caseguarantees in Corollary 4.5. Finally, we discuss the sharpness of the bounds in Corollary 4.5. Proposition 4.7 Let N ≥2and consider the case with λ=(1 N,..., 1 N)∈N. There exist measures μ1,μ 2=μ3=···=μN, such that if ˆνis an optimal barycenter, the following hold true: (i) Let ˜νbe computed with Algorithm 1, then 2(˜ν) 2(ˆν) =N=1 λ1. If the reference measure is chosen uniformly at random, then E[2(˜ν)] 2(ˆν) =2−1 N N→∞ −→ 2. (ii) Let ˜νbe computed with Algorithm 2, then 1(˜ν) 1(ˆν) =N−1=1 λ1−1. If the reference measure is chosen uniformly at random, then E[1(˜ν)] 1(ˆν) =21−1 NN→∞ −→ 2. (iii) Let ˜νbe computed with Algorithm 3, then 2(˜ν) 2(ˆν) ≥N−1 N1+N−1 NN→∞ −→ 2. 123 J. v. Lindheim (iv) Let ˜νbe computed with Algorithm 4, then 1(˜ν) 1(ˆν) =2−1 N N→∞ −→ 2. Proof We consider μ1:=δ(0), μ2=...=μN:=1 2(δ(−1)+δ(1)). (i) For πidefined as in Algorithm 1, it holds πi=1 2(δ(0,−1)+δ(0,1)), i=2,...,N. and thus ˜ν=δ1 2(−1+1)=δ(0)=μ1. Thus, 2(˜ν) = N  i=1 λiW2 2(˜ν,μi)=N−1 N. On the other hand, consider ν=1 2δ−N−1 N+δN−1 N, then 2(ν) = N  i=1 λiW2 2(ν, μi)=1 NN−1 N2+(N−1)1 N2=N−1 N2, such that 2(˜ν) 2(ˆν) ≥2(˜ν) 2(ν) =N=1 λ1. (ii) We only need to compute the following medians: argminm∈Rd 1 N0−m+1 2 N  i=2 1 N(−1−m+1−m)=0, argminm∈Rd 1 N0−m+ N  i=2 1 N(−1−m)=−1,and 123 Simple algorithms for Wasserstein barycenters argminm∈Rd 1 N0−m+ N  i=2 1 N(1−m)=1. Then we see that ˜ν=μ1, such that 1(˜ν) = N  i=1 λiW1(μ1,μ i)=1 N·0+1−1 N·1=1−1 N, and for any j∈{2,...,N}, 1(μj)=1 N·1+1−1 N·0=1 N, which leads to 1(˜ν) 1(ˆν) ≥1(˜ν) 1(μj)=N−1=1 λ1−1. For the randomized case, we get E[1(˜ν)]= 1 N1(μ1)+1−1 N1(μj)=1 N·1−1 N+1−1 N·1 N =21 N1−1 N, such that E[1(˜ν)] 1(ˆν) ≥21 N(1−1 N) 1 N =21−1 N. (iii) We get for i=2,...,Nthat πij =1 2(δ(−1,0)+δ(1,0)), j=1, 1 2(δ(−1,−1)+δ(1,1)), j=2,...,N, and hence ˜νi=1 2δN−1 N·(−1)+1 N·0+δN−1 N·1+1 N·0 =1 2δ−N−1 N+δN−1 N. Thus, ˜ν=1 Nδ(0)+N−1 2Nδ−N−1 N+δN−1 N. 123 J. v. Lindheim Hence, it is easy to compute that W2 2(˜ν,μi)=N−1 N(N−1 N)2=(N−1 N)3,i=1 1 N(N−1 N)2+N−1 N(1 N)2=1 N3N(N−1)=N−1 N2,i=2,...,N, such that 2(˜ν) =1 NN−1 N3+(N−1)N−1 N2=N−1 N2N−1 N2+N−1 N. Finally, considering ν=1 2δ−N−1 N+δN−1 N, we get 2(˜ν) 2(ˆν) ≥2(˜ν) 2(ν) =N−1 N2+N−1 N=N−1 N1+N−1 NN→∞ −→ 2. (iv) In this case, we get ˜ν=1 Nδ(1)+N−1 2Nδ(−1)+δ(1). Compute 1(˜ν) = N  i=1 λiW1(˜ν,μi)=1 N·N−1 N+N−1 N·1 N=2(N−1) N2. On the other hand, for any j∈{2,...,N}, 1(ν j)=1 NW1(ν j,ν1)=1 N, such that 1(˜ν) 1(ˆν) ≥1(˜ν) 1(ν j)=2 N−1 N2 1 N =21−1 NN→∞ −→ 2.  Remark 4.8 Intuitively, the example used in the proof of Proposition 4.7 is based on the fact that the analyzed algorithms can not split μ1=δ(0)into two Dirac measures with weight 1/2, in which case the approximations would be optimal. We chose the example in the proof for simplicity of exposition. However, it is also possible to show 123 Simple algorithms for Wasserstein barycenters thesamesharpnessresultsusingmeasuresμ1,...,μNthat all havetwosupport points. To this end, for Nodd and some small ε>0, consider μ1:=1 2(δ(0,−ε) +δ(0, ε)), μ2=μ4=···=μN−1:=1 2(δ(−1,−ε) +δ(1,ε)) μ3=μ5=···=μN:=1 2(δ(−1,ε)+δ(1,−ε)). 5 Numerical results We present a numerical comparison of different Wasserstein-2 barycenter algorithms, the computation of a Wasserstein-1 barycenter, and, as applications, an interpolation betweenmeasuresandtextures,respectively. To computethe exacttwo-marginaltrans- port plans of the presented algorithms, we used the emd function of the Python-OT (POT 0.7.0) package [55], which is a wrapper of the network simplex solver1from [8], which, in turn, is based on an implementation in the LEMON C++ library.2 5.1 Numerical comparison In this section, we compare different Wasserstein-2 barycenter algorithms in terms of accuracy and runtime. We would like to include popular algorithms as iterative Bregman projections into the comparison. However, many of these algorithms operate in a fixed-support setting, that is, they only optimize over the weights of some a priori chosen support grid. On the other hand, free-support methods are the ideal candidate forsparseandpossiblyhigh-dimensionalpointclouddata,i.e.,ifsuchagridstructureis not present. An approximation of such data with a coarse grid decreases the accuracy of the solution, but a fine grid increases the runtime of the fixed-support methods. Hence, the fair choice of a comparison data set is challenging. We attempt to solve this problem by choosing a grid data set with relatively few nonzero mass weights, that has nevertheless been commonly used as a benchmark example in the literature, also for fixed-support algorithms. It originates from [15] and consists of N=10 ellipses shown in Fig. 2, given as images of 60 ×60 pixels. We take λ≡1/N. First, we compute approximate barycenters ˜νusing the presented algorithms in the case p=2, which we call “Reference” and “Pairwise” below.3Furthermore, we compute the barycenter using publicly available implementations for the methods [18,21,36], called “Debiased”, “IBP”, “Product”, “MAAIPM” and “Frank–Wolfe” 1https://perso.liris.cnrs.fr/nicolas.bonneel/FastTransport/. 2http://lemon.cs.elte.hu/pub/doc/latest-svn/index.html. 3https://github.com/jvlindheim/free-support-barycenters. 123 J. v. Lindheim Fig. 2 Data set of 10 nested ellipses below,4the exact barycenter method from [30] called “Exact” below,5and the method from [23] called “FastIBP” below.6We also tried the BADMM7method from [56], but since it did not converge properly, we do not consider it further. While the fixed-support methods receive the input measures supported on {0,...,59/60}×{0,...,59/60}as gray-valued 60 ×60 images, the free-support methods get the measures as a list of support positions and corresponding weights. Clearly, the sparse support of the data is an advantage for the free-support methods. As a means to facilitate the comparison, we execute the reference and pairwise algorithms also as fixed-support versions. Instead of computing optimal solutions in Algorithms 1 and 3and, we approximate the optimal transport plans πij using the Sinkhorn algorithm on the full grid. We call these algorithms “Reference full” and “Pairwise full” below. Note that, as do the implementations of “IBP”, “Debiased” and “Product”, we exploit the fact that the Sinkhorn kernel K=exp(−c/ε) is separable, such that the corresponding convolution can be performed separately in x- and y-direction, see, e.g., [13, Rem. 4.17]. This also reduces memory consumption, since it is not necessary to compute a distance matrix in R3600×3600. We remark that the runtime of the Sinkhorn algorithms crucially depends on the desired accuracy. In analogy to “IBP”, “Debiased” and “Product” that terminate, once the barycenter measure has a maximum change of 10−5in any iteration, we terminate once this tolerance is reached in the first marginal of πij. We check for this criterion only every 10-th iteration, since it produces computational overhead (contrary to the aforementioned methods). For all Sinkhorn methods, we used a parameter of ε=0.002 and otherwise chose the default parameters. For the reference algorithm, we have chosen the reference measure to be the upper left measure shown in Fig. 2. To compare the runtimes, we executed all codes on the same laptop with Intel i7-8550U CPU and 8GB memory. The Matlab codes were run in Matlab R2020a. The runtimes of the Python codes are averages over several runs, as obtained by Python’s timeit function. The results are shown in Fig. 3and Table 1. 4https://github.com/hichamjanati/debiased-ot-barycenters. 5https://github.com/eboix/high_precision_barycenters. 6https://github.com/tyDLin/FS-WBP. 7https://github.com/bobye/WBC_Matlab. 123 Simple algorithms for Wasserstein barycenters Funding Open Access funding enabled and organized by Projekt DEAL. Data availability The datasets generated during and/or analysed during the current study are available in the GitHub repositories https://github.com/jvlindheim/free-support-barycenters and https://www.robots.ox.ac.uk/\protect\unhbox\voidb@x\penalty\@M\vgg/data/dtd/. Declarations Conflict of interest The authors declare no conflict of interest. Open Access ThisarticleislicensedunderaCreativeCommonsAttribution4.0InternationalLicense,which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. References 1. Agueh, M., Carlier, G.: Barycenters in the Wasserstein space. SIAM J. Math. Anal. 43(2), 904–924 (2011). https://doi.org/10.1137/100805741 2. Puccetti, G., Rüschendorf, L., Vanduffel, S.: On the computation of Wasserstein barycenters. J. Multivariate Anal. 176, 104581 (2020). https://doi.org/10.1016/j.jmva.2019.104581 3. Turner, K., Mileyko, Y., Mukherjee, S., Harer, J.: Fréchet means for distributions of persistence diagrams. Discrete Comput. Geom. 52(1), 44–70 (2014). https://doi.org/10.1007/s00454-014-9604-7 4. Trouvé, A., Younes, L.: Local geometry of deformable templates. SIAM J. Math. Anal. 37(1), 17–59 (2005). https://doi.org/10.1137/S0036141002404838 5. Zemel, Y., Panaretos, V.M.: Fréchet means and Procrustes analysis in Wasserstein space. Bernoulli 25(2), 932–976 (2019). https://doi.org/10.3150/17-bej1009 6. Houdard, A., Leclaire, A., Papadakis, N., Rabin, J.: A generative model for texture synthesis based on optimal transport between feature distributions. J. Math. Imaging Vis. (2022). https://doi.org/10.1007/ s10851-022-01108-9 7. Rabin, J., Peyré, G., Delon, J., Bernot, M.: Wasserstein barycenter and its application to texture mixing. In: international conference on scale space and variational methods in computer vision, pp 435–446 (2011). Springer 8. Bonneel, N., van de Panne, M., Paris, S., Heidrich, W.: Displacement interpolation using Lagrangian mass transport. In: Proceedings of the 2011 SIGGRAPH Asia Conference. SA ’11. association for computing machinery, New York, NY, USA (2011). https://doi.org/10.1145/2024156.2024192 9. Solomon, J., de Goes, F., Peyré, G., Cuturi, M., Butscher, A., Nguyen, A., Du, T., Guibas, L.: Convolutional Wasserstein distances: efficient optimal transportation on geometric domains. ACM Trans. Graph. 34(4), 1–11 (2015). https://doi.org/10.1145/2766963 10. Elvander, F., Haasler, I., Jakobsson, A., Karlsson, J.: Multi-marginal optimal transport using partial information with applications in robust localization and sensor fusion. Signal Process. 171, 107474 (2020). https://doi.org/10.1016/j.sigpro.2020.107474 11. Srivastava, S., Li, C., Dunson, D.B.: Scalable Bayes via barycenter in Wasserstein space. J. Mach. Learn. Res. 19, 8–35 (2018) 12. Panaretos, V.M., Zemel, Y.: Statistical aspects of Wasserstein distances. Annu. Rev. Stat. Appl. 6, 405–431 (2019). https://doi.org/10.1146/annurev-statistics-030718-104938 13. Peyré, G., Cuturi, M., et al.: Computational optimal transport: with applications to data science. Found. Trends Mach. Learn. 11(5–6), 355–607 (2019) 14. Altschuler, J.M., Boix-Adserà, E.: Wasserstein barycenters are NP-hard to compute. SIAM J. Math. Data Sci. 4(1), 179–203 (2022). https://doi.org/10.1137/21M1390062 123 J. v. Lindheim 15. Cuturi, M., Doucet, A.: Fast computation of Wasserstein barycenters. In: international conference on machine learning, pp. 685–693 (2014). PMLR 16. Benamou, J.-D., Carlier, G., Cuturi, M., Nenna, L., Peyré, G.: Iterative Bregman projections for regularized transportation problems. SIAM J. Sci. Comput. 37(2), 1111–1138 (2015). https://doi.org/10. 1137/141000439 17. Kroshnin, A., Tupitsa, N., Dvinskikh, D., Dvurechensky, P., Gasnikov, A., Uribe, C.: On the complexity of approximating Wasserstein barycenters. In: Chaudhuri, K., Salakhutdinov, R. (eds.) proceedings of the 36th international conference on machine learning. Proceedings of Machine Learning Research, vol. 97, pp. 3530–3540. PMLR, Long Beach, California, USA (2019). https://proceedings.mlr.press/ v97/kroshnin19a.html 18. Ge, D., Wang, H., Xiong, Z., Ye, Y.: Interior-point methods strike back: Solving the Wasserstein barycenter problem. In: Wallach, H., Larochelle, H., Beygelzimer, A., d’ Alché-Buc, F., Fox, E., Garnett, R. (eds.) Advances in neural information processing systems, vol. 32. Curran Associates, Inc., Vancouver Convention Center, Vancouver, CA (2019). https://proceedings.neurips.cc/paper/2019/file/ 0937fb5864ed06ffb59ae5f9b5ed67a9-Paper.pdf 19. Yang, L., Li, J., Sun, D., Toh, K.-C.: A fast globally linearly convergent algorithm for the computation of Wasserstein barycenters. J. Mach. Learn. Res. 22(21), 1–37 (2021) 20. Lin, T., Ho, N., Cuturi, M., Jordan, M.I.: On the complexity of approximating multimarginal optimal transport. J. Mach. Learn. Res. 23(65), 1–43 (2022) 21. Janati, H., Cuturi, M., Gramfort, A.: Debiased Sinkhorn barycenters. In: III, H.D., Singh, A. (eds.) Proceedingsof the 37thinternationalconference on machinelearning. Proceedings ofmachine learning research, vol. 119, pp. 4692–4701. PMLR, virtual (2020). http://proceedings.mlr.press/v119/janati20a. html 22. Takezawa, Y., Sato, R., Kozareva, Z., Ravi, S., Yamada, M.: Fixed support tree-sliced Wasserstein barycenter. In: Camps-Valls, G., Ruiz, F.J.R., Valera, I. (eds.) Proceedings of the 25th international conference on artificial intelligence and statistics. Proceedings of Machine Learning Research, vol. 151, pp. 1120–1137. PMLR, virtual (2022). https://proceedings.mlr.press/v151/takezawa22a.html 23. Lin, T., Ho, N., Chen, X., Cuturi, M., Jordan, M.: Fixed-support Wasserstein barycenters: Computational hardness and fast algorithm. In: Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M.F., Lin, H. (eds.) Advances in neural information processing systems, vol. 33, pp. 5368–5380. Curran Associates, Inc., virtual (2020). https://proceedings.neurips.cc/paper/2020/file/ 3a029f04d76d32e79367c4b3255dda4d-Paper.pdf 24. Dvinskikh, D., Tiapkin, D.: Improved complexity bounds in Wasserstein barycenter problem. In: International conference on artificial intelligence and statistics, pp. 1738–1746 (2021). PMLR 25. Gangbo, W., ´ Swi¸ech,A.: Optimalmaps forthe multidimensionalMonge-Kantorovichproblem.Comm. Pure Appl. Math. 51(1), 23–45 (1998). https://doi.org/10.1002/(SICI)1097-0312(199801)51:1<23:: AID-CPA2>3.0.CO;2-H 26. Benamou, J.-D., Carlier, G., Nenna, L.: Generalized incompressible flows, multi-marginal transport and Sinkhorn algorithm. Numer. Math. 142(1), 33–54 (2019). https://doi.org/10.1007/s00211-018- 0995-x 27. Haasler, I., Ringh, A., Chen, Y., Karlsson, J.: Multimarginal optimal transport with a tree-structured cost and the Schrödinger bridge problem. SIAM J. Control Optim. 59(4), 2428–2453 (2021). https:// doi.org/10.1137/20M1320195 28. Beier, F., von Lindheim, J., Neumayer, S., Steidl, G.: Unbalanced multi-marginal optimal transport. J. Math. Imaging Vis. (2022). https://doi.org/10.1007/s10851-022-01126-7 29. Anderes, E., Borgwardt, S., Miller, J.: Discrete Wasserstein barycenters: optimal transport for discrete data. Math. Methods Oper. Res. 84(2), 389–409 (2016). https://doi.org/10.1007/s00186-016-0549-x 30. Altschuler, J.M., Boix-Adsera, E.: Wasserstein barycenters can be computed in polynomial time in fixed dimension. J. Mach. Learn. Res. 22(44), 1–19 (2021) 31. Borgwardt, S., Patterson, S.: Improved linear programs for discrete barycenters. INFORMS J. Optim. 2(1), 14–33 (2020). https://doi.org/10.1287/ijoo.2019.0020 32. Borgwardt,S., Patterson,S.:Acolumngenerationapproachtothediscrete barycenterproblem.Discrete Optim. 43, 100674 (2022). https://doi.org/10.1016/j.disopt.2021.100674 33. Borgwardt, S.: An lp-based, strongly-polynomial 2-approximation algorithm for sparse Wasserstein barycenters. Oper. Res. 22(2), 1511–1551 (2020) 34. Qian, Y., Pan, S.: An inexact PAM method for computing Wasserstein barycenter with unknown supports. Comput. Appl. Math. 40(2), 1–29 (2021). https://doi.org/10.1007/s40314-020-01395-1 123 Simple algorithms for Wasserstein barycenters 35. Claici, S., Chien, E., Solomon, J.: Stochastic Wasserstein barycenters. In: Dy, J., Krause, A. (eds.) In: Proceedings of the 35th international conference on machine learning. proceedings of machine learning research, vol. 80, pp. 999–1008. PMLR, Stockholmsmässan, Stockholm, SE (2018). https:// proceedings.mlr.press/v80/claici18a.html 36. Luise, G., Salzo, S., Pontil, M., Ciliberto, C.: Sinkhorn barycenters with free support via Frank–Wolfe algorithm.In: Wallach,H.,Larochelle, H., Beygelzimer, A., d’Alché-Buc,F., Fox,E.,Garnett,R. (eds.) Advances in neural information processing systems, vol. 32, pp. 9322–9333. Curran Associates, Inc., Vancouver Convention Center, Vancouver, CA (2019). https://proceedings.neurips.cc/paper/2019/file/ 9f96f36b7aae3b1ff847c26ac94c604e-Paper.pdf 37. Li, L., Genevay, A., Yurochkin, M., Solomon, J.M.: Continuous regularized Wasserstein barycenters. In: Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M.F., Lin, H. (eds.) Advances in Neural Information Processing Systems, vol. 33, pp. 17755–17765. Curran Associates, Inc., virtual (2020). https:// proceedings.neurips.cc/paper/2020/file/cdf1035c34ec380218a8cc9a43d438f9-Paper.pdf 38. von Lindheim, J.: Approximative algorithms for multi-marginal optimal transport and free-support wasserstein barycenters. arXiv preprint arXiv:2202.00954 (2022) 39. Heinemann, F., Munk, A., Zemel, Y.: Randomized Wasserstein barycenter computation: resampling with statistical guarantees. SIAM J. Math. Data Sci. 4(1), 229–259 (2022). https://doi.org/10.1137/ 20M1385263 40. Izzo, Z., Silwal, S., Zhou, S.: Dimensionality reduction for Wasserstein barycenter. In: Beygelzimer, A., Dauphin, Y., Liang, P., Vaughan, J.W. (eds.) Advances in Neural Information Processing Systems (2021). https://openreview.net/forum?id=cDPFOsj2G6B 41. Carlier, G., Ekeland, I.: Matching for teams. Econom. Theory 42(2), 397–418 (2010). https://doi.org/ 10.1007/s00199-008-0415-z 42. Friesecke, G., Penka, M.: The GenCol algorithm for high-dimensional optimal transport: general formulation and application to barycenters and Wasserstein splines. arXiv preprint arXiv:2209.09081 (2022) 43. Ambrosio, L., Gigli, N., Savaré, G.: Gradient flows in metric spaces and in the space of probability measures, 2nd edn. Lectures in Mathematics ETH Zürich, p. 334. Birkhäuser Verlag, Basel, Basel, CH (2008) 44. Beier, F., Beinert, R., Steidl, G.: On a linear Gromov-Wasserstein distance. IEEE Trans. Image Process. 31, 7292–7305 (2022). https://doi.org/10.1109/TIP.2022.3221286 45. Cai, T., Cheng, J., Schmitzer, B., Thorpe, M.: The linearized Hellinger-Kantorovich distance. SIAM J. Imaging Sci. 15(1), 45–83 (2022). https://doi.org/10.1137/21M1400080 46. Wang, W., Slepˇcev, D., Basu, S., Ozolek, J.A., Rohde, G.K.: A linear optimal transportation framework for quantifying and visualizing variations in sets of images. Int. J. Comput. Vis. 101(2), 254–269 (2013) 47. Mérigot,Q., Delalande,A., Chazal,F.:Quantitative stabilityof optimaltransport mapsand linearization of the 2-Wasserstein space. In: Chiappa, S., Calandra, R. (eds.) In: Proceedings of the twenty third international conference on artificial intelligence and statistics. proceedings of machine learning research, vol. 108, pp. 3186–3196. PMLR, virtual (2020). https://proceedings.mlr.press/v108/merigot20a.html 48. Moosmüller, C., Cloninger, A.: Linear optimal transport embedding: provable Wasserstein classification for certain rigid transformations and perturbations. Inf. Inference (2022). https://doi.org/10.1093/ imaiai/iaac023 49. Álvarez-Esteban, P.C., del Barrio, E., Cuesta-Albertos, J.A., Matrán, C.: A fixed-point approach to barycenters in Wasserstein space. J. Math. Anal. Appl. 441(2), 744–762 (2016). https://doi.org/10. 1016/j.jmaa.2016.04.045 50. Bigot, J., Klein, T.: Characterization of barycenters in the Wasserstein space by averaging optimal transport maps. ESAIM Probab. Stat. 22, 35–57 (2018). https://doi.org/10.1051/ps/2017020 51. Cazelles, E., Tobar, F., Fontbona, J.: A novel notion of barycenter for probability distributions based on optimal weak mass transport. In: Ranzato, M., Beygelzimer, A., Dauphin, Y., Liang, P.S., Vaughan, J.W. (eds.) Advances in Neural Information Processing Systems, vol. 34, pp. 13575–13586. Curran Associates, Inc., virtual (2021). https://proceedings.neurips.cc/paper/2021/file/ 70d5212dd052b2ef06e5e562f6f9ab9c-Paper.pdf 52. Beck, A., Sabach, S.: Weiszfeld’s method: old and new results. J. Optim. Theory Appl. 164(1), 1–40 (2015). https://doi.org/10.1007/s10957-014-0586-7 53. Bajaj, C.: The algebraic degree of geometric optimization problems. Discrete Comput. Geom. 3(2), 177–191 (1988). https://doi.org/10.1007/BF02187906 123 J. v. Lindheim 54. Santambrogio, F.: Optimal Transport for Applied Mathematicians. Progress in Nonlinear Differential Equations and their Applications, vol. 87, p. 353. Birkhäuser/Springer, Cham, Cham, CH (2015). https://doi.org/10.1007/978-3-319-20828-2. Calculus of variations, PDEs, and modeling 55. Flamary,R.,Courty,N.,Gramfort, A.,Alaya,M.Z.,Boisbunon,A.,Chambon,S., Chapel,L.,Corenflos, A., Fatras, K., Fournier, N., Gautheron, L., Gayraud, N.T.H., Janati, H., Rakotomamonjy, A., Redko, I., Rolet, A., Schutz, A., Seguy, V., Sutherland, D.J., Tavenard, R., Tong, A., Vayer, T.: Pot: Python optimal transport. J. Mach. Learn. Res. 22(78), 1–8 (2021) 56. Ye, J., Wu, P., Wang, J.Z., Li, J.: Fast discrete distribution clustering using Wasserstein barycenter with sparse support. IEEE Trans. Signal Process. 65(9), 2317–2332 (2017). https://doi.org/10.1109/TSP. 2017.2659647 57. Lopuhaä, H.P., Rousseeuw, P.J.: Breakdown points of affine equivariant estimators of multivariate location and covariance matrices. Ann. Statist. 19(1), 229–248 (1991). https://doi.org/10.1214/aos/ 1176347978 58. Cimpoi, M., Maji, S., Kokkinos, I., Mohamed, S., , Vedaldi, A.: Describing textures in the wild. In: Proceedings of the IEEE Conf. on computer vision and pattern recognition (CVPR) (2014) 59. Welzl, E.: Smallest enclosing disks (balls and ellipsoids). In: new results and new trends in computer science (Graz, 1991). Lecture Notes in Comput. Sci., vol. 555, pp. 359–370. Springer, Graz, AT (1991). https://doi.org/10.1007/BFb0038202 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123