← Back to Tech Radar
Hacker News tech

I built an LLM where Gemini 4 wrote the initial weights as code

Trending on Hacker News: I built an LLM where Gemini 4 wrote the initial weights as code (444 points / 145 comments, via weights-as-code.pages.dev)

In one line

An LLM writes the program that builds most of a language model’s initial weights from corpus statistics; gradient descent trains the rest, and an external edit layer adds facts without training.

Opening excerpt

An LLM writes the program that fills 97% of a language model’s stored weights with corpus statistics, with no gradient step. Gradient descent trains only a 103M-parameter network on top, and the model supports continual knowledge updates without training .

Weight-space programming (WSP) is the idea that a frontier LLM can read and write the weights of a neural network directly, without gradient descent. So far, however, WSP has been limited to small networks or to sparse edits of existing models, and it has not been used to build a language model from scratch. We instead have an LLM write a compiler that builds the model’s initial weights. The compiler turns 31.8B tokens of corpus statistics into a 7.96 GiB bank of sparse tables, over 97% of the model’s stored bytes, without a single gradient step. Gradient descent then trains a 103M-parameter network on top of the frozen tables. After pretraining, an external edit layer adds new facts without any training, enabling continual knowledge updates.

(Excerpted from the original; full article via the source link below.)

This story hit the Hacker News front page today (444 points / 145 comments, via weights-as-code.pages.dev). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.

Source: Hacker News

Related Services

Related Reading