Entropic Regularization
Adding entropy to transport spreads the plan slightly, buying a unique smooth solution and fast Sinkhorn iterations at a small accuracy cost.
Why Does This Exist?
Exact OT plans sit on extreme points: sparse, non-unique, and expensive. A touch of entropy pulls the solution inside the polytope toward the independent coupling, making it unique, smooth in the inputs, and computable by Sinkhorn. Gradients flow through it, so regularized OT becomes a differentiable loss layer.
The price is blur: regularized cost overestimates and shrinks toward the product coupling as grows. Debiased Sinkhorn divergences refund most of that bias. Solver: Sinkhorn.
The one idea you need first
Entropy peaks at spread-out plans. Penalizing (equivalently rewarding spread) trades cost against diffusivity with temperature .
Think of It Like This
Hot metal versus cold forging
Cold-forged joints are exact but brittle and slow to shape. Heated metal flows into molds fast and smoothly, then hardens slightly off the cold exact shape.
Epsilon is the heat. Hot plans flow through Sinkhorn in milliseconds with rounded edges; cold plans are exact but demand cubic LP labor. Debiasing is the cooling quench that recovers sharpness.
Where the analogy stops: overheating destroys all structure (plan collapses to independent coupling), unlike metal which just melts.
How It Actually Works
over couplings gives with . As the plan converges to the max-entropy exact optimizer; as it converges to with cost equal to independent matching. Debiased divergence restores .
Worked example
Two-point example from Sinkhorn page, , :
- : (off-diagonal ). Plan identity, cost . Sharp.
- : plan , cost (computed earlier).
- : . Symmetric solution tends to , cost . Near the independent cost . Epsilon dials blur from to continuously.
Watch Out For
Comparing raw regularized costs across different epsilons
shifts with , so a smaller number can mean larger smoothing rather than closer distributions. Model selection on raw values picks the blurriest setting.
Fix one per comparison or use debiased for cross-setting judgments.
Differentiating through unrolled Sinkhorn naively
Backprop through 1000 iterations wastes memory and amplifies numerical error. Implicit differentiation of the optimality conditions is cheaper and stabler.
Use OTT or GeomLoss implicit gradients instead of unrolling the loop.
The Quick Version
- Entropy smoothing makes OT unique, smooth, and Sinkhorn-solvable.
- Epsilon trades exactness against speed: zero recovers LP, infinity gives independence.
- Raw regularized costs are biased upward and incomparable across epsilons.
- Debiased Sinkhorn divergences restore zero self-distance.
- Differentiate optimality conditions implicitly, not by unrolling iterations.