arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.17842cs.LG
收藏

SNLP:通过结构化牛顿校正的层并行推理

SNLP: Layer-Parallel Inference via Structured Newton Corrections

Core AI, IBM(IBM核心AI)

Ligong Han, Kai Xu, Hao Wang, Akash Srivastava

AI总结:

提出结构化牛顿层并行(SNLP)框架,通过将Transformer层间依赖视为非线性残差方程并用结构化牛顿校正并行求解,实现推理加速,在0.5B模型上获得高达2.58倍加速。

摘要:

自回归语言模型顺序执行Transformer层,造成传统张量或流水线并行无法消除的延迟瓶颈。我们研究是否可以通过将跨层的隐藏状态轨迹视为非线性残差方程的解,并用并行牛顿风格更新来求解,从而放松这种逐层依赖。虽然这一观点在原理上是合理的,但精确的牛顿校正需要昂贵的雅可比向量积,而朴素的固定点迭代在训练好的Transformer上不稳定。我们引入了结构化牛顿层并行(SNLP),一个训练和推理框架,用廉价的架构诱导替代动力学替换精确的层雅可比。在残差Transformer中,这产生了恒等牛顿(IDN),其中校正简化为前缀和式更新;在mHC风格架构中,HC牛顿(HCN)使用模型的残差混合矩阵。我们还研究了SNLP感知训练,包括预训练正则化和直接SNLP前向SFT。在Nanochat规模的Transformer上的实验表明,SNLP揭示了一个实用的速度-质量边界:在0.5B模型上,它实现了高达2.58倍的时钟加速,而一个较不激进的配置在不增加PPL的情况下实现了1.40倍加速。这种有用的权衡来自于IDN/HCN引入的有偏有限迭代计算,而不是精确恢复顺序轨迹。我们进一步表明,SNLP前向SFT可以保持下游任务准确性,并且SNLP可以作为自推测解码的草稿模型,而顺序验证器保持输出正确性。

英文摘要:

Autoregressive language models execute Transformer layers sequentially, creating a latency bottleneck that is not removed by conventional tensor or pipeline parallelism. We study whether this layerwise dependency can be relaxed by treating the hidden-state trace across layers as the solution of a nonlinear residual equation and solving it with parallel Newton-style updates. While this view is principled, exact Newton corrections require expensive Jacobian-vector products and naive fixed-point iterations are unstable on trained Transformers. We introduce Structured Newton Layer Parallelism (SNLP), a training and inference framework that replaces exact layer Jacobians with cheap architecture-induced surrogate dynamics. In residual Transformers, this yields Identity Newton (IDN), where the correction reduces to a prefix-sum-like update; in mHC-style architectures, HC Newton (HCN) uses the model's residual mixing matrix. We also study SNLP-aware training, including pretraining regularization and direct SNLP-forward SFT. Experiments on Nanochat-scale Transformers show that SNLP exposes a practical speed-quality frontier: on 0.5B models, it reaches up to 2.58x wall-clock speedup, and a less aggressive configuration reaches 1.40x speedup without increasing PPL. The useful tradeoff comes from the biased finite-iteration computation induced by IDN/HCN rather than exact recovery of the sequential trace. We further show that SNLP-forward SFT can preserve downstream task accuracy, and that SNLP can serve as a drafter for self-speculative decoding while a sequential verifier preserves output correctness.

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

↑