Language model whose starting weights an LLM writes as code, with no gradient training
The paper describes a language model whose initial weights are written by an LLM as a program. The compiler, which the source says was designed by Gemini 4 Neon, turns 31.8B tokens of corpus statistics into a 7.96 GiB bank of sparse tables that hold over 97% of the model's stored bytes, with no gradient step. [Gradient descent[1]] then trains a 103M-parameter network on top of the frozen tables.
Trained on 10B tokens on a single GPU, the model reaches a word-level perplexity[2] of 46.4 on held-out FineWeb-Edu documents, against 52.1 for a parameter-matched model without tables, which is 11% lower. Mean zero-shot accuracy on ten tasks is 1.2 points higher.
An external edit layer adds new facts after pretraining without any training. Over 10,000 sequential WikiBigEdit edits, it answered 99.9% of the edited questions and 97.4% of their paraphrases, at 12 ms per fact. Fine-tuning and LoRA[3] recalled at most 36.3% of the edits and pushed perplexity above 1,000.
Read the original weights-as-code.pages.devDiscussion
Discussion
Commenters are skeptical about the size of the gain: one says the 11% improvement may disappear at larger model sizes, and another notes that the tables need 8 GB at inference, so the fair comparison is at equal memory rather than equal trainable parameters. Another commenter says the README's limits, such as missed aliases and unanswered reverse and multi-hop questions, make the phrase "continual knowledge updates" an overstatement.
Sources
-
weights-as-code.pages.dev
I built an LLM where Gemini 4 wrote the initial weights as code
-
KRGeekNews KO
Gemini 4가 초기 가중치를 코드로 작성한 LLM, 저장 바이트의 97% 차지


