arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.09421cs.CLcs.AI
收藏

论自回归大型语言模型中实体的表示

On the Representations of Entities in Auto-regressive Large Language Models

Sorbonne Université, CNRS, Institut des Systèmes Intelligents et de Robotique (ISIR)(索邦大学,法国国家科学研究中心,智能系统与机器人研究所);INSPE, UT2J, Université de Toulouse, IRIT UMR5505 CNRS(图卢兹大学,国家高等教育与教育学院,让·饶勒斯大学,图卢兹计算机科学研究所,法国国家科学研究中心)

Victor Morand, Josiane Mothe, Benjamin Piwowarski

AI总结:

本文提出实体提及重构框架,利用任务向量从LLMs隐藏状态生成多标记提及,并引入Entity Lens扩展logit-lens,揭示了LLMs具备表示和操纵任意多标记实体的内部机制。

摘要:

命名实体是文本中知识的基础构建块,为事实信息提供基础并对语言内的关系进行结构化。尽管实体十分重要,但目前仍不清楚大型语言模型(LLMs)如何在内部表示实体。先前的研究主要考察了显式关系,但对实体表示本身的了解却很少。我们引入了实体提及重构作为一种研究 LLMs 如何编码和操纵实体的新框架。我们研究了实体提及是否可以从内部表示中生成、多标记实体如何在最后标记嵌入之外被编码,以及这些表示是否捕获了关系知识。我们提出的方法利用了任务向量,能够从 LLMs 隐藏状态导出的各种实体表示中,持续生成多标记提及。因此,我们引入了 Entity Lens,将 logit-lens 扩展以预测多标记提及。我们的结果带来了新证据,表明 LLMs 开发了实体特定的机制来表示和操纵任何多标记实体,包括训练期间未见过的实体。我们的代码可在 https://github.com/VictorMorand/EntityRepresentations 获取。

英文摘要:

Named entities are fundamental building blocks of knowledge in text, grounding factual information and structuring relationships within language. Despite their importance, it remains unclear how Large Language Models (LLMs) internally represent entities. Prior research has primarily examined explicit relationships, but little is known about entity representations themselves. We introduce entity mention reconstruction as a novel framework for studying how LLMs encode and manipulate entities. We investigate whether entity mentions can be generated from internal representations, how multi-token entities are encoded beyond last-token embeddings, and whether these representations capture relational knowledge. Our proposed method, leveraging _task vectors_, allows to consistently generate multi-token mentions from various entity representations derived from the LLMs hidden states. We thus introduce the _Entity Lens_, extending the _logit-lens_ to predict multi-token mentions. Our results bring new evidence that LLMs develop entity-specific mechanisms to represent and manipulate any multi-token entities, including those unseen during training. Our code is avalable at https://github.com/VictorMorand/EntityRepresentations .

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

↑