Oriel — AI & technology worth noticing, every day.

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

Web page · https://weights-as-code.pages.dev/

First seen by Oriel on .

AI summary

The paper describes a language model whose LLM-designed compiler turns corpus statistics into frozen sparse tables, which provide most stored weights while a small neural network is trained on top.

  • The compiler converts statistics from 31.8B tokens into 7.96 GiB of tables, over 97% of stored model bytes, without gradient descent.
  • A 103M-parameter network trained on 10B tokens achieves 46.4 word-level perplexity, versus 52.1 for a parameter-matched model without tables.
  • The table model improves mean zero-shot accuracy by 1.2 points across ten tasks; its tables use 18 channels spanning n-grams, concepts, rules, and in-context predictions.
  • An external edit layer adds facts as inspectable records at about 12 ms per fact, without training; after 10,000 edits it answers 99.9% of edited questions while preserving 98.2% of unrelated answers.
  • The reported evaluation covers held-out FineWeb-Edu documents and WikiBigEdit edits; the compiler was designed by Gemini 4 Neon.

#language models #weight-space programming #sparse tables #knowledge editing

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 531, latest observation ; +520 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 183, latest observation ; +183 over observed period since

Aliases

SourceExternal IDURL
Hacker News50699217https://weights-as-code.pages.dev/ Read discussion