[Paper Review] Learning with minibatch Wasserstein : asymptotic and gradient properties
This paper analyzes minibatch Wasserstein training, showing it provides unbiased gradients and concentration bounds, enabling stable optimization in large-scale learning. Despite losing the true distance property, it offers practical advantages like reduced memory use and effective performance in GANs, gradient flows, and color transfer, validated empirically across multiple tasks with controlled batch size and number of batches.
Optimal transport distances are powerful tools to compare probability distributions and have found many applications in machine learning. Yet their algorithmic complexity prevents their direct use on large scale datasets. To overcome this challenge, practitioners compute these distances on minibatches {\em i.e.} they average the outcome of several smaller optimal transport problems. We propose in this paper an analysis of this practice, which effects are not well understood so far. We notably argue that it is equivalent to an implicit regularization of the original problem, with appealing properties such as unbiased estimators, gradients and a concentration bound around the expectation, but also with defects such as loss of distance property. Along with this theoretical analysis, we also conduct empirical experiments on gradient flows, GANs or color transfer that highlight the practical interest of this strategy.
Motivation & Objective
- To understand the theoretical properties of minibatch optimal transport, a widely used but poorly understood practice in large-scale machine learning.
- To analyze whether minibatch OT preserves desirable statistical and optimization properties such as unbiasedness and concentration.
- To evaluate the trade-offs between computational efficiency and loss of distance metric properties in practical applications.
- To demonstrate the effectiveness of minibatch OT in real-world tasks like GAN training, gradient flows, and color transfer.
Proposed method
- Formalizes minibatch optimal transport as averaging multiple small optimal transport problems over random subsets of data.
- Derives asymptotic properties of the minibatch estimator, proving it converges to the true OT distance in expectation.
- Establishes a concentration bound for the minibatch loss that is independent of data dimension, ensuring stability.
- Proves that gradients of the minibatch loss are unbiased, justifying their use in stochastic optimization with SGD.
- Proposes an incremental algorithm for barycentric mapping that avoids storing full cost and transport matrices, reducing memory usage.
- Employs the geomloss package and custom implementations to evaluate performance on 2D distributions, CelebA, and color transfer tasks.
Experimental results
Research questions
- RQ1Does minibatch optimal transport yield an unbiased estimator of the true optimal transport distance?
- RQ2What is the asymptotic behavior of the minibatch OT estimator, and can a concentration bound be derived independent of data dimension?
- RQ3Are the gradients of the minibatch OT loss unbiased, supporting their use in SGD-based optimization?
- RQ4How do the number of batches and batch size affect performance in practical applications like GANs and color transfer?
- RQ5To what extent is the minibatch strategy effective in preserving distributional structure while reducing computational cost?
Key findings
- The minibatch OT estimator is asymptotically unbiased and concentrates around the true OT distance, with a concentration bound independent of data dimension.
- Gradients of the minibatch OT loss are unbiased, justifying their use in stochastic gradient descent for training deep models.
- Increasing the number of batches $k$ reduces variance and improves image resolution in color transfer, especially when batch size $m$ is small.
- For $m=10$, $k=5000$ was insufficient for good resolution, but $k=5000$ with $m=1000$ achieved high-quality results, showing the importance of batch size.
- Minibatch OT performs well in gradient flows and GANs, with large batch sizes yielding accurate distribution matching and smooth transitions.
- The incremental algorithm for color transfer avoids full matrix storage, enabling scalable barycentric mapping on large datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.