paper-with-me

Papers

From Interpretability to Performance: Optimizing Retrieval Heads for Long-Context Language Models

2026-01-16 · Youmi Ma, Naoaki Okazaki arxiv

Advances in mechanistic interpretability have identified special attention heads, known as retrieval heads, that are responsible for retrieving information from the context. However, the role of these retrieval heads in improving model performance remains unexplored. This work investigates whether retrieval heads can be leveraged to enhance the long-context capabilities of LLMs. Specifically, we propose RetMask, a method that generates training signals by contrasting normal model outputs with those from an ablated variant in which the retrieval heads are masked. This mechanism-based approach achieves substantial improvements: +2.28 points on HELMET at 128K for Llama-3.1, with +70% gains on generation with citation and +32% on passage re-ranking, while preserving performance on general tasks. Experiments across four models in three families demonstrate that RetMask consistently improves long-context performance, where gains correlate with the sparsity of the retrieval score distribution: models with sparser distributions, where retrieval capabilities are concentrated in a small set of heads, respond more strongly, while those with less sparse distributions show more modest gains. These results validate the functional role of retrieval heads and show that mechanistic insights can be transformed into performance enhancements.

📄 PDF Abstract BibTeX arXiv:2601.11020

Code (0)

등록된 구현이 없습니다.

Tasks

Passage Re-Ranking

Similar Papers 제목 키워드 기반

Query-Focused Retrieval Heads Improve Long-Context Reasoning and Re-ranking

2025-06-11 · Wuwei Zhang, Fangcong Yin, Howard Yen, Danqi Chen 외

Recent work has identified retrieval heads (Wu et al., 2025b), a subset of attention heads responsible for retrieving salient information in long-context language models (LMs), as measured by their copy-paste behavior in…

Re-RankingRetrieval

Mechanistic Insights into Functional Sparsity in Multimodal LLMs via CoRe Heads

2026-06-04 · Ruoxi Sun, Quantong Qiu, Juntao Li, Zecheng Tang 외 arxiv

While Multimodal Large Language Models (MLLMs) demonstrate remarkable proficiency on complex vision-language tasks, the mechanisms by which they extract query-relevant visual features from complex, noisy contexts remain …

Cross-Modal RetrievalMultimodal Reasoning

Understanding Synthetic Context Extension via Retrieval Heads

2024-10-29 · Xinyu Zhao, Fangcong Yin, Greg Durrett

Long-context LLMs are increasingly in demand for applications such as retrieval-augmented generation. To defray the cost of pretraining LLMs over long contexts, recent work takes an approach of synthetic context extensio…

RetrievalRetrieval-augmented Generation

DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Models

2026-02-25 · Xi Ye, Wuwei Zhang, Fangcong Yin, Howard Yen 외 arxiv

Understanding and reasoning over long contexts is a crucial capability for language models (LMs). Although recent models support increasingly long context windows, their accuracy often deteriorates as input length grows.…

Axiomatic Causal Interventions for Reverse Engineering Relevance Computation in Neural Retrieval Models

2024-05-03 · Catherine Chen, Jack Merullo, Carsten Eickhoff

Neural models have demonstrated remarkable performance across diverse ranking tasks. However, the processes and internal mechanisms along which they determine relevance are still largely unknown. Existing approaches for …

Decision MakingRetrieval