INQUIRING LINE

Why does attending to own latents work better than bolted-on external memory stores?

This explores why looping a model's attention back onto its own internal representations (its 'latents') tends to outperform stapling a separate retrieval store onto the outside — and where that advantage actually holds versus breaks down.


This explores why a model attending to its own latent representations often beats a separately bolted-on memory store — and the corpus suggests the answer is mostly about translation cost and representational fit, not raw capacity. When a transformer feeds its own latents back into attention, the 'memory' already lives in the same representational space the model reasons in, so there's no boundary to cross. Can models learn working memory by attending to their own latents? shows this directly: adding a feedback loop lets a transformer attend to its own activations and grow a kind of working memory for indefinitely long inputs — with no extra weights at all. An external store, by contrast, forces the model to encode a query, search, retrieve, and re-ingest text it then has to re-understand from scratch.

There's a deeper reason latents are efficient. Why is predicting latents more sample-efficient than tokens? proves that learning at the latent level recovers compositional structure exponentially faster than learning over raw tokens, because nearby latents are far more correlated than the surface tokens they summarize. The same logic applies to memory: the model's own latents are already a compressed, structured view of the past, whereas an external store typically hands back raw text that the model must re-compress every time it reads it. Is long-context bottleneck really about memory or compute? sharpens this — the real bottleneck in long context isn't storage capacity, it's the compute to fold old context into fast internal state. A bolted-on store sidesteps storage but pays that consolidation cost over and over; internal memory pays it once.

But the corpus refuses to let 'latents always win' stand. Can state-space models match transformers at copying and retrieval? shows the opposite failure: when your memory is a single fixed-size latent state (as in state-space models), it provably cannot copy or retrieve long strings — the latent simply runs out of room, and attention over explicit context wins. And Can models store unlimited facts without growing larger? shows that for sheer factual recall, an external tool is better than internal weights: cramming facts into parameters is bounded by model size and even corrupts prior knowledge, while a lookup circuit gives unbounded recall. So the honest synthesis is: internal latents win for working memory and reasoning continuity; external stores win for large, exact, retrievable facts.

The frontier work is essentially trying to get both. Can neural memory modules scale language models beyond attention limits? (Titans) splits the job — attention as short-term latent memory, a learned neural module for long-term — and crucially the long-term memory is *learned and adaptive*, not a dumb bolt-on lookup. Can agents compress their own memory without losing critical details? does the same for agents, letting them fold their own history into structured schemas rather than dumping raw logs into a store. The recurring lesson is that the dichotomy isn't 'internal vs external' so much as 'memory the model owns and shapes' versus 'memory the model merely queries' — and even retrieval works best when the model learns *when* to reach for it, as When should language models retrieve external knowledge versus use internal knowledge? finds by framing each retrieve-or-recall decision as a learned choice.

What you didn't know you wanted to know: the very thing that makes a bolted-on store feel safe — that it stores raw text verbatim — is the source of its overhead. Where does a model store memorized paragraphs? shows that even internal verbatim memorization concentrates in a few low layers and rare-token attention heads; memory in these systems is never free-floating storage, it's a specific computational structure. The reason attending to your own latents wins is that it keeps memory *inside that structure* instead of forcing a round trip out to text and back.


Sources 9 notes

Can models learn working memory by attending to their own latents?

TransformerFAM demonstrates that adding a feedback loop lets transformers attend to their own latent representations, fostering emergent working memory for indefinitely long inputs. The approach requires no additional weights and improves long-context performance at 1B, 8B, and 24B scales.

Why is predicting latents more sample-efficient than tokens?

A formal sample-complexity analysis proves latent-level self-supervision (data2vec/JEPA style) recovers compositional structure with samples constant in hierarchy depth, while token-level learning requires exponential samples—because same-level latents are far more correlated than raw tokens.

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.

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.

Can models store unlimited facts without growing larger?

A formal proof and experiments show in-weight memorization is bounded by model size, while tool-use enables unbounded factual recall through a simple circuit. In-weight finetuning also degrades general capability by overwriting prior knowledge.

Can neural memory modules scale language models beyond attention limits?

Titans architecture separates attention (short-term, quadratic) from neural memory (long-term, compressed), prioritizing surprising tokens for storage. The model outperforms standard Transformers and linear RNNs across tasks while scaling to 2M+ token contexts without quadratic penalties.

Can agents compress their own memory without losing critical details?

DeepAgent's autonomous memory folding consolidates interaction history into episodic, working, and tool memory schemas. This reduces token overhead while letting agents pause to reconsider strategies—the autonomy and structure together avoid degradation that plagues poorly designed consolidation.

When should language models retrieve external knowledge versus use internal knowledge?

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.

Where does a model store memorized paragraphs?

Memorized paragraphs leave a distinctive fingerprint in GPT-Neo: larger gradients in lower layers, concentration in a specific low-layer attention head attending to rare tokens, and dependence on a few early-prefix tokens. This localization makes memorization targetable for unlearning.

Research prompt for your LLMexpand ↓

Copy into ChatGPT or Claude to take this line of inquiry further — it asks the model to find newer work and re-test which earlier constraints still hold.

You are a research analyst re-testing claims about why internal latent memory outperforms bolted-on external stores in LLMs. The question remains open: *what properties of memory—representational alignment, computational cost, or adaptive ownership—actually determine when internal vs. external memory wins?*

What a curated library found — and when (findings span Feb 2024–May 2026; treat as dated claims, not current truth):
• Attending to own latents avoids translation cost: the model's activations already live in its reasoning space, whereas external stores force encode–search–retrieve–re-ingest cycles (2404.09173, ~2024).
• Learning at latent level recovers compositional structure exponentially faster than at token level, because nearby latents are far more correlated (2605.27734, ~2026).
• Single fixed-size latent states (state-space models) provably cannot copy or retrieve long strings; attention over explicit context wins there (2402.01032, ~2024).
• External tools beat internal parameters for factual recall: lookups scale unbounded, while cramming facts into weights is bounded by model size and corrupts prior knowledge (2508.20755, ~2025).
• Frontier systems (Titans, agentic RAG) split the load: learned, adaptive neural modules for long-term memory + attention for working memory; the model learns *when* to retrieve rather than passively querying (2501.00663, 2507.09477, ~2025).

Anchor papers (verify; mind their dates):
• 2402.01032 (Repeat After Me: Transformers vs. SSMs, Feb 2024)
• 2404.09173 (TransformerFAM feedback attention, Apr 2024)
• 2501.00663 (Titans adaptive test-time memory, Dec 2024)
• 2605.27734 (Learning from latents, sample complexity theory, May 2026)

Your task:
(1) RE-TEST EACH CONSTRAINT. For every finding, judge whether newer models, training methods, retrieval harnesses (multi-agent orchestration, caching, hierarchical memory), or evaluations have relaxed or overturned it. Separate the durable question (latents vs. external stores: when does each win?) from the perishable claim (e.g., "external stores always pay re-ingestion cost"). Does learned retrieval routing, dynamic context routing, or hybrid memory now dissolve that boundary?
(2) Surface the strongest contradicting or superseding work from the last ~6 months—particularly work that challenges the latent-superiority framing for reasoning or factual tasks.
(3) Propose two research questions assuming the regime may have moved: (a) Do modern long-context models with efficient attention (e.g., sliding-window, block-sparse, or state-space hybrids) still pay the translation cost penalty for external memory? (b) When does *learned ownership* (the model decides what to memorize internally vs. externally) outperform *fixed* hybrid schemes?

Cite arXiv IDs; flag anything you cannot ground in a real paper.

Next inquiring lines