| ▲ | mbgerring 19 hours ago | ||||||||||||||||||||||||||||||||||||||||
Explain how they work in your own words | |||||||||||||||||||||||||||||||||||||||||
| ▲ | mapontosevenths 13 hours ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||
I elaborate at length beneath the now flagged child comment below, but I'll summarize here for others benefit. Yes, LLM's generate sequences of tokens based on the input prompt and a huge amount of data, but saying they "predict the next token" completely misses the point and doesn't explain why they're able to solve problems that have stumped the brightest living humans for decades or even centuries. Folks lately have taken to referring to it as "compression", but even that term is lacking. You can't "compress" or "predict" 2+2 and get 4 unless it's already in the training data, but LLM's can and do learn to do math, logic, and other multi-step computational tasks that let them output sequences of tokens that were never in the training corpus every day. I've trained a few myself, and it's relatively trivial to both build or test systems that do this yourself at home now. If you're curious how that works you can Google reinforcement learning, but the brutally simplified version is: During training the output they generate is scored based on how well it matches novel data including data that is NOT IN the training corpus. Essentially they have to compress the sum total of human knowledge, give or take a bit, in such a way that it produces an output that answers the prompt without ever being told what the correct answer was until after the fact, that means they have to determine how to generate the correct answer given only the information they have in the weights, the prompt, and a bit of compute. Again, they do this even when the correct answer isn't in the training data. They can only achieve that "miracle" because they are taught using criteria that typically involve logic, reasoning, math, and other skills that many humans don't even possess. They aren't just databases, they aren't just autocomplete, and they aren't just "predicting" the next token... They are generating a novel output based on the training data, the weights, the prompt - and perhaps most importantly - a great deal of computation. So yes, they generate sequences of tokens but they aren't "predicting" anything (in the sense that most people mean it) and that phrasing is misleading because it makes the giant bundles of simulated neurons that iterativly crawl/climb through latent space in search of the correct answer sound like it's auto-predict. It's not. I hope that helps, but if not Google reinforcement learning and Chain of Thought. Others will do better jobs of explaining I'm sure. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||