The three ingredients: data, compute and algorithms

9 min read

Every modern AI system is the product of three ingredients. When you hear about a breakthrough, ask which of the three moved.

1. Data

Machine learning systems learn from examples. A spam filter learns from labeled emails; an image model from labeled photos; a language model from trillions of words of text and code. Data quality, quantity, diversity and legal right to use it all shape what a model can do and how it fails. A model can only be as fair, current and accurate as what it learned from.

2. Compute

Training means doing an enormous number of simple arithmetic operations, mostly multiplying large tables of numbers (matrices). GPUs, originally built for video games, do thousands of these in parallel. Training a frontier model today uses tens of thousands of specialized chips for months and costs hundreds of millions of dollars or more. Compute is measured in FLOPs (floating-point operations); frontier training runs use more than 10^25 of them.

3. Algorithms

The methods: the model architecture (for example the transformer), the training procedure (for example gradient descent), and tricks that make learning efficient and stable. Algorithmic improvements mean the same capability can later be reached with far less compute.

Scaling

Starting around 2020, researchers found scaling laws: for language models, performance improves smoothly and predictably as you increase model size, data and compute together. This is why AI companies race to build ever-larger data centers. Scaling is not unlimited or free: high-quality data runs short, costs and energy use grow fast, and some abilities improve more from new techniques (such as training models to reason step by step) than from size alone.

Training vs inference

  • Training is the expensive, one-time (or occasional) process of learning the model's parameters from data.
  • Inference is using the trained model to produce an output for a new input, every time someone asks a question. Each inference is cheap, but billions of them add up, so inference now accounts for a large share of AI's total compute and energy.

Check your understanding

Check 1 of 2Module 1 · What AI is

A model is trained once over several months, then answers millions of questions a day. Answering the questions is called:

Check 2 of 2Module 1 · What AI is

What did 'scaling laws' show about language models?

Answer the checks, then mark this lesson complete
Completion and scores are saved in this browser.