Attribute Recognition from Adaptive Parts

Luwei Yang, Ligen Zhu, Yichen Wei, Shuang Liang, Ping Tan

Abstract

Previous part-based attribute recognition approaches perform part detection and attribute recognition in separate steps. The parts are not optimized for attribute recognition and therefore could be sub-optimal. We present an end-to-end deep learning approach to overcome the limitation. It generates object parts from key points and perform attribute recognition accordingly, allowing adaptive spatial transform of the parts. Both key point estimation and attribute recognition are learnt jointly in a multi-task setting. Extensive experiments on two datasets verify the efficacy of proposed end-to-end approach.

Introduction

Recognizing localized attributes—like determining if a person is "wearing a hat" or has "short sleeves"—requires looking at specific object parts rather than the entire image. Using the whole image often leads to overfitting and makes the model vulnerable to changes in object pose.

Examples of key points, adaptive parts, and predicted attributes across different datasets.

Historically, researchers tackled this using a two-step pipeline: first, detect object parts (using heuristics or separate part detectors), and second, classify the attributes within those parts. The major flaw in this approach is that the part detectors are trained independently of the attribute classification goal. Consequently, the extracted regions are often sub-optimal. For example, the ideal bounding box for detecting "long hair" might need to be much wider than the box needed to detect a "hat," but a generic "head" detector won't know the difference. This paper addresses this gap by creating a unified network that dynamically adjusts its part detection based on the specific attribute it is trying to recognize.

Methods

The authors propose a multi-task Convolutional Neural Network (using AlexNet or VGG-16 as a base) that learns pose and attributes simultaneously.

The proposed end-to-end architecture featuring key point estimation, adaptive part generation, and attribute classification.

Key innovations include:

  • Key Point Estimation as an Auxiliary Task: The network first predicts object key points (e.g., joints like shoulders, elbows, and wrists). Key points are less ambiguous to annotate than bounding boxes and provide a strong structural foundation.
  • Adaptive Part Generation: The model groups subsets of predicted key points to form an initial bounding box for a specific part (e.g., the torso). Crucially, it introduces learnable adjustment parameters ($\Delta$) that dynamically resize and shift this box.
  • Bilinear Feature Sampling: Inspired by Spatial Transformer Networks (STNs), the model uses a bilinear sampler to warp the feature maps from these adaptive bounding boxes into a fixed size. Because this sampling is differentiable, the attribute classification loss can backpropagate all the way down to the key point localization layers.
  • Aspect Ratio Regularization: To prevent the adaptive bounding boxes from stretching into extreme, unhelpful shapes during training, the authors introduce a novel aspect ratio loss that penalizes overly distorted boxes.

Datasets

Because few existing datasets offer both complex object poses and rich attribute annotations, the authors created/augmented two datasets for this paper:

  • Augmented MPII Dataset: Built on top of the standard MPII human pose dataset, the authors labeled 11 multi-class clothing attributes across three body parts (head, torso, legs) for roughly 28,000 human instances.
  • Garment Dataset: A refined subset of 4,000 upper-body images from an online shopping database, annotated with 12 highly localized, fine-grained attributes focusing on collar, sleeve, and button types.

Key Insights and Results

  • End-to-end training beats separate steps: Jointly learning part localization and attribute classification significantly outperforms training them sequentially. The network learns to focus on the right area for a specific attribute rather than a generic anatomical part.
  • Beating the "Oracle": Surprisingly, the end-to-end model occasionally outperformed an "Oracle" baseline that was fed perfect, ground-truth key points. This proves that allowing a neural network to adaptively define what a "part" should be for a given task is sometimes better than relying strictly on rigid, human-defined anatomical boundaries.
  • Symbiotic multi-task learning: Not only does key point estimation help attribute recognition, but the reverse is also true. The gradient flow from the attribute classification task actually improves the accuracy of the auxiliary key point localization task.

On the augmented MPII dataset (using VGG-16), the proposed method achieved an average multi-classification accuracy of 86.02% for the Head, 79.68% for the Torso, and 82.22% for the Legs. Ablation studies proved the necessity of the aspect ratio loss; without it, Torso accuracy fell from 79.68% to 77.68%.

Conclusion

The authors acknowledge that the key point localization sub-network used in their architecture is relatively simple compared to state-of-the-art pose estimators. Future work suggests integrating more sophisticated human pose estimation models (like Stacked Hourglass networks). However, since their current model already performs on par with (and sometimes better than) an Oracle using perfect ground-truth poses, it remains an open question how much a better pose estimator will actually improve the final attribute recognition.

Summary updated

BibTeX
@inproceedings{yang2016attribute,
  author = {Luwei Yang and Ligen Zhu and Yichen Wei and Shuang Liang and Ping Tan},
  title = {{Attribute Recognition from Adaptive Parts}},
  booktitle = {BMVC},
  year = {2016},
}
Figure