I built an LLM where Gemini 4 wrote the initial weights as code
umjunsik132
501 points
167 comments
November 30, 2026
Related Discussions
Found 5 related stories in 66.5ms across 4,908 title embeddings via pgvector HNSW
- Astra can read and write weights to improve Qwen dbreunig · 2304 pts · November 02, 2026 · 58% similar
- The architecture of open-weight LLMs: MoE, hybrid layers, ternary weights silasyl · 14 pts · November 05, 2026 · 56% similar
- LLMs are not superhuman at reading and writing neural network weights agrm · 50 pts · November 02, 2026 · 53% similar
- The 'Astra can read and write weights to improve Qwen' post is misleading syllogism · 948 pts · November 03, 2026 · 53% similar
- Show HN: LLM weight editing tool made by a 15-year-old 032renya · 14 pts · November 08, 2026 · 53% similar
Discussion Highlights (20 comments)
luka598
Just skimmed but this looks like llm doing feature extraction and then training with gradient descent on those features, which i feel is something like these kind of tasks were done before compute heavy learning by destiling the original data using domain knowledge and then fitting a more general model on the destiled data. You just replaced human with a machine. And I guess a machine is also susceptible to bitter lesson. edit: nvm I was mostly worng - llm edits weights of an additional layer
hoppp
Continual knowledge updates sound good on paper but give it time with me and it'll learn to curse back like a mofo
dude250711
It must be tough being an ML specialist these days: do you want your account locked or do you want your work sabotaged.
xelananv
This is interesting! How much time do these compilations take, compared to training?
mycall
Somehow reminds me of code = data in a lispy way.
blondie9x
Where is it noted that Gemma 4 was used as the initial model?
corvettez0606
Soon someone will do something like this but with lifting layers from all the various open weight models to make a super model.
deadbabe
Ok, so if we can do this kind of thing fast enough it seems like eventually we don’t need context we can just update weights with memory of every prompt and output built right into the model?
riverdweller
I tried using Fable 5.1 a few weeks ago to craft a neural network (that simulated a much more expensive financial risk calculation engine that executes large numbers of Monte Carlo simulations). It came up with a network that agreed with the simulation around 98% of the time. But the resulting network couldn't then be used as a starting point for further "traditional" training through gradient descent; it was far too sensitive. It turned out that instead of using weights with small absolute values (e.g. -2 < w < 2) it had in some parts of the network HUGE weights (like 10^10 in some cases), and if a result was, say, the difference between two weights like 10,000,000,000 - 10,000,000,002 = -2, then a "tiny" weight nudge of even one millionth resulted in things like 10,001,000,000 - 9,999,000,002 = 1998, which sent the results wildly off. So it was far too sensitive to any such changes to be trainable. Shrinking the nudge steps to 1/10^10 helped eliminate the sensitivity, but then made the changes in smaller weights in the "normal" range far too tiny to have any effect, so the network couldn't improve at all. It was easier to just start from random weights. I didn't try it, but I suspect that if my prompt had told fable to keep all values/slopes inside a small range and to work in log units it might have turned out rather better.
lumost
This looks roughly on par with “adding curated features to a small network gives a small boost.” The ablation is between the 103M parameter model with 8GB of weight space features and the 103M parameter model without, gaining only 11% on perplexity. I’d strongly expect this gain to disappear at larger model sizes.
baq
also compile z3 or a smaller sat solver into the weights and train the whole thing to use it
manbitesdog
This is called a Gödel Machine: a program that rewritews itself whenever it can prove the rewrite will do better. I remember reading about this on 2017 with the name Hypernetworks, a network that outputs the weights of another. With the current generation, it seems like a good timing for this approach to work.
benob
I don't see how this relates to WSP. The agent wrote a program to extract statistics and trained a model on top of it. Besides, the comparison at same number of trainable parameters forgets the many non-trainable parameters. Equal memory/disk space would be more appropriate.
djoldman
At inference, you need 8GB of table data in addition to the ~103 million parameter model. The paper essentially claims that for the same training compute you get perplexity like a network about 1.5x larger, but you have to use 8 GB of memory at inference time.
enjoyyourlife
I wonder if it is possible to use an ontology to build an LLM. LLMs seem to be good for fast information retrieval
13rac1
From the website: > the model supports continual knowledge updates without training. From the README: > Limitations. The layer fires only when the subject appears verbatim, so aliases are missed. Answers are emitted verbatim. Reverse ("who coaches X" → "which team does Y coach") and multi-hop questions are not answered from an edit. This method produces verbatim fact answer overrides: the answer is output when the subject appears verbatim. This isn't information the model can use, such as in reverse or multi-hop questions. I disagree with calling it "continual knowledge updates."
zkmon
Is this possible because the frontier models saw the weights of the open-weights models (and maybe their own)?
Sena_997
very misleading title, like someone might assume that LLM wrote weights directly
iantongeorge
two specific mechanisms from this paper (wtable-lm) map almost 1:1 onto TempleRust's Ring-0 philosophy - COMING SOON
MisterPea
It's all Joever. Iterations on this has extremely large implications on alignment