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

论语言模型中的实体识别

On Entity Identification in Language Models

Tohoku University(东大大学);RIKEN(日本研究机构);NINJAL(日本国家情报机构);Langsmith Inc.(Langsmith公司);MBZUAI

Masaki Sakata, Benjamin Heinzerling, Sho Yokoi, Takumi Ito, Kentaro Inui

AI总结:

本文通过聚类分析量化语言模型内部表征对命名实体的识别与区分能力,发现实体信息在早期层以低维线性子空间紧凑表示,并揭示了实体表征特性对词语预测的影响。

摘要:

我们分析了语言模型(LMs)的内部表征在多大程度上识别和区分命名实体的提及,重点关注实体与其提及之间的多对多对应关系。我们首先形式化实体提及的两个问题——歧义性和变异性——并提出了一个类似于聚类质量指标的框架。具体来说,我们通过对LM内部表征的聚类分析,量化同一实体的提及在多大程度上聚集在一起,以及不同实体的提及保持分离的程度。我们的实验考察了五个基于Transformer的自回归模型,结果表明它们能够有效地识别和区分实体,其类似于精确率和召回率的指标范围在0.66到0.9之间。进一步的分析揭示,实体相关信息在LM的早期层中以低维线性子空间的形式被紧凑地表示。此外,我们阐明了实体表征的特性如何影响词语预测性能。这些发现通过LM表征与现实世界中以实体为中心的知识结构之间的同构性视角进行解释,为理解LM如何在内部组织和利用实体信息提供了见解。

英文摘要:

We analyze the extent to which internal representations of language models (LMs) identify and distinguish mentions of named entities, focusing on the many-to-many correspondence between entities and their mentions. We first formulate two problems of entity mentions -- ambiguity and variability -- and propose a framework analogous to clustering quality metrics. Specifically, we quantify through cluster analysis of LM internal representations the extent to which mentions of the same entity cluster together and mentions of different entities remain separated. Our experiments examine five Transformer-based autoregressive models, showing that they effectively identify and distinguish entities with metrics analogous to precision and recall ranging from 0.66 to 0.9. Further analysis reveals that entity-related information is compactly represented in a low-dimensional linear subspace at early LM layers. Additionally, we clarify how the characteristics of entity representations influence word prediction performance. These findings are interpreted through the lens of isomorphism between LM representations and entity-centric knowledge structures in the real world, providing insights into how LMs internally organize and use entity information.

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

↑