mlsanityData to 14 Oct 2026

Training-Inference Consistent Segmented Execution for Long-Context LLMs

arXiv 2605.11744 ↗First posted 12 May 2026cs.CL cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformer-based large language models face severe scalability challenges in long-context generation due to the computational and memory costs of full-context attention. Under practical computation and memory constraints, many inference-efficient long-context methods improve efficiency by adopting bounded-context or segment-level execution only during inference, while continuing to train models under full-context attention, resulting in a mismatch between training and inference execution and state-transition semantics. Based on this insight, we propose a training-inference consistent segment-level generation framework, in which training and inference follow the same segment-level forward execution semantics. During training, consistency with inference is enforced by restricting gradient propagation to KV states carried over from the immediately preceding segment, while permitting head-specific access to past KV states during the forward pass without involving them in gradient propagation. Across long-context benchmarks, our approach achieves performance comparable to full-context attention, while achieving competitive latency-memory trade-offs against strong inference-efficient baselines, and substantially improving scalability at very long context lengths (e.g., approximately 6x lower peak prefill memory at 128K compared to full-context attention with FlashAttention).

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 30 of its 33 references that are in the map. First posted on arXiv 12 May 2026.

Builds on

30 of 33 references.

References · 30

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2020Longformer: The Long-Document Transformercited by 3,413
  7. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  9. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  10. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  11. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  12. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
18 more
  1. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
  2. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
  3. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
  4. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
  5. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 288
  6. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
  7. 2022Memorizing Transformerscited by 226
  8. 2022Recurrent Memory Transformercited by 203
  9. 2023SARATHI: Efficient LLM Inference by Piggybacking Decodes with Chunked Prefillscited by 193
  10. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
  11. 2022On The Computational Complexity of Self-Attentioncited by 139
  12. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 124
  13. 2024What Matters in Transformers? Not All Attention is Neededcited by 84
  14. 2025ChunkKV: Semantic-Preserving KV Cache Compression for Efficient Long-Context LLM Inferencecited by 60
  15. 2025InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptationcited by 32
  16. 2025Sliding Window Attention Training for Efficient Large Language Modelscited by 24
  17. 2024Core Context Aware Transformers for Long Context Language Modelingcited by 11
  18. 2023Shiftable Context: Addressing Training-Inference Context Mismatch in Simultaneous Speech Translationcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.