Understanding the Impact of Label Granularity on CNN-Based Image Classification

Zhuo Chen, Ruizhou Ding, Ting-Wu Chin, Diana Marculescu

TL;DR

Training Convolutional Neural Networks (CNNs) with fine-grained labels (e.g., "Persian cat") instead of coarse-grained labels (e.g., "animal") significantly improves both accuracy and data efficiency for coarse-grained classification tasks. The authors demonstrate that fine-grained labels force the network to learn richer, more diverse features, allowing models trained on just 40% of a dataset to outperform baselines trained on 100% of the data.

What Problem Does This Paper Address?

In image classification, the definition of a "correct" label is entirely dependent on the application. An image of a dog could be accurately labeled as "animal," "carnivore," "dog," or "Golden Retriever." This hierarchy is known as label granularity.

If your target application only requires coarse-grained classification (e.g., separating animals from vehicles), the standard practice is to train the CNN directly on those coarse-grained labels. This paper asks a counter-intuitive question: Should we instead train the network on fine-grained labels and map the predictions back to the coarse categories during testing? Given that collecting massive, labeled datasets is a major bottleneck in deep learning, understanding how to extract the maximum possible performance from existing data by simply adjusting the label hierarchy is highly valuable.

Methods

The authors trained standard CNN architectures (ResNets and Wide ResNets) using fine-grained labels. During the testing phase, the network's fine-grained predictions were mapped to their corresponding coarse-grained parent classes to calculate the final accuracy. This was compared against a baseline CNN trained directly on the coarse-grained labels.

To understand why this works, the authors:

  1. Tested model capacity: Added extra fully-connected layers to the coarse-grained baseline to see if the performance gap was simply due to the fine-grained model having a slightly larger final layer (increased non-linearity).
  2. Visualized feature spaces: Used t-SNE to map the learned feature representations and observe how fine-grained training separates data points.
  3. Introduced a novel metric: Proposed the Average Confusion Ratio (ACR), which quantifies the ratio of inter-class confusion to intra-class confusion, to predict how much a specific dataset will actually benefit from fine-grained training.

Datasets

The experiments were conducted on several well-known image classification benchmarks, adapted to feature both coarse and fine labels:

  • CIFAR-10: Grouped into 2 coarse classes (animal vs. vehicle) covering 10 fine classes.
  • CIFAR-100: 20 coarse classes covering 100 fine classes.
  • CIFAR-100 animals: A subset of 10 animal coarse classes covering 50 fine classes.
  • ImageNet subsets: Two custom subsets created for this study based on the WordNet hierarchy: "dog vs. cat" (10 fine breeds) and "fruit vs. vegetable" (17 fine types).

Key Insights and Ideas

  • Fine-grained labels force feature diversity: In weakly-supervised or coarse training, a network only learns the minimum discriminative features needed. If it only needs to separate cats from dogs, it might just learn to look for "whiskers." But if forced to separate 10 different breeds of cats, it must learn to recognize ears, tails, and fur patterns. These extra features make the model generalize much better on the broader coarse-grained task.
  • It's not just a model capacity trick: Adding extra layers to the coarse-grained model did not replicate the accuracy gains. The benefit comes specifically from the "hints" provided by the fine-grained labels, which guide the optimization process toward better feature representations.
  • A new lever for data efficiency: If human annotation resources are limited, it might be more effective to re-label an existing dataset with fine-grained labels rather than spending time and money collecting more raw images.
  • ACR predicts the performance bump: The proposed Average Confusion Ratio successfully correlates with the accuracy improvement. Datasets with high confusion between coarse classes but low confusion within fine classes see the largest gains.

Key Results

  • Accuracy Boost: Fine-grained training improved testing accuracy across almost all datasets. For example, it yielded a +3.5% improvement on the ImageNet fruit vs. vegetable task and +2.02% on CIFAR-100 animals.
  • Massive Data Efficiency: On CIFAR-10 and the ImageNet subsets, a CNN trained with fine-grained labels using only 40% of the training data achieved higher accuracy than a CNN trained on 100% of the data with coarse-grained labels.
  • Diminishing Returns: On the full CIFAR-100 dataset (which already has 20 coarse classes), the accuracy improvement was negligible (+0.01%). This indicates that when the number of coarse classes is already high enough, the network is naturally forced to learn a sufficient variety of features.

Limitations and Future Work

The authors acknowledge a few limitations. First, the benefits of fine-grained training diminish as the number of coarse-grained classes increases (as seen with the full CIFAR-100 dataset). Second, if fine-grained labels are highly noisy—such as those generated by cheap, unsupervised clustering algorithms—they can actually degrade CNN performance compared to clean coarse labels.

For future work, the authors suggest exploring how to automatically and reliably cluster coarse-grained classes into less-noisy fine-grained classes. This would allow practitioners to reap the benefits of fine-grained training without the expensive human labor required to manually annotate sub-categories.

Summary updated

BibTeX
@inproceedings{chen2018understanding,
  author = {Zhuo Chen and Ruizhou Ding and Ting-Wu Chin and Diana Marculescu},
  title = {{Understanding the Impact of Label Granularity on CNN-Based Image Classification}},
  booktitle = {Workshops @ ICDM},
  year = {2018},
  doi = {10.1109/icdmw.2018.00131},
}
Figure