Large Language Model
Also known as: LLM
Neural network trained on very large amounts of text to predict the next token, able to generate language and perform many tasks from prompts.
A large language model is a neural network, usually a transformer, trained on a vast collection of text to predict the next token in a sequence. Doing this well across books, websites, code and conversations requires learning grammar, facts, styles and patterns of reasoning, so a single trained model can answer questions, summarize, translate, write code and hold conversations when prompted. The word large refers both to the training data, often trillions of tokens, and to the number of parameters, which for leading models runs into the billions or more.
Language models have a long history in natural language processing, but the transformer era began in 2018 with models such as Google's BERT and OpenAI's first GPT. OpenAI's GPT-3 in 2020 showed that a sufficiently large model could perform many tasks from a few examples in its prompt. Training typically has stages: pretraining on raw text, then instruction tuning and preference tuning, such as RLHF, to make the model more helpful and safer. The release of ChatGPT in November 2022 brought LLMs to a mass audience.
LLMs extend human capability in writing, programming, learning and research, and from 2024 they commonly served as the reasoning core of AI agents. They also have well-documented weaknesses: they can hallucinate plausible but false statements, reflect biases in their training data, be manipulated through prompt injection and lack knowledge of events after their training cutoff unless connected to retrieval tools. Debates continue over whether they understand language or mainly reproduce statistical patterns, a view captured by the term stochastic parrot, and over their effects on work, education and information.
Key points
- LLMs are trained mainly by predicting the next token across enormous text collections.
- GPT-3 in 2020 and ChatGPT in 2022 were landmarks in the rise of large language models.
- Instruction tuning and preference training turn a raw text predictor into a usable assistant.
- Hallucination, bias, prompt injection and knowledge cutoffs are key known limitations.
Related entries
Neural network architecture based on self-attention, introduced in 2017, that underlies most large language models and many vision and audio models.
Large AI model trained on broad data at scale, usually with self-supervision, that can be adapted to a wide range of downstream tasks.
ChatGPT
Conversational AI assistant from OpenAI, launched in 2022, that answers questions, writes text and code and performs tasks through a chat interface.
Claude
Family of large language models and the AI assistant built on them, developed by Anthropic and first released to the public in 2023.
Family of multimodal language models from Google DeepMind, and the name of the Google AI assistant built on them, first announced in 2023.
Llama
Family of large language models from Meta, distributed as downloadable weights that developers can run, study and adapt on their own hardware.
Output from an AI model that sounds plausible and confident but is false, fabricated or unsupported by its input or by the facts.
Empirical regularities showing that AI model performance improves predictably as model size, training data and computation increase.
Featured in guides
Referenced by
Other entries that discuss or point to Large Language Model.
- Agentic AI
- Agentics Foundation
- Algorithmic Bias
- Allen Institute for AI
- Andrej Karpathy
- Artificial Intelligence
- Attention Mechanism
- The Bitter Lesson
- Chain-of-Thought Prompting
- Chinese Room Argument
- Chris Olah
- Chroma
- Common Crawl
- Context Window
- Data Poisoning
- Digital Immortality
- EleutherAI
- ELIZA
- Emergent Abilities
- Emily M. Bender
- Function Calling
- Generative AI
- Hugging Face
- Hugging Face Transformers