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

追踪大型语言模型中的关系知识回忆

Tracing Relational Knowledge Recall in Large Language Models

TU Dresden(德累斯顿技术大学)

Nicholas Popovič, Michael Färber

AI总结:

研究大型语言模型在文本生成中如何回忆关系知识,通过线性探测识别适合关系分类的潜在表示。分析不同潜在表示,发现注意力头对残差流的贡献是线性关系分类的强特征。

摘要:

我们研究大型语言模型在文本生成中如何回忆关系知识,重点在于通过线性探测识别适合关系分类的潜在表示。先前工作展示了注意力头和MLP如何相互作用以解决主语、谓词和宾语,但尚不清楚哪些表示支持忠实的线性关系分类,以及为何某些关系类型更容易通过线性方式捕捉。我们系统评估了从注意力头和MLP贡献中衍生的不同潜在表示,表明每头注意力对残差流的贡献是线性关系分类的相对强特征。对训练探测器的特征归因分析以及不同关系类型的特性,揭示了探测器准确率与关系特异性、实体连接性和探测器依赖的信号在注意力头上的分布之间的明确相关性。最后,我们展示了如何通过令牌级特征归因分析探测器预测,以进一步揭示探测器的行为。

英文摘要:

We study how large language models recall relational knowledge during text generation, with a focus on identifying latent representations suitable for relation classification via linear probes. Prior work shows how attention heads and MLPs interact to resolve subject, predicate, and object, but it remains unclear which representations support faithful linear relation classification and why some relation types are easier to capture linearly than others. We systematically evaluate different latent representations derived from attention head and MLP contributions, showing that per-head attention contributions to the residual stream are comparatively strong features for linear relation classification. Feature attribution analyses of the trained probes, as well as characteristics of the different relation types, reveal clear correlations between probe accuracy and relation specificity, entity connectedness, and how distributed the signal on which the probe relies is across attention heads. Finally, we show how token-level feature attribution of probe predictions can be used to reveal probe behavior in further detail.

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

↑