How does a large language model work?
At its core a large language model predicts: it predicts a token or a sequence of tokens [1]. A token can be a word, part of a word or a single character [1]. Google's machine learning glossary informally uses the term for any Transformer-based language model, such as Gemini or GPT [2].
Google's crash course gives a concrete case. After the sentence "My dog, Max, knows how to perform many traditional dog tricks.", the model assigns a probability to each candidate continuation, such as "For example, he can sit, stay, and roll over." [1]
What makes a language model "large"?
Google defines a large language model as, at a minimum, a language model with a very high number of parameters [2]. Transformers can hold hundreds of billions or even trillions of parameters, and research shows that models with more parameters consistently outperform those with fewer [1]. Scale applies to data too: the primary ingredient in building one is a phenomenal amount of training text [1].
Why do large language models get things wrong?
NIST explains that generative models produce outputs that approximate the statistical distribution of their training data, and LLMs predict the next token or word in a sentence [3]. That prediction can yield accurate, consistent answers, but it can also yield output that is factually wrong or contradicts itself [3]. NIST calls this confabulation; most people know it as hallucination [3]. A confident answer from a model is therefore no proof that it is right.