atlas

Research map / Architectures and efficiency / RNNs and normalization

StreamBP: Memory-Efficient Exact Backpropagation for Long Sequence Training of LLMs

NeurIPS 2025 · Architectures and efficiency › RNNs and normalization · approach: Neural scaling laws · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes StreamBP, an exact backpropagation method that linearly decomposes the chain rule along the sequence dimension to cut activation and logit memory for long-sequence LLM training (SFT, GRPO, DPO).

Problem

Backpropagation memory for storing activations and logits grows with sequence length in LLM training on long reasoning traces, and gradient checkpointing still stores full layer activations and logits.

Approach

Partition the output along the sequence dimension and accumulate exact gradients chunk by chunk via a linear decomposition of the chain rule, exploiting causal attention so that each chunk only uses keys/values up to its position, reducing both memory and FLOPs compared with checkpointed BP.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace gradient checkpointing with StreamBPQwen 3 models trained with SFT, GRPO, or DPO · Single A800-80GB, configurations in maximum-sequence-length tablemaximum sequence length: 2.8-5.5×Helped
Use StreamBP instead of gradient checkpointingQwen 3-4B · BP time, sequence lengths 6k–27kBP time: --4.4%; 0.4%; 6.0%; 7.4%; 10.5%; 10.9%; 12.9%Mixed
Use StreamBP instead of gradient checkpointingQwen 3-8B · ZeRO-2, 6k–21k sequence lengthsper-sample BP time (seconds): 8.4 -> 6.4; 9.6 -> 8.3; 12.2 -> 10.8; 18.5 -> 14.8; 22.9 -> 17.2; 26.3 -> 20.7Helped
Increase batch size while using StreamBPQwen 3-4B · Sequence length 9000per-sample BP time: 7.03; 6.82; 6.63; 6.47Helped
Increase partition count (ablation)StreamBP, linear example · Linear examplepeak memory (GB): 36.01 -> 13.25; 12.47; 12.20; 12.07; 11.99Helped
Increase partition count (ablation)StreamBP, linear example · Linear exampletime cost (seconds): 14.48 -> 14.50; 14.70; 14.79; 15.45; 18.42Hurt
Use a partition size that is too small (ablation)StreamBP transformer layers · Long-sequence trainingBP timeHurt
Use a relatively large partition size (ablation)StreamBP transformer layers · Long-sequence trainingtraining efficiencyHelped
Use StreamBP under BF16 instead of standard BP under BF16Qwen 3 language-model head and transformer layers · Gradient precision analysisrelative gradient error: 1.43% vs 1.47%; 6.63% vs 6.59%No clear effect

Surprising findings

Limitations

Experimental setup

Metrics: maximum sequence length peak memory backpropagation time gradient absolute and relative error

Baselines: gradient checkpointing baseline without checkpointing MsT

Builds on: gradient checkpointing flash attention DeepSpeed ZeRO GRPO DPO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy