mlsanityData to 7 Oct 2026

Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Models

arXiv 2412.16545 ↗First posted 21 Dec 2024cs.CLcited by 26

Not on the map. Why?

Abstract (arXiv)

Large language models have shown remarkable performance across a wide range of language tasks, owing to their exceptional capabilities in context modeling. The most commonly used method of context modeling is full self-attention, as seen in standard decoder-only Transformers. Although powerful, this method can be inefficient for long sequences and may overlook inherent input structures. To address these problems, an alternative approach is parallel context encoding, which splits the context into sub-pieces and encodes them parallelly. Because parallel patterns are not encountered during training, naively applying parallel encoding leads to performance degradation. However, the underlying reasons and potential mitigations are unclear. In this work, we provide a detailed analysis of this issue and identify that unusually high attention entropy can be a key factor. Furthermore, we adopt two straightforward methods to reduce attention entropy by incorporating attention sinks and selective mechanisms. Experiments on various tasks reveal that these methods effectively lower irregular attention entropy and narrow performance gaps. We hope this study can illuminate ways to enhance context modeling mechanisms.

Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 49 of its 64 references that are in the map. First posted on arXiv 21 Dec 2024.

Builds on

49 of 64 references.

References · 49

  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. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2024The Llama 3 Herd of Modelscited by 14,192
  6. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  8. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  9. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  10. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  11. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  12. 2020Longformer: The Long-Document Transformercited by 3,362
37 more
  1. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  2. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  3. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  4. 2020Reformer: The Efficient Transformercited by 1,658
  5. 2020Rethinking Attention with Performerscited by 1,584
  6. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  8. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
  9. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  10. 2019Attention is not Explanationcited by 916
  11. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  12. 2022A Survey on In-context Learningcited by 717
  13. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  14. 2019Attention is not not Explanationcited by 629
  15. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  16. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  17. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
  18. 2020Efficient Intent Detection with Dual Sentence Encoderscited by 419
  19. 2019Is Attention Interpretable?cited by 387
  20. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  21. 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 378
  22. 2021Random Feature Attentioncited by 350
  23. 2023Adapting Language Models to Compress Contextscited by 350
  24. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 318
  25. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
  26. 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
  27. 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
  28. 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 119
  29. 2023Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generationcited by 103
  30. 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
  31. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  32. 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Textcited by 60
  33. 2021Memory-efficient Transformers via Top-k Attentioncited by 59
  34. 2022Entropy-based Attention Regularization Frees Unintended Bias Mitigation from Listscited by 54
  35. 2024Block-Attention for Efficient Prefillingcited by 34
  36. 2023Dodo: Dynamic Contextual Compression for Decoder-only LMscited by 23
  37. 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Trainingcited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 14; 2026: 12.

26 papers.

Sort:

By area:

  1. 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reusecited by 60
  2. 2025SpecPrune-VLA: Accelerating Vision-Language-Action Models via Action-Aware Self-Speculative Pruningcited by 39
  3. 2025CacheClip: Accelerating RAG with Effective KV Cache Reusecited by 14
  4. 2025United Minds or Isolated Agents? Exploring Coordination of LLMs under Cognitive Load Theorycited by 10
  5. 2025HoT: Highlighted Chain of Thought for Referencing Supporting Facts from Inputscited by 9
  6. 2025SkyLadder: Better and Faster Pretraining via Context Window Schedulingcited by 6
  7. 2026You Need an Encoder for Native Position-Independent Cachingcited by 6
  8. 2025SeViCES: Unifying Semantic-Visual Evidence Consensus for Long Video Understandingcited by 5
  9. 2026An experimental study of KV cache reuse strategies in chunk-level caching systemscited by 5
  10. 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Headcited by 4
  11. 2025The Few Govern the Many:Unveiling Few-Layer Dominance for Time Series Modelscited by 3
  12. 2026Sparse Growing Transformer: Training-Time Sparse Depth Allocation via Progressive Attention Loopingcited by 3
14 more
  1. 2025InComeS: Integrating Compression and Selection Mechanisms into LLMs for Efficient Model Editingcited by 2
  2. 2025Mitigating Attention Localization in Small Scale: Self-Attention Refinement via One-step Belief Propagationcited by 2
  3. 2025A Training-Free Length Extrapolation Approach for LLMs: Greedy Attention Logit Interpolation (GALI)cited by 1
  4. 2025Enhancing Self-Supervised Visual Representation Learning via Low-Rank Adapted LLMscited by 1
  5. 2026Fast and Accurate Probing of In-Training LLMs' Downstream Performancescited by 1
  6. 2026Not All Tokens Learn Alike: Attention Entropy Reveals Heterogeneous Signals in RL Reasoningcited by 1
  7. 2026The Deterministic Horizon: When Extended Reasoning Fails and Tool Delegation Becomes Necessarycited by 1
  8. 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memorycited by 1
  9. 2025Understanding Differential Transformer Unchains Pretrained Self-Attentionscited by 0
  10. 2025Think Smart, Not Hard: Difficulty Adaptive Reasoning for Large Audio Language Modelscited by 0
  11. 2026R'enyi Attention Entropy for Patch Pruningcited by 0
  12. 2026Towards Generalization of Block Attention via Automatic Segmentation and Block Distillationcited by 0
  13. 2026Blast Radiuscited by 0
  14. 2026Evaluating the accuracy of KV cache reuse techniquescited by 0