PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 24, 20240 citationsOpen Access

Attention Instruction: Amplifying Attention in the Middle via Prompting

View Full Paper
MZMeiru ZhangUniversity of CambridgeZMZaiqiao MengUniversity of CambridgeNCNigel CollierUniversity of Cambridge

Key Points

  • Language models show improved attention allocation towards specific context segments using tailored instructions.
  • The position awareness of language models was found to be lacking, impacting their overall performance on multi-document question tasks.
  • Analysis using position-based and index-based instructions indicates that attention can be directed more effectively with prompting techniques like attention instructions and indexing mechanisms. The study sheds light on mitigating position bias, indicating potential improvements in information retrieval tasks for large language models.

Abstract

The context window of large language models has been extended to 128k tokens or more. However, language models still suffer from position bias and have difficulty in accessing and using the middle part of the context due to the lack of attention. We examine the relative position awareness of LLMs and the feasibility of mitigating disproportional attention through prompting. We augment the original task instruction with attention instructions that direct language models to allocate more attention towards a selected segment of the context. We conduct a comprehensive investigation on multi-document question answering task with both position-based and index-based instructions. We find that language models do not have relative position awareness of the context. Nevertheless, they demonstrate the capacity to adapt attention to a specific segment using matching indexes. Our analysis contributes to a deeper understanding of position bias in LLMs and provides a pathway to mitigate this bias by instruction, thus benefiting LLMs in locating and utilizing relevant information from retrieved documents in RAG applications.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Zhang et al. (2024) studied this question.

synapsesocial.com/papers/68e639e5b6db6435875cb6b9https://doi.org/10.48550/arxiv.2406.17095
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilization2024
  2. 2Mitigate Position Bias in Large Language Models via Scaling a Single Dimension2024 · 2 citations
  3. 3Position-Aware Parameter Efficient Fine-Tuning Approach for Reducing Positional Bias in LLMs2024 · 2 citations
  4. 4Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression2024
  5. 5Positional Biases Shift as Inputs Approach Context Window Limits2025