加速流形约束超连接中的Birkhoff投影 Accelerating Birkhoff Projection for Manifold-Constrained Hyper-Connections 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-05-26
⬇️ 5 次下载
👁️ 预览文献
💡 AI 中文简介
流形约束超连接(mHCs)通过将残差混合矩阵投影到Birkhoff多面体上保持双随机性,但传统Sinkhorn-Knopp迭代计算慢、内存开销大,且反向传播需展开迭代。本文针对4×4 Birkhoff投影,利用对偶形式将问题降为三维无约束凸问题,用牛顿法快速求解,反向传播改用隐式微分避免存储中间状态,并设计仅用寄存器的warp级CUDA核实现大规模并行。实验表明,该方法在大批量下端到端加速超过20倍,且边际误差小几个数量级,投影更可靠。
领域机器学习系统/优化算法与GPU加速
适合谁读需要一定专业背景(深度学习优化、数值计算、CUDA编程)
核心贡献1. 提出基于对偶形式和牛顿法的4×4 Birkhoff投影快速求解器,收敛快、精度高;2. 反向传播采用隐式微分,无需存储中间状态,并设计寄存器级warp CUDA核实现高效并行。
关键数据在大批量下端到端加速超过20倍,边际误差比基线小几个数量级,投影更可靠(尤其输入幅度大时)。
推荐理由如果你在训练带流形约束的深度网络,这篇工作能帮你把投影速度提升20倍以上,同时精度更高,值得一读。
关键词["流形约束超连接", "Birkhoff多面体", "双随机投影", "隐式微分", "CUDA并行计算"]

原文摘要

查看英文原文摘要

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.