Should an AI decide once whether to look things up, or keep re-deciding at every step as it thinks?
When should a system decide to retrieve versus reason from memory?
This explores how an AI system should choose, moment to moment, between looking something up (in documents, a memory store, or a toolbox) and answering from what it already knows, and whether that either/or choice is the right way to frame the problem at all.
This explores when an AI system should go and fetch information and when it should rely on what it already knows. The corpus gives a practical answer first, then a stranger one: the best systems stop treating this as a single up-front choice. They make it many times, step by step, while they reason. DeepRAG treats each reasoning step as its own small decision about whether to look something up or rely on what the model learned in training. Its gains come largely from *not* retrieving. Skipping unnecessary lookups keeps irrelevant external text out of the model's way When should language models retrieve external knowledge versus use internal knowledge?. The decision also doesn't need to be expensive. Simple surface features of the question, such as its length, type and the entities it mentions, predict when retrieval will help about as well as elaborate methods that probe the model's own uncertainty. They do better on complex questions, at a fraction of the cost Can question features alone predict when to retrieve?.
Here's the part most people don't expect: deciding to retrieve doesn't mean you'll get what you need. Retrieval works by finding stored text that looks like the query. When a user's request never mentions the connecting fact, retrieval misses it. One benchmark found models answered 84% of indirect questions correctly when the relevant memory was simply placed in front of them, but only 14.4% when a retrieval system had to find it Why do retrieval systems fail on queries that never mention needed facts?. The same vocabulary gap appears with tools. Letting the model write its own requests for the tools it needs, and refine them as its reasoning develops, beats matching the user's casual wording against formal tool descriptions Can models decide better than retrievers which tools to use?.
So several groups have merged the two activities. Instead of 'retrieve, then reason,' MRAgent reasons its way through a memory graph and rebuilds what it needs as it goes. It scores higher while using fewer tokens and less time Can agents reconstruct memory on demand rather than retrieve it?. ComoRAG keeps a running workspace across retrieval rounds, so the system notices when new evidence contradicts what it found earlier and goes looking for more. That matters for long narratives, where understanding builds up over time Can reasoning systems maintain memory across retrieval cycles?. Seen this way, retrieval works best as something the reasoning process steers rather than a separate stage before it.
There's also a warning: retrieving the *right* thing can still hurt. In MemTrapBench, all five memory frameworks tested did worse than a model with no memory at all, by more than 10%, even though the stored memories were accurate and relevant Can relevant memories actually harm LLM reasoning?. Conversational RAG research points to one reason: what a memory *does* in the answer matters more than how relevant it looks. Memories that clarify the user's constraints help, and off-topic ones actively make answers worse Does retrieved memory quality depend on its functional role?. Reasoning has a similar pattern. Simple questions often do better without step-by-step thinking Why do some questions perform better without step-by-step reasoning?. Adding more, whether retrieved facts or reasoning steps, isn't automatically better.
The last thread changes the question from 'when to retrieve' to 'what deserves to be kept and absorbed.' Agent memory can be managed in two ways: the agent decides in the moment through tool calls, or a background process handles it on a schedule. The first adapts better to context, and the second is more reliable How should agents decide what memories to keep?. Some work suggests the real limit on long context is not storage space. It is the compute needed to absorb old context into the model's internal state, like a 'sleep' phase that turns memory into knowledge Is long-context bottleneck really about memory or compute?. A model can also drop most of its own intermediate reasoning and keep only the instructions plus a recent window, with no loss Can models think longer by forgetting intermediate reasoning?. The takeaway: deciding when to retrieve is the easier half. The harder half is making sure what gets retrieved can be found from how people actually ask, and that it helps the reasoning instead of distracting it.
Sources 12 notes
DeepRAG models each reasoning step as a Markov Decision Process where the model learns when to retrieve versus rely on parametric knowledge. The 21.99% improvement comes from better-targeted retrieval and elimination of noise from unnecessary external knowledge.
Learned predictors using 27 lightweight external question features match complex uncertainty-based methods on overall performance while costing far less, and outperform them on complex questions across 6 QA datasets.
InMind's benchmark shows that with memory in context, models answer 84% of indirect queries correctly, but retrieval systems answer only 14.4% when the same memory must be retrieved. The systems store and recall the facts on demand, yet fail to surface them when user requests never mention connecting terms.
MCP-Zero shows that letting models emit structured tool requests iteratively across conversations outperforms single-round semantic matching. The model can refine requirements progressively across domains as reasoning unfolds, bypassing colloquial-to-formal vocabulary mismatch.
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.
Show all 12 sources
ComoRAG demonstrates that iterative evidence acquisition with a persistent memory workspace outperforms stateless multi-step retrieval by detecting and resolving contradictions through deeper exploration, achieving up to 11% gains on complex queries.
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.
Retrieved memory type drives response quality more than relevance alone: clarifying memory improves factual accuracy and constraint awareness, while irrelevant memory actively degrades both. Role-aware retrieval and filtering are robustness requirements, not optional optimizations.
Saliency analysis reveals that CoT prompting fails when question information doesn't aggregate into the prompt structure before reasoning begins. For simple questions, direct question-to-answer flow outperforms step-by-step reasoning, showing the optimal prompt depends on question type, not just task category.
Memory management decomposes into explicit hot-path (agent decides via tool calling) and implicit background (programmatically triggered) paths. Each approach trades context-sensitivity for reliability differently across generation, storage, retrieval, and deletion.
Research shows the bottleneck is not memory capacity but the compute required to consolidate evicted context into fast weights during offline sleep phases. Performance improves with more consolidation passes, following a test-time scaling pattern on harder reasoning tasks.
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.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Memory is Reconstructed, Not Retrieved: Graph Memory for LLM Agents
- MemTrapBench: Benchmarking Cognitive Traps in LLM Memory Use
- GateMem: Benchmarking Memory Governance in Multi-Principal Shared-Memory Agents
- Know It, Act on It: Investigating Memory Utilization in LLM Personalization
- Useful Memories Become Faulty When Continuously Updated by LLMs
- Towards Agentic RAG with Deep Reasoning: A Survey of RAG-Reasoning Systems in LLMs
- Keep It InMind: Benchmarking the Implicit-Association Blind Spot in Agent Memory
- LLM-Independent Adaptive RAG: Let the Question Speak for Itself