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:
  • ↓The approach is just feature engineering with an LLM replacing human domain experts, subject to the bitter lesson
  • ↓The claimed gains are modest and likely won't scale, requiring large memory overhead at inference
  • ↓The fact-editing mechanism is limited to verbatim overrides and isn't true knowledge integration
  • ↑This fits into a lineage of prior ideas like Gödel machines and hypernetworks whose time has come
  • ↓The comparison methodology is flawed because it ignores non-trainable parameters and should use equal memory