Iterative Bregman Projections for Regularized Transportation Problems
Paper · 2015 · Jean‐David Benamou, Guillaume Carlier, Marco Cuturi et al.
Summary
A transport problem asks how to move mass from one distribution to another at the lowest cost. Even when both distributions are given as finite histograms, the unknown is a whole table of transfers. The table gets larger as the histograms grow, and some applications need a joint assignment across several distributions. Benamou and colleagues develop a way to approximate these problems by adding an entropy term, which favors plans that spread mass across more entries. The regularized problem can then be read as a geometric question. Starting from an array that gives more weight to cheaper transfers, find the nearest array that satisfies the transport constraints.
The authors measure nearness with the Kullback–Leibler divergence. Their computational insight is to split the constraints into sets that are easy to handle individually. Fixing a source histogram, for instance, requires rescaling rows. Fixing a destination histogram requires rescaling columns. Repeating these operations recovers the familiar Sinkhorn algorithm. The same approach extends to constraints that link several plans, as in finding a Wasserstein barycenter, a distribution that serves as a weighted center of other distributions. For inequalities, such as a cap on the mass sent along a route, the paper uses Dykstra’s algorithm. It keeps a correction for each constraint so that successive projections solve the joint problem.
The numerical examples show what this common procedure can compute. The authors interpolate between shape histograms, reconstruct an image from a limited set of projection directions with help from a template, and visualize how mass splits in generalized incompressible flows. In the flow example, a factorization avoids storing the full array of trajectories. Partial transport reveals where the prescribed amount of mass is taken up and delivered, while capacity-constrained examples reproduce the plan symmetries expected from earlier theory.
The approximation involves a tradeoff. Entropy makes the computed plans smoother and gives rise to simple updates. With less regularization, plans approach the unregularized solution, but the computations become harder. The authors distinguish the numerical problem of representing very small entries from the slower convergence of the projection iterations themselves. Their examples support using the framework when some smoothing is acceptable.
Deep dive: Iterative Bregman Projections for Regularized Transportation Problems
Benamou and colleagues use entropy and iterative Bregman projections to approximate optimal transport, from barycenters to flows with capacity limits. · about 36 minutes to read
The problem and its context
Why an assignment of mass is expensive to compute
A histogram says how much mass lies at each location. Optimal transport asks how to account for the difference between two histograms by transferring that mass. It starts with a cost for each possible origin and destination. A feasible plan specifies the amount carried by every pair. Adding across destinations must recover the amount available at each origin, and adding across origins must recover the amount demanded at each destination. Once those requirements are met, the total cost is the sum of the cost of each transfer weighted by its mass.
The row and column totals of a plan are called its marginals. They describe the distributions seen when only the origin or only the destination is recorded. A marginal does not identify the partners of each transfer. Two plans can have precisely the same totals and arrange their transfers differently. It is the cost that makes one arrangement preferable to another. With finite histograms the unknown entries enter the cost and the constraints linearly, giving the discrete form of Kantorovich’s linear program.
When the histograms have the same number of equally weighted atoms, the paper describes a reduction to optimal matching. Here an atom is mass concentrated at a single point. The authors describe dedicated matching methods as having roughly cubic complexity in the number of atoms. They also discuss a dynamic approach that treats transport as motion along a geodesic, a path that realizes the transport geometry. That reformulation opens the door to convex optimization but adds a time coordinate. It therefore introduces its own computational expense.
Other approaches use the geometry of the underlying domain. The paper describes semi-discrete transport from a density to a finite weighted collection of points. It also discusses Newton solvers for the Monge–Ampère equation in density-to-density transport with quadratic cost and suitable regularity. The projection framework addresses a different computational opportunity. A discrete problem may contain several kinds of constraints that are expensive to enforce together but easy to enforce individually.
What entropy changes
The paper places entropic regularization in a line of work that includes Schrödinger’s problem and iterative proportional fitting, a statistical procedure for adjusting a table to known marginals. It also describes earlier uses of entropy in economic applications where one wants smoother flows or a more tractable inference problem. The recent computational work on entropic transport highlighted by the authors showed how to solve the regularized assignment by matrix scaling. It reported favorable computational properties and found that the regularized histogram comparison could also help in classification.
Entropy changes which plans the optimization favors. Without the extra term, an optimal plan can put its mass on a sparse set of transfers. With the term, concentration carries a cost of its own. Among candidate plans with comparable transport costs, the optimization favors the one that spreads mass more. The regularized objective is strictly convex, so there is a unique optimum on a nonempty feasible set in the settings considered. The tradeoff is controlled by the regularization strength. Its value affects both which plan is selected and how easily the numerical procedure reaches it.
The structure that makes ordinary entropic transport particularly simple is diagonal scaling. Start with a matrix whose entries are exponentials of the negative costs after rescaling by the regularization strength. Multiply each row by its own factor and each column by its own factor. The regularized solution lies among matrices obtained in this way. Alternating adjustment of the row and column factors is the Sinkhorn or iterative proportional fitting procedure. The paper uses this established result as a starting point for situations where the appropriate updates are less obvious than row and column normalization.
The authors also distinguish their use of entropy from the log barriers discussed in the literature on interior point methods. Those barriers can provide polynomial complexity guarantees under a property called self-concordance. The entropy term here lacks that property. The authors are interested in the regularized computation because it exposes simple operations that can be repeated, and because a smoothed transport plan can be acceptable in the intended applications.
Why the extensions change the constraints
A Wasserstein barycenter generalizes a weighted center to distributions. Its objective compares a candidate center with each input using transport. The center is itself an unknown histogram. A useful formulation gives each input its own plan and requires the plans to agree on their marginal at the center. The paper describes earlier gradient descent on an entropically smoothed barycenter objective and an approach based on duality, nonsmooth optimization, and computational geometry. The earlier gradient approach appears in Fast Computation of Wasserstein Barycenters.
The barycenter also has a formulation as multi-marginal transport with quadratic cost. A multi-marginal plan records mass for whole tuples of locations rather than pairs. Its separate marginals specify the distribution in each coordinate, while the joint plan specifies which locations across coordinates are grouped together. Growing the number of marginals grows the size of the generic array exponentially. The fixed-grid barycenter can avoid this growth by using separate plans, but for other applications the whole tuple has a meaning of its own. The authors point to relaxed incompressible flows, where the coordinates of a tuple describe a trajectory at successive times. The arrangement across those times is part of the unknown.
Partial transport and capacity constraints change the geometry in another way. In partial transport, the marginals describe how much mass is available at each location. Some of it can remain unused, and a separate constraint fixes how much is moved overall. In a capacity-constrained problem, the marginals still fix the entire amount dispatched and received at each location, while individual transfers have their own ceilings. Earlier work discussed by the authors had already examined the continuous problems, including the boundary between used and unused regions and symmetries of solutions under related capacity bounds. The numerical question is how to preserve these different feasible sets while keeping the individual operations simple.
The method, step by step
From a cost table to a projection
The starting point is the array of possible transfers. To solve the regularized problem, the authors turn the costs into a reference array. A cheap transfer gets a relatively large entry. An expensive transfer gets a small one. This is a Gibbs array, meaning that the weights are exponentials of negative costs divided by the regularization strength. The array already expresses preferences between transfers, though its totals generally differ from the required marginals.
Next comes a projection. In everyday geometry, projecting onto a set means finding the closest point in that set. Here closeness is measured by the Kullback–Leibler divergence, or KL divergence. Its formula makes a change depend on the ratio between a candidate entry and its reference value. In the paper’s convention the reference need not be a probability distribution, and the divergence omits a term that is constant in the candidate. This convention gives exactly the regularized objective up to the common regularization factor.
Rather than projecting directly onto all the constraints together, the authors break the feasible set into an intersection. A set in this intersection may impose a known marginal, agreement between several marginals, a total mass, or an upper bound. They work out what the KL projection onto each such set does to the input array. The resulting operations use rescaling, geometric means, or entrywise clipping. The full procedure cycles through these operations until it approaches the common projection.
Solving a regularized transport problem by KL projection
The steps in order.
The computational inputs are costs, histograms or observations, and parameters specifying the constraints and regularization. For the numerical illustrations the authors choose these quantities directly. The iteration is an optimization of the plan for each instance. Depending on the application, the reported output is the plan itself, a marginal shared by several plans, a reconstructed image, a projection of a trajectory distribution onto selected times, or a region extracted from transported mass. The paper also makes the implementation of its methods available online.
The objective and the KL geometry
For ordinary discrete transport, the authors take probability histograms, so their entries are non-negative and sum to one. Both histograms are written with the same number of locations. The set of feasible couplings is as follows.
Π(p, q) = {γ ∈ ℝ₊ᴺˣᴺ : γ𝟙 = p, γᵀ𝟙 = q}
Here Π denotes the coupling set, p is the source histogram, q is the destination histogram, and γ is the plan. N is the number of locations in each histogram, and ℝ₊ᴺˣᴺ denotes non-negative real arrays of that size. The vector 𝟙 contains ones. Multiplication by it sums the rows, and multiplication after transposing γ, denoted by γᵀ, sums the columns of the original array.
On a non-negative array the entropy used by the paper is as follows.
E(γ) = −∑ᵢ,ⱼ γᵢⱼ(log γᵢⱼ − 1)
E denotes entropy. The indices i and j identify a row and a column, and the sum covers every entry γᵢⱼ. The function log is the natural logarithm. The expression uses the convention that the product of an entry with its logarithm vanishes at zero. The constant 1 inside the parentheses is part of the paper’s normalization. The formulas extend to arrays with more indices by summing over every entry of those arrays as well.
Wε(p, q) = min_{γ ∈ Π(p, q)} [⟨C, γ⟩ − εE(γ)]
Wε is the regularized transport value for histograms p and q. The minimum is over their coupling set Π, and C is the array of ground costs, meaning the costs of moving between individual locations. The pairing ⟨C, γ⟩ is the sum of each cost multiplied by the mass assigned to it. The positive parameter ε controls the contribution of the entropy E. Its negative sign means that large entropy reduces the objective.
ξᵢⱼ = exp(−Cᵢⱼ / ε)
The entry ξᵢⱼ of the Gibbs array corresponds to the cost Cᵢⱼ from location i to location j. The function exp is the natural exponential, and ε is the regularization strength. Each entry is computed from its own cost. The same entrywise operation gives a Gibbs array for a cost with more indices.
KL(γ ∣ ξ) = ∑ᵢ,ⱼ γᵢⱼ(log(γᵢⱼ / ξᵢⱼ) − 1)
KL denotes the paper’s Kullback–Leibler divergence, with γ the non-negative candidate array and ξ the strictly positive reference array. The sum runs over source indices i and destination indices j. The logarithm compares the candidate mass γᵢⱼ with the corresponding reference mass ξᵢⱼ, using the same zero-mass convention as for entropy. The constant 1 is subtracted inside every term.
Substituting the Gibbs entry into the divergence makes the logarithm of the reference contribute the cost divided by ε. The remaining part is minus the entropy. Multiplying the whole divergence by ε therefore recovers the regularized objective. The plan that solves the transport problem is the KL projection of ξ onto Π. This argument depends on the form of the objective and applies equally when the feasible set contains other constraints.
Pᵏˡ_𝒞(ξ) = argmin_{γ ∈ 𝒞} KL(γ ∣ ξ)
Pᵏˡ_𝒞 is the KL projection onto the set 𝒞. Its input here is ξ. The notation argmin returns the minimizing array γ itself, and KL is the divergence above. In the general framework 𝒞 is the common part of the individual closed convex sets onto which the paper projects.
How the projection cycles differ
A set specified by linear equalities is affine, before accounting for the nonnegativity already built into the divergence’s domain. The paper cycles through the affine constraints in a fixed order. When one projection has enforced its constraint, a later projection can disturb it. This is already visible in ordinary transport. If a row has exactly the right mass, rescaling different columns by different amounts will generally change that row’s sum. The convergence result concerns the sequence over repeated cycles.
γ⁽ⁿ⁾ = Pᵏˡ_𝒞ₙ(γ⁽ⁿ⁻¹⁾)
The iterate γ⁽ⁿ⁾ is the current plan after projection n. Its predecessor is γ⁽ⁿ⁻¹⁾, and 𝒞ₙ is the constraint set visited at that step. Pᵏˡ_𝒞ₙ is the corresponding KL projection. The initial plan, indexed by 0, is the Gibbs array ξ. The indexing of the sets repeats with period L, where L is the number of sets. For the affine case, the result invoked by the authors gives convergence to the projection of the original ξ onto the intersection.
For general convex sets, such as sets defined by inequality bounds, the authors use the KL version of Dykstra’s algorithm. This cycle stores a multiplicative correction for each constraint. The next time a set is visited, its correction modifies the current input before the projection. The correction is then updated using the change from the iterate before this visit to the iterate after it. It retains information that would be lost if the output of one projection were simply passed unchanged to the next set.
γ⁽ⁿ⁾ = Pᵏˡ_𝒞ₙ(γ⁽ⁿ⁻¹⁾ ⊙ q⁽ⁿ⁻ᴸ⁾)
Here γ⁽ⁿ⁾ and γ⁽ⁿ⁻¹⁾ are the successive plans, n is the current step, and L is the length of the cycle. The array q⁽ⁿ⁻ᴸ⁾ is the correction carried from the previous visit to 𝒞ₙ. The symbol ⊙ denotes entrywise multiplication. The projection Pᵏˡ_𝒞ₙ acts on the corrected input. As with the affine cycle, the starting plan is ξ. All stored corrections initially consist of ones. The correction symbol q with an iteration index is separate from the destination histogram q.
q⁽ⁿ⁾ = q⁽ⁿ⁻ᴸ⁾ ⊙ (γ⁽ⁿ⁻¹⁾ / γ⁽ⁿ⁾)
The new correction q⁽ⁿ⁾ replaces the previous correction q⁽ⁿ⁻ᴸ⁾ for that constraint. The division between plans is entrywise, as is multiplication by ⊙. The cited convergence result identifies the limit with the KL projection onto the common feasible set. This is the property the paper needs when a constraint clips an amount that already lies below its ceiling differently from one that exceeds it.
Ordinary transport and Wasserstein barycenters
The first pair of projections fixes the row and column marginals of an ordinary coupling. The projection onto the row constraint multiplies a row by the ratio of its prescribed total to its actual total. This keeps the proportions within the row. The column projection does the analogous operation with the columns.
Pᵏˡ_𝒞ᵣ(γ̄) = diag(p / (γ̄𝟙)) γ̄
The set 𝒞ᵣ fixes the row marginal at p. Its projection takes the input plan γ̄ and computes its row totals γ̄𝟙, where 𝟙 is the vector of ones. Division is entrywise, and diag puts the resulting factors on the diagonal of a matrix. Multiplying on the left applies the factors to rows.
Pᵏˡ_𝒞꜀(γ̄) = γ̄ diag(q / (γ̄ᵀ𝟙))
The set 𝒞꜀ fixes the column marginal at q. The transpose γ̄ᵀ followed by multiplication by the ones vector 𝟙 gives those column totals. The division and diag have the same meanings as above. Multiplication on the right applies the factors to columns.
Since the updates always scale a whole row or a whole column, their effects can be accumulated in two vectors. This is the source of the efficient implementation.
γ = diag(u) ξ diag(v)
Here γ is a plan represented in scaled form, ξ is the fixed Gibbs matrix, and u and v hold the cumulative row and column factors. The operator diag turns either vector into a diagonal matrix. The row and column sums of this representation can be evaluated with matrix–vector products.
u⁽ⁿ⁾ = p / (ξv⁽ⁿ⁾)
The vector u⁽ⁿ⁾ holds the row factors for index n in the scaling recurrence. Dividing the prescribed row histogram p by the product of ξ and current column factors v⁽ⁿ⁾ determines that vector. The denominator is a matrix–vector product and the division is entrywise. The initial column factors, v at index 0, are all ones.
v⁽ⁿ⁺¹⁾ = q / (ξᵀu⁽ⁿ⁾)
The updated column factors v⁽ⁿ⁺¹⁾ use the destination histogram q and the product of the transposed Gibbs matrix ξᵀ with u⁽ⁿ⁾. Again the division is entrywise. The full rescaled matrix can be left implicit through the updates. Several computations that use the same ground cost can reuse ξ.
A fixed-grid barycenter has a separate plan for each input histogram. Orient the plans so that their columns belong to the known inputs and their rows to the unknown center. One projection enforces each known column marginal. The other asks the row marginals of all the plans to agree. The weights on the input histograms also weight the divergence of the corresponding plans. The two sets of constraints are affine, so the paper uses the uncorrected Bregman cycle.
min_{p ∈ Σᴺ} ∑ₖ λₖ Wε(pₖ, p)
Here p is the sought barycenter, Σᴺ is the set of non-negative N-entry histograms of total mass one, and pₖ is the known histogram for input k. The weight λₖ is its share of the objective, and the non-negative weights sum to one. The sum runs over the K input histograms. Wε is the regularized transport value, with the same cost geometry for all inputs. The paper implements this barycenter on a common grid with a shared Gibbs matrix.
KLλ(γ ∣ ξ) = ∑ₖ λₖ KL(γₖ ∣ ξₖ)
The weighted divergence KLλ acts on the collection of plans γ, with γₖ belonging to input k. The collection ξ contains their reference arrays ξₖ, all equal to the common Gibbs matrix in this barycenter problem. Each λₖ is the corresponding input weight. The sum ranges over the input histograms.
To project onto agreement, first compute the present row total at every location in every plan. The new common total at that location is the weighted geometric mean of the old totals. The formula arises because the derivative of the KL term involves a logarithm. Agreement in the first-order conditions makes the logarithm of the common value a weighted average of the logarithms of the old values. Exponentiating gives the product below.
p = ∏ᵣ (γ̄ᵣ𝟙)^(λᵣ)
In this projection p is the common row marginal, γ̄ᵣ is the input plan with index r, 𝟙 is the vector of ones, and λᵣ is the weight of that plan. The product runs over all input plans. Taking powers and multiplying are both entrywise, so each location contributes independently to the common marginal.
γₖ = diag(p / (γ̄ₖ𝟙)) γ̄ₖ
The new plan γₖ is obtained by dividing the common total p by the current row total γ̄ₖ𝟙 of plan k. Applying diag to the ratio vector gives the diagonal matrix for row scaling. As in ordinary transport, the iterative procedure can carry the row and column factors instead of storing every plan separately. The authors describe grouping the factors for the input histograms into columns, so that calculations against the common Gibbs matrix can run together.
Tomography with a template and sparse views
The reconstruction example uses a partial Radon transform. At a chosen direction it adds the image along parallel lines, leaving a histogram over the lines. With a limited collection of angles, the available histograms constrain the unknown image incompletely. The authors start from an earlier transport-based reconstruction formulation that adds a template image. A template may be displaced or deformed relative to the unknown. Transport supplies a way to compare them that accounts for the distances through which mass has to move.
The discretization uses a square pixel grid, nearest-neighbor interpolation and a cyclic boundary convention for the discrete lines. For each direction a line defines a set of pixels whose values are summed. The adjoint, also called back-projection here, takes a value on a line and assigns it back to the pixels associated with that line. These two operations connect image-space marginals to observation-space marginals in the algorithm.
rₖ = Rθₖ(f₀) + wₖ
The observed line histogram rₖ corresponds to view k. The operator Rθₖ is the discrete Radon transform at angle θₖ, f₀ is the unknown image, and wₖ is the perturbation of that view. The experiments set that perturbation to zero, so the example isolates the effect of having few directions and of changing the template weight.
min_{f ∈ Σᴺ} [λ₁ W₂,ε(f, g₀) + λ₂ ∑ₖ W₁,ε(Rθₖ(f), rₖ)]
The unknown f is a normalized histogram on the N image pixels, and g₀ is the template. The term W₂,ε compares images with regularized transport on the two-dimensional grid, using squared Euclidean ground costs. The term W₁,ε compares observed and predicted line histograms on a one-dimensional periodic grid, using squared distance with wraparound. The sum ranges over the measured directions k, θₖ is the angle for direction k, and rₖ is its measured histogram. The template weight is λ₁, and λ₂ is the remaining weight, equal to 1 minus λ₁. In both transport terms ε is the regularization strength.
There is an image plan and a smaller plan for each view. The image plan connects the unknown reconstruction with the template. A view plan connects a predicted set of line totals with the observations. The paper fixes the known marginals and enforces a compatibility condition for every direction. The line totals obtained by applying the Radon transform to the candidate image must match the appropriate marginal of the view plan.
δₖ = [Rθₖ(γ̄𝟙ᴺ)]^λ₁ ⊙ [γ̄ₖ𝟙ᴺ⁰]^λ₂
The vector δₖ gives the common line totals in the compatibility projection for view k. The array γ̄ is the current image plan and γ̄ₖ is the current view plan. The vectors 𝟙ᴺ and 𝟙ᴺ⁰ are ones of the lengths needed to sum their rows, where N is the number of pixels and N⁰ denotes the side length of the grid. The Radon operator Rθₖ turns the current image marginal into line totals. The weights λ₁ and λ₂ are those of the template and observation terms. The powers and multiplication ⊙ are entrywise.
The view plan’s rows are rescaled by the common line totals divided by their present values. For the image plan, the analogous ratio is computed in line coordinates and then back-projected. Every image row associated with that line is multiplied by the corresponding factor. These operations make the two plans agree in observation space while leaving each plan in the space where its cost is defined. Fixing the observed and template marginals uses the same simple rescaling as ordinary transport. The reconstruction is read from the resulting image plan’s row marginal.
Several marginals in one joint plan
For genuinely multi-marginal transport the unknown array has one index for each input. The tuple of indices describes one possible joint assignment. A marginal is obtained by retaining its coordinate and summing over all the others.
Sₖ(γ)ᵢ = ∑_{j : jₖ = i} γⱼ
Sₖ is the marginal operator for dimension k, γ is the joint plan, and i is a location index in that dimension. The index j represents the entire tuple, with jₖ its k-th coordinate, and γⱼ is the mass assigned to that tuple. The sum fixes jₖ at i and ranges over every possible choice of the other coordinates.
The objective remains the cost pairing minus entropy, with the cost and plan now indexed by tuples. The Gibbs construction also carries over. The cycle projects onto each condition that the marginal in one dimension must equal its prescribed histogram. The update scales all entries sharing a location in that dimension by the same factor.
γⱼ = γ̄ⱼ (pₖ)ⱼₖ / Sₖ(γ̄)ⱼₖ
The output γⱼ and input γ̄ⱼ refer to the same tuple j. The target marginal is pₖ, whose entry at coordinate jₖ is (pₖ)ⱼₖ. The denominator is the corresponding current marginal entry obtained by applying Sₖ to γ̄. Cycling applies this normalization to one dimension at a time.
For a barycenter of point measures with quadratic cost, the cost of a tuple is its weighted squared spread around its own Euclidean center. Each input distribution is a weighted collection of Dirac masses, meaning masses at individual points. The joint plan puts weight on different choices of one location from each input. A tuple contributes its mass to the Euclidean center of those locations. These centers can lie between grid points, so the support of the resulting barycenter can differ from the support imposed by the fixed-grid construction.
Aⱼ = ∑ₖ λₖ xⱼₖ
Aⱼ is the Euclidean center of tuple j, xⱼₖ is the point selected by its k-th coordinate, and λₖ is the barycenter weight for input k. The sum goes over the inputs.
Cⱼ = ∑ₖ λₖ ‖xⱼₖ − Aⱼ‖²
Here Cⱼ is the cost of tuple j. The squared Euclidean norm measures the squared distance between point xⱼₖ and the tuple center Aⱼ. Each term is weighted by λₖ and the sum spans the inputs.
μλ = ∑ⱼ γⱼ δ_{Aⱼ}
The measure μλ is formed with weights λ in the barycenter construction. Each tuple j contributes the mass γⱼ from the computed plan at its center Aⱼ. The symbol δ denotes a Dirac measure at that center. For the plotted result, the authors collect these masses into histogram bins after solving for the plan. The display grid therefore need not serve as a constraint on the underlying centers.
Generalized flows without an explicit trajectory tensor
In the flow application, a tuple contains the locations visited at successive discrete times. The marginals at those times are uniform, representing incompressibility on the discretized domain. The terminal prescription comes from a volume-preserving map, represented in the discrete problem by a permutation. The cost penalizes motion between consecutive points and includes a final link from the last point to the prescribed destination of the initial point.
Cⱼ = ∑_{k=1,…,K−1} ‖xⱼₖ₊₁ − xⱼₖ‖² + ‖xσ(j₁) − xⱼₖ₌ₖ‖²
Here Cⱼ is the cost of the trajectory indexed by tuple j, K is the number of time coordinates, and k counts successive pairs. In the first term xⱼₖ and xⱼₖ₊₁ denote the positions selected at times k and k plus one. In the last term xσ(j₁) denotes the position with grid index σ(j₁), where σ is the endpoint permutation, and xⱼₖ₌ₖ denotes the position selected by the last coordinate j at time K. The squared norms give squared distances.
Exponentiating the negative of a sum gives a product. For the flow cost, this turns each Gibbs weight into a product of pairwise weights. The consecutive-time factors share a matrix of spatial weights, and the closure at the prescribed destination uses a second matrix. Marginal normalization multiplies the weight for a tuple by the appropriate entry from a scaling vector for that time. These factors preserve the product form.
γⱼ = ξⱼ ∏ₖ (uₖ)ⱼₖ
The trajectory mass γⱼ is the Gibbs weight ξⱼ multiplied by a factor for every time coordinate k. The vector uₖ contains the scale factors for that time and (uₖ)ⱼₖ is the one at location jₖ. The product ranges over the K times.
The calculation of a marginal is a sum of these products with one location fixed. The authors arrange the sum as a matrix product following the cyclic order of the pairwise factors, starting just after the index being updated. Other time factors enter as diagonal scalings. The desired sums are obtained from the diagonal of that product. This is why the storage depends on matrices over pairs of spatial positions and on the scaling vectors. The full trajectory array can remain implicit.
(T₁,ₖ)ₛ,𝑤 = ∑_{j : j₁ = s, jₖ = w} γⱼ
T₁,ₖ is the two-time array for the initial time and time k, with the times distinct in this expression. Its entry at s and w adds the joint mass γⱼ over trajectories that start at grid location s and visit w at time k. The sum eliminates the other time coordinates of tuple j. The authors use these two-time couplings to visualize how mass originating at a particular place spreads as the flow evolves.
How ceilings alter the updates
In partial transport the available source and destination histograms can have different total mass. The unknown plan may use at most the mass available at every location, and the amount to move is prescribed separately. The paper imposes these requirements as upper bounds on row and column totals and an equality for the sum of the entire plan.
γ𝟙 ≤ p, γᵀ𝟙 ≤ q, 𝟙ᵀγ𝟙 = m
The plan γ is non-negative, the vectors p and q are the available source and destination mass, and 𝟙 consists of ones. Transposition is denoted by ᵀ. The inequalities are entrywise. The value m is the specified transported mass, bounded above by the smaller of the two available totals.
The row projection leaves a row alone when it is within its budget and reduces it proportionally if it exceeds that budget. The column projection applies the same rule to columns. For the mass equality, all entries are multiplied by one common factor.
Pᵏˡ_𝒞ᵣ(γ̄) = diag(min(p / (γ̄𝟙), 𝟙)) γ̄
The row ceiling set is 𝒞ᵣ and Pᵏˡ_𝒞ᵣ denotes its KL projection. The row totals of γ̄ are γ̄𝟙. Their allowed values are p. The ratio and minimum are taken entrywise, and diag applies the scale factors on the left. The same construction on the transpose gives the column projection using q.
Pᵏˡ_𝒞ₘ(γ̄) = [m / (𝟙ᵀγ̄𝟙)] γ̄
The set 𝒞ₘ fixes the total at m, and Pᵏˡ_𝒞ₘ is the associated projection. The input γ̄ has total mass 𝟙ᵀγ̄𝟙, found by summing both dimensions using vectors of ones. The ratio is a single scalar applied to the entire plan. These projections enter a Dykstra cycle because the ceiling sets are convex and non-affine.
In capacity-constrained transport the row and column totals are fixed, as in ordinary transport. The ceiling is an array θ that limits the mass of each origin–destination pair. An entry’s KL projection onto its permitted interval is just the smaller of its current value and its capacity.
Pᵏˡ_𝒞θ(γ̄) = min(γ̄, θ)
Here 𝒞θ is the set satisfying the pairwise ceilings, γ̄ is the input plan, and θ contains the maximum masses. The minimum is entrywise. Together with the fixed-marginal projections this gives another Dykstra cycle. The same amount of mass still has to leave each origin and reach each destination, so clipping is followed by further adjustments to reconcile the constraints.
Multi-marginal partial transport combines the slice scaling of the joint array with the ceiling rule of partial transport. On a visit to dimension k, all entries sharing a coordinate are multiplied by the smaller of one and the ratio of the allowed marginal mass to the current marginal mass. A separate projection rescales the entire array to the desired mass. This gives a joint assignment of a prescribed amount across several distributions, with the participating portions determined by the optimization.
Experiments and results
What the numerical examples measure
The experiments are numerical demonstrations with specified inputs, costs and discretizations. Their outputs are largely geometric. The authors inspect the concentration of mass in a coupling, the shapes of barycenters, reconstruction artifacts, spreading in two-time couplings, and the location of active regions. Several examples use results from earlier theory or computations as a comparison. Tomography also supplies a direct linear reconstruction baseline. The paper gives grid sizes, regularization strengths and other settings, while the visible differences in the figures carry most of the evidence about solution quality.
The authors report that their iterative barycenter computation takes substantially less computational effort in their experiments than the earlier gradient procedure for the regularized barycenter objective. They also point out a practical difference in setup. The projection cycle uses explicit updates, so there is no gradient step size to select. The comparison is qualitative. There are no elapsed times, iteration counts to a common tolerance, or matched objective errors reported for those methods.
Ordinary transport and shape barycenters
The ordinary transport experiment uses two continuous densities represented on a uniform grid of N = 256 points on the unit interval. The cost between locations is their squared distance. The figure shows the input densities, intermediate couplings, and the converged regularized plans for different values of ε. A location on the diagonal of a coupling represents sending mass to the same grid coordinate. The iterates progressively move mass away from that diagonal as they reconcile the different marginals. Across converged plans the visual concentration increases with weaker regularization, in the direction predicted by the small-ε limit.
For the fixed-grid barycenter the inputs are histograms uniform on a diamond, an annulus and a square. The experiment uses a two-dimensional grid with N = 256 × 256 points and ε = 2/N. The input shapes are placed at the corners of a triangular display. A corner corresponds to assigning all the barycenter weight to that shape. The remaining images show different mixtures of the same inputs. For instance, the setting (1,0,1)/2 gives equal weight to the diamond and the square. A setting with all entries positive, such as (1,1,2)/4, involves all the shapes and gives the square a greater influence than either of the others. The display shows how changing the weights changes the transported geometry of the center.
The multi-marginal barycenter uses the same family of shapes with equal input weights. In this run the grid has N = 60 × 60 points, and ε = 0.005. The authors first solve for the joint plan, then calculate the location contributed by each tuple. Each displayed pixel records the total mass of these locations landing in its square. This experiment shows that the free-support construction can be computed and displayed as an image. Because the grid and the formulation differ from those of the fixed-grid experiment, the displays provide no numerical estimate of how much of their difference comes from allowing support between the grid points.
Limited-view image reconstruction
The tomography example uses a synthetic target on a grid with N = 80 × 80 pixels and K = 12 measurement directions. The Radon measurements carry no added noise. Their incompleteness comes from the restricted set of views. The authors use ε = 2/N and supply a binary disk as the template. The linear baseline is the minimum-norm reconstruction from the line measurements. It contains visible artifacts even though the line measurements themselves are clean.
The transport-based reconstructions change as the weight on the disk changes. A large template weight keeps the solution close to the disk. Reducing the weight brings out features of the actual target geometry, with some reconstruction artifacts becoming visible as well. The figure also presents measured and reconstructed line histograms for selected directions. This comparison matters because a plausible-looking image can hide a bias towards the template, while agreement with a few projections can leave ambiguity about the rest of the image. The paper shows both views of the result. It does not report a scalar reconstruction error or aggregate disagreement across the angles.
Incompressible flow and the size of the computation
The authors apply the method to Brenier’s one-dimensional flow tests. Each run uses a uniform grid with N = 200 spatial points, a discretization with K = 16 times, and ε = 10⁻³. The prescribed maps illustrate different kinds of endpoints. One folds the interval, one shifts it periodically by half the interval, and one reflects it. For a sequence of times the paper plots the two-time coupling back to the starting positions. A row or column of such a display can spread across several locations because the relaxed formulation allows mass from a single starting point to divide.
The computed displays agree with the solutions Brenier produced, according to the authors’ visual comparison. They also make the spread of mass visible where a deterministic trajectory picture would represent a single location for each starting point. Brenier’s numerical approach represents the diffuse coupling through many particles and a permutation approximation. Here the authors discretize the coupling and reduce its evaluation to two-location matrices using the cost structure.
The size comparison below uses the number of spatial indices of the arrays on which each representation operates for these flow tests. It compares the explicit trajectory representation with the matrix representation used in the implementation. This is a measure of array order, with each index ranging over the spatial grid. It is independent of a hardware setup or a runtime threshold.
Array order in the one-dimensional generalized Euler flow tests
The factorized computation works with pairwise matrices while an explicit array needs an index for every time.
The numbers
| System or setting | spatial indices per array |
|---|---|
| Explicit trajectory coupling | 16 |
| Factorized pairwise matrices (this paper) | 2 |
The storage reduction comes from the consecutive-time structure of the cost and the endpoint link. The algorithm also carries the time-dependent scaling vectors. The plotted two-time couplings can be computed using the same pairwise structure. The paper uses this construction to make the examples feasible without giving elapsed-time or peak-memory measurements against Brenier’s method.
Partial transport and transport capacities
In the two-marginal partial example the authors discretize the unit square at N = 256 × 256 points and set ε = 10⁻³. The prescribed mass is 0.7 times the smaller of the total available masses. After computing the plan, they form its source and target marginals and divide their entries by the transported mass. They call a location active if its normalized entry reaches a chosen threshold. The resulting image distinguishes the active origin and destination from their inactive areas. The visible boundary resembles the separation described by continuous partial-transport theory for supports separated by a hyperplane. The experiment compares geometric structure. It does not measure boundary error.
For the capacity examples the authors start with one-dimensional tests Korman and McCann had solved using linear programming. The two marginals discretize uniform distributions on [−1/2, 1/2], with N = 100 points and a quadratic ground cost. The regularization strength is ε = 10⁻³. The regularized plans reproduce the expected relation between the capacity settings θ = 3/2 and θ = 3, as well as the symmetry at the self-conjugate setting θ = 2. The comparison is based on the shape and arrangement of the coupling in the display.
The authors also consider uniform marginals on the square, with grids of N = 50 × 50 points and the same ε = 10⁻³. The plan now has four spatial coordinates, two for the source and two for the target. The paper fixes one coordinate of each and displays slices along the other two. The slices for the related capacities show the symmetry pattern in this larger setting. The authors describe the corresponding linear programs as too expensive to solve with the methods considered for the smaller tests. They give no timed comparison on this grid.
The multi-marginal partial example returns to the annulus, diamond and square. Here N = 60 × 60, ε = 0.005, and the total transported mass is 0.7 times the smallest input total. The tuple cost uses squared distances between pairs of locations in the tuple. Choosing the portion to move is part of the joint optimization. The figure displays the resulting active portions of the shapes, showing which regions participate in the transport required across all the inputs.
What the ablations show
The paper has no formal component ablation, but it does vary regularization, template confidence, barycenter weights and transport capacities, and it analyzes how structure in the flow cost changes the computation.
Smoothing changes the target and the iterates
The ordinary transport figure separates two observations. First, a sequence of iterates shows the process of adjusting a coupling whose initial weights favor cheap, short transfers. Later iterations distribute mass to account for the marginals. Second, a comparison of converged plans shows how the regularization strength changes the plan to which those iterations are directed. These are different dependencies. A visual change during the iteration is evidence about how the current plan becomes feasible. A visual change between plans computed at different ε is evidence about the effect of the regularized objective.
The theoretical analysis gives the latter comparison more precision. For fixed discrete marginals and cost, if the unregularized optimum is unique, the regularized plans approach it as ε decreases to zero. If there are several unregularized optima, the selected limit is the one with largest entropy. The paper cites an exponential bound for this approximation, with constants depending on the problem. That bound describes the difference between minimizers. The computational convergence of the cycling procedure for a chosen ε is a separate question, and the authors report it getting worse at small ε.
The template weight controls the reconstruction bias
The tomography comparison varies the template weight while keeping the grid, input data, directions and template fixed. It therefore shows what that weight does in a particular incomplete inverse problem. Strong reliance on the disk keeps the solution close to the expected object supplied to the algorithm. Weaker reliance makes it possible for the measured projections to recover details of the actual target, while the limited angular information leaves room for artifacts. The linear baseline provides a view of that ambiguity without the transport-based template term.
The measurements carry no additional perturbation. The contrast concerns how prior information and incomplete observations interact. It offers no noise sensitivity curve. The plotted line histograms give a partial diagnostic of fidelity, whereas the image reveals the spatial consequences of reallocating mass. Reporting both prevents a change in visual appearance from being mistaken for a direct measurement of accuracy.
Weights and capacities probe the output geometry
Changing the barycenter weights holds the input shapes and discretization fixed while changing the relative costs of disagreeing with the inputs. Each image in the triangular display is a solution to its own weighted problem. The sequence shows the behavior of the weighted objective and its common-marginal update. The locations between the triangle’s corners have a concrete meaning because their weights say how strongly each input contributes. This is an examination of the solutions produced by the method. The paper does not isolate the geometric-mean update in a comparison against a different update on the same objective.
Changing capacity has a different effect because it changes the feasible set. The one-dimensional tests use the same marginals and cost while varying the amount any pair can carry. The choice of settings is guided by a symmetry theorem for the continuous problem. With symmetric marginals and the related capacities considered in the paper, the theorem pairs a saturated support with a reflected complement. The self-conjugate case supplies a symmetry check within a single capacity setting. The observed patterns support the claim that the regularized computation preserves recognizable features of the continuous plans in these cases.
What the flow factorization establishes
The flow reduction follows from writing the exponential of the trajectory cost as a product of factors on pairs of times. A constraint on the distribution at one time adjusts the factor for that time alone. This leaves the structure intact throughout the iterations. Summing over paths can then be written as matrix multiplication, with the ordering of factors determined by the time coordinate being normalized. The argument explains why the large joint plan can be represented implicitly throughout the flow computation.
This is a structural comparison within the same regularized problem. Both representations encode the same cost and marginal constraints. The paper can therefore attribute the reduction in array order to factorization, without depending on how similar two plotted solutions look. The visual agreement with Brenier’s examples answers a separate question about the character of the computed flows. Together the analysis and the displays explain why these particular multi-marginal instances are computationally accessible.
Limitations
Limits identified by the authors
The smallest practical regularization strengths are constrained by the formation of Gibbs weights and by the progress of the iterations. Entries decay exponentially as the ratio of cost to ε grows. In finite-precision arithmetic, some entries can become too small to represent. The authors mention performing computations in the log domain to address that problem. Even when the values can be represented, the projection iterations take longer to converge as ε approaches zero. The second difficulty therefore remains once the first has been addressed.
The authors position the method as a way to obtain approximate plans with some smoothing. Their comparison with interior point methods concerns the type of computation being sought. Decreasing ε to approximate an unregularized optimum very precisely is outside the range where they argue that the projection method is competitive. The examples demonstrate different applications in a regularization regime chosen to make the calculations practical. There is no general benchmark against simplex or interior point algorithms at matched accuracy.
The size of a generic multi-marginal problem is another stated constraint. Each additional marginal contributes an index to a joint array. The barycenter on a fixed grid avoids this by working with separate plans, and the Euler flow calculation avoids it by using the pairwise cost structure. The point-measure barycenter, by contrast, pays for its freedom to place output mass between grid points by solving the higher-dimensional problem. The efficient flow representation follows from its specific cost, so the size of a general tuple-based calculation still depends on the full collection of coordinates.
For tomography the authors set out to show how an existing transport formulation can be computed with this projection scheme. They do not present the method as a state-of-the-art evaluation of reconstruction quality. The experimental illustration uses sparse views, a template and clean measurements. It demonstrates how the template and observations can be coupled in the optimization.
Limits of the evidence in the reported setups
The numerical examples document whether expected structures appear for particular cases. They give little basis for quantifying the size of the error across discretizations or applications. A visually plausible transport boundary can depend on grid resolution, ε and the threshold defining the active region. The paper does not sweep that threshold or measure the distance between the displayed boundary and a continuous reference. A coupling that has the expected capacity symmetry can still differ from the unregularized coupling in how much mass is concentrated at or near the bound. The figures establish the presence of a pattern in the reported settings.
Similarly, the tomography example provides evidence about the weight of a particular template on a particular reconstruction. The input disk and the limited-view target let the figure show details returning as less weight is placed on the disk. The setup has no added noise and no collection of templates with systematically different displacements or deformations. Consequently, the result does not establish how reliable the same weighting would be with noisy observations or with another source of template error.
The fixed-grid and point-measure barycenters demonstrate two constructions with different support conditions and different example settings. They leave open how closely the resulting distributions would agree if discretization and smoothing were controlled systematically. In particular, the histogram of the free-support result groups mass after the joint optimization. The histogram alone hides the exact locations of those centers and the extent to which they fall between input grid points.
Feasibility is part of the optimization setup. For a capacity-constrained plan, the specified marginal demands and the ceilings must permit a joint assignment. For partial transport, the specified total must fit within the available mass. The convergence statements concern projection onto such feasible intersections. The demonstrations do not examine how the numerical routines behave when inputs make an intersection empty, or how to select ε and stopping tolerances across applications on the basis of a common error target. These questions affect deployment of the numerical scheme but are distinct from proving the individual projection formulas.
What came after
Unbalanced Optimal Transport for Unbalanced Word Alignment (2023) cites the paper and brings unbalanced optimal transport to word alignment. The connection lies in the decision to relax the treatment of mass at the two sides of a correspondence problem. In Benamou and colleagues’ partial transport example, the marginals give available mass, the plan may leave some of that mass unused, and a separate constraint fixes how much is transported. Word alignment presents a correspondence problem in another domain, and the later work’s title identifies unbalanced transport as its way of approaching that problem.
The relationship is clearest at the level of formulation. A balanced coupling makes the two marginals exact requirements. Once the application calls for leaving something unmatched, deciding what can remain unassigned becomes part of specifying the feasible assignment. Benamou and colleagues show this explicitly for their partial-transport formulation by projecting onto marginal ceilings and a prescribed total. The later work is an instance of taking unbalanced correspondence into word alignment. Its citation and title establish that connection. They do not establish that it uses the same mass constraint, the same KL projection cycle, or the same numerical settings.
Cite
Cite as Jean‐David Benamou, Guillaume Carlier, Marco Cuturi, Luca Nenna and Gabriel Peyré A. 2015. Iterative Bregman Projections for Regularized Transportation Problems. SIAM Journal on Scientific Computing.
@article{benamou2015iterative,
title = {{Iterative Bregman Projections for Regularized Transportation Problems}},
author = {Jean‐David Benamou, Guillaume Carlier, Marco Cuturi, Luca Nenna and Gabriel Peyré A},
journal = {SIAM Journal on Scientific Computing},
year = {2015},
doi = {10.1137/141000439},
eprint = {1412.5154},
archivePrefix = {arXiv},
url = {https://doi.org/10.1137/141000439}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/benamou-2015-iterative-bregman-projections-regularized-transportation/