logoalt Hacker News

onraglanroad • yesterday at 11:25 PM • 4 replies • view on HN

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.


Replies

famouswaffles • yesterday at 11:47 PM

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

➕ show 1 reply
cameldrv • today at 6:40 AM

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.

nimchimpsky • yesterday at 11:33 PM

[dead]