arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.00071cs.LGcs.AIcs.CLcs.CV
收藏

COAP:基于相关性感知梯度投影的内存高效训练

COAP: Memory-Efficient Training with Correlation-Aware Gradient Projection

ByteDance Inc.(字节跳动公司);Rutgers University(罗格斯大学)

Jinqi Xiao, Shen Sang, Tiancheng Zhi, Jing Liu, Qing Yan, Yuqian Zhang, Linjie Luo, Bo Yuan

AI总结:

本文提出COAP方法,通过相关性感知的低秩梯度投影减少优化器内存占用,在保持训练性能的同时降低计算开销,并在多种任务上优于现有方法。

摘要:

在视觉和多模态领域训练大规模神经网络需要大量内存资源,主要原因是优化器状态的存储。LoRA作为一种流行的参数高效方法虽然减少了内存使用,但由于低秩更新的限制,其性能往往不理想。低秩梯度投影方法(如GaLore、Flora)通过奇异值分解或随机投影将梯度和矩估计投影到低秩空间,从而减少优化器内存。然而,这些方法未能考虑投影间的相关性,导致性能下降,并且其投影策略通常带来较高的计算成本。本文提出COAP(Correlation-Aware Gradient Projection,相关性感知梯度投影),一种内存高效的方法,在保持训练性能的同时最小化计算开销。在多种视觉、语言和多模态任务上的评估表明,COAP在训练速度和模型性能上均优于现有方法。对于LLaMA-1B,COAP将优化器内存减少61%,仅增加2%的时间成本,并达到与AdamW相同的困惑度(PPL)。结合8位量化,COAP将优化器内存减少81%,在LLaVA-v1.5-7B微调中实现比GaLore快4倍的加速,同时获得更高的准确率。

英文摘要:

Training large-scale neural networks in vision, and multimodal domains demands substantial memory resources, primarily due to the storage of optimizer states. While LoRA, a popular parameter-efficient method, reduces memory usage, it often suffers from suboptimal performance due to the constraints of low-rank updates. Low-rank gradient projection methods (e.g., GaLore, Flora) reduce optimizer memory by projecting gradients and moment estimates into low-rank spaces via singular value decomposition or random projection. However, they fail to account for inter-projection correlation, causing performance degradation, and their projection strategies often incur high computational costs. In this paper, we present COAP (Correlation-Aware Gradient Projection), a memory-efficient method that minimizes computational overhead while maintaining training performance. Evaluated across various vision, language, and multimodal tasks, COAP outperforms existing methods in both training speed and model performance. For LLaMA-1B, it reduces optimizer memory by 61% with only 2% additional time cost, achieving the same PPL as AdamW. With 8-bit quantization, COAP cuts optimizer memory by 81% and achieves 4x speedup over GaLore for LLaVA-v1.5-7B fine-tuning, while delivering higher accuracy.

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

↑