Papers
Topics
Authors
Recent
Search
2000 character limit reached

EMEF: Memory-Efficient Fine-Tuning

Updated 26 March 2026
  • EMEF is a set of innovations that enable efficient fine-tuning of large-scale models by drastically reducing memory requirements using techniques like activation recomputation and low-bit quantization.
  • It employs adapter-based, sparse, and mask-based tuning strategies to optimize resource usage while maintaining model performance on consumer-grade GPUs and edge devices.
  • EMEF achieves memory savings up to 80–90% and wall-clock speedups of 2–10×, balancing compute overhead with negligible accuracy loss during adaptation.

Extremely Memory-Efficient Finetuning (EMEF) encompasses a set of algorithmic and systems innovations that enable the fine-tuning of large-scale deep learning models—especially LLMs, vision transformers, and generative models—within device- or consumer-grade GPU memory budgets. EMEF methods address the principal bottlenecks in conventional fine-tuning—activation storage, optimizer state, parameter size, and dataflow—achieving severe reductions in RAM or GPU memory without prohibitive loss in adaptation performance. The latest EMEF techniques permit, for example, first-order fine-tuning of LLMs with 4–38B parameters using < 1–24 GB memory, or the adaptation of video-level models and diffusion models with billions of parameters on commodity edge hardware and mobile devices (Song et al., 3 Oct 2025, Park et al., 13 Feb 2026, Lin et al., 13 Jun 2025, Zhao et al., 2024, Liao et al., 2023, Diao et al., 2024, Ardakani et al., 2023, Li et al., 17 Feb 2025, Zhang et al., 2024, Dettmers et al., 2023, Mercea et al., 2024, Svirsky et al., 9 Feb 2026, Zhao et al., 2020, Ryu et al., 2024).

1. Memory Bottlenecks in Standard Fine-Tuning

Conventional fine-tuning incurs high memory usage mainly from (i) storing all weight parameters and their gradients, (ii) activation storage for each model layer (often O(BLD)O(B L D) for batch size BB, depth LL, width DD), and (iii) optimizer state buffers (e.g., Adam’s per-weight moments) (Song et al., 3 Oct 2025). In LLMs and ViTs, even tuning only a subset of parameters (adapters, LoRA) typically requires caching all activations for backpropagation, so the actual training-time memory footprint greatly exceeds that of inference—even for “parameter-efficient” methods such as LoRA or adapters (Dettmers et al., 2023). Full-precision fine-tuning a 65B LLM or 1B+ ViT routinely requires ≥ 100 GB memory.

Efforts to address these bottlenecks center on (a) activation recomputation, (b) systematic freezing or pruning of weights or layers, (c) aggressive quantization of weights and optimizer state, and (d) algorithmic reparameterizations that decouple task adaptation from backbone backpropagation (Song et al., 3 Oct 2025, Liao et al., 2023, Diao et al., 2024, Svirsky et al., 9 Feb 2026).

2. Core EMEF Techniques and Algorithms

2.1. Activation Recomputation and Checkpointing

Activation checkpointing splits the model graph into checkpoints, storing only subgraph outputs and recomputing intermediate tensors as needed in backward. This reduces peak activation memory from O(BLD)O(B L D) to O(Bd)O(B d), where dd is the width of a single layer (Song et al., 3 Oct 2025, Liao et al., 2023, Zhao et al., 2024). Advanced execution strategies mmap checkpoints and apply low-precision weight storage, achieving sub-1 GB working set for on-device LoRA (Song et al., 3 Oct 2025). Reversible networks (MEFT, Dr²Net) make intermediate activations exactly reconstructible from layer outputs, reducing activation memory from O(N)O(N) to O(1)O(1) (Liao et al., 2023, Zhao et al., 2024).

2.2. Low-Bit Quantization and Compressed Representations

Aggressive quantization of frozen backbone weights (INT4, NF4, FP4) is now standard practice, reducing parameter memory by 4–8×, and enables “paged” or memory-mapped data loading for large models (Song et al., 3 Oct 2025, Dettmers et al., 2023, Zhang et al., 2024). QLoRA couples 4-bit quantization with low-rank adapters, allowing single-GPU fine-tuning of 33B–65B LLMs with memory budgets of 20–41 GB (Dettmers et al., 2023). EMLoC introduces task-centric SVD compression to construct lightweight “emulator” models for task-specific fine-tuning (Lin et al., 13 Jun 2025).

2.3. Adapter-Based, Parallel, and Side-Tuning Schemes

Adapter-based PEFT (Low-Rank Adapter, Adapters, BitFit) restricts adaptation to a small module per layer, but still incurs full-activation memory unless combined with recomputation (Dettmers et al., 2023, Liao et al., 2023). LoSA, QST, SHERL, and other “parallel adapter” or side-tuning techniques detach adaptation into a lightweight module operating on the frozen backbone’s activations. The side network is trained independently, and only side activations are stored, cutting memory use by 2–4× (Mercea et al., 2024, Zhang et al., 2024, Diao et al., 2024). SHERL adds anti-redundancy processing and late-stage regulation to mitigate the feature gap from METL schemes (Diao et al., 2024).

2.4. Sparse and Mask-Based Adaptation

Sparse adaptation selects only a small subset of trainable weights per layer, based on structured (row/column) or unstructured (binary mask) criteria (Li et al., 17 Feb 2025, Zhao et al., 2020, Svirsky et al., 9 Feb 2026). Efficient row-based SFT (SPruFT) achieves up to 35% further memory savings over LoRA by restricting updates to salient rows, while binary-masked adaptation stores only a 1-bit mask per parameter, ideal for multi-task scenarios (Li et al., 17 Feb 2025, Zhao et al., 2020). FineGates leverages stochastic gate learning for block-structured pruning and integrates task adaptation with backbone sparsification for joint acceleration and memory reduction (Svirsky et al., 9 Feb 2026).

2.5. Dynamic Layer Freezing and Mixed Precision

Dynamic inter-layer scheduling, as in SlimFit, freezes layers with minimal recent contribution to the objective and applies selective quantization or pruning to balance dynamic/static activation memory (Ardakani et al., 2023). Such hybrid policies can freeze up to 95% of layers while restricting accuracy loss to < 0.4%. Mixed-precision and per-tensor quantization further compress static storage requirements.

3. Memory–Compute–Performance Trade-offs

A central EMEF result is that memory savings often entail a modest increase in per-step compute time—typically 30–100%—because of activation recomputation or emulator simulation, but the number of first-order steps to convergence (TFO=O(1/ϵ)T_{FO}=O(1/\epsilon)) is preserved, yielding a 10–100× reduction in wall-clock training time compared to zeroth-order or black-box optimization (Song et al., 3 Oct 2025, Park et al., 13 Feb 2026). Strict side-branch approaches (side-tuning, LoSA, SHERL) may slightly trail PEFT methods in absolute accuracy but deliver 2–10× lower memory consumption and up to 3× wall-clock speedup (Mercea et al., 2024, Zhang et al., 2024, Diao et al., 2024).

Sparse adaptation, masking, and pruning approaches can achieve >80–90% reduction in task-specific parameter storage with negligible accuracy loss for many tasks, and—in the case of FineGates—simultaneously compress the model, train tiny adapters, and accelerate CPU inference (Svirsky et al., 9 Feb 2026, Li et al., 17 Feb 2025, Zhao et al., 2020).

Below is a high-level comparative summary of representative EMEF methods:

Approach Peak Training Memory Trainable Params Compute Overhead Representative Models
MeBP <1 GB (0.5–4B LLMs) LoRA (~tens MB) 30–90% Qwen2.5, Gemma3 (Song et al., 3 Oct 2025)
EMLoC ~50–75% of FT LoRA (20 M) Low InternVL 8B/38B (Lin et al., 13 Jun 2025)
QLoRA 41 GB (65B LLM) LoRA ≈No o/h LLaMA, Guanaco (Dettmers et al., 2023)
MEFT, Dr²Net 16% of FT act. mem. ~0.3% 2× (rev) BERT, RoBERTa, ViT (Liao et al., 2023, Zhao et al., 2024)
QST ≤2.3× less than QLoRA ≈0.4% 2× faster OPT, LLaMA2 (30–70B) (Zhang et al., 2024)
Row-Sparse SFT –35% (over LoRA) 2.1% (LLaMA8B) None LLaMA(2,3), DeiT, ViT (Li et al., 17 Feb 2025)
Masking –80–90% per-task 1 bit/weight None BERT, RoBERTa (Zhao et al., 2020)
FineGates ~10% of FT <0.1–0.2% None LLaMA3-1B, RoBERTa-L (Svirsky et al., 9 Feb 2026)
SHERL 2.9 GB (T5-base) <0.1–0.2% None T5-base, CLIP (Diao et al., 2024)
LoSA 4.2 GB (ViT-G) 0.1M None ViT-G, ViViT-e (4B) (Mercea et al., 2024)
SlimFit –2–3× 100% (if unpruned) None ViT, BERT, CIFAR/GLUE (Ardakani et al., 2023)

4. Empirical Results Across Domains and Modalities

EMEF principles generalize across language, vision, and diffusion models. In NLP, MeBP achieves first-order convergence on-device (iPhone 15 Pro Max) with <1 GB memory for models up to 4B parameters, with wall-clock speedup of 10–100× vs. zeroth-order (Song et al., 3 Oct 2025). EMLoC enables full-accuracy fine-tuning of 38B models on a single 24 GB GPU (Lin et al., 13 Jun 2025). QLoRA and QST yield <2×–7× total memory reductions and wall-clock speedups when scaling to 70B LLMs (Dettmers et al., 2023, Zhang et al., 2024).

For vision and video, LoSA, Dr²Net, and SHERL allow full adaptation of 1–4B parameter ViT or ViViT backbones using 2–12 GB memory and outperform or match larger models fine-tuned in the traditional way (Mercea et al., 2024, Zhao et al., 2024, Diao et al., 2024).

In generative models, TuneQDM enables the adaptation of billion-parameter quantized diffusion models (e.g. Stable Diffusion v1-4 at 3.2 GB baseline) using only channel-wise scale vectors (\ll 1% overhead), matching full-precision DreamBooth fidelity (Ryu et al., 2024).

Empirical findings consistently show ≤1% loss in utility, with accuracy/performance tradeoffs dictated by the percentage of frozen layers, adapter size, and degree of quantization or pruning.

5. Methodological Principles and Implementation Patterns

All effective EMEF techniques adhere to a set of recurring algorithmic paradigms:

  • Model partitioning: Only a small fraction of model state (adapters, sparse mask, tiny side network) is functionally mutable during adaptation. The bulk of the backbone is kept frozen and, where feasible, quantized (Dettmers et al., 2023, Lin et al., 13 Jun 2025).
  • Backward-pass optimization: Distinct low-memory backward approaches (gradient checkpointing, structured recomputation, reversibility) are exploited to defer, reuse, or eliminate activation storage (Liao et al., 2023, Zhao et al., 2024, Song et al., 3 Oct 2025, Park et al., 13 Feb 2026).
  • Structured sparsification: Task adaptation can be coupled with learned block or row/column dropout in the backbone, either via optimization over continuous mask proxies or via stepwise importance ranking (Svirsky et al., 9 Feb 2026, Li et al., 17 Feb 2025).
  • Side-tuning and anti-redundancy: “Side” or parallel networks are constructed over outputs of the frozen backbone, usually with rank-reduction and mixing operations that are locally tuned. The main backbone is left untouched, and task-specific information is injected through these adapters (Mercea et al., 2024, Diao et al., 2024, Zhang et al., 2024).
  • Dynamic scheduling and freezing: Runtime analysis of gradient norms or parameter updates is used to freeze/unfreeze layers dynamically, with quantization/pruning optionally layered on static or dynamic activations (Ardakani et al., 2023).
  • Correction and merging: When adaptation is performed on compressed or emulated views of the backbone (EMLoC), correction steps guarantee that adaptations are mapped back into the original model for deployment (Lin et al., 13 Jun 2025).

6. Trade-Offs, Limitations, and Selection Criteria

The critical trade-offs in EMEF revolve around balancing memory with accuracy, compute, and code complexity:

7. Open Questions and Future Directions

Ongoing research in EMEF focuses on:

  • Sub-4-bit quantization stability: Establishing stable training with 2-bit (and below) backbone quantization and integrating quantization-aware adapters (Dettmers et al., 2023, Zhang et al., 2024).
  • LoRA-aware reversible/structured backprop: Fusing rank-adaptive or sparse adapters directly into reversible and checkpointed models to maximize activation savings without accuracy loss (Liao et al., 2023, Park et al., 13 Feb 2026).
  • Automated anti-redundancy consolidation: Dynamic discovery and weighting of cross-layer redundancy for improved parameter efficiency with minimal headroom impact (Diao et al., 2024).
  • Efficient adaptation of very long-sequence models: Extending MeBP/MeSP and side-adapter approaches to models with sequence lengths >16K using memory swapping or hierarchical checkpointing (Song et al., 3 Oct 2025).
  • Integrated EMEF in federated and privacy-preserving pipelines: Jointly optimizing for on-device memory, compute, and communication/minimal transfer (Song et al., 3 Oct 2025).
  • Composable EMEF blocks: Combining sparse, quantized, reversible, masking, and side-tuned modules for extreme adaptability across both training and inference phases (Ryu et al., 2024, Svirsky et al., 9 Feb 2026).

EMEF defines the frontier in efficient foundation model adaptation, making ultra-large models adaptable under practical device constraints and unlocking broad on-device and resource-limited deployment (Song et al., 3 Oct 2025, Lin et al., 13 Jun 2025, Zhang et al., 2024, Park et al., 13 Feb 2026, Diao et al., 2024, Dettmers et al., 2023, Liao et al., 2023, Li et al., 17 Feb 2025, Ardakani et al., 2023, Mercea et al., 2024, Svirsky et al., 9 Feb 2026, Zhao et al., 2020, Ryu et al., 2024).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Extremely Memory-Efficient Finetuning (EMEF).