Fortify the Shortest Stave in Attention: Enhancing Context Awareness of Large Language Models for Effective Tool Use
Not on the map. Why?
Abstract (arXiv)
In this paper, we demonstrate that an inherent waveform pattern in the attention allocation of large language models (LLMs) significantly affects their performance in tasks demanding a high degree of context awareness, such as utilizing LLMs for tool-use. Specifically, the crucial information in the context will be potentially overlooked by model when it is positioned in the trough zone of the attention waveform, leading to decreased performance. To address this issue, we propose a novel inference method named Attention Buckets. It allows LLMs to process their input through multiple parallel processes. Each process utilizes a distinct base angle for the rotary position embedding, thereby creating a unique attention waveform. By compensating an attention trough of a particular process with an attention peak of another process, our approach enhances LLM's awareness to various contextual positions, thus mitigating the risk of overlooking crucial information. In the largest tool-use benchmark, our method elevates a 7B model to achieve state-of-the-art performance, comparable to that of GPT-4. On other benchmarks and some RAG tasks, which also demand a thorough understanding of contextual content, Attention Buckets also exhibited notable enhancements in performance.
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 36 of its 56 references that are in the map. First posted on arXiv 7 Dec 2023.
Builds on
36 of 56 references.
References · 36
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
24 more
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 591
- 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 410
- 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Casescited by 383
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 238
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
- 2023Universal Self-Consistency for Large Language Model Generationcited by 198
- 2023Scaling Laws of RoPE-based Extrapolationcited by 124
- 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 89
- 2020Relevance-guided Supervision for OpenQA with ColBERTcited by 71
- 2023An Analysis and Mitigation of the Reversal Cursecited by 22
- 2023GETMusic: Generating Any Music Tracks with a Unified Representation and Diffusion Frameworkcited by 13
- 2023CycleAlign: Iterative Distillation from Black-box LLM to White-box Models for Better Human Alignmentcited by 13
- 2023DialoGPS: Dialogue Path Sampling in Continuous Semantic Space for Data Augmentation in Multi-Turn Conversationscited by 9
- 2022Re-creation of Creations: A New Paradigm for Lyric-to-Melody Generationcited by 6
- 2023Pay Attention to What You Needcited by 1
Built on by
Citing papers per year: 2023: 1; 2024: 14; 2025: 8; 2026: 4.
27 papers.
Sort:
By area:
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
- 2024From Skepticism to Acceptance: Simulating the Attitude Dynamics Toward Fake Newscited by 51
- 2024ToolEyes: Fine-Grained Evaluation for Tool Learning Capabilities of Large Language Models in Real-world Scenarioscited by 35
- 2024Interpreting Key Mechanisms of Factual Recall in Transformer-Based Language Modelscited by 30
- 2025Identifying and Mitigating Position Bias of Multi-image Vision-Language Modelscited by 24
- 2024Mixture of In-Context Experts Enhance LLMs' Long Context Awarenesscited by 17
- 2024StreamingDialogue: Prolonged Dialogue Learning via Long Context Compression with Minimal Lossescited by 9
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillationcited by 8
- 2025Autonomy-of-Experts Modelscited by 7
- 2024Attention Instruction: Amplifying Attention in the Middle via Promptingcited by 6
15 more
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provablycited by 6
- 2023Training With "Paraphrasing the Original Text" Teaches LLM to Better Retrieve in Long-context Taskscited by 5
- 2024Language Models "Grok" to Copycited by 5
- 2026Stable-RAG: Mitigating Retrieval-Permutation-Induced Hallucinations in Retrieval-Augmented Generationcited by 5
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Servingcited by 3
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2026Looking Is Not Picking: An Attention-Segment Account of Tool-Selection Failures in LLM Agentscited by 3
- 2024Mitigate Position Bias in Large Language Models via Scaling a Single Dimensioncited by 2
- 2025RoToR: Towards More Reliable Responses for Order-Invariant Inputscited by 2
- 2024PEAR: Position-Embedding-Agnostic Attention Re-weighting Enhances Retrieval-Augmented Generation with Zero Inference Overheadcited by 1
- 2024Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Modelscited by 1
- 2025Layer-Specific Scaling of Positional Encodings for Superior Long-Context Modelingcited by 1
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understandingcited by 1
- 2025Uncovering the Role of Initial Saliency in U-Shaped Attention Bias: Scaling Initial Token Weight for Enhanced Long-Text Processingcited by 1
- 2026Mitigating Position Bias in Transformers via Layer-Specific Positional Embedding Scalingcited by 0
- 2026Mitigating Position Bias in Transformers via Layer-Specific Positional Embedding Scaling26 Jun 2026
- 2026Looking Is Not Picking: An Attention-Segment Account of Tool-Selection Failures in LLM Agents15 Jun 2026
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provably15 May 2026
- 2026Stable-RAG: Mitigating Retrieval-Permutation-Induced Hallucinations in Retrieval-Augmented Generation6 Jan 2026
- 2025Uncovering the Role of Initial Saliency in U-Shaped Attention Bias: Scaling Initial Token Weight for Enhanced Long-Text Processing15 Dec 2025
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillation21 Aug 2025
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understanding20 Jul 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2025Identifying and Mitigating Position Bias of Multi-image Vision-Language Models18 Mar 2025
- 2025Layer-Specific Scaling of Positional Encodings for Superior Long-Context Modeling6 Mar 2025
- 2025RoToR: Towards More Reliable Responses for Order-Invariant Inputs10 Feb 2025
- 2025Autonomy-of-Experts Models22 Jan 2025
15 more
- 2024Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Models10 Dec 2024
- 2024Why Does the Effective Context Length of LLMs Fall Short?24 Oct 2024
- 2024PEAR: Position-Embedding-Agnostic Attention Re-weighting Enhances Retrieval-Augmented Generation with Zero Inference Overhead29 Sep 2024
- 2024Language Models "Grok" to Copy14 Sep 2024
- 2024Mixture of In-Context Experts Enhance LLMs' Long Context Awareness28 Jun 2024
- 2024Attention Instruction: Amplifying Attention in the Middle via Prompting24 Jun 2024
- 2024Mitigate Position Bias in Large Language Models via Scaling a Single Dimension4 Jun 2024
- 2024Tool Learning with Large Language Models: A Survey28 May 2024
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving18 May 2024
- 2024Interpreting Key Mechanisms of Factual Recall in Transformer-Based Language Models28 Mar 2024
- 2024From Skepticism to Acceptance: Simulating the Attitude Dynamics Toward Fake News14 Mar 2024
- 2024StreamingDialogue: Prolonged Dialogue Learning via Long Context Compression with Minimal Losses13 Mar 2024
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encoding5 Mar 2024
- 2024ToolEyes: Fine-Grained Evaluation for Tool Learning Capabilities of Large Language Models in Real-world Scenarios1 Jan 2024
- 2023Training With "Paraphrasing the Original Text" Teaches LLM to Better Retrieve in Long-context Tasks18 Dec 2023
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2024ToolEyes: Fine-Grained Evaluation for Tool Learning Capabilities of Large Language Models in Real-world Scenarioscited by 35
- 2026Looking Is Not Picking: An Attention-Segment Account of Tool-Selection Failures in LLM Agentscited by 3
- 2026Looking Is Not Picking: An Attention-Segment Account of Tool-Selection Failures in LLM Agents15 Jun 2026
- 2024Tool Learning with Large Language Models: A Survey28 May 2024
- 2024ToolEyes: Fine-Grained Evaluation for Tool Learning Capabilities of Large Language Models in Real-world Scenarios1 Jan 2024
- 2026Stable-RAG: Mitigating Retrieval-Permutation-Induced Hallucinations in Retrieval-Augmented Generation6 Jan 2026
- 2024PEAR: Position-Embedding-Agnostic Attention Re-weighting Enhances Retrieval-Augmented Generation with Zero Inference Overhead29 Sep 2024
- 2024Language Models "Grok" to Copy14 Sep 2024
- 2025Autonomy-of-Experts Modelscited by 7
- 2025Autonomy-of-Experts Models22 Jan 2025
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
- 2024From Skepticism to Acceptance: Simulating the Attitude Dynamics Toward Fake Newscited by 51
- 2024Interpreting Key Mechanisms of Factual Recall in Transformer-Based Language Modelscited by 30
- 2024Mixture of In-Context Experts Enhance LLMs' Long Context Awarenesscited by 17
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillationcited by 8
- 2024Attention Instruction: Amplifying Attention in the Middle via Promptingcited by 6
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provablycited by 6
- 2023Training With "Paraphrasing the Original Text" Teaches LLM to Better Retrieve in Long-context Taskscited by 5
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2024Mitigate Position Bias in Large Language Models via Scaling a Single Dimensioncited by 2
- 2025RoToR: Towards More Reliable Responses for Order-Invariant Inputscited by 2
12 most cited of 16 All 16 (JSON)
- 2026Mitigating Position Bias in Transformers via Layer-Specific Positional Embedding Scaling26 Jun 2026
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provably15 May 2026
- 2025Uncovering the Role of Initial Saliency in U-Shaped Attention Bias: Scaling Initial Token Weight for Enhanced Long-Text Processing15 Dec 2025
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillation21 Aug 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2025Layer-Specific Scaling of Positional Encodings for Superior Long-Context Modeling6 Mar 2025
- 2025RoToR: Towards More Reliable Responses for Order-Invariant Inputs10 Feb 2025
- 2024Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Models10 Dec 2024
- 2024Why Does the Effective Context Length of LLMs Fall Short?24 Oct 2024
- 2024Mixture of In-Context Experts Enhance LLMs' Long Context Awareness28 Jun 2024
- 2024Attention Instruction: Amplifying Attention in the Middle via Prompting24 Jun 2024
- 2024Mitigate Position Bias in Large Language Models via Scaling a Single Dimension4 Jun 2024
12 newest of 16 All 16 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Beyond KV Caching: Shared Attention for Efficient LLMs
- 2024Attention Heads of Large Language Models: A Survey
- 2025Sliding Window Attention Training for Efficient Large Language Models
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
- 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
- 2026Learning to See What You Need: Gaze Attention for Multimodal Large Language Models
- 2024When Attention Sink Emerges in Language Models: An Empirical View
- 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models