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)

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

View full thread · View on Hacker News

Comment thread (2)

  1. That's the most interesting thing I've heard in a long time.

    Gradient descent messed up the network.

    That makes it sound like kind of a blunt instrument. (A blind watchmaker, you could say :)

    The reverse works though. You can take a network created by gradient descent and then have an LLM optimize it. (That was the whole point of the original paper after all.)

    The implication here seems to be that gradient descent is capped at what performance level it can achieve for network of given size? (If these sensitive configurations are outside of the set that it can converge on.)

    All else being equal you could achieve better results and cheaper inference by letting AI optimize the network.

    Now what I'd really like to know is what the relative costs are for the same level of performance!

    (Also, at the risk of sounding offensive, "too sensitive" is not solvable with step size? The finer details here elude me. Although, even if step size fixes that, my intuition tells me there are still many solutions gradient descent would not arrive at. Someone better at math than me, please chime in!)

    Replies (1)
    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.