Pairwise Confusion for Fine-Grained Visual Classification

Abhimanyu Dubey, Otkrist Gupta, Pei Guo, Ramesh Raskar, Ryan Farrell, Nikhil Naik

Abstract

Fine-Grained Visual Classification (FGVC) is a challenging computer vision task where models must distinguish between visually similar sub-categories. Standard training objectives often lead to overfitting on small datasets by memorizing non-essential image artifacts. We present Pairwise Confusion (PC), a novel regularization technique that encourages the model to learn more generalizable features by intentionally "confusing" the probability distributions of different classes. Using a Siamese architecture and a stable Euclidean-based confusion loss, PC achieves state-of-the-art performance across multiple benchmarks without increasing inference-time complexity.

Introduction

Distinguishing between a Siberian Husky and an Alaskan Malamute requires a level of detail far beyond general object recognition. FGVC is characterized by high intra-class variation and high inter-class similarity. While standard Cross-Entropy loss pushes for maximum confidence, it can lead to "over-discrimination" in data-constrained environments, where the model latches onto background noise or specific image features rather than the actual object of interest. This paper introduces Pairwise Confusion to mitigate this effect by regularizing the model's output distributions.

Methods

The proposed Pairwise Confusion (PC) method employs a Siamese network architecture during the training phase. Two identical branches share weights and process pairs of images simultaneously.

The Pairwise Confusion training architecture using a Siamese network and shared weights.

The optimization objective is a weighted sum of the standard cross-entropy loss for each image and a "Confusion" term. This term minimizes the Euclidean distance between the softmax outputs of the two images. Unlike KL divergence, which can become numerically unstable as the model gains confidence, Euclidean distance provides a stable lower bound for symmetric KL divergence, facilitating smoother gradient descent and preventing the model from becoming overly certain about sample-specific artifacts.

Datasets

The effectiveness of PC was evaluated on six prominent FGVC datasets, which typically feature a high number of classes relative to the number of training samples. These benchmarks include CUB-200-2011 (birds), NABirds, Stanford Dogs, Stanford Cars, FGVC-Aircraft, and Flowers-102.

Summary of the fine-grained visual classification datasets used for evaluation.

Results and Discussion

PC consistently outperformed existing methods, achieving state-of-the-art results with an average accuracy improvement of 1.86% across the six datasets. A key finding is that intentional confusion improves the model's internal representation, leading to better object localization. On the CUB-200-2011 dataset, PC improved Mean Intersection-over-Union (IoU) by 3.4% across five different network architectures. This suggests the model focuses more on the actual object and less on background artifacts compared to standard training.

Importantly, the Siamese architecture is only required during training to shape the network weights. At test time, a single branch is used, resulting in zero additional computational overhead or latency for the end-user.

Conclusion

Pairwise Confusion provides a robust and efficient regularization framework for fine-grained classification. By discouraging over-confident discrimination of similar classes, the method forces the network to discover more meaningful and generalizable visual features. Its simplicity and lack of test-time overhead make it a highly practical addition to the FGVC toolkit.

Summary updated

BibTeX
@inproceedings{dubey2018pairwise,
  author = {Abhimanyu Dubey and Otkrist Gupta and Pei Guo and Ramesh Raskar and Ryan Farrell and Nikhil Naik},
  title = {{Pairwise Confusion for Fine-Grained Visual Classification}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01258-8\_5},
}
Figure