LBI: 通过潜在有界接口实现并行扫描反向传播
LBI: Parallel Scan Backpropagation via Latent Bounded Interfaces
AI总结:
本文提出LBI算法,通过限制区域间通信到低维潜在接口,使基于扫描的反向传播成为可能,从而在保持梯度精度的同时降低计算复杂度,提升并行训练效率。
摘要:
反向传播本质上是深度方向上的顺序过程,形成一个深度为O(K)的依赖链,限制了并行训练。尽管并行扫描公式理论上将深度降低到O(log K),但现代架构中由于完整秩d×d雅可比矩阵在整个隐藏状态上组合的O(d³)成本而变得计算上不可行。我们引入潜在有界接口(LBI),一种算法公式,通过将区域间通信限制到低维潜在接口,m_k∈R^r(r<<d),使基于扫描的反向传播成为可能。这将伴随递归减少到对r×r雅可比矩阵的后缀扫描,将每一步合并成本从O(d³)降低到O(r³),同时在有界接口模型下保持精确梯度。我们证明LBI在四种架构(Mamba-2、Mamba-3、Transformer以及Mamba-Transformer混合架构)上,47-61M块参数下保持模型质量。维度为r=16的接口足以在0.16-0.35的交叉熵内保持训练质量,与密集基线相当。所得到的框架为区域并行训练提供了算法基础,将跨设备反向传播通信减少到单次扫描K个固定大小矩阵,大约为56 KB。
英文摘要:
Backpropagation is inherently sequential across depth, creating an $O(K)$-deep dependency chain that bottlenecks parallel training. While parallel-scan formulations theoretically reduce this depth to $O(\log K)$, they are computationally prohibitive for modern architectures due to the $O(d^3)$ cost of composing full-rank $d\times d$ Jacobians over the entire hidden state. We introduce Latent Bounded Interfaces (LBI), an algorithmic formulation that makes scan-based backpropagation tractable by restricting inter-region communication to a low-dimensional latent interface, $ m_k \in \mathbb{R}^{r}$, where $r \ll d$. This reduces the adjoint recursion to a suffix scan over $r \times r$ Jacobians, cutting per-combine cost from $O(d^3)$ to $O(r^3)$ while preserving exact gradients under the bounded-interface model. We demonstrate that LBI maintains model quality across four architectures (Mamba-2, Mamba-3, Transformer, and a Mamba--Transformer hybrid) at 47--61M block parameters. Interfaces of dimension $r=16$ suffice to preserve training quality within 0.16--0.35 cross entropy of dense baselines. The resulting framework provides an algorithmic foundation for region-parallel training, reducing cross-device backward communication to a single scan over $K$ fixed-size matrices, of approximately 56 KB for our experimental configurations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。