Thursday, December 3, 2026
HomeData ScienceData-Centric AI – Label Cleaning, Dataset Cartography, Slice Analysis and the Data...

Data-Centric AI – Label Cleaning, Dataset Cartography, Slice Analysis and the Data Flywheel

Table of Content

📋 KEY INSIGHTS

  • Data-centric AI shifts focus from tuning model architectures to systematically improving dataset quality — the same model trained on better data consistently outperforms a better model trained on the same data.
  • Label errors are far more common than practitioners expect: studies find 3–10% error rates in widely used benchmarks including ImageNet, CIFAR-10, and QuickDraw, quietly degrading model performance.
  • Confident Learning identifies likely label errors by comparing a classifier’s predicted confidence to the given label — flagging examples where the model is confident about a different class than the annotated one.
  • The data flywheel compounds improvements: better data trains a better model, which produces better predictions, which enable smarter data collection and labelling, creating a self-reinforcing cycle.
  • Dataset cartography maps training examples by their training dynamics — easy, hard, and ambiguous — enabling targeted cleaning and curriculum learning that improves both accuracy and robustness.
  • Systematic slice analysis identifies specific subpopulations where the model underperforms, directing data collection and augmentation effort to exactly where it is most needed.

For most of ML’s history, practitioners improved models by changing architectures, loss functions, and hyperparameters. Andrew Ng’s 2021 keynote crystallised a different view: in many real-world deployments, the data is the bottleneck, not the model. A ResNet-50 trained on clean, well-labelled data with carefully designed augmentations frequently beats a ResNet-152 trained on the original noisy dataset. Data-centric AI makes this intuition rigorous: systematic, principled improvement of training data as the primary lever for performance gains.

This guide covers the full data-centric AI toolkit: detecting and correcting label errors with Confident Learning, characterising training examples with dataset cartography, targeted data collection via slice analysis, data augmentation strategy, data valuation, and the data flywheel that compounds these gains over time.

Label Errors, Confident Learning and Dataset Cartography

Label errors are more prevalent than the ML community has assumed. Northcutt et al. (2021) applied Confident Learning to ten prominent ML benchmarks and found label error rates of 3.4% (ImageNet), 5.8% (QuickDraw), 6.0% (Amazon Reviews), and up to 10% in some audio and medical datasets. When these errors were corrected, test set rankings changed: models that appeared to underperform were actually superior, and vice versa. This has practical consequences — if your test set has 5% label errors, your evaluation is measuring noise as much as model quality. The first step of any serious modelling effort should be a label audit, not a model search.

Confident Learning (Northcutt et al., 2021, the algorithm behind the Cleanlab library) identifies likely label errors without requiring any additional human annotation. The procedure: (1) train a cross-validated classifier on the existing labels and collect out-of-fold predicted probabilities p_hat(y|x) for every training example; (2) for each class pair (s, y) where s is the given label and y is a different class, estimate the number of examples with true label y that were mislabelled as s — using a threshold based on the class-average predicted probability; (3) flag examples in the off-diagonal cells of the estimated label noise matrix as likely errors. This is fundamentally a Bayesian reasoning approach: the predicted probability p_hat(y|x) is treated as a noisy signal about the true label, and the algorithm uses this signal to reason about the data-generating process that produced the observed labels.

Dataset cartography (Swayamdipta et al., 2020) characterises every training example by two statistics computed across training epochs: confidence (the mean predicted probability assigned to the correct label across epochs) and variability (the standard deviation of that probability). Easy examples have high confidence and low variability — the model learns them quickly and stays confident. Hard examples have low confidence across all epochs — the model struggles regardless of training time. Ambiguous examples have high variability — the model is sometimes confident and sometimes not, suggesting the example carries genuine signal but is inconsistent with the rest of the dataset. The key finding: training primarily on ambiguous examples (rather than the full dataset) produces models with better out-of-distribution generalisation, because ambiguous examples lie near the decision boundary and constrain the model more tightly. This connects to active learning: dataset cartography identifies the most informative training examples after the fact, while active learning identifies them before annotation — both converge on the same insight that examples near the decision boundary carry the most learning signal.

TechniqueWhat It DoesKey ToolTypical Gain
Confident LearningDetects likely label errorsCleanlab1–5% accuracy on corrected benchmarks
Dataset CartographyCategorises easy / hard / ambiguousCustom training loopBetter OOD generalisation
Slice-based analysisFinds underperforming subpopulationsSliceline, Snorkel SFsTargeted 10–30% improvement on slices
Data augmentationExpands dataset with realistic variantsAlbumentations, nlpaug2–8% accuracy on data-scarce tasks
Data valuation (DVRL, DAVINZ)Scores each example’s contributionShapley value estimationPrunes noisy data; improves label efficiency

Slice Analysis, Data Augmentation and the Data Flywheel

a group of colorful objects
Photo by Growtika on Unsplash

Slice-based analysis identifies specific subpopulations where a deployed model underperforms — often invisible in aggregate accuracy metrics. A medical imaging model with 92% overall accuracy might drop to 71% on dark-skinned patients or 65% on mobile-phone images taken in low light. Without explicitly measuring performance on these slices, practitioners would never know. Sliceline (Sagadeeva and Boehm, 2021) is an efficient algorithm for automatically discovering underperforming data slices: it searches over all conjunctions of feature predicates (age > 60 AND scan_type = ‘ultrasound’) to find slices where model error is significantly higher than the global average, without exhaustively evaluating all 2^d possible conjunctions. The discovered slices directly drive data collection: if the model underperforms on ultrasound images of elderly patients, the next data collection sprint focuses on exactly this subgroup. This is a data-centric instantiation of the broader algorithmic fairness principle — rather than applying post-hoc fairness constraints, you fix the root cause by collecting representative data for underserved slices.

Data augmentation generates additional training examples by applying label-preserving transformations to existing ones. For images, the standard augmentation pipeline (random crops, horizontal flips, colour jitter, random erasing) is well-established; more aggressive augmentations (MixUp — linearly interpolating two images and their labels; CutMix — replacing a patch of one image with a patch from another; AugMix — averaging predictions across multiple augmented views) provide additional regularisation that closes the gap between training and test distributions. For text, augmentation is harder: synonym replacement, back-translation (translate to French then back to English to get a paraphrase), and retrieval-augmented data generation (using an LLM conditioned on retrieved similar examples to generate new training examples) are the most reliable approaches. The choice of augmentation strategy is a data-centric decision: the right augmentations are those that make the training distribution match the deployment distribution, which requires understanding how the deployment data differs from the training data.

Data valuation asks: how much does each individual training example contribute to the model’s performance? Data Shapley (Ghorbani and Zou, 2019) assigns each example a Shapley value — the average marginal contribution to model performance across all possible subsets of training data. Examples with high positive Shapley values improve the model when included; examples with negative Shapley values hurt it (usually because they are mislabelled or out-of-distribution). Computing exact Shapley values requires training the model on exponentially many subsets, so practical methods (DVRL — Data Valuation using Reinforcement Learning; KNN-Shapley for fast approximation) use sampling or surrogate models. Data valuation connects back to data quality monitoring: Shapley values provide a principled score for ranking data sources by their contribution to model quality, enabling systematic decisions about which data to collect more of and which to remove.

The data flywheel is the compounding feedback loop that makes data-centric AI so powerful at scale. Better labelled data trains a better model; the better model makes higher-quality predictions on unlabelled data, which can be used as pseudo-labels for self-training (a form of self-supervised learning applied to the production data distribution); the pseudo-labelled data augments the training set, training an even better model; the better model provides more accurate uncertainty estimates, which power smarter active learning queries to human annotators; and the cycle repeats. Companies like Google, Tesla, and Scale AI have operationalised this flywheel at massive scale — their competitive moat is not the model architecture but the data infrastructure and feedback loops that continuously improve training data quality.

✦ SUMMARIZE THIS ARTICLE WITH AI

Leave feedback about this

  • Rating

Durgesh Kekare
Durgesh Kekarehttps://www.dataexpertise.in
Durgesh Kekare is a data science educator and founder of DataExpertise.in. With expertise in Python, machine learning, and analytics, he helps 10,000+ learners break into data careers.

Latest Posts

List of Categories