atlas

Research map / Architectures and efficiency / Attention and transformers

Sequence Accumulation and Beyond: Infinite Context Length on Single GPU and Large Clusters

AAAI 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 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 Sequence Accumulation (SA) and its pipeline-parallel extension SAPP, which split long sequences into sub-sequences processed sequentially while accumulating linear-attention memory states, giving constant memory for training linear sequence models at effectively unbounded context length.

Problem

Linear sequence models have linear memory in context length during training, so very long sequences are hard to train on limited GPUs; existing sequence/context parallelism does not fix this and adds communication overhead.

Approach

Exploit the recurrent form of linear sequence modeling to split a sequence into fixed-length sub-sequences processed one after another on the same device, accumulating a d×d memory state (with backward pass over stored states), and combine this with pipeline parallelism so state accumulation stays on each device with no extra sequence-dimension communication.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Sequence Accumulation instead of the baseline training setup0.4B basic linear transformer · 16K sequenceloss: 3.710 -> 3.705No clear effect
Use Sequence Accumulation with Pipeline Parallelism instead of the baseline training setup0.4B basic linear transformer · 16K sequenceloss: 3.710 -> 3.712No clear effect
Use Sequence Accumulation instead of the baseline training setup0.4B basic linear transformer · LMB.score: 30.9 -> 30.7Hurt
Use Sequence Accumulation with Pipeline Parallelism instead of the baseline training setup0.4B basic linear transformer · LMB.score: 30.9 -> 30.6Hurt
Use Sequence Accumulation instead of the baseline training setup0.4B basic linear transformer · PIQAscore: 64.8 -> 65.3Helped
Use Sequence Accumulation with Pipeline Parallelism instead of the baseline training setup0.4B basic linear transformer · PIQAscore: 64.8 -> 65.6Helped
Use Sequence Accumulation instead of the baseline training setup0.4B basic linear transformer · Hella.score: 36.1 -> 36.5Helped
Use Sequence Accumulation with Pipeline Parallelism instead of the baseline training setup0.4B basic linear transformer · Hella.score: 36.1 -> 35.8Hurt
Use Sequence Accumulation instead of the baseline training setup0.4B basic linear transformer · Wino.score: 50.5 -> 49.6Hurt
Use Sequence Accumulation with Pipeline Parallelism instead of the baseline training setup0.4B basic linear transformer · Wino.score: 50.5 -> 49.9Hurt
Use Sequence Accumulation instead of the baseline training setup0.4B basic linear transformer · ARC-escore: 42.9 -> 42.2Hurt
Use Sequence Accumulation with Pipeline Parallelism instead of the baseline training setup0.4B basic linear transformer · ARC-escore: 42.9 -> 42.7Hurt

Limitations

Experimental setup

Datasets: The Pile

Benchmarks: LAMBADA PIQA HellaSwag WinoGrande ARC-e ARC-c

Metrics: training loss GPU memory (GB) throughput (tokens/s) iteration time (ms) accuracy

Baselines: PP DP Baseline (no SA/PP/DP)

Builds on: linear attention GPipe Megatron-LM LASP gradient accumulation

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