5 ms·
> We still don't understand too much about how LLMs process information internally I admit I personally don't know too much about how "LLMs process information
by galaxyLogic 3y ago
> We still don't understand too much about how LLMs process information internally
I admit I personally don't know too much about how "LLMs process information internally". But, I would find it curious if programmers who created the system wouldn't understand what it is doing. Is there any evidence that the LLM programmers don't understand how the program they created works?
- kromem 3y agoLLMs aren't programmed and it's why the neural network working as it does is black box to everyone, developers included. Imagine a billion black boxes with hamsters put in them. You put in a bag of equally mixed Skittles in one end of each box and then rate each box based on how well it does to get rid of the yellow and green Skittles but push out the others. The ones that do the best at this you mate the hamsters and go again, over and over. Eventually you should have hamsters in boxes that almost always get rid of yellow and green Skittles and output the rest. But is it because you bred in a preference to eat those color Skittles? An aversion to the other colors? Are they using those colors for nesting? Do they find the red and blue and orange ones too stimulating so they push those out but leave the others alone? There could be a myriad of reasons why your training was successful, and without the ability to introspect the result you just won't know what's correct. This is a huge simplification by way of loose analogy for what's going on with training a transformer based LLM, but no one is sitting there 'programming' it. They are just setting up the conditions for it to self-optimize around the training goals given the data, and the 'programming' just has to do with improving the efficiency of the training process. Analyzing the final network itself is like trying to understand what each variable in a billion variable math equation is doing to the result.
- galaxyLogic 3y agoWhen you train an LLM you do that by executing some computer code with some inputs. The programmers who wrote the code you execute know exactly what it does. Just like Google knows exactly how its search-algorithm works. An LLM uses statistics and Markov-chains and what have you to generate the output for a given input. It's like with any optimization algorithm. You cannot predict what exactly will be the result of a given optimization-run. But you know how the optimization algorithm works. The (more or less) optimal solution you get back might surprise you, might be counter-intuitive. But programmers who wrote the code that did the optimization, and have the source-code, know exactly how it works. When you get a result from LLM you don't say "I can't possibly understand why it came up with this result?". You can understand that, it's just following the rules it was programmed to follow. You might not know those rules, you might not understand them, but programmers who wrote them do.
- IanCal 3y agoYou're mixing up what we mean by what rules it's following or how it's working. If I ask how it's able to write a poem given a request and you tell me you know - it multiplies and adds this set of 1.8 trillion numbers together X times with this set of accumulators, I would argue you don't understand how it works enough to make any useful predictions. Kind of like how you understand what insane spaghetti code is doing - it's running this code - but can have absolutely no idea what business logic it encodes.
- galaxyLogic 3y agoIt is not "spaghetti-code" but well-engineered code I believe. The output of an LLM is based on billions of fine-tuned parameters but we know how those parameters came about, by executing the code of the AI-application in the training mode. It doesn't really encode "business logic", it just matches your input with the best output it can come up with, based on how its parameters are fine-tuned. Saying that "We don't understand how it works" is just unnecessary AI-mysticism.
- IanCal 3y agoThe spaghetti code comparison is not to the code but the parameters. > It doesn't really encode "business logic" Doesn't it? Gpt architectures can build world models internally while processing tokens (see Othello got). > we know how those parameters came about, by executing the code of the AI-application in the training mode. Sure. But that's not actually a very useful description when trying to figure out how to use and apply these models to solve problems or understand what their limitations are. > Saying that "We don't understand how it works" is just unnecessary AI-mysticism. We don't to the level we want to. Tell you what, let's flip it around. If we know how they work just fine, why are smart researchers doing experiments with them? Why is looking at the code and billions or trillions of floats not enough?
- trashtester 3y agoI think of LLM's as if we would create a human stem cell from scratch, including the DNA, and then grow it to a person. We may know every we put every single atom in that stem cell, but still not know any more about the resulting baby (and later adult) than we do about humans made the natural way. Oh, and if you're looking for reasons to regulate AI, this metaphor works for that, too.
- seanhunter 3y agoPeople understand how the program works but not how the network produces the outputs it does from the inputs and training it receives. The mechanics of how these models work at a very high level are: 1. Tokenize some input so you have some big vectors 2. <bunch of linear algebra involving these vectors and some sets of matrices of weights> 3. Take the output vector and turn it back into tokens Each of these steps are well understood in and of themselves. So maybe the magic is in the way the matrices of weights are generated and trained? Well we know they typically start as random matrices, and can explain how as the network is trained these weights are tweaked in various ways. All of that is known. What’s unclear is specifically how the weights in the matrices correspond to our understanding of the concepts in the input and output and how it all seems to add up to a system that works as well as it does. I think that’s what they meant by not understanding how they process information internally.
- galaxyLogic 3y ago> that’s what they meant by not understanding how they process information internally. There is no other "internal information processing" happening in an LLM than the process it was programmed to execute. Is there? The code an LLM executes is not too complicated for humans to understand. After all it was written by humans. The outputs may be surprising but so it is with lottery. Why did I win the jackpot this week, when I didn't win anything in the last 10 years? Very counter-intuitive. I can't possibly understand that? Yes I can, it is just statistics and probability.
- seanhunter 3y agoAs I tried to explain, it's not the code that people don't understand. People understand the code they wrote. It's why the bunch of linear algebra on the weights works to do this particular task, and how it will respond to any particular task that is a bit mysterious. Like imagine someone gave you the Taylor series expansion of the inverse Kepler equation[1]. So you just have a bunch of crazy fractions of powers of x that you add up. And then they say ok now the this function will very accurately explain the orbit of the planets. You'd be able to do the steps - you're just adding up fractions. You'd be able to verify the answer you got corresponded to the orbit of a given celestial body. But if you didn't have all the pieces in the middle (calculus mainly) there's no way you'd be able to explain why this particular set of fractions corresponds to the movement of the planets and some other set doesn't. [1] https://en.wikipedia.org/wiki/Kepler%27s_equation https://en.wikipedia.org/wiki/Kepler%27s_equation scroll down a bit