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

扩散语言模型中的事实访问状态:从机制到知识编辑与检索

Factual Access States in Diffusion Language Models: From Mechanism to Knowledge Editing and Retrieval

The University of Tokyo(东京大学);LIGHTSPEED(光速(LIGHTSPEED));Tencent(腾讯)

Yuchen Guo, Zhuoyuan Mao, Yiwen Guo

AI总结:

该研究揭示了扩散语言模型的事实访问状态机制,提出Multi-View Edit知识编辑器,可提升复述与反向问答性能,还能将实体位置状态用作特定关系检索向量,返回两实体查询的双证据。

摘要:

事实召回是一种查找过程:网络内部的某种表示充当键,该键的构成决定了哪些查询可以检索到事实、编辑必须覆盖的内容以及检索器可以读取的内容,我们将其称为事实访问状态。在自回归(AR)模型中,主语位置在很大程度上独立于关系丰富属性,而特定关系的选择发生在后续的读出位置。在掩码扩散语言模型(DLM)中,我们发现该状态的组装方式不同且更早:在第一个注意力层中,关系的措辞被路由到任何可见实体的位置,早期前馈层会在这个融合表示上查找事实。因此,该状态会随关系的表面形式和查询方向而变化,关于同一事实的查询在状态空间中占据一个区域而非一个点,对该事实的操作仅对进入该区域的查询有效。我们将该状态视为访问DLM事实知识的接口,并将其用于两项任务:写入该状态可得到一个知识编辑器,从一个陈述性语句出发,Multi-View Edit会在该区域的每个方向上拟合一个共享值并将其安装到早期MLP块中,在保持源提示可靠性的同时大幅提升了复述和反向问答的性能,而AR编辑器在这些任务上几乎没有提升;读取该状态则表明了一种互补用途:每个实体位置的状态可作为特定关系的检索向量,无需训练,对于两实体查询,它会返回两条证据,而池化、提示式和词汇检索器几乎从未同时返回这两条证据。

英文摘要:

Factual recall is a lookup: some representation inside the network serves as the key, and what that key is made of decides which queries can retrieve the fact, what an edit must cover, and what a retriever can read. We call it the factual access state. In autoregressive (AR) models the subject position enriches attributes largely independently of the relation, and relation-specific selection happens later, at the readout position. In masked diffusion language models (DLMs) we find the state is assembled differently, and much earlier: in the first attention layer the wording of the relation is routed into the position of whichever entity is visible and the early feed-forward layers look the fact up on this fused representation. The state therefore varies with the relation's surface form and with the query direction, so the queries about one fact occupy a region of state space rather than a point, and an operation on the fact succeeds only for queries that enter it. We treat the state as an interface to a DLM's factual knowledge, and put it to two uses. Writing to the state gives a knowledge editor: from one declarative statement, Multi-View Edit fits one shared value per direction across that region and installs it in the early-MLP block, preserving source-prompt reliability while substantially improving paraphrase and reverse question answering, where AR editors gain near zero. Reading it suggests a complementary use: the state at each entity position can serve as a relation-specific retrieval vector with no training, returning both pieces of evidence for two-entity queries on which pooled, prompted and lexical retrievers almost never return both.

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

↑