English

MISA: Memory-Efficient LLMs Optimization with Module-wise Importance Sampling

Machine Learning 2026-01-15 v3 Artificial Intelligence

Abstract

The substantial memory demands of pre-training and fine-tuning large language models (LLMs) require memory-efficient optimization algorithms. One promising approach is layer-wise optimization, which treats each transformer block as a single layer and optimizes it sequentially, while freezing the other layers to save optimizer states and activations. Although effective, these methods ignore the varying importance of the modules within each layer, leading to suboptimal performance. Moreover, layer-wise sampling provides only limited memory savings, as at least one full layer must remain active during optimization. To overcome these limitations, we propose Module-wise Importance SAmpling (MISA), a novel method that divides each layer into smaller modules and assigns importance scores to each module. MISA uses a weighted random sampling mechanism to activate modules, provably reducing gradient variance compared to layer-wise sampling. Additionally, we establish an O(1/K)\mathcal{O}(1/\sqrt{K}) convergence rate under non-convex and stochastic conditions, where KK is the total number of block updates, and provide a detailed memory analysis showcasing MISA's superiority over existing baseline methods. Experiments on diverse learning tasks validate the effectiveness of MISA. Source code is available at https://github.com/pkumelon/MISA.

Keywords

Cite

@article{arxiv.2511.00056,
  title  = {MISA: Memory-Efficient LLMs Optimization with Module-wise Importance Sampling},
  author = {Yuxi Liu and Renjia Deng and Yutong He and Xue Wang and Tao Yao and Kun Yuan},
  journal= {arXiv preprint arXiv:2511.00056},
  year   = {2026}
}

Comments

This paper is accepted to Neural Information Processing Systems (NeurIPS) 2025

R2 v1 2026-07-01T07:16:08.815Z