InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptation
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
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
38 more
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2020Efficient Transformers: A Surveycited by 784
- 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 694
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
- 2025DeepResearcher: Scaling Deep Research via Reinforcement Learning in Real-world Environmentscited by 268
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
- 2024Are We Done with MMLU?cited by 178
- 2025AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning datasetcited by 165
- 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 131
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 121
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
- 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 113
- 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Codingcited by 106
- 2024What is Wrong with Perplexity for Long-context Language Modeling?cited by 68
50 most cited of 56 All 56 (JSON)
Built on by
Citing papers per year: 2025: 6; 2026: 25.
31 papers.
Sort:
By area:
- 2026MiniMax Sparse Attentioncited by 34
- 2026IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reusecited by 27
- 2025VideoNSA: Native Sparse Attention Scales Video Understandingcited by 10
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attentioncited by 10
- 2025InfiniteVL: Synergizing Linear and Sparse Attention for Highly-Efficient, Unlimited-Input Vision-Language Modelscited by 9
- 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefillingcited by 9
- 2026HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharingcited by 8
- 2026Hierarchical Sparse Attention Done Right: Toward Infinite Context Modelingcited by 8
- 2025Efficient Context Scaling with LongCat ZigZag Attentioncited by 6
- 2026Stem: Rethinking Causal Information Flow in Sparse Attentioncited by 5
- 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 4
19 more
- 2026Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformerscited by 4
- 2026MiniCPM-SALA: Hybridizing Sparse and Linear Attention for Efficient Long-Context Modelingcited by 4
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Evictioncited by 3
- 2026SPLA: Block Sparse Plus Linear Attention for Long Context Modelingcited by 3
- 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMscited by 3
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attentioncited by 3
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inferencecited by 3
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Servingcited by 2
- 2026Training-Inference Consistent Segmented Execution for Long-Context LLMscited by 1
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
- 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attentioncited by 1
- 2026UT-ACA: Uncertainty-Triggered Adaptive Context Allocation for Long-Context Inferencecited by 0
- 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inferencecited by 0
- 2026Long Context Pre-Training with Lighthouse Attentioncited by 0
- 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attentioncited by 0
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Rankingcited by 0
- 2026Block Sparse Attention with Log-Linear Complexitycited by 0
- 2026CoWindow Attention: Full Causal Coverage Is a Collective Propertycited by 0
- 2026MassAlloc Attention: Let Attention Allocate Its Own Computecited by 0
- 2026MassAlloc Attention: Let Attention Allocate Its Own Compute26 Sep 2026
- 2026CoWindow Attention: Full Causal Coverage Is a Collective Property26 Sep 2026
- 2026Block Sparse Attention with Log-Linear Complexity25 Sep 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving20 Aug 2026
- 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attention4 Aug 2026
- 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attention27 Jul 2026
- 2026Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling3 Jul 2026
- 2026MiniMax Sparse Attention11 Jun 2026
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agents4 Jun 2026
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference3 Jun 2026
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attention18 May 2026
19 more
- 2026Training-Inference Consistent Segmented Execution for Long-Context LLMs12 May 2026
- 2026Long Context Pre-Training with Lighthouse Attention7 May 2026
- 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inference8 Apr 2026
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attention30 Mar 2026
- 2026UT-ACA: Uncertainty-Triggered Adaptive Context Allocation for Long-Context Inference19 Mar 2026
- 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMs18 Mar 2026
- 2026IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reuse12 Mar 2026
- 2026Stem: Rethinking Causal Information Flow in Sparse Attention6 Mar 2026
- 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefilling6 Mar 2026
- 2026MiniCPM-SALA: Hybridizing Sparse and Linear Attention for Efficient Long-Context Modeling12 Feb 2026
- 2026HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharing3 Feb 2026
- 2026SPLA: Block Sparse Plus Linear Attention for Long Context Modeling29 Jan 2026
- 2026Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformers24 Jan 2026
- 2025Efficient Context Scaling with LongCat ZigZag Attention30 Dec 2025
- 2025InfiniteVL: Synergizing Linear and Sparse Attention for Highly-Efficient, Unlimited-Input Vision-Language Models9 Dec 2025
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Space25 Nov 2025
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Eviction23 Oct 2025
- 2025NOSA: Native and Offloadable Sparse Attention15 Oct 2025
- 2025VideoNSA: Native Sparse Attention Scales Video Understanding2 Oct 2025
- 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Evictioncited by 3
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Servingcited by 2
- 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attentioncited by 0
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving20 Aug 2026
- 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attention4 Aug 2026
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Eviction23 Oct 2025
- 2025NOSA: Native and Offloadable Sparse Attention15 Oct 2025
- 2026MiniMax Sparse Attentioncited by 34
- 2026Stem: Rethinking Causal Information Flow in Sparse Attentioncited by 5
- 2026MiniMax Sparse Attention11 Jun 2026
- 2026Stem: Rethinking Causal Information Flow in Sparse Attention6 Mar 2026
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attentioncited by 10
- 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefillingcited by 9
- 2026Hierarchical Sparse Attention Done Right: Toward Infinite Context Modelingcited by 8
- 2025Efficient Context Scaling with LongCat ZigZag Attentioncited by 6
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 4
- 2026Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformerscited by 4
- 2026MiniCPM-SALA: Hybridizing Sparse and Linear Attention for Efficient Long-Context Modelingcited by 4
- 2026SPLA: Block Sparse Plus Linear Attention for Long Context Modelingcited by 3
- 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMscited by 3
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attentioncited by 3
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inferencecited by 3
- 2026Training-Inference Consistent Segmented Execution for Long-Context LLMscited by 1
12 most cited of 20 All 20 (JSON)
- 2026MassAlloc Attention: Let Attention Allocate Its Own Compute26 Sep 2026
- 2026CoWindow Attention: Full Causal Coverage Is a Collective Property26 Sep 2026
- 2026Block Sparse Attention with Log-Linear Complexity25 Sep 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attention27 Jul 2026
- 2026Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling3 Jul 2026
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference3 Jun 2026
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attention18 May 2026
- 2026Training-Inference Consistent Segmented Execution for Long-Context LLMs12 May 2026
- 2026Long Context Pre-Training with Lighthouse Attention7 May 2026
- 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inference8 Apr 2026
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attention30 Mar 2026
12 newest of 20 All 20 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Sliding Window Attention Training for Efficient Large Language Models
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention
- 2022Mega: Moving Average Equipped Gated Attention
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer
- 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
- 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
- 2024Beyond Linear Approximations: A Novel Pruning Approach for Attention Matrix
- 2024A-VL: Adaptive Attention for Large Vision-Language Models