跳到正文
arXiv:cs.AI· Jakub Antczak, Joanna Wojciechowicz, Kamil Ksi\k{a}\.zek, Marcin Mazur, {\L}ukasz Struski, Jacek Tabor·· 13 小时前

Fast LapSum:百万级精确可微 Top-k 求解器

Fast LapSum: Exact Differentiable Top-$k$ at Million Scale

AI 导读

Fast LapSum 是一种可扩展的 LapSum 软 Top-k 求解器,在保持精确选择质量 k 的同时支持端到端微分,通过概率分桶将排序限制在阈值附近的窄分数带内,并用一次额外线性扫描完成认证。

正文

View PDF HTML (experimental)

Abstract:Selecting the top-$k$ elements is a fundamental operation for inducing sparsity in large-scale models and optimization problems, enabling robust expert activation, token routing or attention pruning. However, hard top-$k$ is non-differentiable, while existing differentiable alternatives become increasingly expensive as the number of coordinates grows. We introduce Fast LapSum, a scalable solver for the LapSum soft top-$k$ formulation that preserves an exact selection mass of $k$, while supporting end-to-end differentiation. In Fast LapSum, we reduce sorting cost using probabilistic bracketing, which restricts sorting to a narrow band of scores around the threshold using a binomial order-statistic from kernel-noised samples. A certification pass upgrades the probabilistic localization to a verified one at the cost of one additional linear pass, with a full-sort fallback that covers the worst-case scenario. Our certified GPU implementation processes $10^6$, $10^7$, and $10^8$ scores in median times of $0.92$, $1.39$, and $7.24$ ms, respectively, making exact-budget soft top-$k$ practical within million-scale optimization loops. We demonstrate this capability in two applications: megapixel sparse adversarial examples with a small fraction of initial image pixels, where Fast LapSum achieves an order-of-magnitude speedup over state-of-the-art methods, and 3D Gaussian splatting. In the latter, we use Fast LapSum to reduce the number of Gaussians produced by Adaptive Density Control to a substantially smaller number while retaining nearly the same rendering quality and massively reducing computation. These results demonstrate that exact-budget differentiable top-$k$ can be incorporated into practical million-scale optimization pipelines.
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2608.06912 [cs.AI]
  (or arXiv:2608.06912v3 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2608.06912

arXiv-issued DOI via DataCite

Submission history

From: Jakub Antczak [view email]
[v1] Fri, 7 Aug 2026 07:44:35 UTC (2,636 KB)
[v2] Wed, 30 Sep 2026 11:24:22 UTC (4,513 KB)
[v3] Thu, 8 Oct 2026 18:50:00 UTC (4,519 KB)

来源:arXiv:cs.AI · arxiv.org