logoalt Hacker News

thrw045 • today at 3:37 AM • 1 reply • view on HN

I will admit this is very interesting and it would be very hard to write a proper response to this off hand like this in a HN thread. So the following is more of a casual response.

But just looking at it, for example https://transformer-circuits.pub/2024/scaling-monosemanticit...

You can see the feature doesn't just activate on errors in code, it activates on all kinds of other random bits of information. You can also see it in the golden gate bridge feature https://transformer-circuits.pub/2024/scaling-monosemanticit...

It activates on the words "Then bike to" and "similar" and even "icy patch of water which is 50 miles" as examples. This to me doesn't read like a clean generalization, but rather something else which is hard to describe. I don't think we have a good mental model for what happens when you have thousands of embedding dimensions for a token and you run next token prediction on those tokens. What information is being counted and how?

But one thing to look out for are the failure cases, especially the ones we saw in earlier models. I would ask it to code a Google API script, and it failed at writing code that actually worked. It didn't have a mental model of the Google API at the time. Also it used a script I wrote (it was the only script of its kind that I could find online) but it miswrote parts of the script and thus it didn't work.

There are also failure cases like the reversal curse which you've probably heard of.

Overall though I would say that there is definitely activation space sharing and features do and can connect information and the LLM can use this shared information, it's just not as clean or intuitive as it may seem. I think the way I mentally model it is that all of these shared connections emerge randomly and jaggedly on what is ultimately a goal of predicting the next token. There is an incredibly nuanced and dense probability distribution of tokens, and since tokens aren't always complete words, it gets even more difficult to mentally model how that probability distribution is being calculated.

So there's a very fine line between generalization as we see it in humans and generalization in LLMs which I would argue is a very different beast.


Replies

ACCount39 • today at 4:44 AM

"Bike to" is a fascinating example because it points to "anticipation" in LLMs. It's not actually random. It's LLM's predictive machinery in action.

The feature fires not just at the direct mentions of Golden Gate Bridge, and not just at indirect mentions of it too, but also near the moments the model expects it to be mentioned.

"Bike to" what? Golden Gate Bridge maybe? No, "work"? Fine. "Bike to Golden" what, "Bike to Golden Gate" oh surely it's "Bridge", what, no it's actually "Park"? Fine.

And then "GG bridge" is actually mentioned - but the feature, again, starts to light up in advance.

The same goes for "has similar" - similar to what? Golden Gate Bridge? The bridge does get mentioned, but later. Or "a picture of the" - of what, the bridge that was mentioned shortly before?

And, I don't think your "failure cases" point to anything? You're just bringing them up to bring them up.

➕ show 1 reply