Localizing by Describing: Attribute-Guided Attention Localization for Fine-Grained Recognition

Xiao Liu, Jiang Wang, Shilei Wen, Errui Ding, Yuanqing Lin

Distinguishing between a Summer Tanager and a Scarlet Tanager isn't easy. To a casual observer, they are both red birds. However, an expert knows to look at the wings and tail: the Summer Tanager has red wings, while the Scarlet Tanager’s are black.

In the world of computer vision, this is known as fine-grained recognition. The challenge isn't just identifying a "bird," but identifying the specific species based on subtle, localized cues. A recent paper from Baidu Research, "Localizing by Describing," proposes a clever middle-ground approach to training these systems, using descriptive attributes to guide visual attention.

TL;DR

The authors introduce an attribute-guided attention localization scheme that trains neural networks to find discriminative object parts (like wings or beaks) using descriptive labels (e.g., "red wing") rather than expensive coordinate-based annotations. By using reinforcement learning with a novel reward strategy based on attribute prediction accuracy, their model achieves state-of-the-art results on fine-grained bird recognition.

What Problem Does This Paper Address?

Fine-grained recognition requires a model to focus on specific, informative parts of an object. Traditionally, researchers have taken two paths:

  1. Full Supervision: Manually drawing bounding boxes around every part (head, wing, tail) for thousands of images. This is incredibly time-consuming and prone to human error.
  2. Weak Supervision: Training a model using only the category label (e.g., "Scarlet Tanager"). While easier to label, category labels are often too "weak" to teach a model exactly where multiple distinct parts are located.

As shown in the figure below, weakly supervised models often fail to capture all relevant parts, such as the tail.

Comparison of localization methods. (a) shows the attributes humans use. (b) shows a previous weakly supervised method failing to find the tail. (c) shows the proposed attribute-guided approach successfully locating multiple parts.

Methods

The core idea is "Localizing by Describing." Instead of telling the model where the wing is (coordinates), the authors tell the model what the wing looks like (attributes).

The Architecture

The system uses a Fully-Convolutional Attention Localization Network. During training, the model acts as an "agent" in a reinforcement learning (RL) framework:

  • State: The input image and a cropped local patch.
  • Action: Choosing a region to "attend" to.
  • Reward: A novel strategy that rewards the model if the chosen region helps it accurately predict the attributes associated with a specific part.
The architecture consists of a training stage guided by attribute predictors and a testing stage that combines local and global features for final category prediction.

The Reward Strategy

Standard RL rewards are often binary (1 for correct classification, 0 for incorrect). The authors found this too strict for multi-attribute tasks. Instead, they reward a selected region if:

  1. Its attribute prediction loss is among the lowest (top-η) for that specific image.
  2. Its loss is lower than half the average loss of the entire mini-batch.

This "ranking-based" reward provides a much smoother signal for the model to learn which regions are semantically meaningful.

Datasets

The model was evaluated on the CUB-200-2011 dataset, the gold standard for fine-grained bird recognition. It contains:

  • 11,788 images across 200 bird categories.
  • 312 binary attributes (e.g., "has wing color: red").
  • Part location annotations (used only for evaluation, not for training the proposed model).

Key Insights and Ideas

  • Attributes as a "Goldilocks" Supervision: Attributes are stronger than category labels but much cheaper to obtain than part coordinates. They provide a semantic bridge that helps the model understand why a region is important.
  • Reinforcement Learning for Non-Differentiable Cropping: Because the act of "cropping" a region is not a differentiable operation, RL (specifically the REINFORCE algorithm) is used to optimize the localization policy.
  • Convergence through Description: As training progresses, the model's probability map for a part (like the head) naturally converges from a broad, uncertain area to a tight focus on the actual part, driven solely by the goal of predicting attributes like "eye color" or "beak shape."
Visualization of the RL training process. Over 200 iterations, the localizer's probability map (bottom row) converges on the bird's head.

Key Results

  • Recognition Accuracy: The model achieved 85.4% accuracy on the CUB dataset without using ground-truth bounding boxes, outperforming several state-of-the-art methods that use similar levels of supervision.
  • Localization Quality: Even though it wasn't trained on coordinates, the model's "Percent Correct Parts" (PCP) score was highly competitive. For example, it achieved a 79.5% PCP for the breast part, actually outperforming strongly supervised methods in that specific area.
  • Attribute Prediction: Combining global image features with the discovered local attention regions improved the average Area Under the Curve (AUC) for attribute prediction from 74.3 to 76.6.

Limitations and Future Work

The authors noted that attempting to model the geometric relationships between parts (e.g., using an RNN to ensure the head is above the breast) did not yield significant improvements. They attributed this to the extreme diversity in bird poses (flying, perching, swimming) found in the dataset, which makes simple geometric rules difficult to learn.

Future work will likely focus on more sophisticated ways to regularize part locations and handle highly deformable objects. For now, "Localizing by Describing" stands as a powerful proof-of-concept for using semantic language to teach machines how to see.

Summary updated

BibTeX
@inproceedings{liu2017localizing,
  author = {Xiao Liu and Jiang Wang and Shilei Wen and Errui Ding and Yuanqing Lin},
  title = {{Localizing by Describing: Attribute-Guided Attention Localization for Fine-Grained Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.11202},
}
Figure