| I built an LLM where Gemini 4 wrote the initial weights as code(weights-as-code.pages.dev) | |
| 515 points by umjunsik132 23 hours ago | 174 comments | |
tl;dr: A researcher used an LLM (Gemini 4) to write a compiler that converts 31.8B tokens of corpus statistics into 7.96 GiB of frozen sparse lookup tables, comprising 97% of the model's weights with zero gradient steps. A 103M-parameter network is then trained on top, achieving 11% lower perplexity than a parameter-matched baseline on FineWeb-Edu. An external edit layer stores new facts as records (12ms each, no training), successfully recalling 99.9% of 10,000 sequential edits while preserving 98.2% of unrelated answers—vastly outperforming fine-tuning and LoRA. | |
HN Discussion:
| |