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 $k$ 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 $k=1$) and quadratically-regularized OT (recovered when $k$ is large enough). The smoothness of the objectives increases as $k$ increases, giving rise to a trade-off between convergence speed and sparsity of the optimal plan.
skscope: Fast Sparsity-Constrained Optimization in Python
University of Science and Technology of China(中国科学技术大学);National University of Singapore(新加坡国立大学);London School of Economics and Political Science(伦敦政治经济学院)
Efficient Relaxed Gradient Support Pursuit for Sparsity Constrained Non-convex Optimization
Key Laboratory of Intelligent Perception and Image Understanding of Ministry of Education(教育部智能感知与图像理解重点实验室);School of Artificial Intelligence, Xidian University(西安电子科技大学人工智能学院);Department of Computer Science, The University of Texas at Austin(德克萨斯大学奥斯汀分校计算机科学系)
Projection-Free Functional Constrained Optimization for Risk Aversion and Sparsity Control
H. Milton Stewart School of Industrial and Systems Engineering, Georgia Institute of Technology(赫尔曼·米利顿·斯图尔特工业与系统工程学院,佐治亚理工学院);College of Management of Technology, EPFL(技术管理学院,苏黎世联邦理工学院)
Sparsity-Constraint Optimization via Splicing Iteration
School of Mathematics, University of Birmingham, Birmingham, UK(英国伯明翰大学数学学院);Saw Swee Hock School of Public Health, National University of Singapore, Singapore(新加坡国立大学 Saw Swee Hock 公共卫生学院);Department of Statistics and Finance/International Institute of Finance, School of Management, University of Science and Technology of China, Hefei, Anhui, China(中国科学技术大学管理学院统计与金融系/国际金融研究院);School of Statistics and Information, Shanghai University of International Business and Economics, Shanghai, China(上海国际经贸管理大学统计与信息学院)
Sparse Partial Optimal Transport via Quadratic Regularization
Department of Computer Science, Ho Chi Minh University of Science(胡志明大学计算机科学系);School of Science, Aalto University(艾尔沃斯大学科学学院);Department of Science, Lycée Français Alexandre Yersin de Hanoi(河内亚历山大·耶尔辛法语中学科学系);Department of Math, High School for the Gifted(天才高中数学系);Department of Electrical and Computer Engineering, University of Massachusetts Amherst(马萨诸塞大学阿姆赫斯特分校电子与计算机工程系);Department of Computer Science, Georgia Institute of Technology(佐治亚理工学院计算机科学系);Department of Computer Science, Binh Duong University(平杜ong大学计算机科学系)
Many-to-Many Matching via Sparsity Controlled Optimal Transport
Qiushi Academy for Advanced Studies, Zhejiang University(浙江大学求是高等研究院);College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);Kyoto University(京都大学);Okinawa Institute of Science and Technology(冲绳科学技术大学院大学);RIKEN Center for Advanced Intelligence Project(理化学研究所先进智能项目中心);Zhejiang Laboratory(浙江实验室)
Accelerated Algorithm for Sparse Regularized Partial Optimal Transport
Hanoi University of Science and Technology(河内理工大学);High School for the Gifted(天才高中);VinUniversity;Rochambeau French International School(罗尚博法语国际学校);RMIT University(皇家墨尔本理工大学);Aalto University(阿尔托大学);Linköping University(林雪平大学)