arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.17535cs.IR
收藏

角色扮演如何塑造零样本LLM排序器的相关性判断

How role-play shapes relevance judgment in zero-shot LLM rankers

Leiden Institute of Advanced Computer Science, Leiden University(莱顿大学高级计算机科学研究所);Center for Language and Cognition, University of Groningen(格罗宁根大学语言与认知中心);Brown University(布朗大学);University of Amsterdam(阿姆斯特丹大学)

Yumeng Wang, Jirui Qi, Catherine Chen, Panagiotis Eustratiadis, Suzan Verberne

AI总结:

本研究探讨角色扮演如何影响零样本LLM排序器的相关性判断,发现角色描述的精心制定显著提升排序质量,且角色信号主要在早期层编码,为设计更有效的提示提供了指导。

摘要:

大型语言模型(LLMs)已崭露头角,成为有希望的零样本排序器,但其性能对提示的制定高度敏感。特别是角色扮演提示,其中模型被赋予功能性角色或身份,往往能提供更稳健和准确的相关性排名。然而,角色扮演效果的机制和多样性仍待深入研究,限制了其有效使用和可解释性。在本工作中,我们系统地考察了角色扮演变化如何影响零样本LLM排序器。我们采用来自机理可解释性中的因果干预技术,追踪角色扮演信息如何塑造LLM的相关性判断。我们的分析揭示了(1)精心制定的角色描述对LLM的排序质量有显著影响;(2)角色扮演信号主要编码在早期层,并在中层层与任务指令通信,而与查询或文档表示的交互有限。具体而言,我们识别出一组编码信息关键的注意力头,这些信息对于基于角色的的相关性至关重要。这些发现不仅揭示了角色扮演在LLM排序中的内部运作,还为设计更有效的提示提供了指导,指明了在信息检索及其他领域中利用角色扮演的更广泛机会。

英文摘要:

Large Language Models (LLMs) have emerged as promising zero-shot rankers, but their performance is highly sensitive to prompt formulation. In particular, role-play prompts, where the model is assigned a functional role or identity, often give more robust and accurate relevance rankings. However, the mechanisms and diversity of role-play effects remain underexplored, limiting both effective use and interpretability. In this work, we systematically examine how role-play variations influence zero-shot LLM rankers. We employ causal intervention techniques from mechanistic interpretability to trace how role-play information shapes relevance judgments in LLMs. Our analysis reveals that (1) careful formulation of role descriptions have a large effect on the ranking quality of the LLM; (2) role-play signals are predominantly encoded in early layers and communicate with task instructions in middle layers, while receiving limited interaction with query or document representations. Specifically, we identify a group of attention heads that encode information critical for role-conditioned relevance. These findings not only shed light on the inner workings of role-play in LLM ranking but also offer guidance for designing more effective prompts in IR and beyond, pointing toward broader opportunities for leveraging role-play in zero-shot applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑