Retrieval Heads are Dynamic

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Lin, Yuping, Li, Zitao, Xing, Yue, He, Pengfei, Cui, Yingqian, Li, Yaliang, Ding, Bolin, Zhou, Jingren, Tang, Jiliang
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910199948771328
author Lin, Yuping
Li, Zitao
Xing, Yue
He, Pengfei
Cui, Yingqian
Li, Yaliang
Ding, Bolin
Zhou, Jingren
Tang, Jiliang
author_facet Lin, Yuping
Li, Zitao
Xing, Yue
He, Pengfei
Cui, Yingqian
Li, Yaliang
Ding, Bolin
Zhou, Jingren
Tang, Jiliang
contents Recent studies have identified "retrieval heads" in Large Language Models (LLMs) responsible for extracting information from input contexts. However, prior works largely rely on static statistics aggregated across datasets, identifying heads that perform retrieval on average. This perspective overlooks the fine-grained temporal dynamics of autoregressive generation. In this paper, we investigate retrieval heads from a dynamic perspective. Through extensive analysis, we establish three core claims: (1) Dynamism: Retrieval heads vary dynamically across timesteps; (2) Irreplaceability: Dynamic retrieval heads are specific at each timestep and cannot be effectively replaced by static retrieval heads; and (3) Correlation: The model's hidden state encodes a predictive signal for future retrieval head patterns, indicating an internal planning mechanism. We validate these findings on the Needle-in-a-Haystack task and a multi-hop QA task, and quantify the differences on the utility of dynamic and static retrieval heads in a Dynamic Retrieval-Augmented Generation framework. Our study provides new insights into the internal mechanisms of LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2602_11162
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Retrieval Heads are Dynamic
Lin, Yuping
Li, Zitao
Xing, Yue
He, Pengfei
Cui, Yingqian
Li, Yaliang
Ding, Bolin
Zhou, Jingren
Tang, Jiliang
Computation and Language
Recent studies have identified "retrieval heads" in Large Language Models (LLMs) responsible for extracting information from input contexts. However, prior works largely rely on static statistics aggregated across datasets, identifying heads that perform retrieval on average. This perspective overlooks the fine-grained temporal dynamics of autoregressive generation. In this paper, we investigate retrieval heads from a dynamic perspective. Through extensive analysis, we establish three core claims: (1) Dynamism: Retrieval heads vary dynamically across timesteps; (2) Irreplaceability: Dynamic retrieval heads are specific at each timestep and cannot be effectively replaced by static retrieval heads; and (3) Correlation: The model's hidden state encodes a predictive signal for future retrieval head patterns, indicating an internal planning mechanism. We validate these findings on the Needle-in-a-Haystack task and a multi-hop QA task, and quantify the differences on the utility of dynamic and static retrieval heads in a Dynamic Retrieval-Augmented Generation framework. Our study provides new insights into the internal mechanisms of LLMs.
title Retrieval Heads are Dynamic
topic Computation and Language
url https://arxiv.org/abs/2602.11162