Hacker News new | ask | show | jobs
by onraglanroad 13 days ago
> Perplexity is the degree of surprise the model has in predicting the next token

I think "predicting" is a really bad term. It's not predicting anything. You don't get any lottery numbers out, it doesn't predict your future, and it's not predicting what word you were going to type.

It's "choosing" the best token to produce intelligible output. "Choosing" or "selecting" would be much better terms and wouldn't confuse people about what is actually happening.

It's probably too late though as it's become part of the jargon.

2 comments

No it's prediction and prediction is the appropriate term here. I don't know what lottery numbers has to do with anything. It's trained to predict future text y given previous state x.
No it doesn't predict the future text, it generates it.

What exactly is the prediction? What future events tell it that it made an incorrect prediction and should have chosen another token?

Lottery numbers are a clear example of something you can attempt to predict and that you might get wrong. I would have thought that was obvious?

If you want a more specific term, it dicts not predicts. There is no pre.

>What future events tell it that it made an incorrect prediction and should have chosen another token?

The next token in the training data of course. During training, the model predicts a probablitiy distribution over the next token, compares it against the actual token, and updates its weights to minimize prediction error.

>Lottery numbers are a clear example of something you can attempt to predict and that you might get wrong. I would have thought that was obvious?

Yeah so? How are lottery numbers an example of something you can attempt to predict, but written text is not ? In fact, there is something lottery numbers can be expressed as...

This is really just a silly verbal dispute but I can't help myself from weighing in on silly verbal disputes...

>During training, the model predicts a probablitiy distribution over the next token,

But when the model is taken out of a training context, we might not want to say it is "predicting" the next token as this misleads on the mechanisms involved. It's like the dispute between frequentists and bayesians in probability. If you think of a probability as a frequency analysis, then the probability of a one-off is undefined. We have a more generic term that avoids this dispute, namely credence. What the parent is saying is perhaps we should use the more generic term "generate" in contexts divorced from a ground truth in which to compare the prediction.

>How are lottery numbers an example of something you can attempt to predict, but written text is not

There's a ground truth to what the lottery number will be, whereas in general there is no ground truth to what token comes after some prefix sequence.

>There's a ground truth to what the lottery number will be

Since everything computers do is binary, there is also a ground truth to what a digital "thing"'s next atom will be

Only in the sense that every process predicts itself, which isn't very informative
One of the biggest insights of the last ten years in ML (This was understood much earlier, but now it's widely applied) is that prediction and generation are two sides of the same coin.

The way an LLM generates text is by generating a probability distribution over the possible next tokens, and then you take a sample from the distribution and pick that as the concrete token to generate.

You’re too focused on looking at it as a chatbot. Models produce probability distributions of what they believe the next token is going to be.
No, you are. They are a computer program. They don't "believe" anything. It's a selection not a belief. That's what I mean.
This is not a useful contribution to the discussion.