arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.05484cs.LG
收藏

学习子空间压缩以实现通信高效的流水线并行

Learned Subspace Compression for Communication-Efficient Pipeline Parallelism

Concordia University(康科迪亚大学);Mila;Quebec AI Institute(魁北克人工智能研究所);CNRS, Sorbonne University(法国国家科学研究中心,索邦大学)

Paul Janson, Edouard Oyallon, Eugene Belilovsky

AI总结:

提出MAPL方法,通过Stiefel流形约束学习每个流水线阶段的任务最优正交投影,结合因子化锚点嵌入和残差向量量化,在低带宽网络中实现高压缩比且性能损失极小。

摘要:

流水线并行使得训练超过单设备内存的大型语言模型成为可能,然而在低带宽网络上训练时,阶段间激活通信成为主要瓶颈。最近的工作提出使用固定正交投影来压缩激活,但这仍然会导致显著的性能下降,并且需要大量非标准调整来约束优化。一个自然的替代方案是为每个流水线阶段学习一个低秩投影,但在训练过程中保持这些投影器的必要正交性仍然是一个挑战。我们提出了流形感知投影学习(MAPL),该方法将阶段间压缩视为在显式Stiefel流形(正交矩阵)约束下的可学习正交投影。MAPL不是规定固定的全局子空间,而是让每个流水线阶段通过流形约束的最速下降法发现并持续适应其任务最优的压缩子空间。为了在阶段边界恢复特定于token的信号,我们引入了每个阶段的因子化锚点嵌入,使得能够以可忽略的通信开销实现全秩激活重建。我们进一步展示了可以在投影后结合残差向量量化,并采用流式码本同步协议来分摊字典通信。在从150M到1B参数的LLaMA模型上,我们表明MAPL可以轻松应用于现有流水线,并且能够实现高压缩比,性能下降可忽略不计,与子空间网络相比,在性能与压缩之间的权衡得到了显著改善。

英文摘要:

Pipeline parallelism enables training of large language models that exceed single-device memory, yet inter-stage activation communication becomes the dominant bottleneck when trained on low-bandwidth networks. Recent work in this area has proposed using fixed orthogonal projections to compress activations. However, this still results in a significant performance degradation and requires a number of non-standard adaptations to constrain the optimization. A natural alternative is to learn a low rank projection for each pipeline stage, however maintaining the necessary orthogonality of these projectors during training remains a challenge. We present Manifold Aware Projection Learning (MAPL), a method that treats inter-stage compression as a learnable orthogonal projection under explicit Stiefel manifold (orthogonal matrices) constraints. Rather than prescribing a fixed global subspace, MAPL lets each pipeline stage discover and continuously adapt its own task-optimal compression subspace via manifold-constrained steepest descent. To recover token-specific signals at stage boundaries, we introduce per-stage factorized anchor embeddings that allow for full-rank activation reconstruction with negligible communication overhead. We further show that we can incorporate residual vector quantization after projection with a streaming codebook synchronization protocol that amortizes dictionary communication. Across LLaMA models from 150M to 1B parameters we show that MAPL can be easily applied to the existing pipeline and can achieve high compression with neglibile performance degradation with a drastically improved tradeoffs in performance vs. compression compared to Subspace Networks.

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

↑