Remix.run Logo
gwerbin 4 days ago

But it literally is making a prediction based on the previous X tokens, it's just that X is huge and there is a proportionally huge number of parameters in the token generation function.

wat10000 4 days ago | parent | next [-]

The discourse around this is annoying. A big group of people use "next-token predictor" to imply that LLMs aren't capable of anything interesting. Another big group of people opposes the use of "next-token predictor" because of that implication. But that fight isn't about the "predictor" language at all.

The linked article makes a good point: a substantial chunk of the training does not consist of "here's a bunch of tokens, here's the next token, learn that." But all the comments want to turn it into a referendum on the goodness of AI.

danielmarkbruce 4 days ago | parent | next [-]

The fight is about the predictor language in some cases. Because it's only a trivial difference to those who don't understand the details of how these things are made. In pre-training the model really is trained to predict the next token. What is being emitted by the model is, by structure, by training and by optimization, a prediction of the very next token.

What is emitted by a model during RLHF and RLVR is not, by structure, training or optimization, a prediction of the next token.

wat10000 4 days ago | parent [-]

Right. But that's never what the discussion is about. This is the first time I've seen someone say, "it's not just a next-token predictor because a bunch of the training isn't about predicting the next token." I have seen many, many people say "it's not just a next-token predictor because there's all this smart stuff going on inside the model." Even here, in the comments for an article that's all about the former, most of the objections to "next-token predictor" are of the latter form.

danielmarkbruce 4 days ago | parent [-]

Yup, you are mostly right.

I guess the people in my camp find the "it's just a next token predictor" stupid in that it's like saying "it's just a bunch of carbon and hydrogen", but it's also one of those things where people like to think they are clever because they think they are theoretically correct. But they aren't even that. So it's like double stupid. But the "next token predictor" part is at least technically correct (like, carbon and hydrogen right) for pretraining, so the debate can't really be won there.

Dylan16807 4 days ago | parent | next [-]

It really is an important distinction, though. Being a next token predictor doesn't stop it from writing good sentences, but it does mean an LLM by itself can't play the number guessing game with you.

danielmarkbruce 4 days ago | parent [-]

This is pedantic, but, actually RL has improved the quality of sentence construction in LLMs quite dramatically... And once you do some RL on that model, it aint a next token prediction machine any longer.

Dylan16807 4 days ago | parent [-]

That's just training, isn't it? (Even if the term is "post-training") It doesn't change how inference works.

My understanding is it usually strengthens the "thinking ahead" part of inference, but that part was already there, and it's still at the end of the day picking one token and then purging internal state in a way that can only partially be recovered from.

danielmarkbruce 4 days ago | parent | next [-]

The discussion is basically: what is a model trying to do?

One may reasonably assert it isn't trying to do anything. But, in practice, if you give it an objective function and optimize it, the model is basically trained to "do" something. So what is it trained to "do"? During pre training it is trained to produce a distribution which is a prediction of the next token in it's training data samples. During RLVR and RLHF, it is trained to produce a distribution of tokens that will maximize a scoring function over many steps - not just the next step. The fact that it produces a distribution of potential choices for the next step doesn't mean the next step is a prediction. It's more of a "strategy" or "probabilistic path choice". The word used in RL is a "policy". It's a decent word to describe what the model is.

So, modern LLMs are trying to produce a good sequence of tokens. They are "good token sequence producer machines". Not "next token prediction machines". Pre RLHF (in practice, go back to pre chatgpt) they really were "next token prediction machines".

wat10000 4 days ago | parent | prev [-]

How inference works is you do a bunch of math and token weights come out, and then you pick one based on some sampling policy. “Prediction” is really about how they’re trained than how they run afterwards.

4 days ago | parent [-]
[deleted]
dijksterhuis 4 days ago | parent | prev [-]

they are cleverly arranged / configured next-most-likely-token predictors, possibly with some clever procedures / attachments on top.

danielmarkbruce 4 days ago | parent [-]

Nope. This isn't right.

dijksterhuis 4 days ago | parent [-]

> "it's not just a next-token predictor because a bunch of the training isn't about predicting the next token."

clever procedures on top of the base transformer architecture.

i used simplified words/phrases to summarise the same thing you two were saying (the intent being: here's a version that may be digestible when discussing with others).

apparently that means i'm wrong though, no idea why because it seems you've decided to be dismissive rather than constructively elaborate on why this simplified and digestible version might be wrong :shrug:

danielmarkbruce 4 days ago | parent | next [-]

They aren't predicting the next token. It's quite literally not a prediction.

4 days ago | parent | next [-]
[deleted]
gwerbin 4 days ago | parent | prev [-]

They're estimating a probability distribution over the next token, from which a sample is taken. Close enough.

danielmarkbruce 4 days ago | parent [-]

It's not an estimation of something. It's a policy.

gwerbin 3 days ago | parent [-]

Sure, you're right.

But it's a policy learned from a next-token prediction task. You could also call it an inferrer or generator or whatever. The point is that it takes as input a sequence of preceding tokens and emits one more token to continue the sequence.

danielmarkbruce 3 days ago | parent [-]

The policy is not learned token by token during RLHF and RLVR. The reward model doesn't score token by token.

gwerbin 2 days ago | parent [-]

So? tokens are emitted one at a time according to the output distribution & sampler algorithm, and the next token distribution is a function of the preceding token sequence only. The process by which the output distribution is shaped doesn't change the core mental model, and doesn't reduce its value. It's a prediction in the jargonic sense that an inference about future values of a time series is broadly called "prediction", and it's relevant for reasoning about LLMs because they are fundamentally limited to converting tokens sequences into next-token predictive distributions, and that bears on how they can do what they do and what their limitations are. Nothing about the training process changes that.

grebc 4 days ago | parent | prev [-]

We're talking to a RLVR bot.

Bad bot.

wonnage 4 days ago | parent | prev | next [-]

You can pour a bunch of beads into a pachinko board and end up with a normal distribution. Do the system “know” they need to go there?

Then you feed a bunch of tokens into a GPU and end up with a distribution of possible next tokens…

4 days ago | parent | prev | next [-]
[deleted]
4 days ago | parent | prev [-]
[deleted]
amluto 4 days ago | parent | prev | next [-]

It has nothing to do with X being huge. In fact X might be quite small.

danielmarkbruce 4 days ago | parent | prev [-]

If you are going to say "literally", then what is your literal definition for the word "prediction" ?