A machine-learning engineer watched a training run finish on a single GPU. The neural network in the checkpoint was small enough to inspect. Beside it sat a much larger set of tables: billions of corpus counts, fixed before training began, waiting to answer the network’s queries.
The scenes that open and close this article are illustrations; the people in them are invented.
Independent researcher Youngseong Kim has built a language-model architecture that separates those two kinds of memory. A 103-million-parameter network learns by gradient descent, while a 7.96 GiB bank of sparse tables remains frozen. Kim reports that the combined system reached a word-level perplexity of 46.4 on held-out documents, compared with 52.1 for a neural baseline with the same trained backbone. The preprint was posted on 30 November and has not been peer reviewed.
A compiler instead of a training run
The project starts with a different question from the one that drives most model scaling. Rather than ask how many more parameters a network can learn, Kim asks how much useful structure can be compiled directly from text.
Gemini 4 Neon designed a program that counted patterns in 31.8 billion tokens from FineWeb-Edu. The program converted those statistics into 18 channels of sparse tables. Five channels predict from ordinary sequences of one to five tokens. Others use words separated by gaps, synonym clusters, concept associations, explicit rules and patterns found inside the current document.
Every channel exposes the same interface: a short set of candidate next tokens with scores. The neural network does not have to learn all those counts. It learns when to trust them. An Engram block reads the tables after the fourth transformer layer, and another gate combines their candidates with the model’s output logits.
This changes what the word “weight” means in the experiment. The tables make up more than 97 percent of the stored bytes, but no gradient step produces them. They are the output of a compiler. The trained network is a comparatively thin control system that interprets their suggestions.
What the tests show
Kim trained the network on 10 billion tokens and compared it with a model that used the same backbone without the tables. On 2,000 held-out FineWeb-Edu documents at a context length of 1,024 tokens, the table model’s perplexity was 46.4. The baseline scored 52.1, so the reported improvement was 11 percent.
The paper also reports an average gain of 1.2 percentage points on ten zero-shot tasks. The gains were largest on tasks that reward common associations among words and events, which is where a large store of corpus statistics ought to help. In an ablation, retaining progressively more table entries continued to reduce perplexity, with no saturation visible in the tested range.
Kim relates the perplexity gap to the scaling law measured by Jared Kaplan and colleagues in 2020. Their study found that language-model loss follows a power law with model size, data and training compute. Under that relationship, Kim estimates that the tables supply a gain comparable to making the neural network about 1.5 times larger.
That estimate needs careful reading. It is not a claim that the complete table system is smaller than a 1.5-times-larger network. Both sides of the reported comparison have about 103 million trained parameters, but one side also carries 7.96 GiB of frozen data. The experiment isolates the value of moving corpus statistics outside gradient-trained parameters. It does not show that the extra information is free in storage, memory traffic or engineering complexity.
Facts that sit outside the network
The architecture includes a second kind of external memory for updates made after training. Kim tested it with 10,000 sequential changes from WikiBigEdit, a benchmark of real Wikidata updates developed by Lukas Thede and colleagues.
For each change, the edit layer stores a subject, a key made from the model’s hidden state and the answer tokens. It activates only when the subject appears in the preceding 64 tokens and the hidden state closely matches the stored key. When those conditions hold, it raises the next answer token above the model’s current top logit. The record is plain data, so it can be inspected, replaced or deleted without retraining the network.
Kim reports exact answers for 99.9 percent of the edited questions and 97.4 percent of their paraphrases after all 10,000 changes. Answers to 98.2 percent of unrelated questions remained unchanged. Each addition took about 12 milliseconds on a T4 GPU, and validation perplexity changed by 0.003 percent.
Fine-tuning and LoRA baselines recalled no more than 36.3 percent of the changes in the same reported experiment, while their perplexity rose above 1,000. Thede’s original WikiBigEdit study provides the reason to care about that result: methods that perform well on small or synthetic editing tests can struggle when updates accumulate at realistic scale.
The edit layer also narrows the claim. It does not rewrite a learned representation of the world. It recognizes a tightly defined subject and state, then overrides the next-token scores. Its excellent recall therefore demonstrates the usefulness of an explicit record system, while leaving open how well the method handles broader implications of a changed fact.
A different boundary for a model
The experiment belongs to a longer argument about where knowledge should live. Retrieval systems keep documents outside a model and fetch them at runtime. Knowledge-editing methods alter parameters or activations. Kim’s design places compiled linguistic statistics and factual patches beside the neural network, then teaches the network how to consult them.
That boundary brings practical advantages. A table can be regenerated from a new corpus without retraining the 103-million-parameter network. An edit record can be removed. A person can inspect the rule that changed an answer. These are qualities that opaque learned weights do not naturally offer.
They also move costs rather than erase them. The 31.8-billion-token compilation corpus is distinct from the 10-billion-token training corpus. The tables occupy substantially more space than the network and must be looked up during inference. The reported work uses one architecture, one scale and author-run evaluations. It does not yet establish how table access behaves under production latency, across languages, or when the neural backbone becomes much larger.
Kim has released the code and result artifacts, which makes those questions testable. The useful idea is modest and concrete: a language model need not ask a neural network to memorize every count that a deterministic program can preserve more legibly.
The engineer closed the training dashboard and opened one of the stored records instead. The answer was there as data: a subject, a key and a sequence of tokens. Deleting it would take less time than another gradient step.
References
- Kaplan, J., et al. (2020). Scaling Laws for Neural Language Models. arxiv.org
- Kim, Y. (2026). A Language Model Architecture Whose Initial Weights an LLM Can Write as Code. preprints.org
- Kim, Y. (2026). wtable-lm: Code and Results. github.com/Kim-Ai-gpu/wtable-lm
- Thede, L., Roth, K., Bethge, M., Akata, Z., & Hartvigsen, T. (2025). WikiBigEdit: Understanding the Limits of Lifelong Knowledge Editing in LLMs. proceedings.mlr.press