What AI Gets Wrong About Knowing

Hallucinations is an architecture problem, and retrieval is its most practical solution.

Retrieval · Neurosymbolic AI · Software Architecture · AI
When AI Should Stop Building and Start Reading
The most expensive thing a language model can do is reconstruct something it could have just looked up. A growing body of research is turning that observation into an architectural principle.
2026

Every time a large language model answers a question, it does something closer to construction than recall. The transformer synthesizes a response token by token, drawing on statistical patterns compressed into billions of weights during training. That process is extraordinarily good at fluent language, plausible reasoning, and creative synthesis. It is notoriously unreliable at specific facts. Understanding why that happens is not a matter of fixing bugs. It is a matter of understanding what kind of machine a neural network actually is.

01 Build vs. read
Two paths to an answer: reconstruction from compressed weights versus retrieval from an external index. One carries hallucination risk. The other carries an audit trail.
Build mode reconstruct from weights Read mode fetch from external store Incoming query Neural network weights Billions of compressed patterns Reconstruction Token-by-token synthesis Generated answer Hallucination risk present No source. No audit trail. Cannot verify what was used. Incoming query External index Vector store, knowledge graph Retrieval Fetch the relevant document Grounded answer Source preserved and auditable Source on record. Update by swapping a document.
Build mode (hallucination risk)
Read mode (grounded and auditable)
Neural weights
I. The reconstruction problem

A trained language model is not a database. It is a lossy compression of text, optimized to predict what comes next rather than to store what is true. Facts are not filed under retrievable addresses. They are distributed across millions of weights, entangled with context and frequency and association, and when the model needs one, it reconstructs it from those patterns rather than looking it up. Sometimes reconstruction works. Sometimes it produces something plausible-sounding that never existed. The model has no reliable internal alarm for the difference.

This is not a flaw that more training data can straightforwardly eliminate. It is a structural property of how the architecture encodes knowledge. The deeper insight reshaping how AI systems are built in practice is that reconstruction is only necessary when retrieval is not an option. Retrieval means anything from querying a vector database to consulting a knowledge graph to calling a symbolic rule engine. The shift in thinking is from asking how to make a model remember better to asking when the model should not be doing the remembering at all.

That reframing is the animating question of a major strand of contemporary AI research. Its implications reach well beyond the language model into how software systems at large ought to be designed, because it turns out that computer science solved a version of this problem decades ago and simply did not call it a hallucination problem.

II. The space-time tradeoff, rediscovered

Computer science has a name for the situation where recomputing something is more expensive than storing it: the space-time tradeoff. Memoization, caching, lookup tables, materialized database views are all expressions of the same bargain. Pay in storage to save in computation. The principle is so fundamental it appears in the first weeks of any undergraduate algorithms course.

What is new in the AI context is that the tradeoff now has a correctness dimension, not merely a speed dimension. When a traditional program recomputes a cached value, it gets the right answer more slowly. When a language model reconstructs a fact from its weights, it may get the wrong answer with no indication that anything went wrong. Reading from an external store does not just make the system faster. It makes it more reliably accurate, because the retrieved content is a direct artifact rather than a reconstruction of one.

A frozen model that regenerates a fact on every query is structurally similar to a naive recursive function recomputing the same subproblems endlessly rather than consulting a cache. The retrieval-augmented system is the one that has learned to memoize. The practical implication follows directly: identify which parts of a query require genuine reasoning and synthesis, where the neural network earns its place, and which parts require accurate recall, where retrieval should take over.

02 Two memories, one system
Parametric memory is baked into model weights and frozen at training time. Non-parametric memory lives in an external index and updates by swapping a document. Both feed a single generator that produces a grounded answer.
Incoming query Parametric memory Baked into model weights Frozen at training time Opaque. Expensive to update. Risk of hallucination on recall. Non-parametric memory External retrieval index Updated by swapping docs Transparent. Auditable. Source preserved with answer. Generator Synthesizes using both memories Grounded answer Fluent synthesis, verified facts Fluency from parametric. Accuracy from non-parametric. Neither alone does what the combination achieves.
Parametric memory (weights)
Non-parametric memory (index)
Generator
III. Two memories, one system

The formal articulation of this architecture came from Facebook AI Research in 2020, which introduced retrieval-augmented generation as a pairing of two distinct kinds of memory. Parametric memory is knowledge encoded in the model's weights during training: fixed, opaque, and expensive to update. Non-parametric memory is an external corpus the model can query at inference time: updatable by swapping a document, transparent because the source is preserved alongside the answer, and auditable because any claim can be traced to the passage that produced it.

The economic consequences of the split are significant. When facts change, a retrieval system swaps a document at negligible cost. Injecting the same fact into parametric memory requires fine-tuning, which carries real computational expense and must be repeated whenever the base model changes. Fine-tuned models also risk catastrophic forgetting, the phenomenon in which learning new material degrades performance on old material.

A 2025 multi-metric evaluation published in the journal Information found that under a constrained compute budget, pairing a seven-to-eight-billion-parameter model with retrieval outperformed a standard thirteen-billion-parameter model without it. Retrieval achieved better quality at lower cost. That is a direct empirical demonstration that reading can substitute for scale, and that the choice between a bigger model and a better memory system is not philosophical. It is a decision with measurable engineering consequences.

Two monoliths representing parametric and non-parametric memory

Two architectures, one decision. The stone monolith on the left encodes knowledge in amber circuit traces — compressed, opaque, expensive to revise. The teal wireframe on the right is open, ordered, and addressable. A single beam of light strikes both. Only one lets it through cleanly. Daice Labs.

IV. When the neural network needs a rulebook

For tasks that require not just accurate facts but correct logical chains, a different architecture has emerged from the neurosymbolic research tradition. The core idea is to pair a neural network, which excels at pattern recognition and flexible inference, with a symbolic reasoning engine, which executes formal rules exactly and produces verifiable proofs. Neither alone can do what the combination achieves. The neural component handles what is fuzzy and contextual. The symbolic component handles what must be precise and checkable.

The practical motivation is a paradox anyone who has used a language model for mathematics will recognize. These systems are built on billions of floating-point operations, yet they fail at arithmetic. The explanation is architectural. A language model predicts likely next tokens. For common arithmetic it produces the right answer because that answer is statistically frequent. For multi-step problems it produces a plausible-looking number that may be fabricated entirely. The system is not computing. It is pattern-matching to what computation usually looks like.

DeepMind's AlphaGeometry, published in Nature in 2024, demonstrates what happens when the symbolic layer takes over the computation. The system alternates between a language model that proposes geometric constructions and a deduction engine that verifies them with formal rigor. On a benchmark of thirty International Mathematical Olympiad geometry problems, AlphaGeometry solved twenty-five within the standard time limit. The prior best automated method had solved ten. The average human gold medalist solved twenty-five point nine. A successor system raised the solve rate to eighty-four percent. For tasks with formal structure, a neural network reading from a symbolic rulebook consistently outperforms a neural network reasoning alone.

03 The routing principle
An adaptive router classifies each query and sends it to the right component: retrieval for facts that change or must be auditable, symbolic execution for exact computation, neural generation for synthesis and ambiguous input. All three converge on one composed answer.
Query Adaptive router Classify what the query needs Factual / changeable Exact computation Synthesis / pattern Retrieval Vector store, knowledge graph Auditable, updatable Symbolic engine Formal logic, rule execution Exact and verifiable Neural generation Language model synthesis Fluent, flexible, creative e.g. current facts, policy docs, product data e.g. arithmetic, proofs, constraint solving e.g. summarization, style, ambiguous input Composed answer Accurate, fluent, and verifiable Route each problem to the component best equipped to handle it. A well-designed system applies the right kind of knowing, not every kind.
Retrieval (factual, auditable)
Symbolic engine (exact computation)
Neural generation (synthesis)
V. Knowing when to read

The open problem the research of 2023 through 2025 has been working through is not whether to retrieve but when. Retrieving on every query is wasteful and introduces its own failure mode. If the evidence pulled from an external store is irrelevant or contradictory, it can corrupt an answer the model would have gotten right from its own weights. Researchers distinguish internal hallucination, where the model's parametric memory produces a wrong answer, from external hallucination, where poorly retrieved evidence produces one. A retrieval system that fires indiscriminately can trade one failure mode for another.

The response has been a class of systems that learn to decide when to read. Self-RAG trains a model to emit special tokens mid-generation signaling whether retrieval is needed, whether the retrieved passage is relevant, and whether the answer is actually supported by it. The model becomes its own gating mechanism, retrieving only when its uncertainty warrants it and verifying retrieved evidence before conditioning its output on the result. Related approaches route simple queries to parametric memory and reserve retrieval for knowledge-intensive ones, because a model that knows what it knows is a more efficient system than one that always reaches for external help.

The engineering principle that emerges is one software architects in other domains would recognize immediately. A well-designed system is not one that applies every capability to every problem. It is one that routes each problem to the component best equipped to handle it. Retrieval handles facts that change, facts that must be auditable, and facts where being wrong is expensive. Symbolic execution handles computations that must be exact. Neural generation handles synthesis, fluency, and the interpretation of ambiguous input. That convergence into hybrid architectures is not a trend driven by fashion. It is the gradual rediscovery of a discipline structured computing has practiced since its beginning: know what kind of problem you are solving before you choose how to solve it.

Key references: Lewis, P. et al., "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks," Facebook AI Research, NeurIPS 2020. Trinh, T. et al., "Solving Olympiad Geometry Without Human Demonstrations," Nature 625, January 2024. Chervonyi, Y. et al., "AlphaGeometry 2," arXiv:2502.03544, 2025. Asai, A. et al., "Self-RAG: Learning to Retrieve, Generate, and Critique Through Self-Reflection," arXiv:2310.11511, 2023. Mao, J. et al., "The Neuro-Symbolic Concept Learner," ICLR 2019. Gutierrez, B. et al., "HippoRAG," NeurIPS 2024. Edge, D. et al., "From Local to Global: A Graph RAG Approach to Query-Focused Summarization," Microsoft Research, 2024. Multi-metric RAG evaluation, Information (MDPI), 2025.

Published by Daice Labs — AI and computer science research from MIT CSAIL spinout, Brookline MA.