LongAttnComp: Cross-Family Context Compression for Long-Context Reasoning
On the map: Efficient LLM inference and serving → Efficient reasoning and agent inference
Abstract (arXiv)
As real-world applications increasingly require processing inputs of 100k+ tokens, the gap between context length and inference efficiency has become a critical bottleneck. Context compression offers a way to reduce prefill costs while preserving task accuracy. However, existing training-free attention-based methods leave substantial gaps in demanding long-context tasks such as code reasoning. We present LongAttnComp, a long-context adaptation of AttnComp that fine-tunes a lightweight cross-attention scoring layer and introduces tokenlevel chunking, a token-budget top-p algorithm, positional reordering, and a formatagnostic query parser. We further design a two-stage fine-tuning recipe for the compressor: Stage 1 builds a general retrieval foundation from NIAH-style data, and Stage 2 extends it with multi-hop and reasoning data for broader long-context task coverage. On InfiniteBench Code-Debug, LongAttnComp matches or exceeds full-context accuracy, substantially outperforms training-free baselines, and transfers across four target models from three families. On LongBench v2, the two-stage recipe largely closes the Stage 1 gap on multi-document reasoning while preserving Code-Debug performance.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Placed in Efficient reasoning and agent inference, one of 12 directions in Efficient LLM inference and serving. Builds on 15 of its 27 references that are in the map. First posted on arXiv 31 May 2026.
Builds on
15 of 27 references.
References · 15
- 2024The Llama 3 Herd of Modelscited by 14,486
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,133
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,716
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,412
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,625
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,319
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,302
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,266
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 369
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 361
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 255
- 2024CompAct: Compressing Retrieved Documents Actively for Question Answeringcited by 64
3 more
- 2025Provence: efficient and robust context pruning for retrieval-augmented generationcited by 25
- 2025Speculative Prefill: Turbocharging TTFT with Lightweight and Training-Free Token Importance Estimationcited by 13
- 2026Cross-Family Speculative Prefill: Training-Free Long-Context Compression with Small Draft Modelscited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025PERK: Long-Context Reasoning as Test-Time Learning
- 2025Less Is More: Fast and Accurate Reasoning with Cross-Head Unified Sparse Attention
- 2025R1-Compress: Long Chain-of-Thought Compression via Chunk Compression and Search
- 2024QUITO: Accelerating Long-Context Reasoning through Query-Guided Context Compression
- 2025Beyond Context Limits: Subconscious Threads for Long-Horizon Reasoning
- 2026SEER: Long-Context Reasoning via Selective Visual-Text Compression
- 2025Attention Reveals More Than Tokens: Training-Free Long-Context Reasoning with Attention-guided Retrieval
- 2024Characterizing Prompt Compression Methods for Long Context Inference