Audio version of June 10th substack post here. Get full access to Entropy Bonus at profbachman.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Hello, and welcome back to the audio version of my Substack Entropy Bonus.
SPEAKER_00Today I'm going to talk about my Substack entry from June 10th, titled, Are LLMs Just Bullshit Machines? The Question of LLM Understanding. Shortly after ChatGPT was released, a colleague of mine wrote a few things about it that got a lot of attention, and it even led to him getting an NPR interview. His basic thesis was that ChatGPT is just a bullshit machine. Those were his words. I'll explain. Every current large language model, or LLM, is developed in a series of stages.
SPEAKER_00And in that first stage, called the pre-training stage, it's really just a souped-up autocomplete mechanism. You can get a sense of this by just starting to type a text message on your phone. When you see those three next word suggestions come up, just keep selecting the middle one. Do that over and over again and your phone will generate a message that makes grammatical sense just by picking the most likely word that follows the previous ones that you've selected. After the first stage of creating an LLM, that pre-training stage,
it works in a similar way.
SPEAKER_00Some people have even called them stochastic parrots. All that means is that they just echo the statistical patterns in human speech. That's the sense in which LLMs are just bullshit machines. They generate reasonable sounding sequences of words without any understanding of what they mean. Or do they? I'll lay out the arguments and counter arguments for this question, and I'm going to let you decide. One obvious critique of LLM understanding is that they really do just generate one word at a time.
They don't have any sense of the fifth word of their response before they've
SPEAKER_00generated the first four. And that may seem like a pretty damning argument against LLM understanding. But I would argue the same is true for humans. If I were to ask you a question, can you really tell me what the fifth word of your response is without choosing all the ones before it? I don't think so. Now, some of this question is going to come down to your definition of what it means to truly understand anything. That's a really thorny philosophical question. And unfortunately, it's really an inescapable part of this discussion.
SPEAKER_00So for example, like some people have argued that true understanding originates from something outside the physical form, something like in a soul or a spirit or something similar. And nobody's really, nobody serious is really arguing that LLMs possess a soul. So if that's your definition of understanding, then of course, you've just settled the question for yourself. Similarly, there's an argument that non-biological things can't understand things because understanding is a form of thinking, and to them, thinking is inherently a biological process.
SPEAKER_00That's just, again, another definitional way out of answering the question of whether or not LLMs really understand what they're saying. And that kind of argument applies to any AI model ever developed, no matter how advanced any time ever now or in the future, So it's not really a useful argument. I can't argue against that because you've just defined your way out of the question. And I'm more interested in discussing whether or not the current systems have actual understanding, starting from the premise that that understanding is actually possible.
SPEAKER_00So again, I want to reframe the question. If you define understanding in a way so that someday, somehow, machines could possibly satisfy your definition of understanding... Then the question is, do our current LLMs satisfy that definition? Do they actually understand what they're saying? There's a really serious critique that I've heard that current LLMs are not trained with sensory input. So if they generate a sentence like, the apple smelled delicious,
SPEAKER_00but it tasted sour, they have no real sense of smell or taste, so they certainly can't have any first-hand understanding of what they're saying. That's certainly true, but not all statements concern experiential knowledge of the world like that. Some statements, in fact, I would argue even most statements, are about more abstract concepts. Things like time or money or dark matter or negative numbers. Those are all abstract concepts, and we talk about those abstract concepts and the relationships
between them. And it's in those kinds of statements where you can make the argument that LLMs
SPEAKER_00really do understand what they're saying. So let me explain that a little bit. In future posts, I'm gonna get into the details of how modern LLMs work and all the stages they go through in their training beyond that initial auto-complete stage. But in this post, I just need to broadly describe that first key part of the pre-training stage, that first stage. And that key part is called the attention mechanism. Before I get to that though, I have to give you a little bit of background.
Modern LLMs, they're trained by going through a process of what's called supervised learning. All that means is that they're shown a lot of incomplete sample sentences where you
SPEAKER_00just have a part of a sentence. The next word that follows that part of the sentence is known to you, but not to the machines. It's hidden from the machine. And then the machine comes up with several guesses for what that next word might possibly be. And only then, after the machine comes up with guesses, are those guesses compared to the actual answer. So the actual answer is revealed for the next word and those guesses are compared. And each time that happens, the parameters that define the model are adjusted slightly so
all those candidate
SPEAKER_00next words become closer to the actual answer in a numerical sense. All these words are translated into numbers. And what you want is the numerical counterparts to those guesses for the next word to become closer and closer to the actual next word over time. And that's what happens over time as the model trains. It gets better and better at guessing the next word. Again, that's called the pre-training phase of the LLM. Now, when you actually use an LLM to answer a question,
you just log onto ChatGPT or Claude or Gemini and you type in a question and it
SPEAKER_00starts generating a response. What's happening under the hood is that it's responding, it's generating one word at a time of its response. And each time it goes to generate a word, it actually comes up with several candidate words and it really just picks between those candidate words randomly. It uses a particular probability distribution between those words, but it is a random process. And that's exactly why every time you ask an LLM a question, the answer it gives you will be different. It's not a deterministic process.
SPEAKER_00In other words, a deterministic process would be one where every time you ask the same question, you would get the same answer. And LLMs just don't work that way. Now, if you really want to get under the hood and understand how LLMs work, they have so many moving parts. There's a lot that goes into a modern LLM. But probably the key part of any LLM is still the attention mechanism. This goes back to a Google paper from 2017 called, Attention is All You Need. And it's really this key insight that has unlocked all these
LLMs for us since then.
SPEAKER_00So I'll explain what the attention mechanism is a little bit. So in the attention mechanism, The LLM breaks down all the sample sentences that it sees. So it breaks down a sample sentence. And each word, or the numerical version of that word, is compared to every other word in the sentence. Now, each word is also assigned a value, which is just a long sequence of numbers that is capturing what the LLM thinks the meaning of that word is. The meaning of a word is captured by a whole set of numbers.
And all those meanings in every word and every sentence are compared to all the
SPEAKER_00other meanings of every other word. So just as a simple example here, if you say something like, the ball bounced on the table, the meaning of the word ball is tied to some understanding that it is a thing that can bounce on an object like a table. So the word ball, the word bounce, and the word table are all interacting with each other within the sentence, the ball bounced on the table. Similarly, a table is a thing on which a ball can bounce.
SPEAKER_00So when it's looking at the word table, it's going to look at the other words in the sentence and see the word ball and the word bounce. And so it starts to develop these understandings of the word ball in conjunction with the word table and bounce, or the word table in conjunction with the word ball and bounce. In other words, I'll just put it more succinctly, what it does is it starts to understand how words are used in particular contexts. When there's surrounding words in the sentence or in the
paragraph or in a whole book, each word takes on a particular role within the context of all the other surrounding words.
SPEAKER_00And LLMs don't just have one attention mechanism, they have many. And that allows them to get a sense how the same word can be used in a lot of different ways, in a lot of different contexts. And they have attention mechanisms on many levels. They have attention mechanisms that pay attention to the output of other attention mechanisms. And what that does is it aggregates, it has the effect of aggregating multiple words together into single concepts and then learning how those higher level concepts relate to other
higher level
SPEAKER_00concepts. There's a paper now that's famous now, put out by researchers at Anthropic, really diving into the specifics, the technicalities of how modern LLMs contain these internal representations. And so one of the examples in that paper is that their paper they showed there's an internal representation of the concept, the Golden Gate Bridge. And what's fascinating about that is that internal representation is not tied to
SPEAKER_00the specific words, Golden Gate Bridge. It's somehow a higher level concept that is independent of language. So the same numerical representation is happening, whether or not you use English words or Spanish words, or Japanese words, it's still triggering the same internal representation. It's even triggering that same internal representation when you show it a picture of the Golden Gate Bridge. So it's really remembering some sort of higher order concept that's not tied to language.
SPEAKER_00It's really a conceptual understanding. And that's really the sense in which you can argue that LLMs do have an understanding of what they're saying. Every word that we say or every group of words is a representation of concepts. And the meaning of any concept comes from its relationship to all the other concepts. And it's exactly those relationships that LLMs learn from their training data. Researchers are really only just beginning to understand these complicated concept relationships that are contained in modern large language models.
SPEAKER_00And this is this new field that's called mechanistic interpretability. And it's really become central. It's a very, very important field right now. for our understanding of how LLMs produce the results they do, it's also very, very important within the new field of AI safety because once we understand how LLMs produce the results they do, then we can get in there and attack the nuts and bolts of the LLM to make them safer and make them more useful.
SPEAKER_00So to sum it up, do LLMs really understand what they're saying? Well, again, it depends on your definition. If you think the meaning, just the meaning of any word or concept comes from relationships between other words and concepts, then I would say yes, LLMs do understand what they're saying. But if you think meaning comes from something else, like something embodied, like taste or smell, or it comes from something emotional, if it resides in some emotional part of your being,
SPEAKER_00or maybe something spiritual from outside of your physical form, then if that's what you believe, then LLMs probably do not have any sense of understanding. Not probably, but they definitely don't. So my colleague may be right. Maybe LLMs really are just really sophisticated bullshit machines. But maybe convincing enough bullshit really requires some level of understanding. I hope you enjoyed this post. Just a quick editorial note.
SPEAKER_00I have a lot of ideas, and I already have several drafts. I have about 10 new blog posts drafted that will come up in the coming weeks. But I also want to be somewhat responsive to reader interests. So if there's something you'd like me to talk about, just hop onto Substack and make sure you've subscribed to my Substack Entropy Bonus. Just look it up. And in the comments, feel free to suggest things that you want me to talk about. And I will talk to you next week.