mlsanityData to 14 Oct 2026

How do Large Language Models Understand Relevance? A Mechanistic Interpretability Perspective

arXiv 2504.07898 ↗First posted 10 Apr 2025cs.IR cs.CL cs.LGcited by 7

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

  1. 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methods27 Sep

Other references · 30

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  5. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
  6. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  7. 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,178
  8. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  9. 2022Toy Models of Superpositioncited by 971
  10. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  11. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
  12. 2021Causal Abstractions of Neural Networkscited by 422
18 more
  1. 2023Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agentscited by 360
  2. 2023Large Language Models are Effective Text Rankers with Pairwise Ranking Promptingcited by 307
  3. 2013Direct and Indirect Effectscited by 280
  4. 2024How to use and interpret activation patchingcited by 214
  5. 2023Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretabilitycited by 205
  6. 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 156
  7. 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
  8. 2023Large language models can accurately predict searcher preferencescited by 131
  9. 2023Beyond Yes and No: Improving Zero-Shot LLM Rankers via Scoring Fine-Grained Relevance Labelscited by 86
  10. 2023Perspectives on Large Language Models for Relevance Judgmentcited by 85
  11. 2024TourRank: Utilizing Large Language Models for Documents Ranking with a Tournament-Inspired Strategycited by 47
  12. 2024Attention in Large Language Models Yields Efficient Zero-Shot Re-Rankerscited by 43
  13. 2023One-Shot Labeling for Automatic Relevance Estimationcited by 31
  14. 2020ABNIRML: Analyzing the Behavior of Neural IR Modelscited by 23
  15. 2024Leveraging Passage Embeddings for Efficient Listwise Reranking with Large Language Modelscited by 20
  16. 2024Can We Use Large Language Models to Fill Relevance Judgment Holes?cited by 17
  17. 2021Match Your Words! A Study of Lexical Matching in Neural Information Retrievalcited by 10
  18. 2024Axiomatic Causal Interventions for Reverse Engineering Relevance Computation in Neural Retrieval Modelscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 6.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Why Large Language Models can Secretly Outperform Embedding Similarity in Information Retrieval ↗
  2. 2024A Large-Scale Study of Relevance Assessments with Large Language Models: An Initial Look
  3. 2026From Interpretability to Performance: Optimizing Retrieval Heads for Long-Context Language Models
  4. 2023Large Language Models for Information Retrieval: A Survey
  5. 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoning
  6. 2023"Knowing When You Don't Know": A Multilingual Relevance Assessment Dataset for Robust Retrieval-Augmented Generation
  7. 2024Evaluating Cost-Accuracy Trade-offs in Multimodal Search Relevance Judgements
  8. 2024Towards Uncovering How Large Language Model Works: An Explainability Perspective