Sparsity-Constrained Optimal Transport
Tianlin Liu, Joan Puigcerver, Mathieu Blondel
Abstract
Regularized optimal transport (OT) is now increasingly used as a loss or as a matching layer in neural networks. Entropy-regularized OT can be computed using the Sinkhorn algorithm but it leads to fully-dense transportation plans, meaning that all sources are (fractionally) matched with all targets. To address this issue, several works have investigated quadratic regularization instead. This regularization preserves sparsity and leads to unconstrained and smooth (semi) dual objectives, that can be solved with off-the-shelf gradient methods. Unfortunately, quadratic regularization does not give direct control over the cardinality (number of nonzeros) of the transportation plan. We propose in this paper a new approach for OT with explicit cardinality constraints on the transportation plan. Our work is motivated by an application to sparse mixture of experts, where OT can be used to match input tokens such as image patches with expert models such as neural networks. Cardinality constraints ensure that at most tokens are matched with an expert, which is crucial for computational performance reasons. Despite the nonconvexity of cardinality constraints, we show that the corresponding (semi) dual problems are tractable and can be solved with first-order gradient methods. Our method can be thought as a middle ground between unregularized OT (recovered in the limit case ) and quadratically-regularized OT (recovered when is large enough). The smoothness of the objectives increases as increases, giving rise to a trade-off between convergence speed and sparsity of the optimal plan.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts cites Hash Layers For Large Sparse Models
- Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts cites Scaling Vision with Sparse Mixture of Experts
- Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts cites BASE Layers: Simplifying Training of Large, Sparse Models
- Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- Unleashing the Power of Meta-tuning for Few-shot Generalization Through Sparse Interpolated Experts cites Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts
- Unleashing the Power of Meta-tuning for Few-shot Generalization Through Sparse Interpolated Experts cites Hash Layers For Large Sparse Models
- Unleashing the Power of Meta-tuning for Few-shot Generalization Through Sparse Interpolated Experts cites Scaling Vision with Sparse Mixture of Experts
- Unleashing the Power of Meta-tuning for Few-shot Generalization Through Sparse Interpolated Experts cites From Sparse to Soft Mixtures of Experts
- Unleashing the Power of Meta-tuning for Few-shot Generalization Through Sparse Interpolated Experts cites BASE Layers: Simplifying Training of Large, Sparse Models
- Hash Layers For Large Sparse Models cites BASE Layers: Simplifying Training of Large, Sparse Models
- Hash Layers For Large Sparse Models cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- Scaling Vision with Sparse Mixture of Experts cites BASE Layers: Simplifying Training of Large, Sparse Models
- Scaling Vision with Sparse Mixture of Experts cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- From Sparse to Soft Mixtures of Experts cites Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts
- From Sparse to Soft Mixtures of Experts cites Hash Layers For Large Sparse Models
- From Sparse to Soft Mixtures of Experts cites Scaling Vision with Sparse Mixture of Experts
- From Sparse to Soft Mixtures of Experts cites BASE Layers: Simplifying Training of Large, Sparse Models
- From Sparse to Soft Mixtures of Experts cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
Cited by top-tier papers14
- From Sparse to Soft Mixtures of ExpertsJoan Puigcerver, Carlos Riquelme Ruiz, Basil Mustafa, Neil HoulsbyICLR 2024 · 264 citations
- Projecting Assumptions: The Duality Between Sparse Autoencoders and Concept GeometrySai Sumedh R. Hindupur, Ekdeep Singh Lubana, Thomas Fel, Demba BaNeurIPS 2025 · 65 citations
- Monge, Bregman and Occam: Interpretable Optimal Transport in High-Dimensions with Feature-Sparse MapsMarco Cuturi, Michal Klein, Pierre AblinICML 2023 · 19 citations
- Unleashing the Power of Meta-tuning for Few-shot Generalization Through Sparse Interpolated ExpertsShengzhuang Chen, Jihoon Tack, Yunqiao Yang, Yee Whye Teh et al.ICML 2024 · 4 citations
- Optimal Transport with Tempered Exponential MeasuresEhsan Amid, Frank Nielsen, Richard Nock, Manfred K. WarmuthAAAI 2024 · 4 citations
Builds on11
- GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen et al.ICLR 2021 · 1,954 citations
- Scaling Vision with Sparse Mixture of ExpertsCarlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann et al.NeurIPS 2021 · 1,213 citations
- BASE Layers: Simplifying Training of Large, Sparse ModelsMike Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal et al.ICML 2021 · 382 citations
- Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of ExpertsBasil Mustafa, Carlos Riquelme, Joan Puigcerver, Rodolphe Jenatton et al.NeurIPS 2022 · 359 citations
- Hash Layers For Large Sparse ModelsStephen Roller, Sainbayar Sukhbaatar, Arthur Szlam, Jason WestonNeurIPS 2021 · 316 citations
Related papers
- Online Sinkhorn: Optimal Transport distances from sample streamsArthur Mensch, Gabriel PeyréNeurIPS 2020 · 35 citations
- Accelerating Sinkhorn algorithm with sparse Newton iterationsXun Tang, Michael Shavlovsky, Holakou Rahmanian, Elisa Tardini et al.ICLR 2024 · 11 citations
- Regularized Optimal Transport is Ground Cost AdversarialFrançois-Pierre Paty, Marco CuturiICML 2020 · 33 citations
- Linear Time Sinkhorn Divergences using Positive FeaturesMeyer Scetbon, Marco CuturiNeurIPS 2020 · 31 citations
- Safe and Sparse Newton Method for Entropic-Regularized Optimal TransportZihao Tang, Yixuan QiuNeurIPS 2024 · 9 citations
