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

PRAC: 用于LLM激活压缩和内存高效训练的主成分随机子空间

PRAC: Principal-Random Subspace for LLM Activation Compression and Memory-Efficient Training

School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院);Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院)

Yanyi Li, Yimu Zhang, Cong Fang

AI总结:

PRAC通过分解激活为主成分和随机子空间,实现LLM激活压缩和内存高效训练,达到36%的内存减少且性能损失小。

摘要:

激活已成为大批次LLM训练中的主要内存瓶颈。然而,现有压缩方法未能利用激活的谱结构,导致收敛缓慢或压缩有限。为了解决这一问题,我们建立了算法快速收敛与子空间投影要求之间的关系,并表明有效的压缩应产生一个具有低方差的原始激活无偏估计。我们提出了用于LLM激活压缩的主成分随机子空间(PRAC),该方法新颖地将激活分解为两个组成部分:通过SVD捕获的主成分子空间以保留主导信息,以及从正交补集中采样的随机子空间以近似尾部。通过引入精确的缩放因子,我们证明在某些条件下,PRAC会产生具有最小方差的无偏梯度估计器。在预训练和微调任务上的广泛实验表明,PRAC在总内存减少达36%的同时,性能损失可忽略不计,计算成本也极低。

英文摘要:

Activations have become the primary memory bottleneck in large-batch LLM training. However, existing compression methods fail to exploit the spectral structure of activations, resulting in slow convergence or limited compression. To address this, we bridge the relationship between the algorithm's fast convergence and the requirements for subspace projection, and show that an effective compression should yield an unbiased estimate of the original activation with low variance. We propose Principal-Random Subspace for LLM Activation Compression (PRAC), which novelly decomposes activations into two components: a principal subspace captured via SVD to retain dominant information, and a random subspace sampled from the orthogonal complement to approximate the tail. By introducing a precise scaling factor, we prove that PRAC yields an unbiased gradient estimator with minimum variance under certain conditions. Extensive experiments on pre-training and fine-tuning tasks demonstrate that PRAC achieves up to 36% total memory reduction with negligible performance degradation and minimal computational cost.

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

↑