An LLM-Written Compiler Builds Most of a Language Model’s Weights Without Gradient Descent

TLDR AITLDR AI·Original
Operator Bae ChangHyun

Key point

Researchers used an LLM-written compiler to fill over 97% of a model’s stored weights from corpus statistics, then trained a 103M-parameter network on top.

Details

  • The researchers used a compiler designed by Gemini 4 Neon to turn corpus statistics into frozen sparse tables that account for over 97% of the model’s stored bytes, without a gradient step.
  • They trained a 103M-parameter network on top of the tables using 10B tokens on one GPU; on held-out FineWeb-Edu documents, it achieved word-level perplexity of 46.4, 11% lower than a parameter-matched model without tables.
  • The table model scored 56.11 mean accuracy across ten zero-shot tasks, versus 54.87 for the baseline, a gain of 1.24 points.
  • After pretraining, an external edit layer added 10,000 facts without training, answering 99.9% of edited questions and 97.4% of paraphrases while leaving 98.2% of unrelated answers unchanged, at 12 ms per fact.

Table architecture

  • The compiler built the tables from 31.8B FineWeb-Edu tokens disjoint from the network’s training data, using 18 channels based on n-grams, skip-grams, synonyms, concepts, rules, and the current document.
  • The Transformer reads the tables through an Engram block after its fourth layer and through gated fusion with its output logits; the tables remain frozen during training.

Post-training fact edits

  • Each edit stores subject tokens, a hidden-state key, and answer tokens; it activates only when the subject appears verbatim in the last 64 tokens and the hidden state matches the key at cosine similarity of at least 0.93.
  • The edit records are plain data that a person or an LLM can write, inspect, or delete, and a new edit for the same subject and relation replaces the old one.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.