StreamBP: Memory-Efficient Exact Backpropagation for Long Sequence Training of LLMs
Not on the map. Why?
Abstract (arXiv)
Training language models on long sequence data is a demanding requirement for enhancing the model's capability on complex tasks, e.g., long-chain reasoning. However, as the sequence length scales up, the memory cost for storing activation values becomes huge during the Backpropagation (BP) process, even with the application of gradient checkpointing technique. To tackle this challenge, we propose a memory-efficient and exact BP method called StreamBP, which performs a linear decomposition of the chain rule along the sequence dimension in a layer-wise manner, significantly reducing the memory cost of activation values and logits. The proposed method is applicable to common objectives such as SFT, GRPO, and DPO. From an implementation perspective, StreamBP achieves less computational FLOPs and faster BP speed by leveraging the causal structure of the language model. Compared to gradient checkpointing, StreamBP scales up the maximum sequence length of BP by 2.8-5.5 times larger, while using comparable or even less BP time. Note that StreamBP's sequence length scaling ability can be directly transferred to batch size scaling for accelerating training. We further develop a communication-efficient distributed StreamBP to effectively support multi-GPU training and broaden its applicability. Our code can be easily integrated into the training pipeline of any transformer models and is available at https://github.com/Ledzy/StreamBP.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 28 of its 39 references that are in the map. First posted on arXiv 3 Jun 2025.
Builds on
28 of 39 references.
References · 28
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
- 2025s1: Simple test-time scalingcited by 1,341
- 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 982
- 2016Training Deep Nets with Sublinear Memory Costcited by 848
16 more
- 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 758
- 2025SimpleRL-Zoo: Investigating and Taming Zero Reinforcement Learning for Open Base Models in the Wildcited by 511
- 2025LIMO: Less is More for Reasoningcited by 498
- 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 463
- 2025Open-Reasoner-Zero: An Open Source Approach to Scaling Up Reinforcement Learning on the Base Modelcited by 461
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
- 2025Demystifying Long Chain-of-Thought Reasoning in LLMscited by 326
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
- 2025Reinforcement Learning for Reasoning in Large Language Models with One Training Examplecited by 295
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 245
- 2025Light-R1: Curriculum SFT, DPO and RL for Long COT from Scratch and Beyondcited by 175
- 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!cited by 132
- 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 126
- 2024BAdam: A Memory Efficient Full Parameter Optimization Method for Large Language Modelscited by 27
- 2020Memory Optimization for Deep Networkscited by 15
- 2024Mini-Sequence Transformer: Optimizing Intermediate Memory for Long Sequences Trainingcited by 6
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026BASP: Communication-Efficient Batch-Aware Sequence Parallelism for LLM Training
- 2025Memory Savings at What Cost? A Study of Alternatives to Backpropagation
- 2026NSP: Accelerating Variable-Length LLM Training via Nested Sequence Parallelism ↗
- 2025TL;DR: Too Long, Do Re-weighting for Efficient LLM Reasoning Compression
- 2023Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipeline
- 2026Out of the Memory Barrier: A Highly Memory Efficient Training System for LLMs with Million-Token Contexts
- 2025Overflow Prevention Enhances Long-Context Recurrent LLMs
- 2025Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation