This demonstrates examples of "features that generalize" in early production LLMs - like "golden gate bridge" feature that crosses between Chinese and English, or "code error" feature that crosses between Python and C code.
That's empirical evidence of LLMs finding representations like this.
Vector spaces: wrong abstraction layer? Sure, at the day's end, all LLM activities revolve around residual stream - FFN and attention and embedding/unembedding all read/write it. But that tells us very little about whether an LLM learns certain representations.
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.
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.
Also regarding the "failure cases". To be honest I had a bit of an issue coming up with some because they are hidden deeply within my chat history and I'm not in the mood to go digging for them. But you can just ask an LLM for the failure cases and it will list a lot of them.
This goes to your composition argument. We have had evidence for a while that the LLM is predicting the next token and if something doesn't exist in the training data, it fails to predict the correct answer in certain cases. For example in the reversal curse example. This doesn't mean that there is _no_ compositionality or generalization in LLMs, but to me it just means that the story is more complicated than simply saying the LLM neatly compresses everything into composable primitives. Also the more holes the developers of the LLMs plug, the more difficult it is to know the failure cases.
Regardless of this my main argument was that we have not yet separated complex probability distributions of tokens from the emergent properties of that activity like compositionality. I would argue you can explain all of the emergent properties in terms of the probability distribution. When the LLM is predicting the next token it's traversing a complex high dimensional space that can include and exclude predictive trajectories through the space. If the model has a lot of parameters and a lot of training data, you get very sophisticated trajectories that can capture a lot of different cases. From this you get behavior that looks like compositionality but maybe is not, but the jury is still out on that. I have seen things in LLMs that seem damn near magical so I'm not going to claim I know this for a fact.
The optimizer doesn't find a perfect solution - it finds one that works. LLM compression is inherently lossy and imperfect. Model capacity is limited, and our optimizers have painfully finite compute budgets to work with.
LLM compression is, however, more than good enough for LLMs to be useful. It both discovers useful features and arranges them in ways that make them amenable to further composition.
I don't think "complex probability distributions of tokens" is that useful of a primitive for reasoning about LLM capabilities? Again: too low of an abstraction layer to be useful for what we're trying to reason about.
This is kind of hard to explain but I feel like there is a difference between a generalized representation and what I understand to be happening in an LLM. From what I gather, LLMs have a high dimensional space and there are thousands of vectors involved in predicting the next token, so for example if I ask it to download a youtube video, there may be shared activation spaces around downloading a video, which shifts the distributions of tokens towards tokens related to downloading a youtube video. But does it for example generalize the concept of downloading? Do all prompts related to any kind of downloading share vector spaces and are generalized? This seems wrong to me but I could be wrong.
Also is it really true that it can create compressed representations that decompose? Like I feel like to understand tools and specific scenarios you need agent skills and training data about the tool. It can't just learn from something else. So there _is_ a lot of specialized instances of data about all kinds of things. The higher level goal of "downloading a youtube video" doesn't really matter in the grand scheme of things, it only matters as much as it helps the LLM find the right text to produce. Like in my example it may be that if I used the keyword "yt-dlp" in the prompt that would matter a lot more than "download a video".