← New search

Other meanings of Large language model

Artificial intelligence

Large language model

A large language model (LLM) is an artificial neural network trained on massive text datasets to generate and understand human language, typically using the transformer architecture and scaling to billions of parameters.

10^23 FLOPs (GPT-4)
Training compute
Compute
1.5B–1.8T parameters
Parameter count range
Parameters
1

Fundamentals

Large language models are built on the transformer architecture, introduced in 2017 by Vaswani et al.1 This architecture uses a self-attention mechanism to weigh the importance of different tokens in a sequence, enabling parallel processing and long-range dependencies. Training involves predicting the next token in a sequence over vast corpora—often hundreds of billions of words from the internet, books, and other sources.2 The scale of parameters (weights) has grown from millions in early models to trillions; GPT-3 (175 billion parameters) and GPT-4 (estimated 1.8 trillion) exemplify this trend.3 Emergent abilities—such as few-shot learning, reasoning, and code generation—appear only at large scales, following empirical scaling laws.4

2

Training and capabilities

LLMs are typically pretrained in an unsupervised or self-supervised manner on unlabeled text, then fine-tuned on labeled datasets for specific tasks. Reinforcement Learning from Human Feedback (RLHF) is used to align outputs with human preferences, reducing harmful or biased responses.3 Capabilities extend beyond text generation to translation, summarization, question answering, and even mathematical reasoning. However, models suffer from hallucination—generating plausible but incorrect facts—and inherit biases present in their training data.5 Context windows, which limit the amount of text the model can process simultaneously, have expanded from 2,048 tokens (GPT-2) to 128,000 tokens (GPT-4 Turbo).3

3

Lesser-known aspects

Early precursors include rule-based systems like ELIZA (1966) and statistical language models, but the modern LLM lineage began with the transformer. The term "stochastic parrots" was coined by Bender et al. (2021) to critique the risk of models merely recombining patterns without understanding.5 Scaling laws, derived by Kaplan et al. (2020), show that performance improves predictably with model size, dataset size, and compute—a finding that has driven the race toward ever-larger models.4 Training a single LLM can emit as much CO₂ as several cars over their lifetimes, raising environmental concerns.6 LLMs are also used for scientific discovery, such as generating candidate drug molecules or predicting protein structures (e.g., AlphaFold is not an LLM, but LLMs assist in literature mining).

4

Applications and impact

LLMs power chatbots (ChatGPT, Gemini), code assistants (GitHub Copilot), and search engines, transforming user interaction with technology. In medicine, they assist with clinical note summarization and differential diagnosis; in law, they draft contracts and analyze case law.7 Educational tools use LLMs to answer student questions and generate exercises. However, widespread deployment raises concerns about job displacement, misinformation, and the centralization of AI power in a few corporations. Regulatory efforts, such as the EU AI Act, classify LLMs as "general-purpose AI systems" subject to transparency obligations.8

Glossary

Transformer
A neural network architecture using self-attention, introduced in 2017, that forms the basis of most modern LLMs.
Pretraining
Initial training phase on a large, unlabeled corpus to learn general language features.
Fine-tuning
Subsequent training on a smaller labeled dataset to adapt the model to a specific task.
Token
A unit of text (word, subword, or character) that the model processes.
Attention mechanism
A component that allows the model to focus on different parts of the input sequence when generating each output token.

This article uses the specific sense of Large language model as an artificial neural network trained on massive text datasets.