AI can make mistakes. Check important information.

Predicting the next word

A transformer reads "The cat sat on the" from the bottom up. The words become vectors, are refined layer by layer, and the top produces a probability for every possible next word.