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

加速流形约束超连接的Birkhoff投影

Accelerating Birkhoff Projection for Manifold-Constrained Hyper-Connections

School of Statistics(统计学系);Renmin University of China(中国人民大学);School of Statistics and Data Science(统计学与数据科学学院);Institute of Big Data Research(大数据研究院);Shanghai University of Finance and Economics(上海财经大学)

Chenrui Wang, Yixuan Qiu

AI总结:

针对流形约束超连接中Birkhoff投影的计算瓶颈,提出基于对偶公式和牛顿法的端到端加速框架,结合隐式微分和CUDA内核实现超过20倍加速。

摘要:

流形约束超连接(mHCs)最近被提出作为超连接的一种原则性扩展,其中残差混合矩阵通过投影到Birkhoff多面体上被约束为双随机矩阵。在实际的mHC实现中,该约束通过Sinkhorn-Knopp迭代强制执行,反向传播依赖于展开迭代求解器。这种设计引入了大量的计算和内存开销,并且当算法在具有挑战性的输入上收敛缓慢时,可能产生不准确的投影,从而破坏mHCs预期的范数控制和稳定性保证。在这项工作中,我们聚焦于实际重要的4x4 Birkhoff投影设置,并开发了一个端到端的加速框架。通过利用对偶公式,我们将问题简化为一个三维无约束凸问题,并使用牛顿法求解,实现了快速收敛和高精度。对于反向传播,我们用隐式微分替代展开微分,无需存储中间状态即可获得精确梯度。为了利用大规模并行性,我们设计了一个warp级别的CUDA内核,仅使用寄存器级原语,避免了全局和共享内存I/O。与代表性开源基线的大量实验表明,所提出的求解器产生了更可靠的双随机投影——特别是在输入幅度较大时——并实现了显著的端到端加速(包括反向传播),在大批量下达到超过20倍的加速,同时保持数量级更小的边际误差。

英文摘要:

Manifold-constrained hyper-connections (mHCs) have recently been proposed as a principled extension of hyper-connections, where the residual mixing matrices are constrained to be doubly stochastic via projection onto the Birkhoff polytope. In practical mHC implementations, this constraint is enforced by Sinkhorn-Knopp iterations, and the backward pass relies on unrolling the iterative solver. This design introduces substantial computation and memory overhead, and may also yield inaccurate projections when the algorithm converges slowly on challenging inputs, undermining the intended norm-control and stability guarantees of mHCs. In this work, we focus on the practically important 4x4 Birkhoff projection setting and develop an end-to-end acceleration framework. By leveraging the dual formulation, we reduce the problem to a three-dimensional unconstrained convex problem and solve it with Newton's method, achieving fast convergence and high accuracy. For the backward pass, we replace the unrolled differentiation with implicit differentiation, yielding exact gradients without storing intermediate states. To exploit massive parallelism, we design a warp-level CUDA kernel that uses only register-level primitives, avoiding global and shared memory I/O. Extensive experiments against representative open-source baselines demonstrate that the proposed solver yields substantially more reliable doubly stochastic projections -- especially when the input magnitude is large -- and achieves significant end-to-end speedups (including the backward pass), reaching over 20x acceleration at large batch sizes while maintaining orders of magnitude smaller marginal errors.

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

↑