← 全部文章

aiNov 15, 20261 分钟阅读

What an LLM Really Does: It Guesses the Next Word

ChatGPT, Claude and other large language models look like they think. Underneath, they do one simple thing again and again: given the text so far, they score every possible next word, pick one, add it, and repeat. “The doctor checked the patient’s blood…” → pressure gets 81%, sugar 6%, orange almost zero. That loop is called next-word prediction.

Animated explainer: a sentence grows one word at a time; for each step, bars show the probability of possible next words, and the most likely word turns green and is added to the sentence
Animation: generated entirely by code to illustrate the idea; the probabilities are made up for teaching.

The magic is in the scoring. To give “pressure” a high score, the model must have picked up grammar, facts about medicine and the meaning of the whole sentence, all by learning to predict the next word across billions of sentences. Knowledge appears as a side effect of very good guessing.

This also explains their weak spot. The model picks what is likely, not what is true. When it does not know, it can still produce a fluent and confident wrong answer. That is why checking the output still matters, especially in medicine and engineering.

评论

评论

发表第一条评论

您的邮箱不会公开。评论经审核后显示。