arXiv(opens in a new tab)cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.21553

Writability and the Pathway: A Controlled Study of Knowledge Injection into Addressed Memory

Wei Gao, Cheng Tian, Duan Yang, Jianqing Yin

Abstract

Addressed conditional memory provides a local surface for post-hoc knowledge injection, but a successful write need not transfer to a new question or preserve untargeted behavior. This study combines a controlled GPT-2 comparison with production-memory experiments on Qwen3.8-Flash-Next-FP8 and DeepSeek-V4.1-Flash. Newly initialized modules attached to frozen GPT-2 are tested in a 2×22 \times 2 design: row-only versus row-plus-projection updates, each with or without fixed module-residual anchoring. All arms reproduce 50 trained completions in each of three sampling seeds. Natural-question target-string hits average 5.3% for both row-only arms, 28.7% for unanchored projection updates, and 22.0% with anchoring, while strict answer scores remain zero. Anchoring lowers measured drift; lexical hits do not establish entity-specific retrieval. In the archived Qwen experiments, gradient writes make the designated first answer token top-ranked for 132 independently reset targets, comprising 93 new promotions and 39 already top-ranked targets. A separate matched 24-target comparison gives 13 new promotions with Adam versus two with SPSA at equal iteration counts but unequal computational procedures. An 80-row case includes saved continuations and a replay record, while reformulations bound its scope. Six DeepSeek zero-order cases yield one new target-token promotion and one regression. These results support bounded writing feasibility and separate trained expression, question-form behavior, and preservation; first-token rankings do not establish complete-answer success or universal conditions for writable memory.

1 Introduction

Large language models acquire knowledge through pretraining on massive corpora, while their pretrained weights remain fixed during ordinary inference. When facts change or new information arrives, knowledge injection must address both where to write that information and how the model will use it afterwards. Conditional memory provides a substrate for local writes: table entries are retrieved by deterministic addresses derived from the input token sequence (Cheng et al., 2026).

This determinism suggests directly modifying the rows involved in new facts. The parameter locations can be enumerated, but locality of the update does not guarantee locality of its effects. Other inputs can reuse those rows, and the retrieved vectors pass through shared projections and a context-dependent gate before entering the backbone. Reproducing a trained completion therefore need not establish that the same fact is accessible under a new question.

Prior work already demonstrates post-hoc memory writing. User as Engram studies local row edits for personal memory; ENGRAFT uses multiple fact forms and retention constraints; conditional memory adapters investigate retention-preserving domain adaptation through conditional activation (Li, 2026; fulvian, 2026; Hou and Wang, 2026). The remaining implementation choice examined here is whether writes should also update the shared readout, and how to constrain the resulting drift. We study these choices from a common mounted starting state, asking four connected questions:

  1. Which writing interface suffices to reproduce the trained completions: addressed rows alone, or rows together with shared readout projections?

  2. How do those writes support fact expression under an untrained natural-question form?

  3. What collateral changes appear on untargeted text and unwritten entities?

  4. How does residual anchoring affect these writing and preservation outcomes?

We compare these choices in a 2×22 \times 2 design: newly initialized memory modules are attached to frozen GPT-2, and addressed-row or row-plus-projection updates are crossed with the absence or presence of output-anchored writing (OAW). OAW penalizes changes in module residuals relative to a fixed pre-write reference. All arms share the same 50 canonical training sentences, complete starting model, fact-sampling streams, and update count. Three seeds vary optimization sampling on one initialization and fact set; anchor forward passes make compute unequal despite equal update counts.

The study combines a controlled pathway comparison with an audit of fact expression and collateral changes. Row-only writes already reproduce every trained canonical completion at the tested budget. Shared projection updates change question-form diagnostics and increase measured output drift; OAW lowers drift within each scope while leaving canonical reproduction unchanged. Complete per-seed measurements and saved continuations distinguish trained completion, strict short-answer scores, lexical hits, and unwritten-entity behavior. These results characterize the tested writing interfaces rather than establishing universal prerequisites for writable memory.

The same questions matter for memory tables already trained inside production models. We therefore retain the original Qwen and DeepSeek writing studies alongside the controlled comparison (Section 7). Their token-level outcomes, saved continuations, reformulations, and implementation diagnostics provide complementary evidence, with their original protocols reported separately. Earlier training-dose and controlled-bed observations appear in Appendix J. Together, these studies examine what can be written, how it is expressed, and which measurements delimit the claim; they do not turn a successful completion into a universal writability criterion.