paper-with-me

Papers

CoMERA: Computing- and Memory-Efficient Training via Rank-Adaptive Tensor Optimization

2024-05-23 · Zi Yang, Ziyue Liu, Samridhi Choudhary, Xinfeng Xie, Cao Gao, Siegfried Kunzmann, Zheng Zhang

Training large AI models such as LLMs and DLRMs costs massive GPUs and computing time. The high training cost has become only affordable to big tech companies, meanwhile also causing increasing concerns about the environmental impact. This paper presents CoMERA, a Computing- and Memory-Efficient training method via Rank-Adaptive tensor optimization. CoMERA achieves rank-adaptive tensor-compressed (pre)-training via a multi-objective optimization formulation and improves the training to provide both a high compression ratio and excellent accuracy in the training process. Our optimized numerical computation (e.g., optimized tensorized embedding and tensor-network contractions) and GPU implementation eliminate part of the run-time overhead in the tensorized training on GPU. This leads to, for the first time, $2-3\times$ speedup per training epoch compared with standard training. CoMERA also outperforms the recent GaLore in terms of both memory and computing efficiency. Specifically, CoMERA is $2\times$ faster per training epoch and $9\times$ more memory-efficient than GaLore on a tested six-encoder transformer with single-batch training. Our method also shows $\sim 2\times$ speedup than standard pre-training on a BERT-like code-generation LLM while achieving $4.23\times$ compression ratio in pre-training. With further HPC optimization, CoMERA may reduce the pre-training cost of many other LLMs. An implementation of CoMERA is available at https://github.com/ziyangjoy/CoMERA.

📄 PDF Abstract BibTeX arXiv:2405.14377

Code (1)

ziyangjoy/comera 공식 구현 pytorch

Tasks

Code GenerationGPURecommendation Systems

Similar Papers 제목 키워드 기반

Dynamic Low-rank Approximation of Full-Matrix Preconditioner for Training Generalized Linear Models

2025-08-28 · Tatyana Matveeva, Aleksandr Katrutsa, Evgeny Frolov arxiv

Adaptive gradient methods like Adagrad and its variants are widespread in large-scale optimization. However, their use of diagonal preconditioning matrices limits the ability to capture parameter correlations. Full-matri…

3U-EdgeAI: Ultra-Low Memory Training, Ultra-Low BitwidthQuantization, and Ultra-Low Latency Acceleration

2021-05-11 · Yao Chen, Cole Hawkins, Kaiqi Zhang, Zheng Zhang 외

The deep neural network (DNN) based AI applications on the edge require both low-cost computing platforms and high-quality services. However, the limited memory, computing resources, and power budget of the edge devices …

Model CompressionQuantization

CoLA: Compute-Efficient Pre-Training of LLMs via Low-Rank Activation

2025-02-16 · Ziyue Liu, Ruijie Zhang, Zhengyang Wang, Zi Yang 외

The full-size MLPs and the projection layers in attention introduce tremendous model sizes of large language models (LLMs), imposing extremely demanding needs of computational resources in the pre-training stage. However…

CoLA

FLAMES: A Hybrid Spiking-State Space Model for Adaptive Memory Retention in Event-Based Learning

2025-04-02 · Biswadeep Chakraborty, Saibal Mukhopadhyay

We propose \textbf{FLAMES (Fast Long-range Adaptive Memory for Event-based Systems)}, a novel hybrid framework integrating structured state-space dynamics with event-driven computation. At its core, the \textit{Spike-Awa…

Computational Efficiency

AdaRankGrad: Adaptive Gradient-Rank and Moments for Memory-Efficient LLMs Training and Fine-Tuning

2024-10-23 · Yehonathan Refael, Jonathan Svirsky, Boris Shustin, Wasim Huleihel 외

Training and fine-tuning large language models (LLMs) come with challenges related to memory and computational requirements due to the increasing size of the model weights and the optimizer states. Various techniques hav…