GradTrack: Detecting Noisy Labels via Temporal Trajectories of Class-wise Gradient Misalignment

Townim Faisal Chowdhury, Ta Duc Huy, Vu Minh Hieu Phan, Anton van den Hengel, Johan W. Verjans, Gustavo Carneiro, Zhibin LiaoNeurIPS 2026

TL;DR

Deep neural networks easily memorize mislabeled data, and existing tools for catching bad labels mostly look at how big a model's error is—risking the confusion of genuinely difficult examples with corrupted ones. GradTrack solves this by looking at gradient direction over time, spotting mislabeled samples because they persistently pull the model in the wrong geometric direction compared to clean data. Acting as a plug-and-play filter, it significantly boosts accuracy across messy, real-world datasets without needing manual threshold tuning.

What Problem Does This Paper Address?

Real-world datasets—especially web-scraped or large-scale medical ones—are riddled with inaccurate labels. When a husky is accidentally labeled as a wolf, deep networks eventually memorize the mistake, hurting generalization.

Most existing noisy-label detectors rely on scalar signals like high loss, low confidence, or large gradient magnitudes. While these numbers tell you how much the model is struggling with a sample, they miss the geometry of optimization. Two images might produce the exact same high loss, yet push the model’s weights in completely opposite directions. One might be a tricky, weirdly angled photo of a real wolf that still nudges the model toward a good solution; the other is a mislabeled husky actively dragging optimization off course.

Figure 1: Gradient dynamics illustrated in the parameter space of a simple model working on a toy dataset with synthetic label noise, showing the model parameter update trajectory on the loss surface (the contours) toward the noisy local minimum in 40 epochs. The averaged lowest 1/3 and middle 1/3 gradient directions point more closely to the true local minimum. The largest 1/3 gradient direction drags the optimization toward a different direction, causing the average gradient over all samples to converge to the noisy local minimum.

The authors ask: instead of just measuring the strength of a sample's error, can we catch bad labels by tracking whether their gradients geometrically conflict with clean training dynamics over time?

Methods

To keep computation practical, GradTrack uses a standard frozen pretrained encoder (like CLIP) and only tracks per-sample gradients in the final linear classification layer. What’s novel is how it extracts, cleans, and tracks directional signals across epochs:

  1. Coarse Magnitude Partitioning: At each epoch (after a brief warm-up), samples are sorted by gradient norm into three equal groups: low, medium, and high. Because the high-magnitude group is heavily contaminated with label noise, GradTrack sets it aside and combines the low and medium groups as a predominantly clean pool.
  2. Class-wise Clean Direction & SVD Denoising: Using the bottom-$K$ smallest-gradient samples per class from this cleaner pool, GradTrack estimates an approximate "clean" gradient direction for each class. Because some noise still leaks into the medium group, it applies Singular Value Decomposition (SVD) to project gradients onto a denoised subspace that captures only the dominant, shared clean directions. Each sample then gets a misalignment score via cosine distance from its labeled class's clean direction.
  3. Temporal Rank Trajectories: Rather than averaging raw magnitude and misalignment scores—which live on different statistical scales—GradTrack converts both signals into normalized rankings at every epoch. Concatenating these across training forms a sample's temporal rank trajectory. Another pass of SVD smooths out epoch-to-epoch rank jitter, and a standard two-component Gaussian Mixture Model (GMM) automatically clusters the embeddings into "clean" and "noisy" sets without requiring prior knowledge of the dataset's noise rate.

Datasets

The authors do not introduce new datasets, instead evaluating across synthetic and real-world benchmarks:

  • Synthetic Noise: CIFAR-10, CIFAR-100, and Tiny-ImageNet corrupted with symmetric (random flips), asymmetric (class-specific flips like Cat $\leftrightarrow$ Dog), and feature-dependent (instance-dependent) noise.
  • Real-World Noise: Human-annotation errors in CIFAR-10N (Aggregate and Worst splits) and CIFAR-100N, alongside large-scale web-crawled datasets mini-WebVision and Clothing1M.

Key Insights and Ideas

Gradient dynamics under label noise showing noise concentration, alignment with clean oracle gradients, and per-class distributions

Gradient dynamics under label noise showing noise concentration, alignment with clean oracle gradients, and per-class distributions
  • The "Goldilocks" medium-gradient group: Intuitively, samples with the smallest gradients are the cleanest. Yet, in 8 out of 11 settings, the medium-magnitude group actually aligns best with the true oracle clean gradient. Easy, low-gradient samples are already well-fitted and contribute tiny, weak updates, whereas harder clean samples in the medium group provide the strong directional signals that actually steer learning.
  • Global references punish hard classes: Some classes are naturally harder to learn and produce larger gradients overall. Estimating a single global "clean direction" biases the detector against hard classes, making per-class reference directions essential.
  • Magnitude and direction are complementary: Per-sample gradient norm and class-wise misalignment show only a moderate rank correlation ($r_s = 0.53$ after denoising). Combining both into a single rank trajectory catches noisy samples that either signal alone would miss.

Key Results

  • Noise Detection: Across 11 synthetic and real-world settings, GradTrack achieves an average F1 score of 87.40%, beating the strongest baseline, SIMIFEAT-V (83.54%), and ranking first in 7 of 11 benchmarks. Under 40% instance-dependent noise on CIFAR-100, it jumps to 89.25% F1 (vs. 80.41% for SIMIFEAT-V).
  • Plug-in Downstream Gains: When plugged into existing Learning-with-Noisy-Labels (LNL) pipelines to filter training data, GradTrack consistently boosts test accuracy—improving standard Cross-Entropy by +4.16% on WebVision and +3.70% on Clothing1M, while adding +1.25% to +2.50% even on top of strong modern frameworks like DeFT.

Limitations and Future Work

  • Frozen encoder constraint: GradTrack only inspects gradients at the classification head atop a frozen backbone. Tracking full-network gradients could capture richer signals, though the authors note backpropagation through shared layers tends to diffuse sample-specific directional differences. Exploring full-model gradients is left for future work.
  • Computational overhead: Extracting per-sample gradients across epochs is much heavier than tracking scalar loss—accounting for 98.97% of the pipeline's runtime on Tiny-ImageNet—making GradTrack better suited for offline dataset cleaning or periodic (rather than every-step) filtering.
  • Over-cleaning in low-noise regimes: When true noise is very low (e.g., CIFAR-10N Agg. at ~9% noise), the default 0.5 GMM probability cutoff is overly aggressive, flagging ~15% of data and hurting precision (69.23% F1, despite a 97.78% AUC). Adjusting the SVD variance threshold mitigates this, though automatic adaptation remains an open nuance.

Summary updated

Abstract

Noisy-label detection aims to identify incorrectly labeled training samples so that their adverse impact on model learning can be mitigated. Existing methods typically rely on loss, prediction confidence, or gradient magnitude signals, which primarily capture the scale of prediction errors. While effective, such scalar signals overlook the geometric structure and temporal dynamics of gradient evolution during training. In this work, we show that gradient magnitude provides a useful entry point for analysing the gradient distortion induced by noisy-label samples, enabling us to quantify their deviation from the gradients that would be generated by clean labels. In this light, we propose GradTrack, a simple and effective framework for detecting noisy-label samples by estimating class-wise gradient directions likely to be induced by clean labels and measuring the alignment of training samples with these directions. In each training epoch, GradTrack partitions samples based on gradient magnitude and approximate clean-label gradient directions to compute a class-wise gradient misalignment score. These scores are used to rank training samples, which are then aggregated across training epochs to form a temporal rank trajectory. Finally, a Gaussian mixture model is applied to detect noisy-label samples. Extensive experiments on both synthetic and real-world noisy-label benchmarks demonstrate that GradTrack achieves strong detection performance, particularly under instance-dependent noise, and can further improve existing learning-with-noisy-labels pipelines as a plug-in sample selection module. Our code is publicly available at https://github.com/AIML-MED/GradTrack.
BibTeX
@inproceedings{chowdhury2026gradtrack,
  author = {Townim Faisal Chowdhury and Ta Duc Huy and Vu Minh Hieu Phan and Anton van den Hengel and Johan W. Verjans and Gustavo Carneiro and Zhibin Liao},
  title = {{GradTrack: Detecting Noisy Labels via Temporal Trajectories of Class-wise Gradient Misalignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=x43qiqLUSG},
}
Figure