INQUIRING LINE

If an AI rebuilds a memory by hopping link to link instead of grabbing it ready-made, how fast do the costs pile up per hop?

How does traversal depth affect the cost of reconstructing memory on demand?

This explores what happens to the bill — tokens, time, compute — when an agent rebuilds a memory by walking step by step through stored links instead of fetching a ready-made record, and how that bill grows the more steps the walk takes.


This explores what it costs to rebuild a memory by walking through linked pieces of stored information, and how that cost changes as the walk gets longer. The corpus has no paper that measures cost against depth directly, so there is no clean curve to report. What it does have is one system that reconstructs memory by traversal, and several neighbouring results that explain why depth doesn't have to be as expensive as it sounds.

The naive expectation is that cost explodes with depth: every extra hop multiplies the paths you might follow, and every path adds text the model has to read. The system closest to the question, MRAgent, avoids this by reasoning while it walks. It moves through a graph of cues, tags and content, and uses the evidence gathered so far to drop paths that no longer look promising. The result is better accuracy on long-conversation memory benchmarks with lower token and runtime costs than pipelines that retrieve everything first and reason afterwards Can agents reconstruct memory on demand rather than retrieve it?. The lesson is that depth is cheap when each step narrows the search, and expensive when it only widens it.

The second cost of going deep is carrying everything you've already seen. Two results on long reasoning suggest most of that baggage can be dropped. One finds that intermediate reasoning tokens quickly stop mattering, so keeping just the instructions and a recent window gives a 3x speedup and lets traces run past 100k tokens Can models think longer by forgetting intermediate reasoning?. Another structures work as a tree of subtasks and prunes finished branches from the model's cache, sustaining accurate reasoning well beyond the context limit Can recursive subtask trees overcome context window limits?. Applied to memory traversal, this means a deep walk needs to hold the current branch and its conclusions, not the full trail.

The alternative is to pay up front so nothing has to be walked at all. Agents can fold their history into structured summaries at moments they choose Can agents learn to compress their own memory strategically?, or a separate memory model can be trained so that lookup cost stops growing with the size of the corpus, at the price of training cost and limited capacity Can a separate memory model inject knowledge without touching the LLM?. Work on long context makes the same trade explicit: the bottleneck there is the compute spent turning old context into internal state, not storage Is long-context bottleneck really about memory or compute?.

So the useful question is less "how deep?" than "when do you pay?" Reconstruction on demand charges per question, and the charge grows with depth only as fast as pruning lets it. Consolidation charges once, in advance, and then answers cheaply — but it commits you to a summary made before you knew what would be asked. An unexpected parallel from mobile hardware shows the same logic at a different scale: recomputing a transformer block can be faster than fetching separately stored weights when moving memory is the slow part Does recomputing weights cost less than moving them on mobile?. Recomputing is not automatically the expensive option; it depends on what the stored version costs to reach.


Sources 7 notes

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 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 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 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.

Show all 7 sources
Is long-context bottleneck really about memory or compute?

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.

Does recomputing weights cost less than moving them on mobile?

MobileLLM shows that on memory-bound mobile hardware, sharing weights between adjacent transformer blocks by recomputing one block twice uses less latency than fetching separate weights, gaining accuracy with no parameter increase.

Papers this line draws on 8

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