arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.21775cs.LG
收藏

通过动态规划实现可微的背包和Top-k运算

Differentiable Knapsack and Top-k Operators via Dynamic Programming

Google DeepMind, Paris, France(谷歌深Mind,巴黎,法国);CERMICS, ENPC, Institut Polytechnique de Paris, CNRS, Marne-la-Vallée, France(CERMICS,ENPC,巴黎理工学院,CNRS,马恩拉瓦尔德,法国)

Germain Vivier-Ardisson, Michaël E. Sander, Axel Parmentier, Mathieu Blondel

AI总结:

本文提出通过动态规划实现可微的背包和Top-k运算,解决了传统方法中梯度消失的问题,并在多个任务中验证了其有效性。

摘要:

背包和Top-k运算用于选择离散变量的子集。然而,将它们整合到神经网络中具有挑战性,因为它们是分段常数的,导致梯度几乎处处为零。在本文中,我们提出了一种统一的框架,将这些运算视为动态规划问题,并通过平滑底层递归推导出可微的近似方法。在算法方面,我们开发了高效的并行算法,支持确定性和随机性的前向传递,以及反向传递中的向量-雅可比积。在理论方面,我们证明香农熵是唯一能产生排列等价运算的正则化选择,并刻画诱导稀疏选择的正则化器。最后,在实验方面,我们在决策导向学习基准、受约束的动态 assortments RL 问题以及离散 VAEs 的扩展上展示了我们的框架。

英文摘要:

Knapsack and Top-k operators are useful for selecting discrete subsets of variables. However, their integration into neural networks is challenging as they are piecewise constant, yielding gradients that are zero almost everywhere. In this paper, we propose a unified framework casting these operators as dynamic programs, and derive differentiable relaxations by smoothing the underlying recursions. On the algorithmic side, we develop efficient parallel algorithms supporting both deterministic and stochastic forward passes, and vector-Jacobian products for the backward pass. On the theoretical side, we prove that Shannon's negative entropy is the unique separable regularization choice that yields permutation-equivariant operators, and characterize regularizers inducing sparse selections. On the experimental side, we demonstrate our framework on a benchmark on learning to predict Knapsack solutions, an extension of discrete VAEs, and a constrained dynamic assortment RL problem.

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

↑