Attention Instruction: Amplifying Attention in the Middle via Prompting
Meiru Zhang, Zaiqiao Meng, Nigel Collier

TL;DR
This paper investigates how large language models handle attention distribution within extended contexts and proposes prompting strategies to improve focus on relevant segments, addressing position bias issues.
Contribution
It reveals the limited relative position awareness of LLMs and demonstrates that prompting can effectively guide attention to specific context segments.
Findings
LLMs lack true relative position awareness.
Matching index prompts can steer attention effectively.
Instruction-based attention modulation benefits RAG tasks.
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 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNeuroscience, Education and Cognitive Function
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Weight Decay · WordPiece · Softmax · Layer Normalization · Linear Warmup With Linear Decay · Byte Pair Encoding · Attention Dropout · Dropout
