← すべての記事

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.

コメント

コメント

最初のコメントを書く

メールアドレスは公開されません。コメントは確認後に表示されます。