Baseline

A baseline is a simple or established model used as a reference point, so that a new model's results can be judged by how much they improve on it.

A score means nothing on its own. If a new model gets 80% on a task, the obvious question is: compared with what? The baseline is the answer. Google's machine learning glossary defines it as a model used as a reference point for judging how well another, usually more complex, model performs; a simple logistic regression model, for instance, might be the baseline for a deep neural network. The baseline sets the minimum a new model has to beat to be worth using.

The simplest baselines ignore the input altogether. scikit-learn's DummyClassifier exists for exactly this: it can always predict the most common class, guess at random in proportion to how often each class appears, or always give one fixed answer. In the library's own example, with labels 0, 1, 1 and 1, always predicting 1 scores 75% accuracy without looking at the data. A model that cannot beat a dummy like this has learned nothing useful, however impressive its raw score sounds.

Research uses several kinds of reference point: the previous best method, a simple standard method, random chance and human performance. When the MMLU benchmark was introduced in September 2020, its authors reported that the largest GPT-3 model was almost 20 percentage points better than random chance, a comparison that only makes sense because the chance score on multiple-choice questions is known. ARC-AGI-2's organisers tested over 400 members of the public to confirm that people could solve every one of their tasks.

Baselines are also where results can be inflated. A new method compared against a weak or poorly tuned baseline will look better than it is. When reading a claim of improvement, check what the baseline was, whether it was given the same data and tuning effort, and whether a simpler method would have done nearly as well.

Common questions

What is a baseline model in machine learning?

It is a reference model, often a very simple one, whose performance a new model must beat to show it adds value. Common baselines include always predicting the most common answer, a simple statistical model such as logistic regression, and the best previously published method.

What makes a good baseline?

A good baseline is simple, well understood and fairly tuned, so that beating it is meaningful. Using both a trivial baseline and a strong existing method gives the clearest picture: the first shows the model learned something, and the second shows whether it improves on the state of the art.

What is a human baseline?

It is the score people achieve on the same test, used to judge how close an AI system comes to human performance. Who the people are matters: a panel of experts and a group of members of the public can set very different reference points.

Why would a model fail to beat a simple baseline?

It may have learned patterns that do not hold beyond its training data, or the task may be dominated by one class, so that always guessing that class is hard to beat on accuracy. Failing to beat a baseline is a sign to check the data and the choice of metric.

Finding more

Search for "baseline model machine learning", "dummy classifier baseline" or "weak baselines" to see how reference points are chosen and misused. Machine learning glossaries and library documentation explain the basics, and research papers on arXiv show which baselines a field expects. When a press release reports a large improvement, look in the accompanying paper for what the model was compared against.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.