Remix.run Logo
▲ pigeons a day ago

It's a next token predictor.

▲preg_match a day ago | parent | next [-]

While technically true this tells us nothing.

A computer is just a bunch of transistors. The brain is a clump of neurons that pass electricity to each other.

There’s no reason to think you can’t create something out of just next token prediction. Simple things make complex things all the time. I mean your phone you’re typing this on is basically just 10 billion light switches shoved in a tiny box.

▲Planktonne 14 hours ago | parent | next [-]

It is dramatically more useful to describe LLMs as a 'next-token predictor' than it is to describe them as a 'superior species' or 'minds vastly more capable than human'.

▲preg_match 7 hours ago | parent [-]

Yes but the only people describing them as such are psychopaths. Nobody who uses LLMs or thinks they’re capable of mathematical reasoning or programming believes that. So, this is a straw man.

▲Planktonne 3 hours ago | parent [-]

You're in a thread that started with those exact quotes. You can find similar thoughts all over HN, and in the leadership of AI companies and in governments and everywhere else.

It's about as far from straw as you can get.

▲preg_match 3 hours ago | parent [-]

Yes well that person is crazy. I don’t think the vast majority of people who use AI think this.

Basically every engineer uses AI often because it can, actually, reason. I’ve yet to meet one who believes in weirdo “superior species” stuff.

Those people do exist, but this is the internet. I think grain of salt.

▲GoblinSlayer 16 hours ago | parent | prev [-]

Inability to think is the reason why LLMs can't make a thermonuclear reactor: there's no lean for physics to find the correct answer in exabytes of slop.

▲drdeca a day ago | parent | prev | next [-]

The problem with calling it "just a next token predictor" is not in calling it a "next token predictor", but in the word "just", which hides a number of incorrect insinuations.

▲throw7272855 a day ago | parent | next [-]

It certainly hides less than calling it a “mind”.

▲FeepingCreature a day ago | parent [-]

Looking at the quality of predictions ensuing, certainly seems to hide more!

▲emp17344 a day ago | parent | prev [-]

The real problem with calling it “ just a next token predictor” is that a bunch of dweebs with an unhealthy fixation on the AI hype ecosystem will jump in to tell you how stupid you are.

▲mapontosevenths a day ago | parent [-]

That's because it is technically, and functionally, incorrect. That is not how they work.

I think that any reasonable person who understands cars would be annoyed if everyone kept popping up to tell you that cars are "just" next destination predictors.

▲mbgerring 19 hours ago | parent | next [-]

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.

▲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.

▲emp17344 a day ago | parent | prev | next [-]

I mean, even car enthusiasts are able to accept that cars are just tools. AI enthusiasts need it to be more than that, but it just isn’t.

▲daishi55 a day ago | parent [-]

I think you need the AI enthusiasts to need it to be more than just a tool.

As an AI enthusiast myself, I very much view it as a tool. A new kind of tool, the likes of which the world has never seen before and which has already changed the world forever - but a tool nonetheless.

▲GolfPopper 20 hours ago | parent | next [-]

It's not the enthusiasts who need it to be more than the tool it is. It's the investors.

▲skydhash 21 hours ago | parent | prev [-]

> A new kind of tool, the likes of which the world has never seen before and which has already changed the world forever

More than the steam engine? or nuclear? or penicillin? Or computers?

▲selestify 20 hours ago | parent | next [-]

Obviously, yes to all those except it is a continuation of the computing revolution.

▲emp17344 14 hours ago | parent [-]

You are absolutely off your rocker if you think AI is more significant than penicillin. For fuck’s sake I hate it here, I need to stop looking at this godforsaken website once and for all.

▲literalAardvark 7 hours ago | parent [-]

It's massively more significant. Among other reasons because it turbocharges medical development.

It's hard to quantify without sounding like a jerk though.

If you simplify to "human work hours saved", use absolutely maximum numbers for all antibiotics (1B lives saved, real estimates are 200m-500m, 60 years of life left, in reality it's more like 30), and absolute dog water numbers for AI with 11% of global work time saved and no discoveries AI will overtake antibiotics in the same 80 years antibiotics have been around.

But none of that is true, AI is already leading to breakneck pace in all knowledge fields, and using a more reasonable but still conservative estimate for antibiotics (350m deaths averted, 30 years saved per death) and AI (25% of work replaced and no new discoveries) the overtake is in 2041. 15 years to antibiotics' 80 ( 100 really but we're being generous )

Now assume a proper hard take off which is very much what we're seeing right now, you can expect mind blowing discoveries every week and even higher replacement rates. And the S curve is just barely starting to show.

▲literalAardvark 19 hours ago | parent | prev [-]

By far

▲soon_to_be_sb a day ago | parent | prev [-]

[flagged]

▲danielmarkbruce a day ago | parent | next [-]

Nah, you need to learn how RL works with language models. They simply are not being trained to predict a next token in many/most post training phases. There is no ground truth token to even predict most of the time in those phases.

▲soon_to_be_sb a day ago | parent [-]

> There is no ground truth token..

Sure, but there is collection of them that should make the "ground truth", right? So there was a "wrong" token at some point that cascaded. RL corrects that, so ultimately, the same thing.

▲danielmarkbruce a day ago | parent [-]

No collection. Just one at the very end, many paths to get to the right answer, rewards based on end answer, not the intermediate tokens.

▲soon_to_be_sb a day ago | parent [-]

Did you understand what I said?

▲danielmarkbruce a day ago | parent [-]

"collection of them" is somewhat vague, so possibly not. Regardless, the way post training models currently works renders them not "next token prediction". The optimizer and objective function just don't work that way.

▲soon_to_be_sb a day ago | parent [-]

>collection of them

Basically "end answer" in your comment = "collection of tokens".

>optimizer and objective function just don't work that way.

Don't these act on the output of the token prediction procedure.

▲danielmarkbruce 20 hours ago | parent [-]

The end answer is what's verified. The intermediate tokens generated are not verified, there is no such concept. If the model produces 7000 tokens to produce "x = 7" at the end, the 7000 tokens aren't verified, there is nothing to verify against.

They act on tokens produced. But each token isn't a prediction of anything. There is nothing to predict. It's closer to search, and why RL models tend to get called a "policy". It's a strategy to produce a sequence that produces maximum rewards, not predict the next token.

▲soon_to_be_sb 19 hours ago | parent [-]

>The intermediate tokens generated are not verified

They don't have to. Verification of the "end answer" is the same as verifying all the intermediate tokens, as the end answer is derived from the intermediate tokens.

If the end answer is wrong, then there is an intermediate token that was wrong, that cascaded it into producing the wrong "end answer". Correct that token, and may be the end answer will pass the check.

▲danielmarkbruce 11 hours ago | parent [-]

Nope, it's not the same as verifying all the intermediate tokens. Because there are many paths to the end answer, and there is nothing to verify the intermediate tokens against.

To make it even clearer, in two different rollouts the first 100 tokens could be exactly the same, and in one rollout the end answer is correct, and in another it's incorrect. Clearly "verifying" the first 100 tokens doesn't make sense.

▲soon_to_be_sb 9 hours ago | parent [-]

So obviously the wrong token was somewhere after the first 100...

▲mapontosevenths 6 hours ago | parent [-]

That's not how most answers in real life work. There is almost always more than 1 correct answer, and almost always more than one way to arrive at it. Nobody tells it how to get there... It's forced to learn that on it's own.

▲soon_to_be_sb 4 hours ago | parent [-]

>and almost always more than one way to arrive at it.

And almost always, there is more than one token to replace the wrong one that would make the end result pass...

▲daishi55 a day ago | parent | prev | next [-]

Narrator: it was not the end of the story

For real though: how do you think they predict the next tokens?

▲mapontosevenths a day ago | parent | prev [-]

You are wrong, and you're being pretty pushy and over-confident about it. Do you have a CS background? Your understanding reminds of way non-technical people try to describe how LLM's work in pop-culture news articles. It's not autocomplete - despite what the "brilliant minds" of social media will tell you.

I mean, they do 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 aren't in the training corpus every day. I've trained a few myself.

I might be wasting my time explaining, but I'll try:

During training the output they generate is scored based on how well it matches novel 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. They often have to do that without the correct answer even existing 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.

END. OF... Nevermind.

▲slopinthebag a day ago | parent | next [-]

> they do generate sequences of tokens based on the input prompt and a huge amount of data

it's a next token predictor

▲mapontosevenths a day ago | parent [-]

In the same way that my car is a "wheelie vroom vroom", yes. I'm proud of you for trying your best.

▲soon_to_be_sb a day ago | parent | next [-]

He he, not at all the same way..

▲slopinthebag a day ago | parent | prev [-]

your car does indeed sit on wheels and goes vroom vroom.

at this point I'm sure you'll tell me the dynamics of a combustion engine combines with the radio to produce an emergent consciousness or some nonsense.

▲moi2388 20 hours ago | parent [-]

Define consciousness please. Ensure it involves no magic thinking, yet somehow also doesn’t qualify AI. Make no mistakes.

▲slopinthebag 20 hours ago | parent [-]

First please define AI, magic thinking, and mistakes. So I can be precise.

▲moi2388 19 hours ago | parent [-]

Sure. Take AI to mean any system portraying functions usually associated with human intelligence, and in particular what current state-of-th-art solutions offered by AI companies such as OpenAi, DeepMind and Anthropic. Take magic thinking to mean actions or functions which a system portrays without direct physical or logical causal link. Take mistakes to mean flaws in definitions, flaws in logical arguments, or consequences which do not align with observed reality.

▲slopinthebag 19 hours ago | parent [-]

please define flaws, arguments, consequences, observed reality, human intelligence, state-of-the-art, solutions, action, functions, systems, portraying, direct, physical, logical, and causal links.

just want to make sure i don't make any mistakes

▲moi2388 19 hours ago | parent [-]

Ask the aforementioned AI if you lack the consciousness to infer further definitions.

▲slopinthebag 19 hours ago | parent [-]

it's almost like we both have a general idea of the definitions for everything we're talking about, including consciousness, and your condescending question was asked in purely bad faith

▲moi2388 13 hours ago | parent [-]

It was absolutely not in bad faith. I am just wondering for all these people who claim that AI is not consciousness, what they consider consciousness to be.

Because from what I can see, this leads either to magic thinking, or a definition under which AI definitely would qualify

▲soon_to_be_sb 9 hours ago | parent | next [-]

Will you claim that a rock is conscious, and would it be surprising if someone did not agree with that claim, even if they don't have a definition of consciousness?

▲moi2388 6 hours ago | parent | next [-]

I would not be suprised, yet I am pretty sure they have at least ‘some’ definition of consciousness which would include humans and exclude rocks, and not require magic think.

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

i actually would claim a rock is conscious (or perhaps a transparent plastic pail of spring water)

https://en.wikipedia.org/wiki/Panpsychism

https://marksprevak.com/publications/triviality-arguments-ab...

but that does not imply that an llm is conscious in the way us humans are, and generally the argument being made about llms being conscious is a computational one, not an argument for panpsychism.

▲slopinthebag 10 hours ago | parent | prev [-]

why would you say “make no mistakes” in good faith??

secondly i’m not claiming ai cannot be conscious, but that arguments for LLMs being conscious are rather weak.

and this is relative to the argument that llms are no more that a statistical process of predicting the next token in a loop, given massive compute + data. people who argue that they are more than that can make that case, but that doesn’t necessarily mean they become something else entirely.

▲moi2388 6 hours ago | parent [-]

‘Make no mistakes’ was a joke regarding I think humans really aren’t all that different than LLMs in some regards. Didn’t mean to insult.

▲soon_to_be_sb a day ago | parent | prev [-]

>doesn't explain why they're able to solve problems that have stumped the brightest living humans for decades or even centuries

May be it does not explain that to you, but it is no mystery to me. Read through my comment history if you want to read the many explanations I have made regarding the matter....

>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 are not taught any of these. They capture patterns in text that are produced by humans who does have these attributes.

And then they repeat them, generating more text, and check the output using LEAN, and go EUREKA! when it passes. It is that simple.

▲mapontosevenths a day ago | parent [-]

> They are not taught any of these.

Yes they are. There are literally hundreds, and maybe thousands of papers about the best ways to do this. Here's a random one I happened to still have open in another tab: https://arxiv.org/abs/2506.14245

> And then they repeat them ...

They literally perform multi-step reasoning and arrive at outputs that did not exist in the training data... Like all of the time, every day. That's what they do most of the time. If you stop the CoT, you get worse results or no result. If you alter it you get different results.

If you don't believe me... It's trivial to test yourself. Download LMStudio and have at it.

You have a hypothesis: "LLM's don't reason, the just memorize and rearrange."

Test it. That's how science works.

▲soon_to_be_sb a day ago | parent [-]

>thousands of papers >perform multi-step reasoning

Literature loosely using terms such as "reasoning" (largely in favor of AI marketing) does not make it so...

>how science works.

Ending with this does not automatically justify what you say...

▲mapontosevenths 13 hours ago | parent [-]

> Literature loosely using terms such as "reasoning" (largely in favor of AI marketing) does not make it so.

Call it something else if that helps you cope. Other people won't understand you, but maybe you'll be happier if that word causes you to feel yucky.

I'll keep calling it reasoning because that is the word that best describes the n-dimensional search for the correct answer by iteratively moving through latent space.

> Ending with this does not automatically justify what you say...

That's right. Testing it would though. Millions of other people have done so. Either take their words or try it your self, you'll find it probably works the same for you as it did for them.

▲soon_to_be_sb 9 hours ago | parent [-]

I don't call it reasoning because the behavior as shown by LLM is that it can, simultaneously give complex answers, while being oblivious to the base facts that are required reaching such answers by reasoning.

For example, ability to answer complex math problems, but at the same time impossible to count letters in a word.

▲mapontosevenths 6 hours ago | parent [-]

That's ridiculous. My fish is both an excellent swimmer, and a terrible tree-climber. That doesn't mean it can't swim well.

They don't spell, so asking it ridiculous spelling questions is a bad test. They also can't taste, so don't ask them what tastes the best.

You aren't seeing a flaw in the model, you're seeing a flaw in your assumptions about what is required to reason.

▲soon_to_be_sb 3 hours ago | parent [-]

>you're seeing a flaw in your assumptions about what is required to reason.

Given the facts `a -> b` and `b -> c` by applying logic and reasoning, we can say `a -> c`. When you can answer `a -> c` by using a large amount of text that only implies `a -> c` (but not `a->b` or `b ->c`), then you are not reasoning.

I am not addressing your fish example, because it does not make any sort of sense and is not connectable to what I said.

▲latentsea a day ago | parent | prev | next [-]

It's a system, and systems produce behavior.

▲red75prime a day ago | parent | prev | next [-]

Transformer-based decoder-only LLMs (unlike, say, diffusion-based LLMs) are next token generators. FTFY.

▲danielmarkbruce a day ago | parent [-]

RLVR - learn how it works.

▲red75prime a day ago | parent [-]

Sure, let's learn how RLVR works and why it has nothing to do with my statement, together. Transformer-based decoder-only LLMs generate tokens sequentially, while diffusion-based LLMs generate large chunks of tokens in parallel. That's the method of generation.

RLVR (reinforcement learning with verifiable rewards) is a training method for improving performance of pretrained networks that works by making a network generate a candidate solution and modifying the network weights based on the correctness of the candidate solution. This method can be applied to transformer-based and diffusion-based LLMs alike.

RLVR doesn't make the network to imitate preexisting training data. That is the network is not being trained to predict anything.

That is your answer has nothing to do with what I've said.

▲danielmarkbruce a day ago | parent [-]

Sure it does. You/they were misusing the word prediction.

Or, maybe I misunderstood your point. Were you suggesting it was generating but not predicting? If so, my bad.

edit: I just googled FTFY - I guess you are saying generation, not prediction. In which case, agree, and apologies.

▲red75prime a day ago | parent [-]

Yes, my point is the they are generators (since GPT-2), not predictors.

▲danielmarkbruce a day ago | parent [-]

Got it, yes, agree.

▲distortionfield 18 hours ago | parent | prev | next [-]

And so are you, what’s your point?

▲idiotsecant a day ago | parent | prev [-]

Takes one to know one!

▲Marazan 15 hours ago | parent [-]

I predicted you would say that.