Cerberus: Attribute-based person re-identification using semantic IDs

Chanho Eom, Geon Lee, Kyunghwan Cho, Hyeonseok Jung, Moonsub Jin, Bumsub Ham

Introduction

Person re-identification (reID) is a critical task in computer vision, focused on matching individuals across non-overlapping camera views. While human observers naturally use attributes like clothing color or gender to identify people, integrating these Pedestrian Attribute Recognition (PAR) features into automated reID models has historically been challenging.

The Identity-Attribute Conflict

The primary obstacle in combining reID and PAR is a fundamental conflict in their learning objectives. PAR aims to find commonalities—grouping all individuals wearing a "blue shirt" together. Conversely, reID seeks uniqueness—distinguishing between two different individuals who both happen to be wearing blue shirts.

The conflict between reID and attribute recognition: (a) baseline multi-task architecture, (b) performance degradation when combining features, and (c) visual similarity between different individuals sharing attributes.

As shown in the figure above, simply concatenating reID and PAR features often leads to a performance drop. The model becomes overly reliant on "common" attribute features, losing the ability to discern the subtle, fine-grained details necessary for accurate individual identification.

The Cerberus Framework

To resolve this conflict, the authors introduce Cerberus, a multi-task framework designed to handle reID, PAR, and Attribute-based Person Search (APS) simultaneously.

Semantic IDs (SIDs)

Cerberus moves away from treating attributes independently. Instead, it groups them into five semantic categories: Head, Upper body, Lower body, Identity, and Carrying. A "Semantic ID" (SID) represents a specific combination of attributes within these groups (e.g., "blue t-shirt" + "short sleeves"). This allows the model to learn structured representations of person appearance.

Three-Pronged Loss Strategy

The framework employs three distinct loss functions to balance commonality and uniqueness:

  1. Semantic Guidance Loss: Pulls representations toward SID "prototypes," ensuring the model captures high-level semantic attributes.
  2. Identification Loss: The core reID component, which clusters images of the same individual and separates different individuals, even those sharing the same SID.
  3. Regularization Loss: Addresses the "zero-shot" challenge by estimating prototypes for attribute combinations not seen during training, based on the relationships between known attributes.

Simple Alignment Module

To improve robustness without the need for expensive pixel-level masks, Cerberus includes a non-learnable alignment module. This module uses feature magnitude heatmaps to "crop" the person from the image, effectively filtering out background noise like vehicles or foliage.

Experimental Results

Cerberus was evaluated on the Market-1501 and DukeMTMC-reID benchmarks, achieving state-of-the-art results.

  • Performance: On Market-1501, it reached 89.8% mAP and 96.1% Rank-1 accuracy, surpassing both general reID models and specialized attribute-based approaches.
  • Efficiency: The model is highly efficient, utilizing 19.5M fewer parameters than the popular MGN architecture while requiring significantly fewer FLOPs.
  • Versatility: Cerberus is the first model capable of performing reID, PAR, and APS (finding a person via text description) in a unified embedding space without task-specific fine-tuning.

Conclusion

By introducing Semantic IDs and a balanced loss strategy, Cerberus successfully mitigates the identity-attribute conflict. It demonstrates that attribute information, when structured correctly, can enhance rather than degrade person re-identification performance, providing a more robust and efficient solution for real-world surveillance and search tasks.

Summary updated

BibTeX
@article{eom2024cerberus,
  author = {Chanho Eom and Geon Lee and Kyunghwan Cho and Hyeonseok Jung and Moonsub Jin and Bumsub Ham},
  title = {{Cerberus: Attribute-based person re-identification using semantic IDs}},
  journal = {Expert Systems with Applications},
  year = {2024},
}
Figure