Multi-Attention Multi-Class Constraint for Fine-grained Image Recognition

Ming Sun, Yuchen Yuan, Feng Zhou, Errui Ding

Introduction

Fine-grained image recognition (FGIR) involves distinguishing between visually similar sub-categories, such as specific bird species or car models. The primary challenge is that global appearances are often nearly identical, requiring models to identify subtle, discriminative local features.

Existing approaches typically rely on either expensive manual part annotations (strongly supervised) or complex, multi-stage training pipelines (weakly supervised) that treat object parts in isolation. This paper introduces a novel end-to-end framework that learns to identify and correlate object parts without manual labels, achieving state-of-the-art accuracy with high computational efficiency.

Methods

The proposed framework integrates two primary innovations into a standard CNN backbone: the One-Squeeze Multi-Excitation (OSME) module and the Multi-Attention Multi-Class (MAMC) constraint.

The end-to-end architecture featuring the OSME module and MAMC loss.

1. One-Squeeze Multi-Excitation (OSME)

Inspired by Squeeze-and-Excitation Networks (SENet), the OSME module identifies multiple attention regions in a single forward pass.

  • The Squeeze: It aggregates global spatial information into a channel descriptor.
  • Multi-Excitation: Instead of a single gating branch, it employs multiple independent branches to "excite" different sets of channels. Each branch learns to focus on a distinct part of the object (e.g., head vs. torso) automatically.

2. Multi-Attention Multi-Class Constraint (MAMC)

The MAMC constraint is a metric learning objective that organizes the feature space by correlating parts across different images. It optimizes the network based on three primary rules:

  • Same-attention, same-class: Pulls features of the same part from the same species together.
  • Same-attention, different-class: Pushes features of the same part from different species apart to highlight subtle differences.
  • Different-attention, same-class: Pushes different parts of the same species apart to ensure attention branches do not overlap on the same features.

Key Results and Insights

The model was evaluated on standard benchmarks (CUB-200-2011, Stanford Dogs, Stanford Cars) and a massive new dataset introduced by the authors: Dogs-in-the-Wild. This new dataset contains nearly 300,000 images across 362 categories, offering significantly more real-world variety than previous benchmarks.

Visualization of the OSME module identifying distinct parts (e.g., tail and head) on different dog breeds.

Performance and Efficiency

  • State-of-the-Art Accuracy: The method reached 86.5% on CUB-200-2011 and 93.0% on Stanford Cars, outperforming many methods that use manual part annotations.
  • Computational Efficiency: By avoiding the iterative "crop-and-resize" loops common in other attention models, this framework runs 3.6x faster than competitors like RACNN.
  • Qualitative Success: Visualizations demonstrate that the OSME module successfully "locks on" to meaningful anatomical parts, such as bird wings or dog tails, despite never being explicitly trained on part locations.

Conclusion

By combining a lightweight multi-attention mechanism with a correlation-aware metric learning constraint, this work provides a robust and efficient solution for fine-grained recognition. The approach demonstrates that understanding the relationships between parts is just as critical as identifying the parts themselves. Future work may explore integrating label hierarchies to further refine the metric learning process.

Summary updated

BibTeX
@inproceedings{sun2018multi,
  author = {Ming Sun and Yuchen Yuan and Feng Zhou and Errui Ding},
  title = {{Multi-Attention Multi-Class Constraint for Fine-grained Image Recognition}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01270-0\_49},
}
Figure