R466 · Agent architecture › Memory and context

Weights as code: an LLM-written compiler fills 97% of a model's weights, and facts edit as records

Read the original

knowledge-editingmodel-architectureai-built-softwarepreprint

Source: Weights as code, the project page by Youngseong Kim (independent researcher), November 2026. Paper: Preprints 202611.3172. Code: Kim-Ai-gpu/wtable-lm. Found via TLDR Dev 2026-12-01.

Status: this summary covers the project page; the paper and code are not covered here. It is a preprint, not peer-reviewed, and every result is the author's own.

The architecture

"An LLM writes the program that fills 97% of a language model's stored weights", with no gradient step. The page says Gemini 4 Neon designed the compiler.

The edit layer

The edit layer is separate and trains nothing. Each fact is a plain record: subject tokens, a hidden-state key and the answer tokens. At inference a record fires when its subject appears in the last 64 tokens and the hidden state's cosine similarity to the key is at least 0.93. It then raises the answer token 1.5 above the top logit. "Records are plain data, so a person or an LLM can write, inspect or delete them." Storing one fact takes about 12 ms.

Results (author-reported)

Editing: 10,000 sequential WikiBigEdit edits, applied in batches and never undone.

Edit layerFine-tuning or LoRA
Edited facts recalled99.9%at most 36.3%
Paraphrases recalled97.4%not given
Unrelated answers unchanged98.2%not given
Perplexity+0.003%above 1,000

Language modelling: against a parameter-matched model without tables, word-level test perplexity is 46.4 versus 52.1, an 11% reduction. Mean zero-shot accuracy on ten tasks is up 1.2 points.

Caveats

Why it matters

Two ideas worth tracking. First, an LLM writing a compiler that produces most of a model's parameters from corpus statistics. Second, and more practical, model knowledge stored as inspectable, deletable records outside the weights. That is retrieval-style fact editing built into the model, and the comparison with fine-tuning (36% recall, perplexity blown up) is a strong argument against editing facts with gradients. It needs independent replication at a real scale before anyone relies on it.

Connections

See R466 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.