# Forgetting is Not Always Bad: A Neuro-Inspired Memory Repair Mechanism for Poisoned LLM Agents

*Lei Liu, Yunji Liang, Xiaowen Zhang, Jingqi Liu, Qi Li, Bin Guo, Zhiwen Yu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155114) · [OpenReview](https://openreview.net/forum?id=8IiBySCaAn) · [Open on the map](../papers.html#p155114)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [LLM Safety Attack Strategies](../pgroup/451.md) · Type: new method · Keywords: memory poisoning, LLM agents, robustness, dynamic memory repair, neuro-inspired forgetting

Areas: [Memory](../areas/memory.md) › Agent Memory Systems › LLM Agent Memory; [AI Agents](../areas/agents.md) › Agent Robustness › LLM Agent Attacks; [Safety & Security](../areas/safety.md) › Language Model Security › Prompt Injection and Resource Attacks

## Summary
DREAM is a neuro-inspired, training-free memory repair framework that selectively forgets poisoned memories in LLM agents, achieving over 95% reduction in attack success while preserving utility.

## Explained to a 5-year-old
LLM agents are like smart computers that remember things to help them talk. Bad people can give them bad memories that make them say wrong things. The paper creates a way for the computer to gently shake up those bad memories so they disappear. It also keeps the good memories safe so the computer still works well. This makes the computer smarter and safer without needing a lot of extra work.

## Explained to a 5-year-old, longer
LLM agents are computer programs that help people talk with them like a friend. Sometimes someone can trick them by giving them bad information that makes them answer incorrectly. This bad information is called a memory-poisoning attack. Existing defenses try to protect the memories by either locking them up or checking them all the time. Locking memories uses a lot of space, and checking them all the time uses a lot of computer power. The new idea is inspired by how real brains can forget things when they are not used. It gently shakes up the bad memories so they become weak and disappear. At the same time, it makes sure the good memories stay strong and useful. The process works in three steps: first, it makes the bad memories show their weakness; second, it looks for strange patterns; third, it removes the harmful ones. This way the computer can still talk normally but is protected from tricks. Experiments show it stops most attacks while keeping the computer’s normal performance. It also runs faster and uses less memory than previous defenses.

## For a technical reader
The paper presents a training-free, agent-intrinsic framework that repairs corrupted memories in language models by exploiting weak reactivation to destabilize malicious entries. It uses a three-stage pipeline: implicit perturbation to expose fragile memories, multi-dimensional pattern analysis for anomaly detection, and selective suppression of harmful memories while reinforcing benign ones. Evaluations show >95% reduction in backdoor attack success, competitive robustness against injection attacks, and up to 2.13× speedup with 37.7% lower token consumption versus a baseline defense. The method achieves a 92.96% task success rate on poisoned multi-agent systems, demonstrating practical efficiency and strong security.

## Problem
LLM agents are vulnerable to memory-poisoning attacks, and existing defenses rely on external modules that result in low memory efficiency and high computational overhead.

## Method
The approach implements a three-stage pipeline: first, perturbation-induced implicit reactivation reveals the fragility of malicious memories; second, adaptive anomaly diagnosis uses multi-dimensional activation patterns to detect topological anomalies; third, a dynamic memory repair module selectively suppresses harmful memories while reinforcing benign ones, all without training.

## Results
It reduces attack success rates by over 95% against backdoor poisoning while preserving utility and achieves competitive robustness against injection attacks. Additionally, it attains a 2.13× speedup with 37.7% less token consumption compared to A-MemGuard and reaches a 92.96% task success rate on poisoned multi-agent systems.

## Contributions
The paper introduces an agent-intrinsic, training-free memory repair framework that leverages neuro-inspired weak reactivation to selectively forget poisoned memories, and demonstrates its effectiveness across multiple attack types and real-world tasks.

## Practical relevance
The approach enables efficient, low-overhead protection of LLM agents against memory poisoning, making secure deployment on resource-constrained hardware feasible.

## Research questions this paper is counted under

- [How can we robustly detect and mitigate adversarial attacks on LLM agents that use external tools or skills?](../q/277.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155114)
