Hacker News new | ask | show | jobs
by famouswaffles 12 days ago
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.
1 comments

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.