arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2209.15466stat.MLcs.LG
收藏

稀疏性约束的最优传输

Sparsity-Constrained Optimal Transport

University of Basel(巴塞尔大学);Google Research(谷歌研究院)

Tianlin Liu, Joan Puigcerver, Mathieu Blondel

AI总结:

本文针对最优传输提出显式基数约束方法,以控制传输计划的稀疏性,并将其应用于稀疏专家混合中的 token 与专家匹配,证明对应半对偶问题可用一阶梯度方法求解,在无正则化与二次正则化最优传输之间建立联系。

摘要:

正则化最优传输(OT)如今越来越多地被用作神经网络中的损失函数或匹配层。熵正则化最优传输可以通过 Sinkhorn 算法计算,但它会产生完全稠密的传输计划,这意味着所有源点都与所有目标点(以分数形式)匹配。为了解决这一问题,已有若干工作转而研究二次正则化。这种正则化保持了稀疏性,并产生无约束且光滑的(半)对偶目标,可以用现成的梯度方法求解。遗憾的是,二次正则化不能直接控制传输计划的基数(非零元素的数量)。本文提出了一种对传输计划施加显式基数约束的最优传输新方法。我们的工作动机来源于稀疏专家混合(sparse mixture of experts)的应用,其中最优传输可用于将输入 token(如图像块)与专家模型(如神经网络)进行匹配。基数约束确保每个专家最多匹配 $k$ 个 token,这对计算性能至关重要。尽管基数约束具有非凸性,我们证明相应的(半)对偶问题是可处理的,并且可以用一阶梯度方法求解。我们的方法可以被视为无正则化最优传输(在极限情况 $k=1$ 时恢复)与二次正则化最优传输(当 $k$ 足够大时恢复)之间的中间方案。目标函数的光滑性随着 $k$ 的增大而增强,从而在收敛速度与最优计划的稀疏性之间形成一种权衡。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑