Ground truth

Ground truth is the correct answer or real-world fact that an AI model's outputs are checked against, such as the confirmed diagnosis behind a medical scan or what actually happened after a prediction.

Google's machine learning glossary gives the shortest possible definition: reality, the thing that actually happened. If a model predicts whether a first-year university student will graduate within six years, the ground truth is whether that student did. Models are trained on ground truth and judged against it, so it underpins almost every accuracy figure in AI.

Before machine learning, the phrase was used in fields that measure the world from a distance. By 1972 NASA was using it in remote sensing for data gathered about materials on the earth's surface, used to calibrate measurements taken from a distance. In military slang it means the facts of a situation on the ground, as opposed to what reports and plans say. In machine learning, ground truth usually arrives as labels attached to examples.

Ground truth is not always true. Google's glossary lists the ways it can go wrong: records may be mistaken, instruments may be calibrated differently, and when the label is a human judgement, different raters may apply different standards. Curtis Northcutt, Anish Athalye and Jonas Mueller found label errors averaging at least 3.3 per cent in the test sets of 10 widely used datasets, and at least 6 per cent in the ImageNet validation set.

Sometimes the real answer is not available at all, and teams use a stand-in. Google calls these proxy labels and gives a warning example: using workplace accidents as a proxy for employee stress, when accidents have other causes. A model trained on a proxy learns the proxy, not the thing people care about.

When a company reports that its system matched ground truth in a given share of cases, the first question is how that ground truth was established: by records, by measurement, by a single annotator or by a panel of experts who had to agree. The figure can be no more reliable than that answer.

Common questions

What does ground truth mean in AI?

It means the correct answers that a model is trained on and evaluated against: what actually happened, or the verified correct label for an example. Accuracy figures are calculated by comparing a model's outputs with the ground truth.

Where does the term ground truth come from?

It was used in remote sensing, where NASA by 1972 used it for data about materials on the earth's surface, used to calibrate remote measurements. It is also military slang for the real situation on the ground. Machine learning borrowed it for the reference answers used in training and testing.

Can ground truth be wrong?

Yes. Records contain mistakes, instruments drift and human annotators disagree. Research on 10 popular datasets found that at least 3.3 per cent of test labels were wrong on average, enough to change which models appear best.

What is the difference between ground truth and a label?

A label is the answer attached to a particular example in a dataset. Ground truth is the reality that label is supposed to record. When labelling is done well they match; when it is not, the label is wrong and the model learns or is judged against the error.

Finding more

Search for "ground truth machine learning", "label errors" or "proxy labels". Machine learning glossaries and course material explain the term, and research on dataset auditing shows how often ground truth is flawed. When a product claims high accuracy, look for a description of how the reference answers were produced and checked.

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.