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

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 article, 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.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Information Systems
Published
2025-11-11
DOI
https://doi.org/10.1145/3774942
Citations
2
Primary Topic
Information Retrieval and Search Behavior
Type
article
Field-Weighted Citation Impact
6.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Ji-Rong Wen, Jiaxin Mao, Haozhe Duan, Qi Liu
2 citations
ACM Transactions on Information Systems
Information Retrieval and Search Behavior
6.49
article

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

Ji-Rong Wen, Jiaxin Mao, Haozhe Duan, Qi Liu
article en
2 citations

Abstract

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 article, 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.

ACM Transactions on Information SystemsVol. 44(2)
Renmin University of China (CN)
Openalex Percentile: Top 3%
Information Retrieval and Search Behavior
6.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

How Do Large Language Models Understand Relevance? A Mechanistic Interpretability Perspective — Ji-Rong Wen, Jiaxin Mao, et al. · ACM Transactions on Information Systems (2025) | TGRS Research Map | TGRS