Learning from Web Data Using Adversarial Discriminative Neural Networks for Fine-Grained Classification

Xiaoxiao Sun, Liyi Chen, Jufeng Yang

Abstract

Fine-grained image classification typically requires large-scale, expertly labeled datasets, which are costly and time-consuming to produce. While web-crawled data offers a scalable alternative, it introduces significant label noise and a "dataset gap" due to distribution shifts between clean, professional benchmarks and uncurated web images. This paper proposes a multi-task adversarial discriminative framework that jointly optimizes for category classification and domain invariance. By forcing the feature extractor to produce representations that confuse a domain classifier, the model learns robust features that generalize across clean and web-sourced data, achieving state-of-the-art performance on several fine-grained benchmarks.

The Challenge: The Dataset Gap

Fine-grained classification—distinguishing between very similar sub-categories like specific breeds of dogs or types of food—requires massive amounts of labeled data. While scraping images from the web (Google, Flickr, Twitter) is an obvious solution, it presents two major hurdles: noisy labels and content complexity. Web images often feature cluttered backgrounds, varying scales, and inconsistent lighting compared to the "clean" images found in standard benchmarks.

The dataset gap illustrated: models trained on clean data (a) struggle to generalize to web-sourced data (b, c) due to significant distribution shifts.

Previous research has largely focused on "label cleansing" to filter out noise. However, this paper argues that the primary challenge is the dataset gap—the structural difference in how features are represented between clean and web data. As shown in Figure 1, models trained on clean datasets like Stanford Dogs often fail to generalize to web-sourced versions of the same categories.

Proposed Methodology

The authors propose a multi-task learning framework designed to bridge this gap by jointly optimizing two objectives: label prediction and source classification.

The proposed adversarial discriminative framework jointly optimizes for label prediction ($L_c$) and source classification ($L_d$) to learn domain-invariant features.
  1. Label Prediction (Standard Task): A typical softmax loss ($L_c$) ensures the model correctly identifies the image category.
  2. Source Classification (Adversarial Task): A domain classifier ($L_d$) attempts to determine if an image originated from the "clean" or "web" dataset.

The core innovation is the adversarial discriminative loss. During training, the feature extractor is encouraged to maximize the loss of the source classifier. By effectively reversing gradients during backpropagation, the model is forced to learn features that make it impossible for the source classifier to distinguish the data origin. This "representation coherence" allows the model to ignore domain-specific noise and focus on the essential features of the object itself.

Experimental Results and Insights

The study evaluated the method across three distinct fine-grained domains: Dogs (Stanford Dogs vs. Web-Dog), Food (Food-101 vs. Web-Food), and Indoor Scenes (MIT Indoor 67 vs. Web-Indoor).

Key Findings:

  • Domain Invariance: Standard CNNs can easily distinguish between clean and web images. The proposed adversarial method successfully drives this "source recognition" accuracy down toward 50% (random chance), confirming the features have become domain-invariant.
  • Data Volume vs. Quality: Results suggest that leveraging massive amounts of web data can be more beneficial than using a smaller, perfectly "cleansed" dataset, provided an adversarial approach is used to handle the domain shift.
  • State-of-the-Art Performance: Using a ResNet50 backbone, the method achieved new SOTA results: 89.35% on Food-101, 87.07% on Stanford Dogs, and 84.59% on MIT Indoor 67.

Conclusion

This work demonstrates that adversarial training is a powerful tool for leveraging noisy web data in fine-grained classification tasks. By focusing on feature coherence rather than just label filtering, the model becomes robust to the inherent distribution shifts of the web. Future work may explore automating the tuning of the trade-off parameter $\lambda$ or extending the framework to purely unsupervised scenarios where no clean anchor dataset is available.

Summary updated

BibTeX
@inproceedings{sun2019learning,
  author = {Xiaoxiao Sun and Liyi Chen and Jufeng Yang},
  title = {{Learning from Web Data Using Adversarial Discriminative Neural Networks for Fine-Grained Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.3301273},
}
Figure