ChunkFT: Byte-Streamed Optimization for Memory-Efficient Full Fine-Tuning
Yongkang Liu, Zijing Wang, Mengjie Zhao, Ercong Nie, Mingyang Wang, Qian Li, Feiliang Ren, Shi Feng, Daling Wang, Hinrich Schuetze
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Model Compression for Transformers · Type: new method · Keywords: memory-efficient fine-tuning, gradient chunking, large language models, GPU memory reduction, theoretical convergence
Areas: Memory › Model Memory Optimization › Activation Memory Reduction
Summary
ChunkFT is a memory-efficient full fine-tuning framework that reformulates full-parameter fine-tuning around a dynamically activated working set, enabling gradient computation for arbitrary sub-tensors without altering the network architecture, thereby allowing full-parameter fine-tuning of large models on a single GPU with drastically reduced memory usage.
Explained to a 5-year-old
We want to make a big computer program (like a chatbot) smaller so it fits on a regular computer. Instead of changing all the parts at once, we split the work into pieces and only work on one piece at a time. This helps the program learn new things without using a lot of memory. It works like a puzzle where you only move a few pieces each time. The new way makes the program almost as good as the old way, but uses less space.
Explained to a 5-year-old, longer
Imagine you have a huge picture book with millions of pages that you want to color, but your small notebook only has room for a few pages at once. The new idea is to break the big book into many small chunks and color one chunk at a time. While coloring a chunk, you only look at the pieces you need, not the whole book. This way you don't need a super-big notebook to store everything. The colored chunks are saved so you can put them together later to make the whole picture. You can also change just a part of the picture without touching the rest. This makes learning new things easier because you can work on a small space. The method also has a math proof that says if you keep working this way, you will get a good result. In tests, the new way works almost as well as the old way that uses all the memory. It also runs faster because you don't have to move huge amounts of data. This helps people who have only a normal computer to train big AI models. The result is a tool that lets anyone fine-tune large models without buying expensive hardware.
For a technical reader
The technique partitions model parameters into chunks and computes gradients only on a dynamically selected working set, reducing peak GPU memory. It provides a deterministic convergence guarantee for this chunked update scheme. Empirically, it achieves full-parameter fine-tuning quality while using only 13.72GB for a 7B model on a single consumer GPU. The approach is drop-in and works with any existing model architecture without modifications.
Problem
Fine-parameter fine-tuning of large language models requires huge GPU memory, making it impractical on consumer hardware. Existing memory-efficient techniques often compromise model quality or need architectural changes, limiting accessibility for researchers with limited resources.
Method
The approach partitions model parameters into chunks and dynamically activates a working set for gradient computation, allowing arbitrary sub-tensor updates without changing the network. It also provides a theoretical convergence analysis in the deterministic setting.
Results
Fine-tuning a 7B model with a 1K input length requires only 13.72GB of GPU memory, and the approach matches or exceeds full-parameter fine-tuning performance on language understanding, mathematical reasoning, and MT-Bench benchmarks.
Contributions
The work offers a theoretical convergence analysis for chunked gradient computation and demonstrates empirically that this scheme achieves memory-efficient full fine-tuning without sacrificing model quality.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction