logoalt Hacker News

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

108 points • by umjunsik132 • today at 1:00 PM • 20 comments • view on HN

Comments

riverdweller • today at 1:54 PM

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.

➕ show 1 reply
lumost • today at 1:56 PM

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.

mycall • today at 1:36 PM

Somehow reminds me of code = data in a lispy way.

luka598 • today at 1:26 PM

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

baq • today at 1:57 PM

also compile z3 or a smaller sat solver into the weights and train the whole thing to use it

corvettez0606 • today at 1:46 PM

Soon someone will do something like this but with lifting layers from all the various open weight models to make a super model.

➕ show 1 reply
hoppp • today at 1:30 PM

Continual knowledge updates sound good on paper but give it time with me and it'll learn to curse back like a mofo

➕ show 1 reply
xelananv • today at 1:33 PM

This is interesting! How much time do these compilations take, compared to training?

deadbabe • today at 1:50 PM

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?

➕ show 1 reply
blondie9x • today at 1:45 PM

Where is it noted that Gemma 4 was used as the initial model?

dude250711 • today at 1:30 PM

It must be tough being an ML specialist these days: do you want your account locked or do you want your work sabotaged.

➕ show 3 replies
scintillating • today at 2:02 PM

[dead]