Fine-Grained Classification with Noisy Labels

Qi Wei, Lei Feng, Haoliang Sun, Ren Wang, Chenhui Guo, Yilong Yin

Abstract

Fine-grained image classification (FGIC) is a challenging task where models must distinguish between highly similar sub-categories, such as specific breeds of dogs or aircraft models. When training data contains noisy (incorrect) labels, standard Learning with Noisy Labels (LNL) methods often fail because the small inter-class margins make it difficult to differentiate between hard clean samples and mislabeled ones. This paper introduces SNSCL (Stochastic Noise-Tolerated Supervised Contrastive Learning), a framework designed to address these challenges. SNSCL combines a weight-aware label correction mechanism, a selective momentum queue, and a stochastic embedding module to build noise-robust representations. Our experiments demonstrate that SNSCL significantly outperforms existing state-of-the-art methods on both synthetic and real-world noisy datasets, providing substantial accuracy gains and improved training stability.

Introduction: The Fine-Grained Noise Penalty

Learning with Noisy Labels (LNL) has seen significant progress in generic classification tasks, where classes are visually distinct (e.g., cats vs. cars). In such scenarios, a mislabeled sample often appears as a clear outlier in the feature space, allowing models to identify and ignore it. However, the landscape changes dramatically in Fine-Grained Classification (LNL-FG).

In fine-grained tasks, the "margin" between classes is extremely narrow. Because sub-categories share many visual features, human annotators are more prone to error, leading to higher rates of "dependent" or "asymmetric" noise. More critically, standard LNL algorithms often struggle in this domain; they frequently overfit to noise because a mislabeled sample from a similar class looks like a legitimate "hard" example. As shown in Figure 1, while generic LNL can easily separate noisy samples, fine-grained noise falls directly into the distribution of neighboring classes, leading to a severe performance penalty.

Comparison of generic LNL vs. fine-grained LNL (LNL-FG) under different noise conditions.

The SNSCL Framework

To combat the toxicity of fine-grained noise, we propose SNSCL (Stochastic Noise-Tolerated Supervised Contrastive Learning). The framework shifts the focus from simple label cleaning to learning robust representations that are naturally resistant to corruption. The architecture consists of three integrated components.

The SNSCL framework architecture, featuring the Stochastic Module, momentum queue, and contrastive loss components.

1. Weight-Aware Label Correction

SNSCL utilizes the "early learning" phenomenon, where models tend to learn clean patterns before memorizing noise. By tracking the training loss of each sample, we employ a Gaussian Mixture Model (GMM) to estimate a "reliability score." Samples with high reliability retain their original labels, while those identified as likely noisy have their labels "refurbished" using a moving average of the model’s own predictions. This prevents the model from being forced to learn incorrect associations.

2. Selective Momentum Queue

Contrastive learning typically maintains a "queue" of previous embeddings to provide a rich set of comparisons. In a noisy environment, this queue can become "poisoned" with incorrect features. SNSCL introduces a selective update mechanism: the queue is only updated with high-confidence samples, or updates are weighted by the sample's reliability score. This ensures that the contrastive anchor points remain clean and representative of the true class distributions.

3. Stochastic Feature Embedding

Traditional contrastive learning relies heavily on manual data augmentations (e.g., cropping, color jittering) to create different "views" of an image. SNSCL replaces or supplements this with a Stochastic Module. Instead of mapping an image to a single point in the embedding space, the model represents each image as a probability distribution (a Gaussian). By sampling from this distribution during training, the model effectively "augments" the data in the feature space. This stochasticity prevents the model from memorizing specific noisy instances and encourages it to learn the underlying manifold of the class.

Experimental Evaluation

We evaluated SNSCL across several challenging fine-grained benchmarks, including Stanford Dogs, Stanford Cars, FGVC-Aircraft, and CUB-200-2011. We introduced both symmetric (random) and asymmetric (class-dependent) noise at various rates.

The results were decisive. On the Aircraft dataset with 40% noise, SNSCL improved accuracy by 21.41% over standard cross-entropy training. Furthermore, SNSCL demonstrated exceptional stability. While many LNL methods exhibit "peaking" behavior—where accuracy rises initially but then crashes as the model begins to memorize noise—SNSCL’s learning curves remained stable throughout the training process.

We also tested the framework on large-scale real-world noisy datasets: Clothing-1M and Food-101N. On Clothing-1M, which contains 1 million images with approximately 39% noise, SNSCL achieved a state-of-the-art accuracy of 75.31%, outperforming the previous best method (SFT+) and the baseline by significant margins.

Conclusion

SNSCL addresses the unique challenges of fine-grained classification with noisy labels by moving beyond simple label filtering. By integrating stochastic embeddings with a noise-aware contrastive learning framework, we provide a method that is both robust to corruption and capable of capturing the subtle nuances required for fine-grained tasks. Our findings suggest that representation learning, when combined with probabilistic modeling of features, is a powerful defense against the "fine-grained penalty" in noisy environments.

Summary updated

BibTeX
@inproceedings{wei2023fine,
  author = {Qi Wei and Lei Feng and Haoliang Sun and Ren Wang and Chenhui Guo and Yilong Yin},
  title = {{Fine-Grained Classification with Noisy Labels}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure