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

CompAct:用于内存高效LLM训练的压缩激活

CompAct: Compressed Activations for Memory-Efficient LLM Training

Technion - Israel Institute of Technology(以色列理工学院)

Yara Shamshoum, Nitzan Hodos, Yuval Sieradzki, Assaf Schuster

AI总结:

针对LLM训练中峰值内存受限的问题,提出CompAct技术,通过存储低秩压缩激活减少反向传播计算图内存占用,预训练峰值内存降25-30%、微调降50%,显著优化计算性能权衡。

摘要:

我们提出CompAct技术,可将LLM预训练的GPU峰值内存占用降低25-30%,微调降低50%。峰值设备内存是训练LLM的主要限制因素,近期多项工作旨在减少模型内存,但多数未针对训练期间分配内存的最大组成部分:为反向传播存储的模型计算图。通过存储用于反向传播的低秩压缩激活,我们大幅减少所需内存,这与仅减少优化器开销或训练参数数量的现有方法不同。我们的压缩使用随机投影矩阵,因此避免额外内存开销。与现有预训练或微调技术对比显示,CompAct显著改善了计算性能权衡。我们预计CompAct的内存节省对更大模型的提升将更高。

英文摘要:

We introduce CompAct, a technique that reduces peak memory utilization on GPU by 25-30% for pretraining and 50% for fine-tuning of LLMs. Peak device memory is a major limiting factor in training LLMs, with various recent works aiming to reduce model memory. However most works don't target the largest component of allocated memory during training: the model's compute graph, which is stored for the backward pass. By storing low-rank, compressed activations to be used in the backward pass we greatly reduce the required memory, unlike previous methods which only reduce optimizer overheads or the number of trained parameters. Our compression uses random projection matrices, thus avoiding additional memory overheads. Comparisons with previous techniques for either pretraining or fine-tuning show that CompAct substantially improves existing compute-performance tradeoffs. We expect CompAct's savings to scale even higher for larger models.

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

↑