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.

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.

コメント