Fine-Grained Recognition in the Wild: A Multi-task Domain Adaptation Approach

Timnit Gebru, Judy Hoffman, Li Fei-Fei

Abstract

While fine-grained object recognition is an important problem in computer vision, current models are unlikely to accurately classify objects in the wild. These fully supervised models need additional annotated images to classify objects in every new scenario, a task that is infeasible. However, sources such as e-commerce websites and field guides provide annotated images for many classes. In this work, we study fine-grained domain adaptation as a step towards overcoming the dataset shift between easily acquired annotated images and the real world. Adaptation has not been studied in the fine-grained setting where annotations such as attributes could be used to increase performance. Our work uses an attribute based multi-task adaptation loss to increase accuracy from a baseline of 4.1% to 19.1% in the semi-supervised adaptation case. Prior domain adaptation works have been benchmarked on small datasets such as [46] with a total of 795 images for some domains, or simplistic datasets such as [41] consisting of digits. We perform experiments on a subset of a new challenging fine-grained dataset consisting of 1, 095, 021 images of 2, 657 car categories drawn from e-commerce websites and Google Street View.

Introduction

Fine-grained recognition is the task of distinguishing between very similar categories, such as specific bird species or car models. While we have massive datasets of "clean" images from field guides or e-commerce sites, these models often crumble when deployed "in the wild." Real-world images, such as those from Google Street View, are often blurry, occluded, or taken from awkward angles. This creates a significant domain shift: the statistical distribution of the training data does not match the test data.

Figure 1: Comparison between clean training images and messy real-world scenarios across different object categories.

Collecting expert-labeled images for every possible real-world scenario is prohibitively expensive. This research explores whether easily acquired web data can be used to train models that generalize to messy, real-world environments by leveraging shared attributes.

Multi-Task Domain Adaptation

The authors propose a Multi-Task Domain Adaptation approach. Instead of just training a classifier to recognize a specific fine-grained class (e.g., "1998 Honda Accord"), the model is trained to simultaneously recognize higher-level attributes (e.g., "Honda" and "Sedan").

Key Technical Components

  • Multi-Task Architecture: A shared CNN backbone (CaffeNet) feeds into multiple independent softmax classifiers—one for the fine-grained class and several for attributes.
  • Attribute Consistency Loss (ACL): This novel loss function uses a symmetric KL divergence to ensure that the fine-grained classifier and the attribute classifiers agree. For example, if the model predicts a "Honda Accord," the ACL penalizes the model if the attribute classifier does not also predict "Honda" and "Sedan."
  • Domain Adaptation Integration: The method builds upon existing techniques like Domain Confusion (UA), which makes features domain-invariant, and Softlabel Loss (SSA), which transfers knowledge from labeled source classes to unlabeled target classes.

Datasets and Benchmarking

The paper evaluates the approach on two main benchmarks:

  1. Large-Scale Car Dataset: A new dataset introduced by the authors containing 1,095,021 images across 2,657 categories. It pairs "Web" images (from Craigslist, Cars.com, etc.) with "GSV" (Google Street View) images. This is significantly larger and more challenging than previous domain adaptation benchmarks.
  2. The Office Dataset: A standard domain adaptation benchmark consisting of 31 categories across three domains (Amazon, Webcam, DSLR), augmented with hierarchical attributes from WordNet.

Results and Insights

The results demonstrate that adding attribute-level supervision and consistency loss provides a significant boost in performance:

  • Unsupervised Adaptation (Cars): Moving from a standard source-only CNN (9.28% accuracy) to the full model with attributes and consistency loss reached 19.05%.
  • Semi-Supervised Adaptation (Cars): In the most challenging scenario where only a subset of target classes are labeled, the baseline accuracy of 4.12% was nearly quintupled to 19.11%.

Attributes serve as a bridge; even without labeled real-world images for a specific rare car model, labeled images for its "Make" or "Body Type" allow the model to learn features that generalize across the domain gap. The multi-task objective also acts as a powerful regularizer, improving generalization when target labels are sparse.

Conclusion

This work highlights the potential of using hierarchical attributes to overcome domain shift in fine-grained recognition. While the effectiveness depends on the visual distinctiveness of the attributes, the proposed Multi-Task Domain Adaptation approach offers a scalable way to improve real-world performance. Future work will explore methods for automatically obtaining visually distinctive attribute labels and performing hierarchical adaptation without explicit attribute labels when a taxonomy is known.

Summary updated

BibTeX
@inproceedings{gebru2017fine,
  author = {Timnit Gebru and Judy Hoffman and Li Fei-Fei},
  title = {{Fine-Grained Recognition in the Wild: A Multi-task Domain Adaptation Approach}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=r1NZnxMu-B},
}
Figure