betaFeedback

WorksComputer Science

TASK Memory: Beyond Text-Only Memory with Activation Steering and Knowledge Editing against Memory Hallucination

Abstract

LLM agents increasingly rely on external memory, yet they still hallucinate about what they remember. Often the correct memory is retrieved and placed in the prompt, but the answer contradicts it or the memory is applied to the wrong question. We call these use-time memory hallucinations. Across five open models, we find that they arise from the conflict between parametric knowledge and external memory and take three forms: memory-ignoring, where the model returns to a stale fact in its weights (up to 46% of queries); memory-misapplying, where it attributes the memory to unrelated entities (up to 24%, and 49% when retrieval is combined with weight editing); and version confusion, where 53% of answers about revised facts assert the superseded value when both versions remain stored. We propose TASK memory, which goes beyond text-only memory by combining a Text note with Activation Steering and Knowledge editing that share one in-model address. The text holds the content. A removable knowledge edit supplies the address through its subject key and supports multi-hop composition. A pair of steering vectors decides, query by query, whether the model adopts the memory or keeps its own answer; the vectors store no content and control how the text memory is used. On frozen models under a pre-registered, test-once protocol, TASK reduces memory-ignoring hallucinations to at most 1.5% in all ten model-dataset cells and cuts neighbour misuse from 39.2% to 7.5% (+10.8 pp composite on CounterFact). It improves a 300-memory library over BM25 RAG by 16.4 pp, an advantage that holds at 3,000 memories, resolves fact revisions without fact IDs, and adds 7.5 pp of multi-hop accuracy on MQuAKE. 21 of 23 cross-model comparisons (8B-27B, four families) are significant, and TASK beats three recent context-steering methods in 9 of 10 model-dataset cells.

Introduction

Agents built on large language models (LLMs) keep meeting facts that their weights do not contain, or contain in an outdated form: a person changes jobs, a user replaces a device, an API is deprecated. The dominant way to remember such facts is text memory. The fact is written as a note, stored in a memory store, and retrieved into the prompt when a related question arrives [8, 22, 36, 37, 54, 62]. Agents with memory still hallucinate. HaluMem [6] shows that memory systems introduce hallucinations when they extract and update memories, and that these errors carry into question answering. That diagnosis locates the error in what is stored. Here we study the complementary failure: the stored memory is correct and is even in the prompt, yet the answer contradicts it, or the memory is applied where it does not belong. We call these use-time memory hallucinations. They are a form of context-conflicting (unfaithful) hallucination [16, 57] in which the conflicting context is the agent’s own memory.

Use-time memory hallucinations arise because the memory is not read by a blank slate. The model already holds parametric knowledge about the same entities, and the note and the weights compete inside every forward pass. Such knowledge conflicts are known from question answering over retrieved passages [28, 52, 53]. We measure them in the agent-memory setting, on five open models (Qwen3-8B/14B, Llama-3.1-8B, Phi-4, Gemma-3-27B) and three memory settings, and find three types (see Figure 2). The first, memory-ignoring hallucination (Type I), is parametric override. When we split queries by whether the no-memory model still states the pre-update fact, text memory turns out to be adopted 14.8–28.6 pp less often on queries whose stale fact is stored in the weights, in five of ten model–dataset cells (Figure 2a). On those queries the model asserts the stale answer in 4.9–46.3% of cases, even though the correct note is in the prompt. The second, memory-misapplying hallucination (Type II), runs in the opposite direction. On neighbour questions that share the relation but not the subject, and that the no-memory model answers correctly, the model attributes the note’s answer to the wrong entity in 5.3–24.3% of cases on CounterFact, against less than 1% without memory. A natural “RAG + editing” design, which adds a weight edit to the text memory, raises this rate to as much as 49% (Figure 2b). The third, version-confusion hallucination (Type III), appears once facts are revised: when both versions remain in the store, 53% of answers about revised facts assert the superseded value (Qwen3-8B, BM25 RAG; Section C).

Figure 2. Use-time memory hallucinations caused by the conflict between parametric knowledge and external memory (test splits, text memory in context, greedy decoding). (a) Type I, memory-ignoring: adoption of the memory’s answer on paraphrased questions. Filled markers: queries on which the no-memory model states the stale fact, i.e. the old fact is in the weights. Hollow markers: all other queries. The gap is in percentage points; * marks a paired world-level bootstrap 95% CI that excludes 0. (b) Type II, memory-misapplying: on neighbour questions (same relation, different subject) that the no-memory model answers correctly, the rate at which the model instead states the memory’s answer. Without memory this is ≤0.9%\leq0.9\%. With text memory it rises on every model, and with text memory plus a weight edit (T+E) it rises further on four of the five models. All numbers come from frozen predictions (Section A).

Because Types I and II pull in opposite directions, no single global remedy fixes both, and each existing family of methods addresses at most one of them. Better retrieval decides which note enters the prompt, but not how the model weighs it against its weights. Context-faithfulness methods, such as contrastive decoding [42] and global steering directions [2, 29, 59], push the model towards the context uniformly and thereby trade Type I for Type II; in our experiments an ungated evidence direction raises misuse and lowers the composite score below that of text memory alone (0.780 vs. 0.811). Knowledge editing [11, 32, 33] writes the fact into the weights, which amplifies Type II when it is combined with text memory (Figure 2b), and a joint closed-form patch over accumulating versions collapses (§ 5.2). Memory-native models such as MemT-1.0 [31] go further and move the memory content itself into the model: MemT-1.0 trains native memory blocks on 34B tokens, writes the interaction history into a dynamic memory state, and reads it back through a parallel memory attention. This changes where the memory lives, but not who arbitrates when the stored item and the weights disagree. Its memory modules are trained to imitate the backbone given the full textual history, so they inherit the backbone’s way of using context, and in their own evaluation conflicts with real-world knowledge are handled by an instruction to answer “from the knowledge pool . . . rather than the real facts in the real world”.

We take a different view: using a memory is a separate, controllable decision, and use-time memory hallucination is a failure of that decision. For each query the model must decide whether a note should override what it already believes. That decision is made inside the network, so it can be read out and steered there. We therefore propose TASK memory, which goes beyond text-only memory by coupling each Text note with Activation Steering and Knowledge editing, two carriers that act inside the model and share one in-model address (Figure 1 and Figure 3). The text T carries the content, a versioned note that tells the model what the fact is. The activation-steering carrier S carries the use policy: a pair of residual-stream vectors, of which v+v^{+} makes the model adopt the note when the address fires, countering Type I, and v−v^{-} makes it keep its parametric answer when the note is present but the query concerns something else, countering Type II. The knowledge-editing carrier E is a closed-form, removable MLP edit keyed on the subject’s internal representation [13, 32]. Its key doubles as the memory’s address, so that one partial forward pass tells whether a query is about this memory, and its weight change supports multi-hop composition. At read time the address gates all three carriers at once, deciding which notes are shown, which patches are loaded, and which steering direction is applied. Relevance is thus judged in one place, the model’s own representation, rather than separately by a retriever, an editor and a steering rule. When a fact is revised, the old version’s text, patch and vectors are retired together, which removes Type III.

Figure 1. Memory hallucination: the memory is correct, the answer is not. (a) Text-only memory or RAG puts the retrieved note into the prompt and leaves the rest to the frozen model, where the note in the context conflicts with the stale fact in the weights. On a question about the memory, the weights win and the model answers with the stale fact (Type I, memory-ignoring). On a question about another entity, the note wins and the model assigns the memory to the wrong entity (Type II, memory-misapplying). Across our five models these rates reach 46% and 24%, and Type II reaches 49% when retrieval is combined with weight editing. (b) TASK memory goes beyond text-only memory. Each memory object holds Text content, a Knowledge edit ΔWm\Delta W_m whose key u^m\hat{u}_m serves as the in-model address, and a pair of Activation-Steering vectors (v+,v−v^+,v^-) that carry no content. For a query xx, the address response rm(x)r_m(x) is compared with the threshold τm\tau_m. A relevant query shows T, loads E and adds v+v^+, so the model adopts the memory; an unrelated query leaves T and E off and adds v−v^-, so the model keeps its own answer.

Figure 3. TASK memory overview. (a) Write. A visible observation (s,p,om∗)(s,p,o_m^*) is compiled into a memory object bound to the model hash, scope and version. The object contains a text record T, an address key kmk_m at layer ℓE\ell_E with a threshold τm\tau_m calibrated at write time, a closed-form, low-rank and removable patch E keyed on the same address, and steering vectors S =(vm+,vm−)=(v_m^+,v_m^-) trained on the frozen model; these are kept in a text store, a patch library and a steering bank. (b) Read, against memory-ignoring (Type I) and memory-misapplying (Type II) hallucination. Candidates are retrieved by BM25 or semantic search, and one partial forward pass to layer ℓE\ell_E computes each candidate’s address response rmr_m. The shared gate gm=1[rm≥τm]g_m=\mathbb{1}[r_m\ge\tau_m] decides whether the note is shown, whether the patch is loaded as W+BAW+BA, and whether vm+v_m^+ or vm−v_m^- is added at the decision positions of layer ℓS\ell_S; multi-hop composition uses v+v^+ only. All hooks and patches are unloaded after generation. (c) Revise, against version confusion (Type III). A new observation is matched to the top-2 active records by BM25, checked with the address and judged by the agent’s own model. On UPDATE the old version’s T, E and S are retired together; on DIFFERENT the existing record stays active. No fact IDs are used.

The steering carrier is deliberately not a memory store. Without the text note it answers 1.7% of CounterFact queries, the same as the unmodified model. What it changes is the arbitration: memory-ignoring hallucinations fall to at most 1.5% in all ten model–dataset cells, and neighbour misuse falls from 39.2% to 7.5% (Qwen3-8B, CounterFact). This is the key difference from parametric-memory approaches such as knowledge editing, parametric RAG [43] and MemT-1.0, which put new content into weights or a trained memory state. TASK keeps content in text, where it can be inspected, versioned and deleted, and writes into the model only a bidirectional controller that applies to a single memory and can be removed.

We evaluate TASK memory on five frozen models from four families (8B–27B) and six benchmarks under a pre-registered protocol. On single facts it improves over text memory by 10.8 pp on CounterFact and 5.7 pp on zsRE (Qwen3-8B, composite of adoption and locality). For an agent holding 300 memories it improves over BM25 RAG by 16.4 pp and 16.2 pp, mainly by removing Type II hallucinations caused by retrieved distractors, and the advantage holds at 3,000 memories (0.926 for address-verified T + S vs. 0.731). Address-assisted supersession, which needs no fact IDs, raises accuracy on revised facts by 48.7–54.7 pp, and on MQuAKE the weight carrier adds 7.5 pp of multi-hop accuracy. Across models, 21 of 23 comparisons are significant, and TASK beats knowledge-selection steering [29], ContextFocus [2] and CAST [20] in 9 of 10 model–dataset cells. The experiments also reveal a clear division of labour among the carriers: the weight change of E matters for composition but not for single facts, and training the steering vectors on the edited model brings no reliable gain over training them on the base model.

Contributions. First, we define use-time memory hallucination and its three types, and show on five models that memory-ignoring and memory-misapplying hallucinations arise from the two-way conflict between parametric knowledge and external memory, with weight edits added to retrieval amplifying the latter (Figure 2). Second, we propose TASK memory, which combines text, activation steering and knowledge editing in one memory object: text carries the content, a removable edit provides an in-model address and compositional recall, and a paired adopt/restrain steering policy arbitrates each query, with the address gating prompt, weights and activations together across a write, read and revision lifecycle that detects revisions without fact IDs. Third, we provide pre-registered evidence on five models against twelve published baselines, together with an analysis showing that S learns a shared adopt/restrain direction plus a memory-specific residual that is effective only behind the address gate.

Related Work

Hallucination and memory hallucination. Hallucination surveys separate output that conflicts with world facts from output that conflicts with the input or context the model was given [16, 17, 57]. Agent memory adds a new source of context, so it adds new ways to hallucinate. HaluMem [6] evaluates memory systems operation by operation (extraction, updating, question answering). It finds that hallucinations are introduced and accumulate when memories are extracted and updated, and then propagate into answers. Its remedy is to store the right memories. We study what remains when the stored memory is right: the model can still ignore it, misapply it to another entity, or answer from a superseded version. These use-time memory hallucinations are context-conflicting hallucinations caused by the conflict between parametric knowledge and the agent’s own memory. They cannot be fixed by better storage alone, which is why TASK intervenes in how the model reads a memory.

Text memory for agents. Most agent memories store natural-language records and retrieve them into the prompt. Examples are retrieval-augmented generation [22], operating-system-style paging [36], reflective memory streams [37], forgetting-curve stores [62], and production systems that extract, consolidate and link memories [8, 54]. Long-conversation benchmarks such as LoCoMo [30] and LongMemEval [51] measure whether the right memory is retrieved and answered from. These systems optimise what reaches the context. TASK is complementary: it keeps a text store and controls how the model uses what reaches the context. On LoCoMo we compare against Mem0 and A-Mem with the same answering model.

Parametric memory: editing, parametric RAG and memory-native models. Knowledge editing writes facts into weights. Locate-then-edit methods treat MLPs as key–value stores [13] and insert closed-form updates: ROME [32], MEMIT [33], and AlphaEdit [11] with null-space constraints. Memory-based editors keep side memories with scope classifiers or codebooks: SERAC [35], GRACE [15], WISE [47], Larimar [9]. IKE [60] edits in context, and RECIPE [7], DeCK [3] and LightEdit [19] combine retrieval with prompts or decoding that suppress the old fact. Sequential editing remains fragile [26, 56]. Our EE follows the ROME lineage; what differs is how TASK uses it. The edit’s subject key also serves as the address that gates text and steering. Each memory keeps its own patch, loaded only when its address fires, and a patch is retired when its memory is revised. Parametric RAG turns documents into LoRA weights generated by a hypernetwork and combines them with text RAG [43, 44]. This resembles our T+E, but without per-query arbitration. Memory-native models make memory part of the architecture. MemoryLLM [50] keeps a self-updating memory pool inside the transformer, and Temp-LoRA [49] trains a temporary adapter on the history. MemT-1.0 [31] is the most recent and most scaled example. It adds native memory blocks to selected layers. A dynamic per-trajectory memory state is written token by token with a gated delta rule and read through a parallel memory attention, and Mixture-of-Storage scales its capacity. The memory modules are trained with the backbone frozen, on 34B tokens of continued pre-training and post-training, by distilling the backbone that sees the full textual history. After writing, the history text is no longer needed in context. MemT-1.0 and TASK both bring memory into the model’s computation, but they put different things there (see Table 1). MemT-1.0 internalises the content of the history in a trained, fixed-size state; it is evaluated on recall and use of that history, and its training target is the backbone’s own full-context behaviour. TASK leaves the content in an inspectable text store and writes into the model only a per-memory use policy, an address and an adopt/restrain steering pair, which act on a frozen, off-the-shelf model without any pre-training. The two are therefore orthogonal. TASK targets the arbitration failures of Figure 2, which full-context imitation does not address by construction. A memory-native model could also expose its memory readout to the same kind of address-gated steering.

ParadigmMemory contentWritten into the modelBase-model trainingArbitration with parametric knowledgePer-memory removal
Text memory / RAG [8, 22, 54]textnothingnoneleft to the modeldelete record
Knowledge editing [11, 32, 33]weightsfact (weight delta)noneedit replaces parametric factpartly (side memories)
Context-faithfulness steering [2, 29, 42]textone global direction / decoding rulenonealways favour context–
Parametric RAG [43]text + generated LoRAdocument contenthypernetworkleft to the modeldrop adapter
MemT-1.0 [31]trained native memory statehistory content34B-token memory trainingimitate full-context backboneno (fixed-size state)
TASK (ours)text (+ local patch)address + adopt/restrain policynone (frozen)per query, address-gated v+/v−v^{+}/v^{-}yes (versioned, unloadable)

Table 1. Where the memory lives and who arbitrates. “Content in model”: whether the fact or history itself is written into weights or a trained state. “Arbitration”: how the system decides, per query, between the memory and parametric knowledge.

Knowledge conflicts and context faithfulness. LLMs can over-rely on parametric knowledge and ignore context [28]. They can also be very receptive to coherent but wrong context [52]. Both behaviours are surveyed by Xu et al. [53].

Existing remedies push the model towards the context, through contrastive decoding (CAD) [42], attention-head or SAE-feature interventions [23, 59], adaptive gating of parametric participation [25], or global steering directions that favour the context, such as ContextFocus [2] and the knowledge-selection direction (KSD) of Lou et al. [29], a signed diff-of-means direction that transfers across conflict types and models. These methods treat faithfulness as a global property of a prompt. In an agent memory the same note is relevant to some queries and irrelevant to others, so a global push turns parametric override into memory override. TASK makes the decision per memory and per query: the address selects between an adopt and a restrain vector. We compare directly against CAD, KSD, ContextFocus and CAST on five models.

Activation steering, and steering as memory. Adding vectors to the residual stream steers behaviour: ActAdd [46], CAA [39], ITI [24], representation engineering [64]. CAST [20] applies a behaviour vector only when the hidden state is similar to a condition vector. We share the idea of gating, but our gate is a per-memory address taken from the edit key. Our steered behaviour is evidence use, not refusal. Several works store knowledge as activations or representation edits: SAKE [41], REACT [61], MEGA [4], RILKE [27]. Neural Procedural Memory [58] stores agent skills as retrieved steering vectors and finds them complementary to textual workflow memory. Jumle [18] show that facts barely survive when stored as steering alone (at most 15% clean use, against 96–98% in context). This negative result is consistent with our design choice: TASK never asks S to carry content (S alone: 1.7%), only to control how text content is used. Chavira Juárez et al. [5] argue conceptually that memory agents should divide labour among retrieval, steering and weight editing. TASK gives one concrete instance of that division, with experiments.

Method: TASK Memory

Setting and notation

An agent runs a frozen decoder-only LM fθf_\theta with residual stream ht(ℓ)∈Rdh_t^{(\ell)} \in\mathbb{R}^d at layer ℓ\ell and token tt. During deployment it receives observations, i.e. facts it is allowed to see, and later queries. A structured memory mm comes from one observation: a subject sms_m, a relation prompt pmp_m that contains sms_m, and a new object om∗o_m^*. A free-form memory is a sentence extracted from a dialogue session.

Use-time memory hallucination. Let omoldo_m^{\mathrm{old}} be the pre-update object, and let Nm\mathcal{N}_m be the neighbour queries that are not about mm but that the no-memory model answers correctly. Given a correct memory mm in the store, an answer yy to a query xx is a memory-ignoring hallucination (Type I) if xx is about mm and yy asserts omoldo_m^{\mathrm{old}} instead of om∗o_m^*; a memory-misapplying hallucination (Type II) if x∈Nmx \in\mathcal{N}_m and yy asserts om∗o_m^*, attributing the memory to the wrong entity; and a version-confusion hallucination (Type III) if mm has been revised to m′m' and yy asserts om∗o_m^* instead of om′∗o_{m'}^*. Avoiding the first two requires adoption, answering om∗o_m^* on queries about mm even when the weights hold the stale object, and restraint, answering as the model would without mm on queries that are not about mm, even when mm is in the context. TASK assigns these requirements to different components: the steering pair provides adoption and restraint against Types I and II, the address decides which memories are in play at all, and supersession at revision time removes Type III.

The memory object

T: content. A JSONL record holds the fact text, scope, version, source, a retrieval key (subject and relation cue) and a supersedes link. T is the only carrier of content in TASK memory.

Address. Let kt∈Rdffk_t\in\mathbb{R}^{d_{\mathrm{ff}}} be the input of the down-projection of the MLP at layer ℓE\ell_E at token tt. Following the key–value view of MLPs [13, 32], the key of mm is

km=Ec[kts(c)],k_m=\mathbb{E}_c\left[k_{t_s}(c)\right],

the average of ktsk_{t_s} at the last subject token tst_s over a set of writer contexts cc. These contexts are the relation prompt, mined same-relation templates from the training split, the evidence-in-context form, and generic Wikitext prefixes. We estimate the second moment C=E[kkT]C=\mathbb{E}[k k^{\mathsf{T}}] once on about 7×1057\times10^5 Wikitext tokens [34] and set

um=C−1km,u^m=umkmTum,rm(x)=max⁡tu^mTkt(x).(1)u_m=C^{-1}k_m,\qquad\hat{u}_m=\frac{u_m}{k_m^{\mathsf{T}}u_m},\qquad r_m(x)=\max_t\hat{u}_m^{\mathsf{T}}k_t(x). \tag*{(1)}

By construction rm=1r_m=1 on the memory’s own key. Directions that ordinary text uses heavily are down-weighted by C−1C^{-1}. The threshold τm\tau_m is calibrated per memory at write time: it is the midpoint between the minimum response on the memory’s own contexts and the maximum response on hard negatives (same relation, other subjects). The gate is gm(x)=1[rm(x)≥τm]g_m(x)=\mathbb{1}[r_m(x)\ge\tau_m]. For free-form facts, where the subject rarely appears verbatim in questions, we use a semantic address in the same spirit. The writer asks the model for three questions that the fact answers. The key is the centred, normalised mean-pooled layer-ℓS\ell_S state of these questions and the statement. τm\tau_m is calibrated against other memories’ self-questions, and the most similar candidate always passes.

E: a removable closed-form patch on the same key. Following ROME [32], we optimise a residual δm\delta_m at the output of layer ℓE\ell_E with Adam (25 steps, lr 0.5). The objective is the likelihood of om∗o_m^* across the writer contexts, a KL term that keeps “{sm}\{s_m\} is a” unchanged, weight decay and a norm cap. The rank-one update

ΔWm=δmumTkmTumsatisfiesΔWmkm=δm.(2)\Delta W_m=\frac{\delta_m u_m^{\mathsf{T}}}{k_m^{\mathsf{T}}u_m}\quad\text{satisfies}\quad\Delta W_m k_m=\delta_m. \tag*{(2)}

For several memories we solve ΔW=R(λI+KTC−1K)−1(C−1K)T\Delta W = R(\lambda I + K^{\mathsf{T}}C^{-1}K)^{-1}(C^{-1}K)^{\mathsf{T}} with residuals RR and keys KK. Each patch is stored as low-rank factors and applied by a hook as the effective weight W+BAW + BA. It is bound to the model hash and can be unloaded bit-exactly. In TASK, E plays two roles. Its key is the address of Equation (1), and its weight change provides associative recall that multi-hop questions can chain through (§ 5).

S: a paired use policy. Each memory gets two vectors vm+,vm−∈Rdv_m^{+}, v_m^{-} \in\mathbb{R}^{d}. They are added to the residual stream at the output of layer ℓS\ell_S, only at the decision positions, i.e. the last prompt token and all generated tokens, so the encoding of the question itself is untouched:

ht(ℓS)←ht(ℓS)+gm(x)vm++(1−gm(x))vm−.(3)h_t^{(\ell_S)} \gets h_t^{(\ell_S)} + g_m(x)v_m^{+} + (1-g_m(x))v_m^{-}. \tag*{(3)}

Only the two vectors are trained; θ\theta is frozen, but gradients still flow through it. The objective has three terms:

Lm=Ec∈Cm+[−log⁡pθ,vm+(om∗∣Tm,c)]+Ec∈Cm−[KL⁡(pθ(⋅∣c)∥pθ,vm−(⋅∣Tm,c))]+λ∥vm+∥2+∥vm−∥2rms⁡ℓS2.(4)\mathcal{L}_m = \mathbb{E}_{c\in C_m^{+}}\left[-\log p_{\theta,v_m^{+}}(o_m^{*}\mid T_m,c)\right] + \mathbb{E}_{c\in C_m^{-}}\left[\operatorname{KL}\left(p_{\theta}(\cdot\mid c)\mathbin{\|}p_{\theta,v_m^{-}}(\cdot\mid T_m,c)\right)\right] + \lambda\frac{\lVert v_m^{+}\rVert^{2}+\lVert v_m^{-}\rVert^{2}}{\operatorname{rms}_{\ell_S}^{2}}. \tag*{(4)}

The adopt term is taken over contexts Cm+C_m^{+} that ask about sms_m with the note present, where the gate is on and the gradient reaches vm+v_m^{+}. The restrain term is taken over hard negatives Cm−C_m^{-} that share the relation but not the subject and contain mm’s note, which is exactly where text memory is misused; there the gate is off, and vm−v_m^{-} is trained to reproduce what the model says without the note. Vectors are zero-initialised and trained with Adam for 40 steps at lr 0.02×rms⁡ℓS0.02 \times\operatorname{rms}_{\ell_S}. We call this version Sind_{\mathrm{ind}}. A variant, Scond_{\mathrm{cond}}, trains the vectors on the edited model θ+ΔWm\theta+ \Delta W_m to test whether steering should compensate for the residual errors of the edit (§ 5.1); unless stated otherwise TASK uses Sind_{\mathrm{ind}}.

Reading: one address, three gates

Given a query xx, BM25 [40] first returns candidates: the top two for structured memories, and the union of the BM25 and semantic top five for dialogue facts. One partial forward pass to layer ℓE\ell_E then yields rm(x)r_m(x) for every candidate. Only memories with gm=1g_m = 1 are shown as text and have their own single-memory patches loaded (summed; “gated E”), and their steering is applied by Equation (3). A single context manager owns all patch and steering hooks and removes them after generation. Relevance is thus decided once, by the model’s own representation, so the three interventions cannot contradict each other: a note is never shown without its patch, and an adopt vector is never applied to an unrelated query.

Read rule for composition. v−v^{-} assumes that a query can be attributed to individual memories. In multi-hop questions the bridge entity does not appear in the question, so v−v^{-} would suppress evidence that is needed. For multi-hop composition we therefore apply only v+v^{+}, and paired steering elsewhere.

Revision and supersession

When a new observation arrives, BM25 retrieves the top two active records, the observation’s address response is checked against them, and the agent’s own frozen model judges with a fixed prompt whether the observation gives a new value for the same entity and attribute (UPDATE) or states a different fact (DIFFERENT). On UPDATE, the old record is superseded, and its E and S leave the active set together; no fact IDs, relation IDs or version numbers are involved. Retiring the old E is necessary because two versions have almost identical keys, and a joint closed-form solve over both collapses. Retiring the old S proves equally necessary, since otherwise the adopt vectors of both versions fire and each pushes its own object (§ 5.2).

Experimental Setup

Models. We use five frozen open models from four families: Qwen3-8B (primary) [38], Llama-3.1-8B-Instruct [14], Qwen3-14B, Phi-4 (14B) [1] and Gemma-3-27B [12], all run in BF16 with greedy decoding (non-thinking mode for Qwen3). For each model, ℓE\ell_E is chosen on training-split worlds by one fixed rule, edit-only paraphrase accuracy over three candidate layers, which gives layers 6/4/9/7/11 in the order above; ℓS\ell_S is set by relative depth (14/13/16/16/25). All other hyperparameters were chosen once on Qwen3-8B development data and reused unchanged for every model.

Benchmarks and protocols. The protocols vary along two axes: how the memory arrives (provided, retrieved from a library, or accumulated with revisions) and what form the fact takes (structured or free-form). The provided-evidence protocol isolates the use of a memory: CounterFact [32] and zsRE [21] each contribute 300 test worlds with one memory per world, and the note is in the context for both related and unrelated queries. In the library protocol, one agent holds all memories of the split (300, and 1k and 3k with training-split distractors) and must retrieve before reading. The continual-revision protocol inserts 100 facts and then revises 50 of them. Multi-hop composition is evaluated on MQuAKE-CF-3k [63] (200 cases, 600 questions), where only the edited base facts are written. Free-form dialogue memory is evaluated on LoCoMo [30], split by conversation into 2 development and 8 test conversations with 1,230 test questions of categories 1–4. Results on LongMemEval with oracle histories [51] and on AppWorld [45] with a local ReAct agent [55] are in Section D.

Metrics. Adoption is paraphrase and canonical accuracy on queries about the memory. Restraint is measured by locality preserved, i.e. one minus the damage rate on neighbour queries that the no-memory model answers correctly, and by misuse, the rate at which a neighbour answer asserts the memory’s object. These quantities map directly onto the hallucination types of § 3. The Type I rate is reversion, the fraction of answers that assert the pre-update object, reported on queries whose stale fact is stored in the weights; the Type II rate is misuse; and the Type III rate is the stale-version rate, the fraction of answers about a revised fact that assert the superseded value. The composite is the harmonic mean of paraphrase accuracy, canonical accuracy and locality preserved, so it is low whenever one of the three is low. Answers are classified by a normalised assertion matcher that ignores negated mentions. On LoCoMo we report LLM-judge accuracy under three judges (Qwen3-8B, Qwen3-14B and GLM-5.3) together with input tokens.

Baselines. Six context-use methods receive the same note as TASK: IKE [60], CAD [42], CAA [39], KSD [29], ContextFocus [2] and CAST [20], with strengths tuned once on Qwen3-8B development data. The parametric carriers are ROME, MEMIT, AlphaEdit and WISE in their original EasyEdit implementations [48]. For dialogue we compare with Mem0 [8] and A-Mem [54], both ingesting every turn with the same local model, and with the full conversation in context. Control conditions replace S with norm-matched random vectors, vectors at the wrong layer, another memory’s vectors, or an ungated global evidence vector.

Protocol and statistics. Train/dev/test splits are hashed by subject (or by conversation) and frozen before any model output. Hyperparameters and read rules were selected on train or dev data, the primary test comparisons were registered before their outputs existed, and each test set was run once. Confidence intervals are 95% paired-bootstrap intervals over worlds (or conversations, or subjects in clustered settings) with 2,000 resamples [10]; “significant” (*) means that the interval excludes 0.

Results

We organise the results around three questions. RQ1 asks whether, once a correct memory is in context, TASK prevents memory-ignoring (Type I) and memory-misapplying (Type II) hallucinations. RQ2 asks whether, when one agent holds many memories that keep changing, the shared address reads the right ones and avoids version confusion (Type III). RQ3 asks whether updated facts can be composed with what the model already knows. Table 2 lists the pre-registered test comparisons on the primary model.

BenchmarkTASK configurationBaselineTASKBaselineΔ\Delta [95% CI]
RQ1CounterFact (300 worlds)T + ST0.9190.811+10.80 [7.80, 14.16]*
zsRE (300 worlds)T + ST0.8920.835+5.65 [1.20, 10.20]*
LoCoMo (1,230 q.)retrieved T + Sretrieved T0.3420.328+1.38 [0.21, 2.75]*
RQ2CounterFact library (300)address-verified T + gated E + SBM25 RAG0.9460.782+16.36 [12.99, 20.31]*
zsRE library (300)address-verified T + gated E + SBM25 RAG0.9650.803+16.23 [11.29, 22.11]*
LoCoMosemantic-address T + SBM25 RAG0.3420.308+3.41 [0.07, 7.05]*
LoCoMosemantic-address T (text only)BM25 RAG0.3280.308+2.03 [-1.21, 5.51]
RQ3MQuAKE-CF-3k (600 q.)T + E + S(v+v^{+})T0.7650.690+7.50 [3.33, 11.83]*
AnalysisCounterFactT + E + Scond_{\mathrm{cond}}T + E + Sind_{\mathrm{ind}}0.8830.867+1.55 [-1.41, 4.22]
zsRET + E + Scond_{\mathrm{cond}}T + E + Sind_{\mathrm{ind}}0.8820.891−0.91 [-3.30, 0.00]

Table 2. Pre-registered test comparisons (Qwen3-8B; one frozen configuration; each test set run once). Δ\Delta in percentage points with 95% paired-bootstrap CI; bold and *: CI excludes 0. The upper bound 0.00 in the last row is exactly zero, so that interval includes 0. Composite = harmonic mean of paraphrase accuracy, canonical accuracy and locality preserved.

RQ1: Preventing memory-ignoring and memory-misapplying hallucinations

S improves adoption and restraint at the same time. On CounterFact (Table 3), S raises paraphrase adoption from 88.2% to 96.7%. It also cuts neighbour misuse from 39.2% to 7.5% and raises locality from 67.8% to 81.7%: +10.8 pp composite. A single direction cannot achieve both: the ungated evidence vector increases misuse to 43.5% and lowers the composite below text memory, while norm-matched random vectors and wrong-layer vectors leave behaviour unchanged. Without the note, S answers 1.7% of queries, the same as the unmodified model, so its effect lies in how the note is used rather than in any stored content.

MethodCounterFact (300) Para.Canon.Loc.Misuse↓Comp.zsRE (300) Para.Canon.Loc.Misuse↓Comp.
No memory1.80.7100.01.70.0151.71.3100.00.00.022
T (text memory)88.291.767.839.20.81191.792.770.45.70.835
T + global evidence vector (ungated)88.293.360.943.50.78093.095.066.78.30.827
T + random vector (norm-matched)88.391.069.138.80.81692.792.370.45.00.837
T + vector at wrong layer88.391.768.739.20.81691.792.768.55.70.827
T + another memory’s S91.594.778.312.80.87592.393.772.21.00.849
S only (no text)1.70.783.91.50.0141.01.387.00.00.017
T + S (TASK)96.799.381.77.50.91998.7100.074.12.30.892
E only79.795.394.82.80.89372.093.0100.00.00.866
T + E96.899.050.452.70.74597.399.068.55.00.858
T + E + Sind_{\mathrm{ind}}97.399.770.016.30.86798.3100.074.12.70.891
T + E + Scond_{\mathrm{cond}}97.399.073.510.30.88398.3100.072.21.70.882

Table 3. Provided evidence (test, Qwen3-8B). The note is in context for related and unrelated queries. Para./Canon.: adoption on paraphrased/canonical queries (%); Loc.: locality preserved (%); Misuse: neighbour answers that assert the memory’s object (%, all neighbours); Comp.: composite.

Both types of memory hallucination fall at once. Figure 4 revisits the two hallucination types of Figure 2 on all five models. For Type I, reversion to the stale answer on queries whose stale fact is stored in the weights falls from 4.9–46.3% under T to 0–1.5% under T + S, significantly in all ten model–dataset cells; on Llama-3.1-8B CounterFact, for example, it drops from 46.3% to 0% (−46.3 pp[-53.5, -39.1]). The adoption gap between stored and not-stored facts, which T shows in five cells, disappears, and no cell has a positive significant gap under T + S. For Type II, misuse on CounterFact neighbours that the model knows falls from 5.3–24.3% to 1.2–7.4%, significantly on four of five models; on the fifth, Qwen3-14B, T misuses only 5.3% to begin with. That both failures shrink together, which no single global direction can achieve, indicates that S learns an arbitration policy rather than a bias towards context.

Figure 4. TASK reduces both types of use-time memory hallucination on five models and two datasets (test). (a) Type I, memory-ignoring: reversion to the stale parametric answer on queries whose stale fact is in the weights. (b) Type II, memory-misapplying: misuse on neighbour questions that the no-memory model answers correctly. This subset is why the values differ from the misuse over all neighbours in Table 3 (e.g. 24.3% vs. 39.2% for Qwen3-8B with T). Bars give values in %. Per-cell bootstrap CIs are in Section A.

What S learns: a shared direction behind a per-memory gate. We decompose every memory’s vectors into the mean over all 300 memories (“shared”) and a residual (Appendix Table 13). With each memory’s own gate kept, the shared direction alone reaches 0.909, statistically indistinguishable from full S, 0.919; full S − shared = +0.99 pp[-1.07, 3.00]); the memory-specific residual alone reaches 0.866; and another memory’s vectors recover about 60% of the gain (0.875). Most of what S encodes is therefore a reusable “adopt / restrain the note” direction, with a smaller memory-specific part. What makes this direction useful is the gate: the same kind of direction applied without a per-memory gate (ContextFocus, KSD) or behind a generic hidden-state condition (CAST) is significantly worse in 9 of 10 model–dataset cells (§ 5.4). The address, not the vector, is where per-memory specificity lives.

Edit-aware steering is not needed. Training S on the edited model (ScondS_{\mathrm{cond}}) was the original motivation for coupling steering with editing. ScondS_{\mathrm{cond}} does depend on its edit: unloading E lowers its dev paraphrase accuracy from 197 to 187 of 200. It also asserts the new object on fewer neighbours (62 vs. 98 of 600). But its composite advantage over SindS_{\mathrm{ind}} is not significant on CounterFact (+1.55 pp) or zsRE (−0.91 pp). Across eleven settings it is significantly positive once and significantly negative three times (Appendix Table 14). We therefore use SindS_{\mathrm{ind}}. Most of what S learns is decoupled from the particular edit.

RQ2: Reading the right memories from a growing library

The address prevents memory-misapplying hallucinations in a library. With 300 memories, BM25 retrieves a distractor note for many unrelated queries; the model then applies it, and locality drops to 64.9% (Table 4, left). Verifying candidates with the in-model address raises locality to 96.9%. Adding S on top lifts adoption: +16.4 pp composite on CounterFact and +16.2 pp on zsRE over BM25 RAG. Without the address, weight memories do not scale: an always-on joint patch drops locality to 51.3%, whereas the gated per-memory patches keep it at about 95%. In this setting T + S and T + gated E + S perform alike (0.950 vs. 0.946). On structured single facts the address is what E contributes; its weight change adds nothing.

MethodCounterFact library Para.CounterFact library Loc.CounterFact library Comp.zsRE library Para.zsRE library Loc.zsRE library Comp.MethodCurrentStale↓Loc.
BM25 RAG (T)83.364.90.78285.768.40.803BM25 RAG, naive append68.750.745.0
BM25 RAG + S80.878.50.83791.770.20.846BM25 RAG + supersession94.30.753.3
BM25 RAG + Eall_{\mathrm{all}}93.251.30.73691.070.20.843RAG + one E over all versions1.33.30.0
Address-verified T82.296.90.89889.794.70.923Address-verified T93.00.093.3
Address-verified T + S89.396.90.95096.394.70.970Addr.-verified T + gated E99.00.095.0
Address-verified T + gated E89.794.70.94294.394.70.959+ S98.70.095.0
Addr.-verified T + gated E + S90.095.20.94695.394.70.965

Table 4. One agent, 300 memories (test; BM25 top-2 candidates) and continual revision (dev; 100 insertions then 50 revisions). EallE_{\mathrm{all}}: one joint patch over all memories, always on.

Scaling. From 300 to 3,000 memories (Figure 5), BM25 RAG degrades from 0.782 to 0.731, because locality falls to 56.3%. Address-verified T + S stays at 0.926, with locality above 91%, and the full configuration with gated E stays at 0.916.

Figure 5. Scaling the library to 3,000 memories (CounterFact test queries; distractors are training-split memories written by the same writer). Dashed: BM25 retrieval; solid: address-verified reading. Colours follow the carriers as in Figure 2 and Figure 4. At 300 memories, address-verified T and T + S have the same locality (96.9%), so their markers coincide in (b). The full configuration with gated E (address-verified T + gated E + S, Table 4) scores 0.946 / 0.928 / 0.916 and lies between the two upper curves in (a); it is omitted for legibility.

Version-confusion hallucinations: supersession is a precondition for steering. Naive appending leaves both versions of a fact in the library, and half of the answers assert the old value (Table 4, right). Placing both versions in one joint closed-form patch collapses it (current-value accuracy 1.3%). With address verification and gated E, current-value accuracy is 99.0% with no stale answers. On the harder test version of this setting (Section C), all Qwen3-8B methods drop to 33–42% accuracy on revised facts when versions coexist. On Llama-3.1-8B, S even amplifies the conflict (−28.7 pp): the adopt vectors of both versions fire, and each pushes its own object. Revision must therefore retire the old S together with the old T and E. Our automatic supersession, which combines the address with the agent’s own judge and uses no fact IDs, recovers this. It improves over not superseding by 48.7 pp on Qwen3-8B and 54.7 pp on Llama-3.1-8B (both significant), matches oracle links exactly on Llama-3.1-8B, and falls 10.7 pp short of them on Qwen3-8B, whose judge misses 14% of true updates. In terms of Type III hallucination, the stale-version rate of address-verified T + S on revised facts falls from 54.7% to 10.0% on Qwen3-8B and from 48.0% to 0% on Llama-3.1-8B (Table 11).

Model · methodNo sup.No sup.: stale↓OracleAutoAuto: stale↓Auto: unrevised
Qwen3-8B · address-verified T0.3330.5330.8600.7930.0870.893
Qwen3-8B · address-verified T + S0.3400.5470.9330.8270.1000.940
Qwen3-8B · address-verified T + gated E + S0.4200.4730.9400.8930.0530.953
Llama-3.1-8B · address-verified T0.7000.1330.5930.5930.0000.453
Llama-3.1-8B · address-verified T + S0.4130.4800.9600.9600.0000.967
Llama-3.1-8B · address-verified T + gated E + S0.3800.5000.9530.9530.0000.967

Table 11. Revised facts in the version-conflict test (150 revised facts per model). Accuracy columns give the rate of answers with the current value; stale columns give the rate of answers with the superseded value (Type III). For reference, BM25 RAG without supersession has a stale rate of 0.533 (Qwen3-8B) and 0.140 (Llama-3.1-8B).

RQ3: Composing updated facts

Multi-hop questions require chaining an updated fact through the model’s own knowledge, and here the weight carrier matters (Table 5, left). Text memory reaches 69.0% multi-hop accuracy, and adding E raises it to 76.8%; TASK (T + E + S+^{+}) reaches 76.5%, +7.5 pp [3, 3, 11, 8]. The gain is due to E, not S. Reversion to the old answer halves (6.5%→3.0%). Paired steering hurts here (62.2%): the bridge entity is not in the question, so v−v^{-} suppresses notes that are needed. This motivates the v+v^{+}-only read rule for composition. As a carrier, our subject-keyed closed-form patch is stronger than the original ROME, MEMIT and AlphaEdit implementations under the same requests (Table 5, right). S also improves every one of these editors when stacked on top.

MethodMulti-hopCaseOld-answer↓Edit methodE onlyT + ET + E + S
No memory2.84.027.5EasyEdit ROME0.7560.8360.860
T69.079.56.5EasyEdit MEMIT0.7390.8520.876
T + S (paired)62.275.09.2EasyEdit AlphaEdit0.7200.8550.856
T + S (v+v^{+} only)69.380.56.3Ours (closed-form, subject key)0.8660.8580.891
E only5.58.014.3
T + E76.885.53.2
T + E + S (v+v^{+} only)76.585.03.0

Table 5. Composition and the parametric carrier. Left: MQuAKE-CF-3k test (200 cases, 600 questions; only edited base facts are written). Right: our closed-form E against the original EasyEdit implementations on zsRE test (300 edits).

Generality across models and against baselines

Across models. The same frozen protocol holds on all five models (Table 6, top): 21 of 23 cross-model comparisons are significantly positive. The gain is largest where the model resists its context most. Llama-3.1-8B adopts text memory poorly (CF composite 0.518) and gains +43.0 pp. Qwen3-14B already follows context well (0.923) and gains +2.2 pp. This matches the conflict analysis: models with larger parametric override (Figure 2a) leave more room for arbitration.

ModelCF: TCF: T+SCF Δ1\Delta_1CF lib. Δ2\Delta_2zsRE Δ1\Delta_1zsRE lib. Δ2\Delta_2MQuAKE Δ3\Delta_3
Qwen3-8B0.8110.919+10.80*+16.36*+5.65*+16.23*+7.50*
Llama-3.1-8B0.5180.948+43.02*+49.37*+28.04*+41.40*+33.83*
Qwen3-14B0.9230.945+2.19*+6.05*+7.90*+11.60*+1.17
Phi-4 (14B)0.7560.956+19.97*+12.99*+8.20*+20.12*+36.00*
Gemma-3-27B0.8490.888+3.92*+17.65*−4.61n/an/a
Model · dataset−IKE−CAD−CAA−KSD−ContextFocus−CAST
Qwen3-8B · CF+34.67*+23.44*+8.89*+11.51*+10.60*+10.37*
Qwen3-8B · zsRE+0.36+15.16*+9.96*+6.18*+11.37*+5.84*
Llama-3.1-8B · CF+39.37*+55.06*+38.37*+41.37*+41.90*+36.90*
Llama-3.1-8B · zsRE+27.06*+53.21*+43.02*+27.56*+24.27*+26.29*
Qwen3-14B · CF+2.73*+7.20*+2.41*+2.66*+2.19*+2.09*
Qwen3-14B · zsRE−4.06+11.32*+12.04*+6.75*+8.04*+7.12*
Phi-4 · CF+5.91*+21.48*+24.41*+19.21*+19.28*+21.14*
Phi-4 · zsRE−1.31+16.29*+17.45*+8.64*+15.83*+8.43*
Gemma-3-27B · CF+26.37*+13.86*+3.52*+3.53*+3.92*+3.68*
Gemma-3-27B · zsRE−9.71*−0.69−2.35−4.61−2.60−4.25

Table 6. Table 6: Same frozen protocol on five models (test). Top: gains of TASK. Δ1\Delta_1: T+S − T; Δ2\Delta_2: address-verified T + gated E + S − BM25 RAG (300-memory library); Δ3\Delta_3: T+E+S+ − T (MQuAKE). Bottom: T+S (TASK) minus each context-use baseline with the same note (composite, pp). Bold and *: 95% CI excludes 0, in either direction (full CIs in Section D). n/a: not run for Gemma-3-27B, as fixed in advance for compute reasons.

Against context-use baselines. With the same note in context, TASK significantly beats the three steering methods closest to it (KSD, ContextFocus, CAST) in 9 of 10 model–dataset cells, and CAA in 9 of 10 (Table 6, bottom). The exception is Gemma-3-27B on zsRE. There S raises paraphrase accuracy (0.907→0.967) but increases locality damage, and no difference to the steering baselines is significant. IKE, which adds demonstrations and is especially strong on zsRE’s question format, ties with TASK or wins on 14B+ models for zsRE. On CounterFact, IKE’s demonstrations cause heavy misuse, and TASK leads by 2.7–39.4 pp.

Free-form dialogue memory

On LoCoMo (Table 7), facts are free-form and the subject key does not apply, so TASK uses the semantic address and T+S, without E. At an equal input budget of about 300 tokens, TASK improves over BM25 retrieval, over the same retrieval without S (significant under two of three judges), over Mem0, and over token-matched A-Mem (significant under all three judges). The absolute level stays modest: A-Mem with 4–23× more tokens and the full conversation (65×) remain clearly more accurate. On LongMemEval the literal subject key gates out relevant facts and E/S give no gain (Section D), which is what motivated the semantic address.

MethodQwen3-8B judgeQwen3-14B judgeGLM-5.3 judgeInput tokens
BM25 top-5 facts (T)30.828.533.6299
Semantic-address T32.830.334.6298
Semantic-address T + S (TASK)34.231.039.3298
Mem0, top-517.916.119.5257
Mem0, top-3026.124.230.41,226
A-Mem, token-matched to ours28.627.130.7294
A-Mem, top-539.437.542.81,248
A-Mem, top-3051.548.055.96,845
Full conversation in context (reference)60.357.564.219,488
TASK − semantic-address T+1.38*+0.65+4.63*
TASK − Mem0 top-5+16.34*+14.88*+19.76*
TASK − A-Mem token-matched+5.61*+3.90*+8.62*

Table 7. Table 7: LoCoMo test (8 conversations, 1,230 questions; same answering model, Qwen3-8B). Accuracy under three judges and mean input tokens. Bold: best among methods with at most about 300 input tokens. Paired differences use a conversation-level bootstrap.

Discussion and Limitations

What each carrier contributes. The evidence assigns each carrier a distinct role. Text carries the content: without it, neither S nor single-fact accuracy survives. Steering carries the use policy and is the most consistent source of gains, resolving both directions of the conflict on all five models. The address taken from E’s key controls which memories are read; it turns retrieval into precise reading for libraries of up to 3,000 memories and is what allows weight patches to scale. E’s weight change matters where facts must be composed (MQuAKE) but adds nothing to T+S on single facts: on CounterFact, T +E +S scores below T +S on four models and ties on Gemma-3-27B (0.887 vs. 0.888), and in libraries the two tie. TASK memory is therefore best understood as a division of labour, in which each carrier is used for what it does well.

Memory hallucination beyond storage. Our results suggest that memory approaches should be judged on use as well as on storage: whether a stored item is adopted where it applies and ignored where it does not. Storage-stage benchmarks such as HaluMem [6] and our use-time analysis cover complementary halves of memory hallucination. A memory system can store perfectly and still hallucinate at read time. Writing content into weights (editing) or into a trained state (MemT-1.0) changes where the memory lives. It does not by itself arbitrate between the memory and the model’s prior knowledge. Combined with retrieval, editing even amplifies memory override. An address-gated use policy addresses this arbitration directly; because it acts on a frozen model through one hook and one partial forward pass, it can be combined with either kind of storage.

Limitations. The gains of TASK memory shrink when a model already follows its context well (Qwen3-14B CounterFact: +2.2 pp), and on Gemma-3-27B zsRE T +S is not better than T (−4.61 pp[-10.25, 0.01]), while IKE is significantly better. On dialogue memory the gains are small and TASK stays far below full-context reading and token-rich A-Mem; the literal subject key fails on free-form questions (LongMemEval), and the semantic address fixes this only in part. Revision depends on supersession, without which S can amplify version conflicts, and the automatic judge is imperfect: it misses 14% of true updates on Qwen3-8B, and in libraries with many facts per subject the Llama-3.1-8B judge wrongly supersedes 34% of memories, while about 10% of sibling memories remain confused under every carrier. Writing a memory costs about 25 s of steering training and 4 s of editing on one GPU, and our libraries reach 3,000 memories rather than millions; the decomposition in § 5.1 suggests that a shared direction behind per-memory gates could remove most of this cost. Finally, CounterFact, zsRE and MQuAKE consist of synthetic counterfactual updates, our answer classifier and LLM judges are not the official scorers, and on AppWorld the local 8B agent almost never completes tasks, with S improving only the partial test-pass rate (+2.2 pp, not significant).

Broader impact. Making agents adopt stored notes more reliably also makes them adopt wrong notes more reliably. TASK should sit behind a writer that verifies sources. Its per-memory, versioned and reversible design makes such auditing and deletion straightforward.

Conclusion

Text memory tells a model what a fact is, but not whether the fact should override what the model already believes. We showed that this gap produces use-time memory hallucinations, even when the stored memory is correct. The model ignores the memory in favour of stale weights, misapplies it to other entities, or answers from a superseded version. The first two come from the conflict between parametric knowledge and external memory, which runs in both directions on every model we tested. TASK memory addresses it with a per-memory use policy behind an in-model address: paired adopt/restrain steering vectors, gated by the key of a removable knowledge edit, with content kept in text. Under a pre-registered protocol on five frozen models, this policy resolves both conflict directions and makes memory libraries precise up to 3,000 memories; the edit carrier adds compositional recall. By making each memory more than text, a Text note combined with Activation Steering and Knowledge editing, each in the role it is good at, we can reduce memory hallucinations without retraining the model. We hope these results encourage treating memory use, and not only memory storage, as a first-class target for reducing hallucination in LLM agents.

Conflict analysis details

Procedure. The analysis uses only the frozen test predictions of the provided-evidence runs; no model is called again.

  • A paraphrase query counts as stale fact stored if the no-memory model’s answer to that same query asserts the pre-update object.

  • Neighbour queries count as base-correct if the no-memory model answers them correctly.

  • Gap: adoption of the memory’s object under TT on not-stored queries minus on stored queries.

  • Reversion: an answer that asserts the pre-update object.

  • Misuse: an answer that asserts the memory’s object on a base-correct neighbour.

Intervals come from a paired bootstrap over worlds (2,000 resamples, seed 17). Table 8 and Table 9 are generated by scripts/paper_conflict_analysis.py. zsRE neighbours are unrelated questions, so misuse is near zero there for every method.

DataModelnstoredn_{\mathrm{stored}}Parametric override (paraphrase queries)Memory override (base-correct neighbours)
DataModelnstoredn_{\mathrm{stored}}TT gap (pp)Rev. TTRev. T+ST+SMis. baseMis. TTMis. T+ET+EMis. T+ST+ST+S−TT+S-T (pp)
CFQwen3-8B205/600-1.7 [-7.3, 4.4]9.30.50.924.340.44.8-19.6 [-25.8, -13.9]*
CFLlama-3.1-8B231/600+16.4 [8.1, 25.0]*46.30.00.020.249.01.2-18.9 [-24.9, -13.5]*
CFQwen3-14B223/600+0.9 [-2.4, 4.6]4.90.00.45.311.84.9-0.4 [-3.5, 2.8]
CFPhi-4257/600+14.8 [7.2, 22.4]*29.60.40.79.319.01.9-7.5 [-11.3, -4.2]*
CFGemma-3-27B236/600+0.7 [-4.8, 6.6]11.01.30.814.310.77.4-7.0 [-11.4, -2.6]*
zsREQwen3-8B54/300+16.9 [6.0, 28.7]*18.50.00.01.91.91.9+0.0 [0.0, 0.0]
zsRELlama-3.1-8B87/300+28.0 [15.7, 39.8]*43.70.00.01.27.00.0-1.2 [-3.9, 0.0]
zsREQwen3-14B65/300+9.1 [-0.4, 19.2]13.81.50.00.00.00.0+0.0 [0.0, 0.0]
zsREPhi-479/300+28.6 [16.9, 40.8]*31.60.00.01.10.00.0-1.1 [-4.0, 0.0]
zsREGemma-3-27B81/300+0.7 [-6.7, 7.9]8.61.20.01.11.10.0-1.1 [-4.2, 0.0]

Table 8. Per-cell conflict statistics (test; %, unless marked pp).

DataModelRev. T+S−TT+S-T
CFQwen3-8B-8.8 [-13.8, -4.3]*
CFLlama-3.1-8B-46.3 [-53.5, -39.1]*
CFQwen3-14B-4.9 [-8.2, -2.2]*
CFPhi-4-29.2 [-35.7, -23.0]*
CFGemma-3-27B-9.7 [-14.9, -5.1]*
zsREQwen3-8B-18.5 [-29.2, -8.5]*
zsRELlama-3.1-8B-43.7 [-53.9, -33.0]*
zsREQwen3-14B-12.3 [-21.0, -4.6]*
zsREPhi-4-31.6 [-42.7, -21.8]*
zsREGemma-3-27B-7.4 [-13.6, -2.4]*

Table 9. Change in reversion to the stale parametric answer from TT to T+ST+S (stored-fact queries).

Implementation details

Writer. The writer sees only the update observation (subject, relation prompt and new object for CounterFact/zsRE; the edited base facts for MQuAKE; the dialogue sessions for LoCoMo and LongMemEval). It produces:

  • TT records;

  • four relation templates mined from the training split;

  • hard negatives: same relation, other training-split subjects;

  • generic Wikitext prefixes.

Labels enter only after predictions are frozen. Three writer seeds, which resample templates, negatives and prefixes, give consistent S gains on development data (Table 15).

MethodQwen3-8Bseed 17seed 29seed 41Mistral-7B
T0.8250.8250.8250.8250.639
T + ungated global vector0.7620.7620.7620.7620.719
T + SindS_{\mathrm{ind}}0.8970.8810.8980.933
T + E0.7010.7300.7170.765
T + E + SindS_{\mathrm{ind}}0.8300.8110.8490.856
E only0.8900.8910.8980.898

Table 15. Robustness on development data (100 worlds, composite).

E. Value optimisation runs 25 Adam steps at lr 0.5 with early stopping at NLL 0.05, plus KL and norm constraints. The covariance comes from about 7×1057 \times10^{5} Wikitext tokens at the edit layer. Patches are stored as low-rank factors. The edit layer was scanned on training-split smoke worlds. For Qwen3-8B, edit-only paraphrase accuracy was 12/16 at L4, 15/16 at L6 and 12/16 at L8. The other models used the same rule over three candidate layers. Budget controls (more steps, higher rank) gave no gain on dev. An AlphaEdit-style null-space projection gave identical edits.

S. 40 Adam steps at lr 0.02 ×rmsℓS\times\mathrm{rms}_{\ell_S}, zero initialisation, plus a norm penalty. A larger rate (0.05) hurt locality on dev. A residual-weighted variant (fixed a priori) gave identical results.

Intervention checks. Every intervention changes real activations or effective weights; none is a prompt substitution. In FP32, generation with KV cache under interventions matches full-prefix recomputation (maximum logit difference 8×10−58 \times10^{-5}), unloading restores weights bit-exactly, and base parameters receive no gradient during S training. 28 unit tests on a miniature Qwen3 with the real tokenizer cover the gradients of S and E, causal masking of decision positions, loading and unloading, and hook cleanup.

Cost. Table 10 lists the measured costs (Qwen3-8B, one A6000 GPU).

Carrier / settingMemoriesSeconds / memoryForward passes / memory
E (closed-form patch), CounterFact3004.018.8
S (paired vectors), CounterFact30025.086
Scond_{\mathrm{cond}}, CounterFact30025.086
S (semantic address), LoCoMo1,74925.086

Table 10. Write-time and read-time cost per memory (Qwen3-8B, BF16, one GPU).

Hard scenarios and automatic supersession

Version conflict (H2). 100 memories are inserted, then 50 of them are revised. We report accuracy on revised facts at the last checkpoint. “Oracle” supersession uses the dataset’s fact IDs, i.e. perfect supersession links. “Auto” uses the address together with the agent’s own frozen model as judge, with a fixed prompt.

  • Auto vs. none. Auto supersession improves T + S over no supersession by +48.67 pp[37.33,59.33]^{[37.33, 59.33]} on Qwen3-8B and +54.67 pp[43.33,65.33]^{[43.33, 65.33]} on Llama-3.1-8B.

  • Link quality. Qwen3-8B’s links have precision 1.00 and recall 0.86. Llama-3.1-8B’s links are perfect.

  • Cost of the address. The address reduces judge calls from 1.98 to 0.35 per write. Without the address, Llama-3.1-8B’s link precision drops to 0.49.

  • Without the judge. Address-only supersession wrongly retires 47% of memories in a same-subject library.

Same-subject library (H1). 154 subjects with 323 memories; several relations of one subject share a library. Bootstrap is clustered by subject.

ComparisonQwen3-8BLlama-3.1-8B
Addr. T+S − addr. T+7.02 [4.84, 9.38]*+27.55 [23.81, 31.41]*
Addr. T+gated E − addr. T+7.22 [4.90, 9.71]*+19.61 [15.48, 23.74]*
Addr. T − BM25 T (text only)−1.86 [-3.44, -0.31]*−4.95 [-7.34, -2.48]*
Addr. T+gated E+S − addr. T+S+0.10 [-1.12, 1.24]−1.44 [-2.97, 0.10]
Scond−SindS_{\mathrm{cond}} - S_{\mathrm{ind}}+0.93 [-0.10, 1.93]−0.93 [-2.63, 0.83]
Ungated joint E (accuracy)0.0150.013

Table 12. Same-subject library (accuracy differences, pp). Bold and *: 95% CI excludes 0, in either direction.

Sibling memories with the same subject are the hardest case for a subject address. With text only, address verification is slightly worse than BM25. S and E still give large gains, and gated patches do not collapse the way an ungated joint patch does. About 10% of answers confuse sibling memories under every carrier.

Additional results

VariantPara.Canon.Loc.Comp. (full S − variant, pp)
T88.291.767.80.811 (+10.80*)
T + full S96.799.381.70.919
T + shared direction only93.397.083.50.909 (+0.99 [-1.07, 3.00])
T + memory-specific residual only95.099.071.30.866 (+5.32*)

Table 13. Shared/memory-specific decomposition of S (CounterFact test, Qwen3-8B; exploratory). Shared = mean of all 300 memories’ v+v^{+} (and v−v^{-}); residual = own vector minus shared. Every variant keeps the memory’s own address gate.

Vector statistics: mean pairwise cosine 0.19 (v+v^{+}) / 0.19 (v−v^{-}); cosine to the shared direction 0.42 / 0.44; mean norm 4.7 / 13.0; mean cos⁡(vm+,vm−)=−0.12\cos(v_m^{+}, v_m^{-}) = -0.12.

SettingSplitMetricΔ\Delta (pp) [95% CI]
CounterFact, Qwen3-8Btestcomposite+1.55 [-1.41, 4.22]
CounterFact, Qwen3-8B, writer seeds 17 / 29 / 41devcomposite+0.84 / −1.05 / +2.76*
CounterFact, Mistral-7Bdevcomposite+1.16 [-3.56, 6.20]
CounterFact library, address-verified + gated Etestcomposite+0.01 [-0.51, 0.52]
CounterFact library, BM25 + EallE_{\mathrm{all}}testcomposite−5.18 [-8.26, -2.33]*
MQuAKE, paired vectorstestmulti-hop acc.−2.67 [-4.50, -0.67]*
zsRE, Qwen3-8Btestcomposite−0.91 [-3.30, 0.00]
zsRE library, address-verified + gated Etestcomposite−0.45 [-0.95, -0.11]*
CounterFact, Llama-3.1-8B / Qwen3-14B / Phi-4testcomposite+2.87* / +1.30 / +0.11

Table 14. Edit-aware steering: Scond−SindS_{\mathrm{cond}} - S_{\mathrm{ind}} under the same edit (positive favours ScondS_{\mathrm{cond}}). Bold and *: 95% CI excludes 0, in either direction. An upper bound printed as 0.00 is exactly zero, so that interval includes 0.

Standard editing metrics. On the frozen test memories, CounterFact ES/PS/NS are computed by comparing the mean-token NLL of the new and the true object, and zsRE is scored by teacher-forced token accuracy. Score is the harmonic mean.

T+Sind−TT+S_{\mathrm{ind}} - T: +7.19, +5.60, +7.33* (seeds), +29.35* (Mistral-7B, [22.48, 36.43]).

  • CounterFact. T + S improves the Score over T on all five models: +16.5 (Qwen3-8B), +33.9 (Llama-3.1-8B), +6.5 (Qwen3-14B), +19.0 (Phi-4), +10.9 pp (Gemma-3-27B), all significant.

  • zsRE. The Score improves on four models (+2.3 to +10.5 pp) and drops on Gemma-3-27B (−5.1 pp), consistent with the generation results.

WISE. With hyperparameters mapped from the published configuration, WISE edits only 6 of 200 dev requests in FP32 (BF16 also fails). This is a tuning failure, not an upper bound for WISE, so we exclude it from the main comparison.

LongMemEval (oracle histories). Same writer, 128 held-out knowledge-update and single-session-user questions.

  • All extracted facts: 99/128, using 533 tokens on average.

  • Full oracle sessions: 109/128, using 4,723 tokens.

  • BM25 top-5 facts: 96/128.

  • Literal-key verification: only 39/128, because questions rarely contain the subject verbatim (68/128 questions have any key-verified memory). E and S add nothing on top of it.

  • Paired S applied to all facts: −25 pp. Many simultaneous v−v^{-} vectors suppress evidence.

The other four question types (352 questions, text methods only) show the same ordering. This negative result motivated the semantic address used on LoCoMo.

AppWorld (dev, 57 tasks). The agent is a local Qwen3-8B ReAct agent with at most 12 steps. Procedural notes are mined only from train-split solutions. Task success is about 0 for all methods. The mean test-pass rate is 0.252 without memory, 0.259 with T, and 0.281 with T + S (+2.21 pp[-0.35, 5.41], not significant).

Full confidence intervals for the steering baselines. T+S minus KSD, ContextFocus and CAST, with 95% CIs. The CIs for IKE, CAD and CAA are in our released tables.

  • Qwen3-8B. CF: +11.51 [8.35, 15.22], +10.60 [7.64, 13.93], +10.37 [7.35, 13.65]. zsRE: +6.18 [1.47, 11.26], +11.37 [5.14, 18.77], +5.84 [1.38, 10.35].

  • Gemma-3-27B, zsRE. −4.61 [-10.25, 0.01], −2.60 [-8.29, 2.40], −4.25 [-9.56, 0.31].

Selected strengths on Qwen3-8B dev:

  • CF: KSD 0.125, ContextFocus 0.125, CAST 4.

  • zsRE: KSD 0.125, ContextFocus 2, CAST 1.

CAST’s condition vectors reach held-out F1 of 0.956 (CF) and 0.961 (zsRE).

Data boundary and reproducibility

  • Splits. Splits are hashed by subject (CounterFact, zsRE), by first edited subject (MQuAKE) or by conversation (LoCoMo). Manifests were frozen before any output.

  • Writer inputs. Writers never read test questions, answers, multi-hop targets or test-time scores.

  • Pre-registration. Each test set was run once. Primary comparisons, decision rules and their dates were registered in a decision log before the corresponding outputs existed.

  • Denominators. Failures and runtime errors stay in the denominators. Infrastructure interruptions were resumed, never rerun because of their results.

  • Regeneration. All tables and the data figures are regenerated from raw predictions and metrics files by scripts.

  • External API. Only the GLM-5.3 judge, used to re-judge LoCoMo answers, called an external API.

References

  1. [1]Marah Abdin et al. Phi-4 technical report. arXiv preprint arXiv:2412.08905, 2024.arxiv.org/abs/2412.08905
  2. [2]Nikhil Anand, Shwetha Somasundaram, Anirudh Phukan, Apoorv Saxena, and Koyel Mukherjee. ContextFocus: Activation steering for contextual faithfulness in large language models. arXiv preprint arXiv:2601.04131, 2026.arxiv.org/abs/2601.04131
  3. [3]Baolong Bi, Yiwei Wang, Shenghua Liu, Pengliang Ji, Lingrui Mei, and Xueqi Cheng. Decoding by contrasting knowledge: Enhancing LLMs’ confidence on edited facts. arXiv preprint arXiv:2405.11613, 2024.arxiv.org/abs/2405.11613
  4. [4]Yuan Cao, Mingyang Wang, and Hinrich Schütze. The anatomy of an edit: Mechanism-guided activation steering for knowledge editing. arXiv preprint arXiv:2603.20795, 2026.arxiv.org/abs/2603.20795
  5. [5]Gabriel Chavira Juárez, Eder Jahir Gonzalez Bravo, Guadalupe Esmeralda Rivera García, Javier A. Arcos Espinosa, and Salvador W. Nava-Díaz. Controlled knowledge updating in memory-enabled AI agents: Beyond model editing and recall. Frontiers in Big Data, 9:1938137, 2026.DOI
  6. [6]Ding Chen, Simin Niu, Zhiyu Li, et al. HaluMem: Evaluating hallucinations in memory systems of agents. arXiv preprint arXiv:2511.03506, 2025.arxiv.org/abs/2511.03506
  7. [7]Qizhou Chen, Taolin Zhang, Xiaofeng He, Dongyang Li, Chengyu Wang, Longtao Huang, and Hui Xue. Lifelong knowledge editing for LLMs with retrieval-augmented continuous prompt learning. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 2024.arxiv.org/abs/2405.03279
  8. [8]Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. Mem0: Building production-ready AI agents with scalable long-term memory. arXiv preprint arXiv:2504.19413, 2025.arxiv.org/abs/2504.19413
  9. [9]Pavel Das, Subhajit Chaudhury, Elliot Nelson, Igor Melnyk, Sarathkrishna Swaminathan, Sihui Dai, Aurélie Lozano, Georgios Kollias, Vijil Chenthamarakshan, Jiří Navrátil, Soham Dan, and Pin-Yu Chen. Larimar: Large language models with episodic memory control. In International Conference on Machine Learning, 2024.arxiv.org/abs/2403.11901
  10. [10]Bradley Efron and Robert J. Tibshirani. An Introduction to the Bootstrap. CRC Press, 1994.
  11. [11]Junfeng Fang, Houcheng Jiang, Kun Wang, Yunshan Ma, Xiang Wang, Xiangnan He, and Tat-Seng Chua. AlphaEdit: Null-space constrained knowledge editing for language models. In International Conference on Learning Representations, 2025.arxiv.org/abs/2410.02355
  12. [12]Gemma Team. Gemma 3 technical report. arXiv preprint arXiv:2503.19786, 2025.
  13. [13]Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. Transformer feed-forward layers are key-value memories. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021.arxiv.org/abs/2012.14913
  14. [14]Aaron Grattafiori et al. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
  15. [15]Thomas Hartvigsen, Swami Sankaranarayanan, Hamid Palangi, Yoon Kim, and Marzyeh Ghassemi. Aging with GRACE: Lifelong model editing with discrete key-value adaptors. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2211.11031
  16. [16]Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, and Ting Liu. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Transactions on Information Systems, 43(2), 2025.DOI
  17. [17]Ziwei Ji, Nayeon Lee, Rita Friiske, Tiezhen Yu, Dan Su, Yan Xu, Etsuko Ishii, Ye Jin Bang, Andrea Madotto, and Pascale Fung. Survey of hallucination in natural language generation. ACM Computing Surveys, 55(12):1–38, 2023.DOI
  18. [18]Vedant Jumle. What survives when activation steering is used as memory. arXiv preprint arXiv:2610.14958, 2026.arxiv.org/abs/2610.14958
  19. [19]Dahyun Jung, Jaewook Lee, and Heuiseok Lim. Towards scalable lifelong knowledge editing with selective knowledge suppression. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics, 2026.
  20. [20]Bruce W. Lee, Inkit Padhi, Karthikeyan Natesan Ramamurthy, Erik Miehling, Pierre Dognin, Manish Nagireddy, and Amit Dhurandhar. Programming refusal with conditional activation steering. In International Conference on Learning Representations, 2025.arxiv.org/abs/2409.05907
  21. [21]Omer Levy, Minjoon Seo, Eunsol Choi, and Luke Zettlemoyer. Zero-shot relation extraction via reading comprehension. In Proceedings of the 21st Conference on Computational Natural Language Learning, 2017.arxiv.org/abs/1706.04115
  22. [22]Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems, 2020.arxiv.org/abs/2005.11401
  23. [23]Gaotang Li, Yuzhong Chen, and Hanghang Tong. Taming knowledge conflicts in language models. arXiv preprint arXiv:2503.10996, 2025.arxiv.org/abs/2503.10996
  24. [24]Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. Inference-time intervention: Eliciting truthful answers from a language model. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2306.03341
  25. [25]Ruochang Li, Pengcheng Huang, Zhenghao Liu, Yukun Yan, Huiyuan Xie, Yu Gu, Ge Yu, and Maosong Sun. SPARK: Adaptive parametric knowledge participation for faithful retrieval-augmented generation. arXiv preprint arXiv:2606.27786, 2026.arxiv.org/abs/2606.27786
  26. [26]Zihao Lin, Mohammad Beigi, Hongxuan Li, Yufan Zhou, Yuxiang Zhang, Qifan Wang, Wenpeng Yin, and Lifu Huang. Navigating the dual facts: A comprehensive evaluation of sequential memory editing in large language models. arXiv preprint arXiv:2402.11122, 2024.arxiv.org/abs/2402.11122
  27. [27]Xuyuan Liu, Shengyu Chen, Xinshuaï Dong, Yanchi Liu, Xujiang Zhao, Haoyu Wang, Yujun Yan, Haifeng Chen, and Zhengzhang Chen. Representation interventions enable lifelong knowledge memory control in LLMs. arXiv preprint arXiv:2511.20892, 2025.arxiv.org/abs/2511.20892
  28. [28]Shayne Longpre, Kartik Perisetla, Anthony Chen, Nikhil Ramesh, Chris DuBois, and Sameer Singh. Entity-based knowledge conflicts in question answering. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021.
  29. [29]Yibin Lou, Yi Hu, Jianhui Chen, Chenpeng Wang, Muhan Zhang, and Liangming Pan. Which knowledge should LLMs trust? uncovering a generalizable steering direction across knowledge conflicts. arXiv preprint arXiv:2610.20067, 2026.arxiv.org/abs/2610.20067
  30. [30]Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. Evaluating very long-term conversational memory of LLM agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, 2024.
  31. [31]MemTensor Team. MemT-1.0: Towards memory-native evolution. arXiv preprint arXiv:2610.26825, 2026.
  32. [32]Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. Locating and editing factual associations in GPT. In Advances in Neural Information Processing Systems, 2022.arxiv.org/abs/2202.05262
  33. [33]Kevin Meng, Arnab Sen Sharma, Alex Andonian, Yonatan Belinkov, and David Bau. Mass-editing memory in a transformer. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.07229
  34. [34]Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations, 2017.arxiv.org/abs/1609.07843
  35. [35]Eric Mitchell, Charles Lin, Antoine Bosselut, Christopher D. Manning, and Chelsea Finn. Memory-based model editing at scale. In International Conference on Machine Learning, 2022.arxiv.org/abs/2206.06520
  36. [36]Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560, 2023.arxiv.org/abs/2310.08560
  37. [37]Joon Sung Park, Joseph O’Brien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology, 2023.arxiv.org/abs/2304.03442
  38. [38]Qwen Team. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
  39. [39]Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, and Alexander Matt Turner. Steering Llama 2 via contrastive activation addition. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, 2024.arxiv.org/abs/2312.06681
  40. [40]Stephen Robertson and Hugo Zaragoza. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends in Information Retrieval, 3(4):333–389, 2009.
  41. [41]Marco Scialanga, Thibault Laugel, Vincent Grari, and Marcin Detyniecki. SAKE: Steering activations for knowledge editing. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics, 2025.
  42. [42]Weijia Shi, Xiaochuang Han, Mike Lewis, Yulia Tsvetkov, Luke Zettlemoyer, and Wen-tau Yih. Trusting your evidence: Hallucinate less with context-aware decoding. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics, 2024.arxiv.org/abs/2305.14739
  43. [43]Yuqiao Tan, Shizhu He, Huanxuan Liao, Jun Zhao, and Kang Liu. Dynamic parametric retrieval augmented generation for test-time knowledge enhancement. arXiv preprint arXiv:2503.23895, 2025.
  44. [44]Minghao Tang, Shiyu Ni, et al. Understanding parametric knowledge injection in retrieval-augmented generation. arXiv preprint arXiv:2510.12668, 2025.arxiv.org/abs/2510.12668
  45. [45]Harsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank Gupta, Ashish Sabharwal, and Niranjan Balasubramanian. AppWorld: A controllable world of apps and people for benchmarking interactive coding agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, 2024.
  46. [46]Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J. Vazquez, Ulisse Mini, and Monte MacDiarmid. Steering language models with activation engineering. arXiv preprint arXiv:2308.10248, 2023.arxiv.org/abs/2308.10248
  47. [47]Peng Wang, Zexi Li, Ningyu Zhang, Ziwen Xu, Yunzhi Yao, Yong Jiang, Pengjun Xie, Fei Huang, and Huajun Chen. WISE: Rethinking the knowledge memory for lifelong model editing of large language models. In Advances in Neural Information Processing Systems, 2024.
  48. [48]Peng Wang, Ningyu Zhang, Bozhong Tian, Zekun Xi, Yunzhi Yao, Ziwen Xu, Mengru Wang, Shengyu Mao, Xiaohan Wang, Siyuan Cheng, Kangwei Liu, Yuansheng Ni, Guozhou Zheng, and Huajun Chen. EasyEdit: An easy-to-use knowledge editing framework for large language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations, 2024.
  49. [49]Y. Wang, D. Ma, and D. Cai. With greater text comes greater necessity: Inference-time training helps long text generation. arXiv preprint arXiv:2401.11504, 2024.arxiv.org/abs/2401.11504
  50. [50]Yu Wang, Yifan Gao, Xiusi Chen, Haoming Jiang, Shiyang Li, Jingfeng Yang, Qingyu Yin, Zheng Li, Xian Li, Bing Yin, Jingbo Shang, and Julian McAuley. MEMORYLLM: Towards self-updatable large language models. In International Conference on Machine Learning, 2024.arxiv.org/abs/2402.04624
  51. [51]Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai-Wei Chang, and Dong Yu. LongMemEval: Benchmarking chat assistants on long-term interactive memory. In International Conference on Learning Representations, 2025.arxiv.org/abs/2410.10813
  52. [52]Jian Xie, Kai Zhang, Jiangjie Chen, Renze Lou, and Yu Su. Adaptive chameleon or stubborn sloth: Revealing the behavior of large language models in knowledge conflicts. In International Conference on Learning Representations, 2024.arxiv.org/abs/2305.13300
  53. [53]Rongwu Xu, Zehan Qi, Zhijiang Guo, Cunxiang Wang, Hongru Wang, Yue Zhang, and Wei Xu. Knowledge conflicts for LLMs: A survey. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 2024.
  54. [54]Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. A-MEM: Agentic memory for LLM agents. arXiv preprint arXiv:2502.12110, 2025.arxiv.org/abs/2502.12110
  55. [55]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.03629
  56. [56]Yunzhi Yao, Peng Wang, Bozhong Tian, Siyuan Cheng, Zhoubo Li, Shumin Deng, Huajun Chen, and Ningyu Zhang. Editing large language models: Problems, methods, and opportunities. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 2023.arxiv.org/abs/2305.13172
  57. [57]Yue Zhang, Yafu Li, Leyang Cui, Deng Cai, Lemao Liu, Tingchen Fu, Xinting Huang, Enbo Zhao, Yu Zhang, Yulong Chen, Longyue Wang, Anh Tuan Luu, Wei Bi, Freda Shi, and Shuming Shi. Siren’s song in the AI ocean: A survey on hallucination in large language models. arXiv preprint arXiv:2309.01219, 2023.arxiv.org/abs/2309.01219
  58. [58]Chengfeng Zhao, Yuqiao Tan, Shizhu He, Yequan Wang, Jun Zhao, and Kang Liu. Neural procedural memory: Empowering LLM agents with implicit activation steering. arXiv preprint arXiv:2606.29824, 2026.arxiv.org/abs/2606.29824
  59. [59]Yu Zhao, Alessio Devoto, Giwon Hong, Xiaotang Du, Aryo Pradipta Gema, Hongru Wang, Xuanli He, Kam-Fai Wong, and Pasquale Minervini. Steering knowledge selection behaviours in LLMs via SAE-based representation engineering. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics, 2025.arxiv.org/abs/2410.15999
  60. [60]Ce Zheng, Lei Li, Qingxiu Dong, Yuxuan Fan, Zhiyong Wu, Jingjing Xu, and Baobao Chang. Can we edit factual knowledge by in-context learning? In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 2023.arxiv.org/abs/2305.12740
  61. [61]Haitian Zhong, Yuhuan Liu, Ziyang Xu, Guofan Liu, Qiang Liu, Shu Wu, Zhe Zhao, Liang Wang, and Tieniu Tan. REACT: Representation extraction and controllable tuning to overcome overfitting in LLM knowledge editing. arXiv preprint arXiv:2505.18933, 2025.arxiv.org/abs/2505.18933
  62. [62]Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. MemoryBank: Enhancing large language models with long-term memory. In Proceedings of the AAAI Conference on Artificial Intelligence, 2024.arxiv.org/abs/2305.10250
  63. [63]Zexuan Zhong, Zhengxuan Wu, Christopher D. Manning, Christopher Potts, and Danqi Chen. MQuAKE: Assessing knowledge editing in language models via multi-hop questions. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 2023.
  64. [64]Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann-Kathrin Dombrowski, et al. Representation engineering: A top-down approach to AI transparency. arXiv preprint arXiv:2310.01405, 2023.arxiv.org/abs/2310.01405

Paper details

vlnc:W_tfwwmfcz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents