arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.08007cs.LGcs.AI
收藏

从O(mn)到O(r²):为分布式训练中的Adam引入双侧低秩通信以提高内存效率

From $O(mn)$ to $O(r^2)$: Two-Sided Low-Rank Communication for Adam in Distributed Training with Memory Efficiency

Xi’an Jiaotong University(西安交通大学);SGIT AI Lab(SGIT人工智能实验室);University of Science and Technology of China(中国科学技术大学)

Sizhe Dang, Jiaqi Shao, Xiaodong Zheng, Guang Dai, Yan Song, Haishan Ye

AI总结:

TSR-Adam通过双侧低秩通信将Adam优化器的通信开销从O(mn)降至O(r²),在保持低维核心状态的同时减少通信量,提升分布式训练效率。

摘要:

随着基础模型的持续扩展,预训练越来越多地依赖于数据并行分布式优化,使得带宽受限的梯度同步成为关键瓶颈。另一方面,基于投影的低秩优化器主要是为内存效率而设计的,但在通信受限的训练中仍不理想:单侧同步仍然传输一个O(rn)对象用于m×n矩阵梯度,并且刷新步骤可以主导峰值通信字节。我们提出了TSR,通过同步一个紧凑的核心U⊤GV∈R^{r×r},将Adam家族更新(TSR-Adam)引入双侧低秩通信,将每步主导的负载从O(mn)减少到O(r²),同时保持动量状态在低维核心中。为进一步减少子空间刷新的峰值通信,TSR-Adam采用基于随机SVD的刷新方法,避免完全梯度同步。我们还扩展了低秩通信到嵌入梯度,使用特定于嵌入的秩和刷新计划,从而在保持嵌入密集的情况下获得额外的通信和内存节省。在从6000万到10亿模型规模的预训练中,TSR-Adam将每步平均通信字节减少了13倍,在GLUE微调中减少了25倍的通信,同时实现了可比的性能;我们还提供了所提出更新的理论平稳性分析。代码可在https://github.com/DKmiyan/TSR-Adam上获得。

英文摘要:

As foundation models continue to scale, pretraining increasingly relies on data-parallel distributed optimization, making bandwidth-limited gradient synchronization a key bottleneck. Orthogonally, projection-based low-rank optimizers were mainly designed for memory efficiency, but remain suboptimal for communication-limited training: one-sided synchronization still transmits an $O(rn)$ object for an $m\times n$ matrix gradient and refresh steps can dominate peak communicated bytes. We propose TSR, which brings two-sided low-rank communication to Adam-family updates (TSR-Adam) by synchronizing a compact core $U^\top G V\in\mathbb{R}^{r\times r}$, reducing the dominant per-step payload from $O(mn)$ to $O(r^2)$ while keeping moment states in low-dimensional cores. To further reduce the peak communication from subspace refresh, TSR-Adam adopts a randomized SVD-based refresh that avoids full-gradient synchronization. We additionally extend low-rank communication to embedding gradients with embedding-specific ranks and refresh schedules, yielding additional communication and memory savings over keeping embeddings dense. Across pretraining from 60M to 1B model scales, TSR-Adam reduces average communicated bytes per step by $13\times$, and on GLUE fine-tuning it reduces communication by $25\times$, while achieving comparable performance; we further provide a theoretical stationarity analysis for the proposed update. Code is available at https://github.com/DKmiyan/TSR-Adam.

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

↑