Saved in:
Bibliographic Details
Main Authors: Xiao, Jinqi, Sang, Shen, Zhi, Tiancheng, Liu, Jing, Yan, Qing, Zhang, Yuqian, Luo, Linjie, Yuan, Bo
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.00071
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929753937674240
author Xiao, Jinqi
Sang, Shen
Zhi, Tiancheng
Liu, Jing
Yan, Qing
Zhang, Yuqian
Luo, Linjie
Yuan, Bo
author_facet Xiao, Jinqi
Sang, Shen
Zhi, Tiancheng
Liu, Jing
Yan, Qing
Zhang, Yuqian
Luo, Linjie
Yuan, Bo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_00071
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle COAP: Memory-Efficient Training with Correlation-Aware Gradient Projection
Xiao, Jinqi
Sang, Shen
Zhi, Tiancheng
Liu, Jing
Yan, Qing
Zhang, Yuqian
Luo, Linjie
Yuan, Bo
Machine Learning
Artificial Intelligence
Computation and Language
Computer Vision and Pattern Recognition
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.
title COAP: Memory-Efficient Training with Correlation-Aware Gradient Projection
topic Machine Learning
Artificial Intelligence
Computation and Language
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2412.00071