mlsanityData to 7 Oct 2026

Out of the Memory Barrier: A Highly Memory Efficient Training System for LLMs with Million-Token Contexts

arXiv 2602.02108 ↗First posted 2 Feb 2026cs.CLcited by 4

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Training Large Language Models (LLMs) on long contexts is severely constrained by prohibitive GPU memory overhead, not training time. The primary culprits are the activations, whose memory footprints scale linearly with sequence length. We introduce OOMB, a highly memory-efficient training system that directly confronts this barrier. Our approach employs a chunk-recurrent training framework with on-the-fly activation recomputation, which maintains a constant activation memory footprint (O(1)) and shifts the primary bottleneck to the growing KV cache. To manage the KV cache, OOMB integrates a suite of synergistic optimizations: a paged memory manager for both the KV cache and its gradients to eliminate fragmentation, asynchronous CPU offloading to hide data transfer latency, and page-level sparse attention to reduce both computational complexity and communication overhead. The synergy of these techniques yields exceptional efficiency. Our empirical results show that for every additional 10K tokens of context, the end-to-end training memory overhead increases by a mere 10MB for Qwen2.5-7B. This allows training Qwen2.5-7B with a 4M-token context on a single H200 GPU, a feat that would otherwise require a large cluster using context parallelism. This work represents a substantial advance in resource efficiency for long-context LLM training. The source code is available at https://github.com/wenhaoli-xmu/OOMB.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 33 of its 40 references that are in the map. First posted on arXiv 2 Feb 2026.

Builds on

33 of 40 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving2 Jan
  2. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep

Other references · 30

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2024Qwen2.5 Technical Reportcited by 4,713
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  4. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  5. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  6. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  7. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
  8. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  9. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  10. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  11. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  12. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
18 more
  1. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
  2. 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
  3. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
  4. 2024How to Train Long-Context Language Models (Effectively)cited by 141
  5. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
  6. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
  7. 2025A Comprehensive Survey on Long Context Language Modelingcited by 113
  8. 2024LongAlign: A Recipe for Long Context Alignment of Large Language Modelscited by 102
  9. 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 71
  10. 2024Training-Free Long-Context Scaling of Large Language Modelscited by 61
  11. 2019Low-Memory Neural Network Training: A Technical Reportcited by 56
  12. 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Trainingcited by 28
  13. 2024Learn from Global Correlations: Enhancing Evolutionary Algorithm via Spectral GNNcited by 15
  14. 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Modelscited by 13
  15. 2025UORA: Uniform Orthogonal Reinitialization Adaptation in Parameter-Efficient Fine-Tuning of Large Modelscited by 11
  16. 2024Low-Rank Interconnected Adaptation across Layerscited by 10
  17. 2025Training Long-Context LLMs Efficiently via Chunk-wise Optimizationcited by 4
  18. 2024Optimal Gradient Checkpointing for Sparse and Recurrent Architectures using Off-Chip Memorycited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts
  2. 2026Efficient Scaling of LLM Training with Flexible Context Parallelism
  3. 2025HeadInfer: Memory-Efficient LLM Inference by Head-wise Offloading
  4. 2026BigMac: Breaking the Pareto Frontier of Compute and Memory in Multimodal LLM Training
  5. 2024Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache
  6. 2026KV Cache Optimization Strategies for Scalable and Efficient LLM Inference
  7. 2024XKV: Personalized KV Cache Memory Reduction for Long-Context LLM Inference
  8. 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory