Towards Generalization of Block Attention via Automatic Segmentation and Block Distillation
On the map: Retrieval-augmented generation → Multimodal RAG
also in 1 more
Abstract (arXiv)
Block attention, which processes the input as separate blocks that cannot attend to one another, offers significant potential to improve KV cache reuse in long-context scenarios such as Retrieval-Augmented Generation (RAG). However, its broader application is hindered by two key challenges: the difficulty of segmenting input text into meaningful, self-contained blocks, and the inefficiency of existing block fine-tuning methods that risk degrading performance. To address these, we first construct SemanticSeg, a large and diverse semantic segmentation dataset containing over 30k instances across 16 categories-including books, code, web text, and conversations with text lengths ranging from 2k to 32k. Using this dataset, we train a lightweight segmenter to automatically partition text into human-instinct-aligned blocks with controllable granularity. Second, we propose block distillation, a training framework that is more efficient than block fine-tuning, which uses a frozen full-attention teacher model to guide the block-attention student. This framework integrates three novel components: block sink tokens to mitigate information loss at block boundaries, block dropout to leverage training signals from all blocks, and token-level loss weighting to focus learning on block-attention-sensitive tokens. Experiments across multiple models and benchmarks demonstrate that our segmenter outperforms heuristic and statistical baselines, and block distillation achieves near-full-attention performance under block attention, establishing a practical and scalable pathway for deploying block attention.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Multimodal RAG, one of 15 directions in Retrieval-augmented generation. Builds on 32 of its 34 references that are in the map. First posted on arXiv 15 May 2026.
Builds on
32 of 34 references.
References · 32
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 877
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
- 2018Universal Transformerscited by 613
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 372
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
20 more
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 223
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 211
- 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 180
- 2023OpenWebMath: An Open Dataset of High-Quality Mathematical Web Textcited by 151
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 145
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 135
- 2024Liger Kernel: Efficient Triton Kernels for LLM Trainingcited by 123
- 2023SlimPajama-DC: Understanding Data Combinations for LLM Trainingcited by 72
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 52
- 2026LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulationcited by 48
- 2024Block-Attention for Efficient Prefillingcited by 34
- 2024Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Modelscited by 26
- 2024Language Models as Science Tutorscited by 17
- 2024Superposition Prompting: Improving and Accelerating Retrieval-Augmented Generationcited by 15
- 2026The Pensieve Paradigm: Stateful Language Models Mastering Their Own Contextcited by 8
- 2025InComeS: Integrating Compression and Selection Mechanisms into LLMs for Efficient Model Editingcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026FlashBlock: Attention Caching for Efficient Long-Context Block Diffusion
- 2025MoBA: Mixture of Block Attention for Long-Context LLMs
- 2025Seg4Diff: Unveiling Open-Vocabulary Segmentation in Text-to-Image Diffusion Transformers
- 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference
- 2026The Structural Attention Tax: How Retrieval Format Hijacks In-Context Learning Independent of Content
- 2026Block Sparse Attention with Log-Linear Complexity
- 2025TRIM: Token-wise Attention-Derived Saliency for Data-Efficient Instruction Tuning
- 2025Beyond RAG vs. Long-Context: Learning Distraction-Aware Retrieval for Efficient Knowledge Grounding