What Is a Large Language Model?

A clear, jargon-free introduction to large language models — what they are, how they work at a high level, and why they're transforming software and society.

Key takeaways
  • LLMs learn by predicting the next word in text sequences using self-supervised learning on trillions of tokens.
  • A single LLM can write code, translate languages, and reason without task-specific training, unlike earlier specialized AI.
  • All modern LLMs use the transformer architecture with attention mechanisms that let words reference each other for context.
  • Training on 10x more data and compute produces qualitatively different, more capable results with emergent abilities.
  • LLMs struggle with precise arithmetic, real-time information access, and can hallucinate convincing but false facts.
  • Key LLM providers include OpenAI, Anthropic, Google, Meta, Mistral AI, DeepSeek, xAI, and Alibaba with varying models.

The Simple Answer

A Large Language Model (LLMLLMLarge Language Model — a neural network trained on vast amounts of text data that can understand and generate human-quality language across a wide range of tasks.Learn more →) is a computer program trained to understand and generate human language. It learned by reading enormous quantities of text — books, articles, websites, code, scientific papers — and learning to predict what word comes next in any sequence. That simple task, repeated billions of times on trillions of words, produces a system capable of writing, reasoning, coding, and conversation.

The 'large' in LLM refers to two things: the size of the model itself (modern LLMs have billions to trillions of numerical parametersParametersThe numerical weights inside a neural network that are learned during training — the 'knowledge' of the model, measured in billions for modern LLMs.Learn more →, or weights) and the scale of training data (trillions of tokens, roughly equivalent to millions of books). Scale is what makes these models capable — the same architecture trained on 10x more data and compute produces qualitatively different, more capable results.

What Makes LLMs Different from Earlier AI

Before LLMs, most AI systems were narrowly specialized: a sentiment classifier could only classify sentiment, a translation model could only translate. These systems required labeled training data for each specific task and couldn't generalize beyond what they were explicitly trained for.

LLMs are general-purpose: a single model can write Python, explain quantum mechanics, translate French, summarize legal contracts, and play chess — without any task-specific training. This generality emerged spontaneously from training at scale, which is why researchers call capabilities like Few-ShotFew-ShotA prompting technique where you include a small number of input-output examples in the prompt to demonstrate the desired task format and behavior to the model.Learn more → learning and Chain of ThoughtChain of ThoughtA prompting technique that encourages an LLM to reason step by step before giving a final answer, dramatically improving performance on complex tasks.Learn more → reasoning 'emergent' — they appear unpredictably as models grow larger. The large pretrained model is called a Foundation ModelFoundation ModelA large AI model trained on broad data at massive scale that can be adapted to a wide variety of downstream tasks, forming the 'foundation' for specialized applications.Learn more →; after instruction tuning it becomes an Instruct ModelInstruct ModelA base language model that has been fine-tuned to follow instructions from users, as opposed to just completing text in the style of its training data.Learn more → aligned to follow user requests.

What LLMs Can and Can't Do

LLMs excel at: generating fluent text in any style or format, summarizing and extracting information from documents, writing and explaining code, translating languages, answering questions based on provided context, and reasoning through multi-step problems when prompted correctly. They are pattern-completion engines of extraordinary breadth.

LLMs struggle with: precise arithmetic (without tools), accessing real-time information (without retrieval), consistently avoiding fabrication (they can hallucinate convincing but false facts), maintaining perfect consistency over very long outputs, and tasks requiring formal guarantees. Understanding these limits is essential to building reliable systems with LLMs.

How LLMs Learn

LLMs are trained using self-supervised learningSelf-Supervised LearningA machine learning approach where models learn from unlabeled data by predicting missing parts of the input, such as the next word in a sentence.Learn more →: the model is given a sequence of text with the last word hidden, makes a prediction, compares its prediction to the actual word, and adjusts its weights to do better next time. No human labels are needed — the training signal comes from the text itself. This simple procedure, applied at massive scale, is responsible for all of an LLM's capabilities.

After this initial pre-training phase, most deployed models undergo additional alignmentAlignmentThe process of ensuring AI models behave according to human values and intentions through training techniques, evaluation methods, and safety measures.Learn more → training — fine-tuningFine-tuningThe process of further training a pre-trained model on a smaller, task-specific dataset to specialize its behavior for a particular use case.Learn more → on human-written instructions and feedback (RLHFRLHFReinforcement Learning from Human Feedback — a training technique that uses human preferences to teach AI models to be helpful, honest, and harmless.Learn more →) that teaches the model to be helpful, to follow directions, and to avoid harmful outputs. This alignment step is what transforms a raw text predictor into the helpful assistant you interact with through a chat interface.

The Architecture Behind It All

All modern LLMs are built on the TransformerTransformerThe neural network architecture that underpins virtually all modern LLMs, introduced in 2017, built around self-attention mechanisms that process entire sequences in parallel.Learn more → architecture, introduced by Google researchers in 2017. The key innovation is the attention mechanismAttention MechanismA technique that allows each token in a sequence to 'pay attention' to all other tokens, enabling the model to understand context and relationships across long distances.Learn more → — a mathematical operation that lets every word in a sequence 'look at' every other word to understand context. This gives transformers the ability to understand relationships between words regardless of how far apart they are in the text.

Transformers also train efficiently on parallel hardware (GPUs and TPUs), which is what enabled the scaling from millions to billions to trillions of parameters over just a few years. The combination of the attention mechanism's expressiveness and its GPU-friendliness is why the transformer became the dominant architecture in AI almost overnight.

The LLM Landscape Today

The major LLM providers include OpenAI (GPTGPTGenerative Pre-trained Transformer — the model architecture and family name behind OpenAI's most famous models, from GPT-2 to GPT-5.Learn more →-4o, o3, GPT-5), Anthropic (Claude 4 family), Google (Gemini 2.5), Meta (Llama 4), Mistral AI, DeepSeek, xAI (Grok), and Alibaba (Qwen). Each has distinct strengths, pricing models, and licensing terms. Some models are closed (API-only), others are open-weightOpen-WeightA model whose trained weights are publicly available for download, allowing anyone to run, fine-tune, or build on top of it — distinct from fully open-source (which also includes training code and data).Learn more → and can be downloaded and self-hosted.

The pace of progress has been remarkable: models released today would have seemed impossible just three years ago. Understanding how these systems work — and where they're headed — is increasingly essential knowledge for anyone working in technology, business, or research.

Read next