Abstract
Attribute recognition in unconstrained environments is challenging due to variations in viewpoint, lighting, and occlusion. This paper introduces the Hierarchical Feature Embedding (HFE) framework, which leverages person identity (ID) labels to refine attribute feature spaces. By imposing a hierarchical structure—grouping by attribute and then by identity—the model learns more robust representations. Experimental results on Market-1501, Duke, and CelebA datasets demonstrate that HFE achieves state-of-the-art performance by effectively "pulling" features of occluded attributes toward clear examples of the same identity.
Introduction
Recognizing human attributes like "carrying a backpack" or "wearing a hat" is a fundamental task in computer vision, particularly for surveillance and person re-identification. However, standard classification approaches often struggle when attributes are partially hidden or viewed from difficult angles.
The authors observe that while attribute labels are often coarse, many datasets also provide fine-grained identity (ID) labels. The core insight of this work is to use these ID labels as a supervisory signal to structure the feature space. If two images belong to the same person, their attribute features should be similar, even if the attribute is visible in one and occluded in the other.
Methodology: The HFE Framework
The HFE framework moves beyond simple Cross-Entropy (CE) loss by introducing a structured embedding space.
Architecture and Quintuplet Loss
The model utilizes a shared backbone followed by $M$ attribute-specific branches. To train these branches, the authors propose a Quintuplet Selection strategy. Unlike standard triplet loss, quintuplet selection considers four types of relationships for an anchor image:
- Same ID, same attribute.
- Different ID, same attribute (nearest and farthest).
- Different ID, different attribute.
Constraints and Regularization
- Inter-class and Intra-class Constraints: The model enforces a large margin between different attribute classes (inter-class) while simultaneously clustering images of the same identity within each class (intra-class).
- Absolute Boundary Regularization (ABR): To prevent the instabilities of relative distance metrics, ABR imposes an absolute distance constraint, ensuring a consistent discriminative boundary across the entire dataset.
- Dynamic Loss Weighting: Training begins with a focus on standard classification (CE loss) and gradually shifts toward the more complex HFE loss, facilitating a stable "coarse-to-fine" learning process.
Experimental Results
The HFE framework was evaluated on three major benchmarks: Market-1501 Attribute, Duke Attribute, and CelebA.
In all cases, HFE outperformed existing state-of-the-art methods. Market-1501 saw a mean accuracy of 92.90%, while Duke reached 91.77%. On the massive CelebA face dataset, HFE achieved 92.17% accuracy, surpassing previous benchmarks. Qualitative analysis via t-SNE visualizations confirmed that HFE produces cleaner, more distinct clusters than standard methods, particularly for challenging samples where visual cues are ambiguous.
Conclusion
By treating identity as a "puller" for attribute features, the HFE framework effectively addresses the problem of attribute recognition in the wild. While the method requires ID labels during training, it offers significant robustness improvements without increasing inference time. Future work may explore extending this hierarchical approach to other domains where auxiliary fine-grained labels are available.
Summary updated