INQUIRING LINE

Can an AI's lookup memory stay small and fast without slowly warping its behavior or getting hijacked by planted content?

Can retrieval-based memory remain bounded while avoiding drift and poisoning?

This explores whether an AI system's external memory (the store it retrieves from) can stay a manageable size without two things going wrong over time: the stored content slowly distorting what the model does (drift), and bad or malicious content getting in and steering it (poisoning).


This explores whether a memory you retrieve from can stay a fixed, manageable size while also staying trustworthy: not slowly warping the model's behavior (drift) and not being hijacked by planted content (poisoning). The corpus has no single system that claims all three at once. What it has is good work on each piece, and the pieces show that the three goals pull on each other in ways the question doesn't make obvious.

Keeping memory bounded looks like the most solved part. Agents can fold their own history into structured episodic, working, and tool memory on a schedule they choose Can agents learn to compress their own memory strategically?, and reasoning traces can be capped to an instruction prefix plus a recent window because most intermediate steps stop mattering quickly Can models think longer by forgetting intermediate reasoning?. Pruning finished subtasks goes further, sustaining accurate reasoning while discarding most of the cache Can recursive subtask trees overcome context window limits?. But every one of these is a compression step, and compression is where drift enters: each fold is a rewrite, and what was dropped can't be checked later. One alternative is to store less processed structure and do the relational work at read time, rebuilding the memory on demand by reasoning through a graph, which also cut token and runtime costs Can agents reconstruct memory on demand rather than retrieve it?.

Poisoning has a surprisingly cheap partial answer. Defenses that sit at the retrieval layer, with no retraining, can cap how much any one planted document influences the result by partitioning retrieval, and can flag suspicious documents whose similarity to the query collapses when a few tokens are masked Can we defend RAG systems from corpus poisoning without retraining?. Notice the shape of that guarantee: it bounds influence, it doesn't promise a clean store. That is probably the realistic target, and it pairs naturally with a bounded memory, since a smaller store is a smaller surface to audit.

The finding that changes the question is that memory can hurt even when nothing is wrong with it. In one benchmark, all five tested memory frameworks did worse than having no memory at all, by more than 10%, even though the memories were accurately recorded and relevant to the task Can relevant memories actually harm LLM reasoning?. So drift isn't only a storage problem you fix with better compression or a poisoning problem you fix with filters. It also happens at the moment of use, when a true but unhelpful memory tilts the reasoning. That connects to a broader point about retrieval: embeddings measure association, not usefulness for the task at hand, and fixed retrieval schedules pull things in whether or not the reasoning needs them Where do retrieval systems fail and why? What makes retrieval-augmented generation fail in practice?.

If you want to sidestep retrieval altogether, the corpus offers a different trade. A separately trained memory model makes inference cost independent of corpus size, at the price of up-front training and a hard capacity limit Can a separate memory model inject knowledge without touching the LLM?, and there's a real ceiling on squeezing history into fixed-size state: models with a fixed latent state provably lose to transformers at copying and retrieving exactly Can state-space models match transformers at copying and retrieval?. The honest summary is that bounded and poison-resistant look achievable together today, while drift-free is the open part, because the corpus shows it depends less on what you store than on when and how the model is allowed to use it.


Sources 10 notes

Can agents learn to compress their own memory strategically?

DeepAgent's autonomous memory folding lets agents consolidate history into structured episodic, working, and tool memory on their own schedule. This design avoids token overhead while enabling strategic reflection—treating memory management as a first-class agent action rather than an external mechanism.

Can models think longer by forgetting intermediate reasoning?

Most intermediate reasoning tokens become unimportant as reasoning progresses, so keeping only the instruction prefix and a recent window achieves 3x speedup without training while enabling traces beyond 100k tokens.

Can recursive subtask trees overcome context window limits?

The Thread Inference Model demonstrates that reasoning structured as recursive subtask trees with rule-based KV cache pruning sustains accurate reasoning beyond context limits, even when manipulating 90% of the cache. This enables single models to replace multi-agent systems by handling full recursive reasoning internally.

Can agents reconstruct memory on demand rather than retrieve it?

MRAgent reconstructs memory on demand by reasoning through a Cue–Tag–Content graph, pruning paths with accumulated evidence. This approach achieves up to 23% gains on LOCOMO and LONG-MEMEVAL benchmarks while reducing token and runtime costs compared to rigid retrieval-first pipelines.

Can we defend RAG systems from corpus poisoning without retraining?

RAGPart and RAGMask provide lightweight, retraining-free defenses that operate at the retrieval layer. RAGPart bounds poisoned-document influence via partitioned retriever learning; RAGMask flags suspicious documents through abnormal similarity collapse under token masking.

Show all 10 sources
Can relevant memories actually harm LLM reasoning?

MemTrapBench shows that all five tested memory frameworks underperform a no-memory baseline, with drops exceeding 10%, despite memories being accurately stored and task-relevant. This reveals a failure mode at the point of use that standard memory benchmarks miss.

Where do retrieval systems fail and why?

RAG systems fail at three structural levels: adaptive triggering (fixed intervals waste context), semantic-task mismatch (embeddings measure association, not relevance), and mathematical limits (embedding dimension constrains representable document sets). These require fundamentally different retrieval approaches, not tuning.

What makes retrieval-augmented generation fail in practice?

Research shows retrieval must adapt dynamically rather than execute fixed pipelines, retrieval and reasoning must integrate tightly, and embedding-based retrieval has fundamental limits requiring alternative architectures. These three shifts address core failure patterns.

Can a separate memory model inject knowledge without touching the LLM?

MeMo trains a dedicated memory model to encode new knowledge, eliminating inference-time search costs that scale with corpus size. It avoids fine-tuning risks and works with frozen proprietary models, but trades this for up-front training cost and capacity limits.

Can state-space models match transformers at copying and retrieval?

Two-layer transformers can copy exponentially long strings while state-space models are fundamentally limited by their fixed-size latent state. Empirically, transformers dramatically outperform SSMs at copying and context retrieval in both synthetic and pretrained settings.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.