An independent researcher has demonstrated a language model in which 97% of the stored weights were written as code by Gemini 4, Google's frontier AI model, without a single gradient descent step. Youngseong Kim published the work under the name Weight-space Programming (WSP), with code and results available on GitHub.
The experiment inverts the usual training pipeline. Instead of learning weights from scratch through backpropagation, Gemini 4 wrote a compiler that converts 31.8 billion tokens of corpus statistics into a 7.96 GiB bank of sparse tables — over 97% of the model's stored bytes. Gradient descent only trains a 103-million-parameter network sitting on top of those frozen tables.
How weight-space programming works
The compiler designed by Gemini 4 Neon turns corpus statistics into lookup tables rather than learned parameters, according to the researcher's paper. The tables are frozen; only the 103M-parameter network above them is trained, and only on 10 billion tokens using a single GPU.
A separate edit layer handles knowledge updates. Instead of retraining or fine-tuning, new facts are stored as plain records and injected at inference time. The researcher describes the records as data that a person or an LLM can write, inspect or delete.
Benchmark results and edit performance
On held-out FineWeb-Edu documents, the table model reached a word-level perplexity of 46.4, which is 11% lower than a parameter-matched baseline without tables (52.1). The researcher estimates this is comparable, under standard parameter scaling laws, to making the network roughly 1.5 times larger.
The edit layer showed strong recall in the WikiBigEdit benchmark. It answered 99.9% of edited questions and 97.4% of their paraphrases, left 98.2% of unrelated answers unchanged, and shifted perplexity by only 0.003% at 12 milliseconds per fact.
- Model: 103M trained parameters plus frozen sparse tables
- Table size: 7.96 GiB, over 97% of stored bytes
- Perplexity: 46.4 vs 52.1 baseline (11% improvement)


