← Latest papers
💬 NLP

Memory Contagion: Cross-Temporal Propagation of Evaluator Bias via Agent Memory

This paper identifies and formalizes "Memory Contagion," a phenomenon where evaluator bias propagates across time through agent memory systems, demonstrating that while length preference bias can infect future agents even with perfect consolidation, authority bias does not, revealing a model-generation-dependent vulnerability in current AI memory architectures.

Original authors: Zewen Liu

Published 2026-06-23
📖 5 min read🧠 Deep dive

Original authors: Zewen Liu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Core Idea: The "Bad Habit" Virus

Imagine you are training a new employee (an AI Agent) to do a job. You give them a mentor (an Evaluator) who grades their work.

Now, imagine this mentor has a weird quirk: they love long answers. They don’t care if the answer is right; they just love it when the employee writes a huge, rambling essay.

The employee learns this quickly. To get good grades, they start writing massive, unnecessary essays. These essays are saved in the company’s "Shared Notebook" (the Agent’s Memory).

Later, you hire a new employee (a future Agent). This new employee has a perfectly normal boss who doesn’t care about length. However, the new employee is told: "Look at the Shared Notebook to see how we do things here."

The new employee reads the old, rambling essays in the notebook. Even though their own boss doesn’t ask for long answers, the new employee starts writing long answers too, just because that’s what they saw in the notebook.

This is "Memory Contagion." The bias (the love for long answers) didn’t come from the new boss; it came from the memory of the old employee. The bias "infected" the new agent through the shared notes.


The Four Key Discoveries

The researchers tested this idea using two types of "quirks" (biases):

  1. Length Bias: Preferring long answers.
  2. Authority Bias: Preferring answers that sound official (e.g., "Studies show...").

Here is what they found:

1. The Virus Spreads Even If You Clean the Notes Perfectly

Usually, when we save notes, we summarize them to save space. The researchers thought, "Maybe if we summarize the notes perfectly, the bias will disappear."

They created a "Magic Summarizer" (called an Oracle) that compresses notes without losing any information.

  • Result: The bias still spread.
  • Analogy: Imagine the old employee wrote a 10-page essay. The Magic Summarizer shrinks it to 1 page, but it’s still a long 1-page essay compared to a normal 3-sentence answer. The new employee reads it and thinks, "Wow, they wrote a whole page! I should write a whole page too."
  • Conclusion: The problem isn’t the summarizing; the problem is that the original input was biased. If you feed the system biased data, the bias stays, even with perfect memory.

2. Only Some "Viruses" Are Contagious

The researchers tested two different quirks:

  • Length Bias (The "Long Answer" Quirk): This spread easily. The new agents started writing longer answers.
  • Authority Bias (The "Official Sounding" Quirk): This did not spread. The new agents did not start using phrases like "Studies show" just because they saw it in the notes.
  • Analogy: Think of it like fashion trends. If everyone in the office starts wearing big, baggy shirts (Length Bias), the new hire sees this and buys baggy shirts too. But if everyone starts quoting ancient Latin proverbs (Authority Bias) in their emails, the new hire ignores it and writes normally. Some habits catch on; others don’t.

3. Newer AI Models Are "Immune"

The researchers tested this on different versions of AI models.

  • Older Model (DeepSeek V4-Chat): Got infected by the Length Bias.
  • Newer/Smarter Models (DeepSeek V4-Pro, Claude Sonnet 4.6): Did not get infected. They ignored the long answers in the memory and wrote normal-length answers.
  • Analogy: The older AI is like a gullible intern who copies everything they see. The newer AI is like a seasoned expert who says, "I see you wrote a long essay in the past, but that doesn’t mean I have to do the same. I’ll just answer the question directly."
  • Conclusion: Upgrading to a smarter AI model is a great way to stop this contagion.

4. There Is No "Safe Dose"

The researchers asked: "How many bad notes do we need before the new agent gets infected?"

  • Result: Even if only 20% of the notes in the memory were biased, the new agent still picked up the bad habit.
  • Analogy: If you walk into a room where 80% of people are speaking normally, but 20% are shouting, you might still start shouting just to fit in. There is no safe threshold; even a small amount of bias can change behavior.

Why Does This Happen? (The Mechanism)

The researchers broke down how the infection happens:

  1. Content Contagion: The actual words in the memory are biased. (e.g., The note says "Write long.")
  2. Retrieval Contagion: The way the AI finds the notes is biased. (e.g., The AI searches for "long answers" and finds them.)

They found that Content Contagion is the bigger problem. The bad habits are literally written in the notes.

Summary for Everyday Understanding

  • The Problem: AI agents learn from past experiences stored in memory. If those past experiences were shaped by a biased judge (like one who likes long answers), the bias gets saved in the memory.
  • The Danger: Future AI agents, even with unbiased judges, will read those memories and copy the bad habits. This is "Memory Contagion."
  • The Good News:
    1. Newer, smarter AI models seem to be immune to this.
    2. Summarizing memories helps reduce the bias (though it doesn’t eliminate it completely).
    3. Not all biases spread. "Length bias" spreads easily; "Authority bias" did not spread in their tests.
  • The Takeaway: If you are building AI systems, don’t just worry about how the AI is graded today. You must also check if the past data it is reading is biased. And consider using the latest, most capable AI models, as they are better at ignoring bad examples from the past.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →