When a language model is taught new domain facts by continued training on domain text, it can usually repeat those facts back. It usually cannot use them. Ask a question whose answer requires chaining a new fact with a second fact, and accuracy collapses. On the Knowledge Update Playground, the best continually pre-trained models score under 2% on these indirect questions and fall back on outdated premises (Memorization vs. Reasoning). That fallback is a hallucination: the model gives a fluent answer built on a fact it was told is no longer true.
We propose to borrow the oldest trick for mixing memorization and generalization, the Wide & Deep design from recommender systems. In that design, a sparse table of per-item weights (the "wide" path) is trained jointly with a dense neural network (the "deep" path), and the table absorbs the exceptions that the network would otherwise blur. We rebuild the wide path for transformers as a per-entity fact table. Our central bet is that the table only helps reasoning if the model reads from it at the right depth. That depth is the middle layers, where transformers resolve the intermediate "bridge" entity of a multi-hop question. A table read only at the output layer should restore recall and still leave reasoning broken.
Core Claim
The claim has two parts, each falsifiable. First, a jointly trained entity table read at middle depth lets facts written during domain updates propagate into multi-hop reasoning. The same table read only at the output layer does not. So indirect accuracy and outdated-premise reversion depend on where the table is read, not only on whether it exists.
Second, moving facts out of the dense weights lowers the emergent reasoning threshold of the dense network. The emergent reasoning threshold is the model size below which multi-step reasoning is near chance and above which it appears abruptly. The expected mechanism is that factual storage and reasoning compete for the same dense parameters.
Prior work supplies the evidence and the constraints for this claim. Finding the Minimal Parameter Budget for Implicit Reasoning trains models from scratch on integer-tokenized knowledge graphs. It finds that models store facts at about 2 bits per parameter but carry only about 0.008 bits of reasoning-relevant information per parameter, needing roughly 124 extra parameters per bit of graph search entropy. If a monolithic model must pay for both facts and reasoning out of one budget, removing the facts should shift its reasoning floor. That paper never tests this, because it never separates the two budgets.
Reason to Rote supplies the placement hypothesis. It trains small 4–8 layer transformers on synthetic tasks with injected label noise. With logit-lens probing, it shows that middle layers compute the correct two-hop answer and final layers then overwrite it with a memorized label.
The same paper is also the main threat to our proposal. It reports a 99% faithfulness overlap between reasoning and memorization circuits. It also shows that erasing the bridge-entity representation breaks memorized recall, meaning that in monolithic transformers memorization runs on top of the reasoning circuitry. We read this as a description of what happens when there is nowhere else to put facts, not as a law. It still means joint training might route facts back through the dense path anyway. The knockout test below is designed to detect exactly that.
Research Program
The model is a decoder-only transformer with two memory reads. The deep path is the ordinary stack of layers. The wide path is a table with one row per entity. Each row holds a fixed key $k_e$, taken from the entity's identity embedding, and a trainable value matrix $V_e$.
At two chosen layers $\ell_1 < \ell_2$, each position forms a query $q = W_q h_\ell$ from its hidden state $h_\ell$. It retrieves the top-$k$ entities by $q \cdot k_e$ and adds a gated read to the residual stream:
$$h_\ell \leftarrow h_\ell + \sigma(w_g^\top h_\ell)\sum_{e \in \text{top-}k(q)} \mathrm{softmax}_e(q\cdot k_e)\, V_e\, W_r h_\ell .$$
Here $\sigma$ is the logistic gate, $w_g$ its weights, and $W_r$ projects the hidden state into a relation code, so that the value returned is "entity $e$'s answer to relation $r$."
The query comes from the hidden state rather than from input tokens, so the second read can look up a bridge entity that never appears in the text. For "who is the crush of the mentor of Adam," the first read, at Adam's position, should move the hidden state toward Bob. The second read then returns Bob's crush.
As in Wide & Deep, the whole model is trained jointly on one next-token loss. The table therefore learns residuals: entity-specific facts the dense layers find costly to store. Joint training is what distinguishes this from simply bolting a separately built memory onto a trained model.
The protocol has two phases. During base pre-training, table and deep path are trained together. During the domain update, the deep path is frozen or trained at a heavily reduced learning rate. Only the rows of entities linked in the update text receive gradient. An update is therefore sparse and cannot overwrite the dense reasoning weights, which is the failure mechanism that Memorization vs. Reasoning observes under plain continued pre-training.
Linking text spans to entity rows is exact on synthetic data and on the Knowledge Update Playground, which enumerates its 1,000 entities. For medical text we use an off-the-shelf biomedical entity linker, and we report linking errors separately so they are not confused with model errors.
The work proceeds in three stages. The first stage uses the synthetic knowledge-graph setting of Finding the Minimal Parameter Budget, with integer tokens and graphs parameterized by search entropy. There we sweep deep-path size from roughly 10M to 400M parameters, with and without the table, and measure the smallest deep path that reaches a fixed two-hop accuracy.
The second stage moves to natural-language updates on the Knowledge Update Playground, with models from about 160M to 1.4B dense parameters. The third stage is a biomedical transfer test on MedQA. There we split questions into knowledge-heavy and reasoning-heavy subsets using the classifier from Disentangling Reasoning and Knowledge in Medical Large Language Models, which finds only 32.8% of MedQA to be reasoning-heavy. We add that paper's adversarial nudge, which pre-fills a response with a plausible but false diagnostic premise.
Baselines
The naive reference point is standard continued pre-training of a same-size dense model on the same update corpus. On the Knowledge Update Playground, its indirect-probing accuracy is reported as under 2% (Memorization vs. Reasoning). We will reproduce it with the same base checkpoint, tokens, and tuning budget rather than rely on the published figure.
The strongest parametric competitor is Memory Conditioned Training from the same paper. It conditions update tokens on the model's own generated memory traces of each entity, and it improves direct probing by up to 25.4% over plain continued pre-training. No reported result found on Lacuna for its indirect-probing accuracy in absolute terms. Because indirect accuracy is our main metric, we will run it ourselves. It gets the same data and compute, plus an equal hyperparameter search of 20 trials per method.
The strongest non-parametric competitor is retrieval over the update corpus. On MedQA we use KARD-style knowledge-augmented reasoning distillation (KARD), which trains a small T5 to reason over retrieved passages. It reports 44.59% MedQA-USMLE accuracy at 780M parameters, against 39.62% for distillation without retrieval. On the Knowledge Update Playground we use a dense-retrieval pipeline over the 55M-token corpus feeding the same base model. For fairness, the retriever indexes exactly the text the table is trained on.
For robustness under nudges, the reference is BioMed-R1-8B, which reaches 56.4% under adversarial nudges against 29.3% for Llama-3.1-8B-Instruct (Disentangling Reasoning and Knowledge). That model is far larger than ours. We compare against its size-matched recipe, applying its SFT-plus-GRPO training to our dense baseline, and we do not claim to beat the 8B number outright.
Three ablations isolate the key ingredient. The output-only table reads the same entity table only before the final layer, so it has identical parameters and differs only in placement. The ensembled table is trained separately and added after base pre-training, which tests whether joint training matters. The parameter-matched dense model gets extra dense width equal to the table's parameter count.
Beating the baselines means the following. The mid-depth table must exceed Memory Conditioned Training and the output-only ablation by at least 15 absolute points of Knowledge Update Playground indirect accuracy across three seeds. It must also match their direct-probing accuracy.
Why not just…?
Why not just retrieve the facts at inference time? This is the real threat. On the Knowledge Update Playground, if the retriever returns the updated passage about the question's named entity, an in-context model may reason over it well. ProAgent's gains on BioProBench (Protocol QA from 70% to 85%) show retrieval is strong (BioProBench). We expect retrieval's weaknesses in two places. The first is second-hop facts about bridge entities that are not named in the question, where the retrieval query cannot mention them. The second is distracting or misleading retrieved context, where medical models behave as "yes-men" and lose over 50% accuracy (Disentangling Reasoning and Knowledge).
We will stratify questions by whether the bridge entity appears in the question, and we will inject distractor passages. If retrieval with an oracle retriever matches the table on every stratum, the architectural claim reduces to one of cost and latency, and we will report it that way.
Why not just train a LoRA adapter on the update corpus? An adapter also isolates new parameters. However, it writes into the same dense projections at every layer and has no per-entity addressing, so it gives no reason to expect new facts to reach the bridge-entity computation. A Comparative Study of PEFT Methods finds that parameter-efficient tuning mainly changes format adherence rather than domain representations. That finding comes from code generation, however, so we include adapters at equal trainable-parameter count as a direct baseline rather than dismissing them.
Why not just fix it with reinforcement learning after training? GRPO-style post-training clearly improves robustness to false premises (Disentangling Reasoning and Knowledge). Yet incomplete pipelines, either RL-only or SFT-only, damage calibration and increase cases where the reasoning trace is right but the final answer is wrong (Are Reasoning Models More Prone to Hallucination?). More basically, post-training does not tell the model which facts were updated. We treat RL as complementary and apply the same recipe to both the dense and hybrid models. The question is whether the gap between them survives it.
Why not just use a bigger model? Frontier models beat small domain models on procedural tasks, yet still cap at 51.8% exact match on BioProBench step ordering (BioProBench). Reasoning capacity also grows slowly per parameter (Finding the Minimal Parameter Budget). The parameter-matched dense baseline and the floor sweep test directly whether spending the table's parameters on width buys the same thing.
Decisive Checks
Four results would settle the proposal.
The first is placement. The mid-depth table should raise Knowledge Update Playground indirect accuracy well above the output-only table, while the two tie on direct probing. If they tie on both, the bridge-entity hypothesis borrowed from Reason to Rote is wrong for this setting.
The second is knockout. Zeroing the table after an update should drop direct recall of updated facts to near the pre-update level. If recall survives, facts were routed back into the dense path, which is the circuit-overlap risk. In that case the separation claim fails even if accuracy improves.
The third is floor shift. On synthetic graphs, the minimum deep-path size for reliable two-hop reasoning in the hybrid should track search entropy alone and barely move as the number of stored facts grows. The dense model's floor should rise with fact count. Seeing no shift would reject the budget-competition account.
The fourth is hallucination. We measure it with two metrics that do not depend on an LLM judge. The first is the outdated-premise reversion rate on the Knowledge Update Playground. The second is the logit-lens rate at which a middle layer holds the correct answer but the output does not. Both should fall for the mid-depth table.
On MedQA, the result we want is a gain concentrated in the reasoning-heavy subset and under nudges, relative to the size-matched dense and KARD baselines. That would show the table improves reasoning robustness rather than inflating recall on the 67.2% of questions that test memory.
References
- Memorization vs. Reasoning: Updating LLMs with New Knowledge
- Finding the Minimal Parameter Budget for Implicit Reasoning: A Data Complexity Driven Scaling Law for Language Models
- Reason to Rote: Rethinking Memorization in Reasoning
- Disentangling Reasoning and Knowledge in Medical Large Language Models
- Knowledge-Augmented Reasoning Distillation for Small Language Models in Knowledge-Intensive Tasks
- BioProBench: A Corpus and Benchmark for Biological Protocol Reasoning in Autonomous Science
- A Comparative Study of PEFT Methods for Python Code Generation
- Are Reasoning Models More Prone to Hallucination?