atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

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

ICML 2024 · Architectures and efficiency › Pruning and efficient tuning · approach: Adapter-based parameter-efficient tuning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Approx-BP and Memory-Sharing BP to cut fine-tuning activation memory by replacing GELU/SiLU derivatives with 2-bit ReLU-based step functions (ReGELU2/ReSiLU2) and sharing activation memory in LayerNorm/RMSNorm (MS-LN/MS-RMSNorm), reducing peak memory ~30% without throughput loss.

Problem

Fine-tuning large pretrained transformers is limited by activation memory, and non-linear modules (activation functions and layer normalization) account for a large share of it, while prior reduction methods (checkpointing, quantization) cost training throughput.

Approach

Decouple forward and backward passes: keep the pretrained forward activation (GELU/SiLU) but use a 4-segment step-function derivative fit by combinations of ReLUs (needing only 2 bits per element), and merge LayerNorm/RMSNorm affine parameters into the following linear layer so that the norm input can be shared with the next layer's activation memory.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace GELU and LN with ReGELU2 and MS-LNLoRA r=4 on ViT-base · CIFAR10/100 and FGVC, adapt Q,VMem.(MiB): 3827 -> 2717; -29%Helped
Replace GELU and LN with ReGELU2 and MS-LNLoRA r=4 on ViT-base · CIFAR10/100 and FGVC, adapt all linearMem.(MiB): 5128 -> 3601; -30%Helped
Replace GELU and LN with ReGELU2 and MS-LNFull Tuning ViT-base · CIFAR10/100 and FGVCMem.(GiB): 5.6 -> 4.1; -27%Helped
Replace GELU and LN with ReGELU2 and MS-LNFull Tuning ViT-large · CIFAR10/100 and FGVCMem.(GiB): 15.7 -> 11.5; -27%Helped
Replace SiLU and RMSNorm with ReSiLU2 and MS-RMSNormQLoRA r=64 on LLaMA-7B · 5-shot MMLU after Alpaca fine-tuningMem.(GiB): 20.6 -> 14.6; -29%Helped
Replace SiLU and RMSNorm with ReSiLU2 and MS-RMSNormQLoRA r=64 on LLaMA-13B · 5-shot MMLU after Alpaca fine-tuningMem.(GiB): 31.4 -> 22.3; -29%Helped
Replace SiLU and RMSNorm with ReSiLU2 and MS-RMSNormQLoRA r=64 on LLaMA-7B · 5-shot MMLU after Alpaca fine-tuningAccuracy(%): 40.75 -> 40.35Hurt
Replace SiLU and RMSNorm with ReSiLU2 and MS-RMSNormQLoRA r=64 on LLaMA-13B · 5-shot MMLU after Alpaca fine-tuningAccuracy(%): 46.68 -> 46.54Hurt
Replace GELU and LN with ReGELU2 and MS-LNLoRA r=64 Q,K on RoBERTa-base · GLUE meanAccuracy(%): 80.41 -> 81.73Helped
Replace GELU and LN with ReGELU2 and MS-LNLoRA r=64 Q,K on RoBERTa-base · GLUE meanMem.(MiB): 6517 -> 5173; -21%Helped
Use ReGELU2 instead of GELU while retaining LN (ablation)LoRA r=4 on ViT-base · CIFAR10/100 and FGVC, adapt Q,VMem.(MiB): 3827 -> 3087; -19%Helped
Use MS-LN instead of LN while retaining GELU (ablation)LoRA r=4 on ViT-base · CIFAR10/100 and FGVC, adapt all linearMem.(MiB): 5128 -> 4316; -16%Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-22k CIFAR10 CIFAR100 FGVC Alpaca GLUE MMLU

Benchmarks: CIFAR10 CIFAR100 FGVC MMLU GLUE

Metrics: top-1 accuracy peak memory (MiB/GiB) training throughput (images/s, samples/s)

Baselines: Mesa gradient checkpointing LoRA-FA QLoRA full fine-tuning LoRA

Builds on: LoRA LoRA-FA QLoRA Mesa FlashAttention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy