How do Large Language Models Understand Relevance? A Mechanistic Interpretability Perspective
On the map: Mechanistic interpretability → Knowledge and representations inside LLMs
Abstract (arXiv)
Recent studies have shown that large language models (LLMs) can assess relevance and support information retrieval (IR) tasks such as document ranking and relevance judgment generation. However, the internal mechanisms by which off-the-shelf LLMs understand and operationalize relevance remain largely unexplored. In this paper, we systematically investigate how different LLM modules contribute to relevance judgment through the lens of mechanistic interpretability. Using activation patching techniques, we analyze the roles of various model components and identify a multi-stage, progressive process in generating either pointwise or pairwise relevance judgment. Specifically, LLMs first extract query and document information in the early layers, then process relevance information according to instructions in the middle layers, and finally utilize specific attention heads in the later layers to generate relevance judgments in the required format. Our findings provide insights into the mechanisms underlying relevance assessment in LLMs, offering valuable implications for future research on leveraging LLMs for IR tasks.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Knowledge and representations inside LLMs, one of 13 directions in Mechanistic interpretability. Builds on 31 of its 54 references that are in the map. First posted on arXiv 10 Apr 2025.
Builds on
31 of 54 references.
Closest ancestors · 1
Same direction, newest first
Other references · 30
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,178
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2022Toy Models of Superpositioncited by 971
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
- 2021Causal Abstractions of Neural Networkscited by 422
18 more
- 2023Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agentscited by 360
- 2023Large Language Models are Effective Text Rankers with Pairwise Ranking Promptingcited by 307
- 2013Direct and Indirect Effectscited by 280
- 2024How to use and interpret activation patchingcited by 214
- 2023Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretabilitycited by 205
- 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 156
- 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
- 2023Large language models can accurately predict searcher preferencescited by 131
- 2023Beyond Yes and No: Improving Zero-Shot LLM Rankers via Scoring Fine-Grained Relevance Labelscited by 86
- 2023Perspectives on Large Language Models for Relevance Judgmentcited by 85
- 2024TourRank: Utilizing Large Language Models for Documents Ranking with a Tournament-Inspired Strategycited by 47
- 2024Attention in Large Language Models Yields Efficient Zero-Shot Re-Rankerscited by 43
- 2023One-Shot Labeling for Automatic Relevance Estimationcited by 31
- 2020ABNIRML: Analyzing the Behavior of Neural IR Modelscited by 23
- 2024Leveraging Passage Embeddings for Efficient Listwise Reranking with Large Language Modelscited by 20
- 2024Can We Use Large Language Models to Fill Relevance Judgment Holes?cited by 17
- 2021Match Your Words! A Study of Lexical Matching in Neural Information Retrievalcited by 10
- 2024Axiomatic Causal Interventions for Reverse Engineering Relevance Computation in Neural Retrieval Modelscited by 8
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2025Backdoor Attribution: Elucidating and Controlling Backdoor in Language Modelscited by 10
- 2026Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Modelscited by 0
- 2026SemLink: A Semantic-Aware Automated Test Oracle for Hyperlink Verification using Siamese Sentence-BERTcited by 0
- 2026Validation-Gated Causal Interventions for Interpreting High-Stakes Large Language Model Behavior: A Case Study in Suicidality Detectioncited by 0
- 2026Knowing Before Answering: Decoding Language Models for Reliable RAGcited by 0
- 2026Clinical Concept Centers in LLMscited by 0
- 2026Clinical Concept Centers in LLMs2 Oct 2026
- 2026Knowing Before Answering: Decoding Language Models for Reliable RAG27 Aug 2026
- 2026Validation-Gated Causal Interventions for Interpreting High-Stakes Large Language Model Behavior: A Case Study in Suicidality Detection19 Jun 2026
- 2026SemLink: A Semantic-Aware Automated Test Oracle for Hyperlink Verification using Siamese Sentence-BERT7 Apr 2026
- 2026Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Models3 Feb 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Backdoor Attribution: Elucidating and Controlling Backdoor in Language Models26 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026Why Large Language Models can Secretly Outperform Embedding Similarity in Information Retrieval ↗
- 2024A Large-Scale Study of Relevance Assessments with Large Language Models: An Initial Look
- 2026From Interpretability to Performance: Optimizing Retrieval Heads for Long-Context Language Models
- 2023Large Language Models for Information Retrieval: A Survey
- 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoning
- 2023"Knowing When You Don't Know": A Multilingual Relevance Assessment Dataset for Robust Retrieval-Augmented Generation
- 2024Evaluating Cost-Accuracy Trade-offs in Multimodal Search Relevance Judgements
- 2024Towards Uncovering How Large Language Model Works: An Explainability Perspective