# LLM

> Large language model: an AI system trained on huge amounts of text to predict and produce language.

Source: https://www.superintelligence.com.au/glossary/llm/


An LLM, or large language model, is an AI system trained on enormous amounts of written text to predict what comes next. Given the start of a sentence, it works out the most likely continuation, one small piece at a time. Do that well enough, across enough text, and the result can answer questions, write essays, summarise documents and produce working code.

Most well-known AI assistants are built on an LLM. The product you talk to, such as a chat app, wraps the model with extra training, rules and tools, so the model and the product are not quite the same thing. The same model can sit behind many products, and one product can switch models over time.

The word large refers to the number of parameters, the adjustable settings inside the model, and to the amount of text used in training. Both have grown enormously, which is the pattern the scaling laws describe.

An LLM has no built-in sense of what is true. It produces fluent language because fluent language is what it was trained on, and that is why it can state something false with total confidence, a failure known as a hallucination. Newer models add training that rewards careful reasoning, but the underlying method is still prediction, and researchers debate how far that method can go.

Related: https://www.superintelligence.com.au/glossary/transformer.md, https://www.superintelligence.com.au/glossary/pre-training.md, https://www.superintelligence.com.au/glossary/parameters.md, https://www.superintelligence.com.au/glossary/reasoning-model.md, https://www.superintelligence.com.au/glossary/token.md
