mlsanityData to 7 Oct 2026

InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptation

arXiv 2509.24663 ↗First posted 29 Sep 2025cs.CL cs.AI cs.LGcited by 31

Not on the map. Why?

Abstract (arXiv)

Long-sequence processing is a critical capability for modern large language models. However, the self-attention mechanism in the standard Transformer architecture faces severe computational and memory bottlenecks when processing long sequences. While trainable sparse attention methods offer a promising solution, existing approaches such as NSA introduce excessive extra parameters and disrupt the conventional textitpretrain-on-short, finetune-on-long workflow, resulting in slow convergence and difficulty in acceleration. To overcome these limitations, we introduce dense-sparse switchable attention framework, termed as InfLLM-V2. InfLLM-V2 is a trainable sparse attention that seamlessly adapts models from short to long sequences. Specifically, InfLLM-V2 reuses dense attention parameters through parameter-free architecture modification, maintaining consistency between short and long sequence processing. Additionally, InfLLM-V2 ensures computational efficiency across all sequence lengths, by using dense attention for short inputs and smoothly transitioning to sparse attention for long sequences. To achieve practical acceleration, we further introduce an efficient implementation of InfLLM-V2 that significantly reduces the computational overhead. Our experiments on long-context understanding and chain-of-thought reasoning demonstrate that InfLLM-V2 is 4× faster than dense attention while retaining 98.1% and 99.7% of the performance, respectively. Based on the InfLLM-V2 framework, we have trained and open-sourced MiniCPM4.1 (https://huggingface.co/openbmb/MiniCPM4.1-8B), a hybrid reasoning model, providing a reproducible implementation for the research community.

Key facts. Cited by 31 papers in the map (data through 7 Oct 2026). Builds on 56 of its 60 references that are in the map. First posted on arXiv 29 Sep 2025.

Builds on

56 of 60 references.

References · 56

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  7. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  8. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  9. 2021Program Synthesis with Large Language Modelscited by 3,509
  10. 2020Longformer: The Long-Document Transformercited by 3,362
  11. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  12. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
38 more
  1. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  2. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  3. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  4. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  5. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  6. 2020Reformer: The Efficient Transformercited by 1,658
  7. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  8. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  9. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  10. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  11. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  12. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
  13. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  14. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  15. 2020Efficient Transformers: A Surveycited by 784
  16. 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 694
  17. 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
  18. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  19. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
  20. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  21. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  22. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  23. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  24. 2021Pre-Trained Models: Past, Present and Futurecited by 319
  25. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
  26. 2025DeepResearcher: Scaling Deep Research via Reinforcement Learning in Real-world Environmentscited by 268
  27. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
  28. 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
  29. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
  30. 2024Are We Done with MMLU?cited by 178
  31. 2025AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning datasetcited by 165
  32. 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 131
  33. 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 121
  34. 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
  35. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
  36. 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 113
  37. 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Codingcited by 106
  38. 2024What is Wrong with Perplexity for Long-context Language Modeling?cited by 68

50 most cited of 56 All 56 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 25.

31 papers.

Sort:

By area:

  1. 2026MiniMax Sparse Attentioncited by 34
  2. 2026IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reusecited by 27
  3. 2025VideoNSA: Native Sparse Attention Scales Video Understandingcited by 10
  4. 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attentioncited by 10
  5. 2025InfiniteVL: Synergizing Linear and Sparse Attention for Highly-Efficient, Unlimited-Input Vision-Language Modelscited by 9
  6. 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefillingcited by 9
  7. 2026HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharingcited by 8
  8. 2026Hierarchical Sparse Attention Done Right: Toward Infinite Context Modelingcited by 8
  9. 2025Efficient Context Scaling with LongCat ZigZag Attentioncited by 6
  10. 2026Stem: Rethinking Causal Information Flow in Sparse Attentioncited by 5
  11. 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
  12. 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 4
19 more
  1. 2026Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformerscited by 4
  2. 2026MiniCPM-SALA: Hybridizing Sparse and Linear Attention for Efficient Long-Context Modelingcited by 4
  3. 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Evictioncited by 3
  4. 2026SPLA: Block Sparse Plus Linear Attention for Long Context Modelingcited by 3
  5. 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMscited by 3
  6. 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attentioncited by 3
  7. 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inferencecited by 3
  8. 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Servingcited by 2
  9. 2026Training-Inference Consistent Segmented Execution for Long-Context LLMscited by 1
  10. 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
  11. 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attentioncited by 1
  12. 2026UT-ACA: Uncertainty-Triggered Adaptive Context Allocation for Long-Context Inferencecited by 0
  13. 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inferencecited by 0
  14. 2026Long Context Pre-Training with Lighthouse Attentioncited by 0
  15. 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attentioncited by 0
  16. 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Rankingcited by 0
  17. 2026Block Sparse Attention with Log-Linear Complexitycited by 0
  18. 2026CoWindow Attention: Full Causal Coverage Is a Collective Propertycited by 0
  19. 2026MassAlloc Attention: Let Attention Allocate Its Own Computecited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Sliding Window Attention Training for Efficient Large Language Models
  2. 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention
  3. 2022Mega: Moving Average Equipped Gated Attention
  4. 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer
  5. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
  6. 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
  7. 2024Beyond Linear Approximations: A Novel Pruning Approach for Attention Matrix
  8. 2024A-VL: Adaptive Attention for Large Vision-Language Models