Researchers find models ignoring correct memory in the prompt
In experiments by Beihang University researchers, a model fell back on knowledge in its weights in up to 46 per cent of questions where it knew the old fact. Their TASK memory cut this to at most 1.5 per cent.
Jinkun Zhao and Wenjun Wu, researchers at Beihang University in Beijing, published a preprint on arXiv on 25 November 2026. They argue that an AI agent using memory often goes wrong somewhere other than in storage. The correct note reaches the prompt, but it competes with knowledge learned in the model weights.
The researchers distinguish three types of error. A model can fall back on an old fact stored in its model weights. With the tested models, this happened in up to 46 per cent of the questions for which the model knew the old fact. A model can also apply a note to the wrong entity, for example to a question about the same relationship for another person (up to 24 per cent). In the third error, the model picks the old value: when two versions of a fact were stored, 53 per cent of answers about the updated fact gave the superseded value. The first two errors pull in opposite directions. So if a model is steered to favour prompt information across the board, one error simply replaces the other.
In TASK memory, each memory is a text note backed by two components that work inside the model. The first, a removable weight edit, gives the memory an address: it lets the model recognise whether a question concerns this particular memory. Two steering vectors, directions added to the model’s internal state, decide whether the model adopts the note or keeps its own answer. The vectors contain no knowledge. Without the note, the model gave the new fact in only 1.7 per cent of questions, the same as the unmodified model.
With Qwen3-8B, the share of answers applied to the wrong entity fell from 39.2 per cent to 7.5 per cent. Fallback to the old fact stayed at or below 1.5 per cent in all ten model–dataset combinations. According to the table, the gain was largest for the model that followed prompt information least well.
| Model | Text memory | TASK |
|---|---|---|
| Llama-3.1-8B | 0.518 | 0.948 |
| Phi-4 | 0.756 | 0.956 |
| Qwen3-8B | 0.811 | 0.919 |
| Gemma-3-27B | 0.849 | 0.888 |
| Qwen3-14B | 0.923 | 0.945 |
CounterFact composite scores. The scores are the harmonic mean of two accuracy rates on memory questions and of how well answers to other questions were preserved. Source: the authors’ preprint.
The CounterFact, zsRE and MQuAKE datasets consist of artificial, counterfactual knowledge updates. Gemma-3-27B’s score did not improve on zsRE. With memories extracted from conversations, the gain was small; putting the whole conversation in the prompt worked clearly better. If a fact is updated, the steering vectors for the old version must also be removed. Otherwise the conflict may get worse.
The authors say memory systems should also be judged on whether the model uses memory in the right places. They warn that the method also makes the model adopt wrong notes more reliably. For that reason, they say, the component that writes to memory must verify sources.
Read more: Models