Remix.run Logo
▲ mapontosevenths 13 hours ago

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.

▲mbgerring 11 hours ago | parent [-]

This is a lot of words to say “yes they predict the next token but the prediction criteria is mysterious to me”

▲mapontosevenths 10 hours ago | parent | next [-]

No. It isn't.

It isn't "predicting" the next token any more than you are predicting your next thought. It's probability based, but that's the wrong word to describe what they are doing. It made more sense with GPT-2, but is just totally a bad fit now.

"Compress" is closer, but only in the sense that learning the algothrim required to answer is "compression." it's not a bigass codebook either.

▲arbitrary_name 7 hours ago | parent | prev [-]

I'm a random bystander, but this is just a silly rebuttal. the mechanism matters much less than the net result.

cars are just a box wheels does not capture the significance of their impact on human society.

relentlessly dismissing LLMs as token predictors misses the profound capabilities and consequences of their use as a tool.

not a good faith argument, in my opinion.

▲mbgerring 2 hours ago | parent [-]

“They’re more than next token predictors” is like saying “it can’t be as simple as a motor that turns the wheels, just look at how fast its going!”

For whatever reason, for some people, it isn’t enough to be fascinated that such interesting emergent behavior can come from predicting the statistically most likely next token. They have to insist that there is some other mechanism at work, not because this is technically the case, but because reducing an LLM to its actual method of action somehow cheapens or diminishes it for people who need to feel that what they’re seeing is important and meaningful.

▲mapontosevenths 2 hours ago | parent [-]

My objection is that it's wrong. That's literally not what it's doing at a technical level. It has nothing to do with anyone's feelings.

You’re confusing the output mechanism with the training objective.

Yes, the architecture outputs one token at a time—that’s the wheels turning on your car. In pre-training it does predict the statistically most likely next token, and years ago that's all they did. But how can they "predict" an answer that doesn't exist until the model writes it? Predict is the wrong word.

Modern reasoning models though are post-trained with Reinforcement Learning with Verifiable Rewards (RLVR). The model isn't graded on predicting the next token at all—there is no target text to match. There is no precanned answer to compare it to!

It’s graded purely on whether the final output passes an objective verifier (like a compiler, unit test, or proof checker). It is actively rewarded for generating token sequences that are not the statistically likely human response, as long as they solve the problem.

So saying an LLM is "just a next-token predictor" because it outputs tokens sequentially is like saying a self-driving car is "just a motor turning the wheels." You're describing the drivetrain and ignoring the entire control system.

It's literally, technically, incorrect and it ignores the magic that makes it all work.