paper-with-me

홈 › Papers

Reducing Fine-Tuning Memory Overhead by Approximate and Memory-Sharing Backpropagation

2024-06-24 · Yuchen Yang, Yingdong Shi, Cheems Wang, XianTong Zhen, Yuxuan Shi, Jun Xu

Fine-tuning pretrained large models to downstream tasks is an important problem, which however suffers from huge memory overhead due to large-scale parameters. This work strives to reduce memory overhead in fine-tuning from perspectives of activation function and layer normalization. To this end, we propose the Approximate Backpropagation (Approx-BP) theory, which provides the theoretical feasibility of decoupling the forward and backward passes. We apply our Approx-BP theory to backpropagation training and derive memory-efficient alternatives of GELU and SiLU activation functions, which use derivative functions of ReLUs in the backward pass while keeping their forward pass unchanged. In addition, we introduce a Memory-Sharing Backpropagation strategy, which enables the activation memory to be shared by two adjacent layers, thereby removing activation memory usage redundancy. Our method neither induces extra computation nor reduces training efficiency. We conduct extensive experiments with pretrained vision and language models, and the results demonstrate that our proposal can reduce up to $\sim$$30\%$ of the peak memory usage. Our code is released at https://github.com/yyyyychen/LowMemoryBP.

📄 PDF Abstract BibTeX arXiv:2406.16282

Code (1)

yyyyychen/LowMemoryBP 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

SiLU Sigmoid Linear Units, or SiLUs, are activation functions for neural networks. The activation of the SiLU is computed by the sigmoid function multiplied by its input, or…

Similar Papers 제목 키워드 기반

Memory-Efficient Fine-Tuning of Transformers via Token Selection

2025-01-31 · Antoine Simoulin, Namyong Park, Xiaoyi Liu, Grey Yang

Fine-tuning provides an effective means to specialize pre-trained models for various downstream tasks. However, fine-tuning often incurs high memory overhead, especially for large transformer-based models, such as LLMs. …

Few-Shot LearningQuestion Answeringtext-classificationText Classification

LeMo: Enabling LEss Token Involvement for MOre Context Fine-tuning

2025-01-15 · Tuowei Wang, Xingyu Chen, Kun Li, Ting Cao 외

The escalating demand for long-context applications has intensified the necessity of extending the LLM context windows. Despite recent fine-tuning approaches successfully expanding context lengths, their high memory foot…

Computational EfficiencyInformativenessparameter-efficient fine-tuning

AltLoRA: Towards Better Gradient Approximation in Low-Rank Adaptation with Alternating Projections

2025-05-18 · Xin Yu, Yujia Wang, Jinghui Chen, Lingzhou Xue

Low-Rank Adaptation (LoRA) has emerged as an effective technique for reducing memory overhead in fine-tuning large language models. However, it often suffers from sub-optimal performance compared with full fine-tuning si…

TinyTL: Reduce Activations, Not Trainable Parameters for Efficient On-Device Learning

2020-07-22 · NeurIPS 2020 12 · Han Cai, Chuang Gan, Ligeng Zhu, Song Han

On-device learning enables edge devices to continually adapt the AI models to new data, which requires a small memory footprint to fit the tight memory constraint of edge devices. Existing work solves this problem by red…

Transfer Learning

TeZO: Empowering the Low-Rankness on the Temporal Dimension in the Zeroth-Order Optimization for Fine-tuning LLMs

2025-01-31 · Yan Sun, Tiansheng Huang, Liang Ding, Li Shen 외

Zeroth-order optimization (ZO) has demonstrated remarkable promise in efficient fine-tuning tasks for Large Language Models (LLMs). In particular, recent advances incorporate the low-rankness of gradients, introducing lo…

GPU