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

语言模型如何在上下文中绑定实体?

How do Language Models Bind Entities in Context?

UC Berkeley(加州大学伯克利分校)

Jiahai Feng, Jacob Steinhardt

AI总结:

本文发现语言模型通过绑定ID向量机制将上下文中的实体与属性绑定,该机制存在于足够大的Pythia和LLaMA模型中,为理解上下文推理提供了可解释策略。

摘要:

为了正确使用上下文信息,语言模型(LMs)必须将实体与其属性进行绑定。例如,给定一个描述“绿色方块”和“蓝色圆形”的上下文,LMs必须将形状与其各自的颜色绑定。我们分析了LM的表示,并识别出绑定ID机制:一种解决绑定问题的通用机制,我们在Pythia和LLaMA系列中每个足够大的模型中都观察到了该机制。通过因果干预,我们表明LMs的内部激活通过将绑定ID向量附加到相应的实体和属性上来表示绑定信息。我们进一步表明,绑定ID向量形成一个连续子空间,其中绑定ID向量之间的距离反映了它们的可辨别性。总体而言,我们的结果揭示了LMs在上下文中表示符号知识的可解释策略,为理解大规模LMs中的通用上下文推理迈出了一步。

英文摘要:

To correctly use in-context information, language models (LMs) must bind entities to their attributes. For example, given a context describing a "green square" and a "blue circle", LMs must bind the shapes to their respective colors. We analyze LM representations and identify the binding ID mechanism: a general mechanism for solving the binding problem, which we observe in every sufficiently large model from the Pythia and LLaMA families. Using causal interventions, we show that LMs' internal activations represent binding information by attaching binding ID vectors to corresponding entities and attributes. We further show that binding ID vectors form a continuous subspace, in which distances between binding ID vectors reflect their discernability. Overall, our results uncover interpretable strategies in LMs for representing symbolic knowledge in-context, providing a step towards understanding general in-context reasoning in large-scale LMs.

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

↑