Static

I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes)

First reported by Weights-as-code.pages.dev ·

The signal ●○○○ Compiled by AI from Weights-as-code.pages.dev and Hacker News
Why you might care

Language models can now be updated with thousands of sequential facts without training or retraining.

What happened

Independent researcher Youngseong Kim introduced a language model architecture where an LLM writes a compiler that populates 97% of the model's stored weights as frozen sparse tables, requiring no gradient descent. The compiler turns 31.8B tokens of corpus statistics into a 7.96 GiB bank of sparse tables, while gradient descent trains a separate 103M-parameter network on top. Trained on 10B tokens on a single GPU, the model achieves a word-level perplexity of 46.4 on held-out FineWeb-Edu documents, which is 11% lower than a parameter-matched baseline model without tables. An external edit layer adds 10,000 sequential facts without any training, successfully answering 99.9% of edited questions while keeping perplexity stable. The model features 18 channels spanning n-gram, skip-gram, synonym, concept, rule, and in-context groups to predict the next token.

What it means

This architecture demonstrates a viable alternative to traditional pretraining paradigms by decoupling static corpus statistics from parametric neural network learning. Using an external LLM to generate weight compilers directly addresses the massive compute requirements typically needed for foundational model construction. The resulting separation of frozen statistical memory from a small trainable backbone points toward highly efficient deployment patterns for resource-constrained environments.

The external edit layer solves the persistent challenge of catastrophic forgetting during sequential knowledge updates without relying on fine-tuning or LoRA. By storing edits as plain records that trigger based on exact subject matches and hidden state similarities, systems can maintain factual accuracy at scale. Downstream applications requiring real-time knowledge integration without expensive gradient steps will benefit immediately from this design.

AI-written summary. May contain errors.