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

LapSum——一种可区分所有操作的方法:排序、分类与Top-k选择

LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selection

Faculty of Mathematics;Computer Science, Jagiellonian University, Krak\'ow, Poland;University of Illinois, Urbana-Champaign, USA

Łukasz Struski, Michał B. Bednarczyk, Igor T. Podolak, Jacek Tabor

AI总结:

本研究提出基于LapSum反函数闭式公式的可微序型操作技术,可高效实现软排序等操作,在高维向量与大k值场景下性能优于SOTA,且提供CPU与CUDA高效实现,适用于大规模排序问题。

摘要:

我们提出了一种构建可微序型操作的新技术,包括软排序、软top-k选择和软排列。本方法利用LapSum(定义为拉普拉斯分布之和)函数反函数的高效闭式公式实现。该公式确保了选择最高激活值时的计算与内存复杂度较低,支持在$O(n\log{}n)$时间内计算损失与梯度。通过大量实验,我们证明本方法在处理高维向量与大$k$值场景时优于现有最优技术。此外,我们为CPU和CUDA环境提供了高效实现,凸显了该方法在大规模排序与可微排序问题中的实用性与可扩展性。

英文摘要:

We present a novel technique for constructing differentiable order-type operations, including soft ranking, soft top-k selection, and soft permutations. Our approach leverages an efficient closed-form formula for the inverse of the function LapSum, defined as the sum of Laplace distributions. This formulation ensures low computational and memory complexity in selecting the highest activations, enabling losses and gradients to be computed in $O(n\log{}n)$ time. Through extensive experiments, we demonstrate that our method outperforms state-of-the-art techniques for high-dimensional vectors and large $k$ values. Furthermore, we provide efficient implementations for both CPU and CUDA environments, underscoring the practicality and scalability of our method for large-scale ranking and differentiable ordering problems.

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

↑