Diffusion language models reveal new ways to store and edit facts

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

Computation and LanguageArtificial IntelligenceInformation RetrievalMachine Learning

Summary

Remembering facts in language models depends on how information is stored inside them. The authors found that a type of model called a diffusion language model organizes facts differently than previous models, combining entities and relations in early layers. This new understanding lets them change facts more reliably and retrieve connected information better, especially for questions phrased in different ways. Their approach improves how language models handle edits and factual queries without needing extra training.

What this means in practice

  • For language model engineers: Implement knowledge editors that better handle paraphrased and reverse queries by modifying diffusion model internal states.
  • For search system developers: Use relation-specific state vectors from diffusion models to retrieve multiple related evidence pieces for complex entity queries without additional training.

Authors

Yuchen Guo, Zhuoyuan Mao, Yiwen Guo

Abstract

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.