Unofficial Hacker News companion — get notified on comment replies, and more.

I built an LLM where Gemini 4 wrote the initial weights as code (opens external site)

520 points by umjunsik132 1 day ago | weights-as-code.pages.dev | 182 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. It's a superhuman feat, so I'm not trying to downplay. But it sounds like Claude just implemented (something akin to) logic gates with weights, with constants in there too. You wouldn't want gradient descent to arrive at such a solution - you don't get much more overfitted than literally embedding a specific year in gates.
    Replies (1)
    1. Ah fair enough. That sounds like it would be great for factual accuracy, though. Overfitting is literally what you want when it comes to facts. (Similarly, a neural network that acts as something deterministic like a computer or calculator definitely needs overfitting.)

      Although, putting facts it in the weights sounds a bit silly? (Non-trivial to read and write and update?)

      It would probably be more straightforward and to do it the way TFA did ("compiled" from text directly), what or DeepSeek and Qwen have been doing lately (though each seem to have a different definition of engrams.)