Omni-Masked Gradient Descent: Memory-Efficient Optimization via Mask Traversal with Improved Convergence
Memory-efficient optimization methods have recently gained increasing attention for scaling full-parameter training of large language models under the GPU-memory bottleneck. Existing approaches either lack clear convergence guarantees, or only achieve the standard
conda create -n OMGD python=3.12 -y
conda activate OMGD
pip install -e .
pip install -r requirements.txtRun the following code to reproduce the the result of the illustrative example:
cd ./examples/illustrative_example
python synthetic_data_training.pyUse the provided scripts in .vision_and_nlp/scripts/ to reproduce the results of image classification tasks and RoBERTafine-tuning.
For example, fine-tuning vision transformers on CIFAR-10:
cd ./examples/vision_and_nlp
bash ./scripts/fine-tuning_vit.shWe evaluate GPU memory consumption of memory-efficient methods by pre-training a LLaMA-7B model on the C4 dataset using a single device.
- GPT-2 pre-training experiments are based on
nanoGPT. - We thank
GoloreandSIFTfor their open-source projects.
If you find this work useful, please cite:
@misc{yang2026omnimaskedgradientdescentmemoryefficient,
title={Omni-Masked Gradient Descent: Memory-Efficient Optimization via Mask Traversal with Improved Convergence},
author={Hui Yang and Tao Ren and Jinyang Jiang and Wan Tian and Yijie Peng},
year={2026},
eprint={2603.05960},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2603.05960},
}

