arXiv:2610.27580cs.CLOct 2026

Manuscript Offprint

arXiv:2610.27580

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

Yuchen Guo, Zhuoyuan Mao, Yiwen Guo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 INTRODUCTION

A language model recalls a fact by using an internal representation as a lookup key. We call it the factual access state: its composition determines which queries reach a fact, which states an edit must cover, and what a retriever can read. Knowledge editing changes the value associated with a key (Meng et al., 2022; 2023); evidence retrieval succeeds when query and evidence representations align. Figure 1 previews the mechanism, its contrast with an AR key, and its two uses.

In autoregressive (AR) models, causal masking separates entity access from relation selection. Subject positions accumulate attributes without seeing relation tokens to their right; relation-specific selection occurs later at the final position (Geva et al., 2023; Meng et al., 2022). Locate-then-edit methods therefore update an entity key at the last subject token and recover it from similar prefixes. This is also their limit: the edit is reachable from near-copies of the prefix, but not reliably from paraphrases or reverse questions (Berglund et al., 2023; Kitouni et al., 2024; Yang et al., 2025).

∗^{*}This work was done during internship at LIGHTSPEED.

†^{\dagger}Corresponding author.

Figure

Figure 1: Factual access states. A masked DLM fuses an entity with the queried relation early; the resulting state supports knowledge editing and evidence retrieval.

Masked diffusion language models (DLMs) break this premise. They predict any masked subset with bidirectional attention (Sahoo et al., 2024; Nie et al., 2025; Ye et al., 2025), so a subject can see relation tokens to its right and an object can become a key in its own direction. Recent work transfers AR edit sites to DLMs and makes edits robust to diffusion decoding (Park & Jo, 2026; Yao et al., 2026). Such ports retain edit-prompt reliability, yet generalise poorly to paraphrases and leave reverse retrieval unchanged. If the key were still the entity alone, these failures would be hard to explain. We therefore ask what representation actually drives lookup (App. A).

Mask-native causal tracing ( §2§2) shows that layer-0 attention routes relation wording into the visible entity; those edges carry 84% of the layer's causal effect. MLPs 1–8 then retrieve the fact from the fused state. The pipeline replicates in a second DLM and with subject and object roles swapped. The state therefore depends on the entity, the relation's surface form, and query direction: queries about one fact occupy a region of state space rather than a point. An operation on the fact succeeds only when a query's state enters that region.

A single-view editor fits one point; MULTI-VIEW EDIT ( §3§3) instead builds masked forward, reverse, relation, and contextual views, fitting one shared value per direction in the early MLPs. Source-prompt reliability remains at least 97.6% on CounterFact and BAKE. On BAKE, reverse question answering rises from 22.4% to 63.2% on LLaDA-8B and from 20.3% to 83.6% on Dream-7B, while published AR editors gain under three points. On QAEdit, 32.5% and 44.6% of previously wrong free-form answers become at least partially correct; unrelated-query activation is unchanged.

To read the state, we use each entity position as a relation-specific retrieval vector ( §4§4). Without training or question decomposition, these vectors retrieve both pieces of evidence for two-entity queries on which a pooled vector usually returns one. Removing the layer-0 relation messages eliminates the advantage.

Our contributions are:

• Mechanism of factual access states. Causal tracing and attention surgery locate the relation-fused entity state, with replication across two DLMs and both mask directions.

• Writing to the state: multi-view editing. A shared value per direction covers the statement’s query views; matched-budget ablations and key-space analysis account for the gains.

• Reading the state: evidence retrieval. Per-entity states retrieve both facts in two-entity queries, with early readout and causal support from relation-routing interventions.