MICA: Activation Checkpointing for Double-Backward Training of Machine Learning Interatomic Potentials
Hongyu Wang, Mingzhen Li, Hongtao Xu, Yuanchang Zhou, Weijian Liu, Weile Jia, Guangming Tan
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Async Pipeline Communication Optimization · Type: new method · Keywords: activation checkpointing, double-backward training, machine learning interatomic potentials, memory optimization, dynamic programming planner
Summary
MICA is an activation checkpointing planner for double-backward training of conservative MLIPs that reduces memory usage and speeds up training.
Explained to a 5-year-old
Computers can learn how tiny pieces called atoms interact. When they learn, they need to keep track of many numbers in their memory. The new idea helps the computer decide what to remember and when to forget. By remembering less at once, the computer uses less memory space. This lets the computer work with many more atoms in one group and finish learning faster.
Explained to a 5-year-old, longer
Computers can learn how tiny pieces called atoms interact. When they learn, they need to keep track of many numbers in their memory. When the learning process is complicated, the memory can fill up quickly. The new idea helps the computer decide what to remember and when to forget. By remembering less at once, the computer uses less memory space. This lets the computer work with many more atoms in one group. It also makes the learning finish faster, so scientists get results quicker. The technique works for different kinds of atom groups that change size. It also helps when many computers work together, reducing the need for extra tricks. Overall, it makes training big models easier and cheaper. This can speed up finding new materials for things like batteries or fabrics. The approach is simple enough that even small research labs can use it.
For a technical reader
The paper tackles the high memory consumption that occurs when training conservative machine-learning interatomic potentials, which require a double-backward pass during optimization. It introduces MICA, a checkpointing planner that adds a dedicated primitive for the second-backward phase and uses an input-aware dynamic-programming algorithm to choose checkpoint modes for variable-size atomic graph batches under a memory budget. This reduces peak memory by up to 86% compared to standard checkpointing, keeps training within a fixed GPU memory budget, allows larger atom batches, and speeds up distributed training. The implementation integrates with existing PyTorch checkpointing APIs and can be used with Fully Sharded Data Parallel and graph parallelism to further reduce memory usage. The result is a practical tool that enables training larger interatomic potentials on standard GPUs.
Problem
Training conservative machine learning interatomic potentials requires double-backward differentiation, creating two types of activations that lead to high memory consumption, especially with variable-size atomic graph batches. Existing checkpointing techniques focus on forward activations and do not efficiently manage the additional first-backward activations, limiting scalability.
Method
The approach uses a checkpoint primitive tailored for double-backward phases combined with an input-aware dynamic programming planner to select checkpoint modes for variable-size atomic graph batches under a memory budget.
Results
The approach reduces peak memory by 49%-86% versus standard checkpointing, keeps training within a 50 GB budget on an 80 GB GPU, increases feasible atoms per batch by 4.2×-9.2×, and achieves 1.88×-2.03× speedup over FSDP/GP baselines.
Contributions
It introduces a checkpoint primitive for double-backward execution and an input-aware dynamic programming planner that selects checkpoint modes for variable-size atomic graph batches, enabling larger batches and reduced memory usage.
Practical relevance
Enables training of larger interatomic potentials on standard GPUs, reducing hardware requirements and accelerating materials discovery.
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