Glossary · Data Science & AI
Large Language Model
Also called: LLM · foundation model
A neural network trained on very large amounts of text to predict the next token, which lets it generate, summarize, translate and reason over language.
Definition
A large language model is a neural network, usually based on the transformer architecture introduced by Vaswani and colleagues in 2017, trained on huge text collections to predict the next token in a sequence. Scaling up data and parameters, then further training with human feedback and instructions, produces models that can follow prompts, answer questions, write code and draft documents. LLMs have no built-in access to facts beyond their training data and the context they are given, so they can hallucinate and their knowledge has a cutoff date. Their outputs depend heavily on the prompt, the context window and any retrieved documents.
Worked example
Related terms
- Generative AI: AI systems that produce new content, such as text, images, code or audio, by learning patterns from large amounts of existing data.
- Prompt: The instructions, context and examples given to a generative AI model to steer what it produces.
- Context Window: The maximum amount of text, measured in tokens, that a language model can consider at once, covering the prompt, any documents supplied and its own reply.
- Hallucination: When an AI model produces a fluent, confident answer that is false or unsupported, such as an invented fact, number or citation.
- Retrieval-Augmented Generation: A technique that retrieves relevant documents from a trusted source and adds them to a language model's prompt so its answer is grounded in that material.
- Fine-Tuning: Further training a pretrained AI model on a smaller, task-specific dataset so it performs better on that task or adopts a particular style.