KromHC: 基于Kronecker积残差矩阵的流形约束超连接
KromHC: Manifold-Constrained Hyper-Connections with Kronecker-Product Residual Matrices
AI总结:
针对超连接中的训练不稳定和参数爆炸问题,提出KromHC方法,利用Kronecker积分解小规模双随机矩阵来参数化残差矩阵,在保证精确双随机性的同时将参数复杂度降至O(n^2C)。
摘要:
超连接(HC)在神经网络中的成功也凸显了训练不稳定和可扩展性受限的问题。流形约束超连接(mHC)通过将残差连接空间投影到Birkhoff多面体上缓解了这些挑战,但它面临两个问题:1)其迭代Sinkhorn-Knopp(SK)算法并不总是产生精确的双随机残差矩阵;2)mHC的参数复杂度为O(n^3C),其中n是残差流的宽度,C是特征维度。最近提出的mHC-lite通过Birkhoff-von-Neumann定理重新参数化残差矩阵以保证双随机性,但其参数复杂度面临阶乘爆炸,即O(nC·n!)。为了解决这两个挑战,我们提出KromHC,它使用较小双随机矩阵的Kronecker积来参数化mHC中的残差矩阵。通过沿张量化残差流的每个模式对因子残差矩阵施加流形约束,KromHC保证了残差矩阵的精确双随机性,同时将参数复杂度降低到仅O(n^2C)。实验表明,KromHC匹配甚至超越了其他最先进的mHC变体,同时需要显著更少的可训练参数。代码见https://github.com/wz1119/KromHC。
英文摘要:
The success of Hyper-Connections (HC) in neural networks (NN) has also highlighted issues related to training instability and restricted scalability. The Manifold-Constrained Hyper-Connections (mHC) mitigate these challenges by projecting the residual connection space onto a Birkhoff polytope, however, it faces two issues: 1) its iterative Sinkhorn-Knopp (SK) algorithm does not always yield exactly doubly stochastic residual matrices; 2) mHC incurs a prohibitive $O(n^3C)$ parameter complexity with $n$ as the width of the residual stream and $C$ as the feature dimension. The recently proposed mHC-lite reparametrizes the residual matrix via the Birkhoff-von-Neumann theorem to guarantee double stochasticity, but also faces a factorial explosion in its parameter complexity, $O \left( nC \cdot n! \right)$. To address both challenges, we propose KromHC, which uses the Kronecker products of smaller doubly stochastic matrices to parametrize the residual matrix in mHC. By enforcing manifold constraints across the factor residual matrices along each mode of the tensorized residual stream, KromHC guarantees exact double stochasticity of the residual matrices while reducing parameter complexity to only $O(n^2C)$. Experiments show that KromHC matches or even outperforms other state-of-the-art (SOTA) mHC variants, while requiring significantly fewer trainable parameters. The code is at https://github.com/wz1119/KromHC.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。