A researcher had an LLM write 97% of a language model's weight bytes as code, and early results say it works

By Lounes Hareb18 views
  • AI Tools
  • Open Source
A researcher had an LLM write 97% of a language model's weight bytes as code, and early results say it works

What if most of a language model's knowledge did not have to be trained at all? A preprint posted to Hacker News today, by independent researcher Youngseong Kim, describes a language model architecture where a frontier LLM (Gemini 4 Neon, per the author) writes a program that compiles corpus statistics directly into frozen lookup tables holding 97% of the model's stored weight bytes. Gradient descent trains only a 103-million-parameter network that reads those tables, through what the paper calls an Engram block after its fourth layer and a gated fusion with its output logits. No gradient step touches the tables themselves, which total 7.96 GiB against the network's 103.25M parameters.

The reported results are early and self-reported, but they point in an interesting direction. On 2,000 held-out FineWeb-Edu documents, the table model scored a word-level perplexity of 46.41 against 52.11 for the same network without tables, an 11% improvement that the author estimates matches what a network about 1.5x larger would gain, using the Kaplan et al. scaling law. Keeping more table entries keeps helping, with no sign of saturation per doubling, the author reports. Zero-shot accuracy across ten standard tasks averaged 56.11 for the table model against 54.87 for the baseline, with the largest gains on tasks rewarding common word associations, per the paper's lm-eval numbers.

The more interesting claim is updating. Because the tables are just data, the architecture can absorb new facts after pretraining without any training: in the paper's demo, 10,000 WikiBigEdit facts are applied batch after batch, stored as records by an edit layer, while conventional weight-editing methods forget old facts and damage the model, per the author. If that holds at scale, it points at models whose knowledge can be corrected like a database rather than re-trained like a brain.

The caveats are large. This is a single-author preprint on preprints.org, not peer reviewed, with all metrics self-reported at 103M parameters, far from frontier scale. The code and results are public on GitHub (Kim-Ai-gpu/wtable-lm), so the claims are at least checkable. "Weight-space programming," the idea that LLMs can read and write neural network weights directly, has been floating around research circles for weeks; this is the first public attempt we have seen to make it carry almost an entire model. The repository is MIT-licensed, so anyone can rerun the experiments or raid the code.

Sources: weights-as-code.pages.dev (project page, abstract and benchmark tables, read November 30, 2026), preprints.org manuscript 202611.3172, github.com/Kim-Ai-gpu/wtable-lm. All results are the author's own reports, not independently replicated.

Share this article