Abstract
Identifying human attributes such as age, clothing style, and accessories is a fundamental task in surveillance and security. This paper introduces the Joint CTC-Attention Model (JCM), a novel framework that redefines person attribute recognition as a sequence-to-sequence problem. By mapping discrete labels into a numerical sequence, the model utilizes Connectionist Temporal Classification (CTC) for automatic spatial alignment and a Transformer-based decoder to capture semantic relationships between attributes. Evaluated on major benchmarks, JCM achieves state-of-the-art accuracy and significantly enhances person re-identification (Re-ID) performance.
Introduction
Person attribute recognition (PAR) is notoriously difficult due to low image resolution, varying viewpoints, and inconsistent lighting. Existing methodologies typically treat attributes as independent classification tasks or employ simple Recurrent Neural Networks (RNNs) to find correlations. However, these approaches often suffer from two major limitations: weak spatial alignment between image regions and specific attributes, and a failure to exploit the inherent semantic relationships between traits (e.g., the correlation between wearing a suit and wearing a tie).
Methodology
The JCM framework addresses these gaps through a joint training pipeline consisting of three primary components:
- The Base Encoder: A hybrid architecture combining a CNN (ResNet-50) and a Bidirectional RNN. This stage encodes the input image into a sequence of high-level feature vectors.
- CTC Loss for Alignment: Borrowed from speech recognition, the Connectionist Temporal Classification (CTC) loss allows the network to automatically align image features with attribute sequences. This eliminates the need for manual image partitioning (e.g., defining head, torso, and leg regions) while ensuring that the model focuses on the correct spatial regions for each label.
- Transformer-based Decoder: Unlike standard RNNs, the Transformer decoder processes sequences in parallel and uses self-attention to model the "language" of attributes. This enables the system to learn how different physical traits correlate with one another semantically.
Key Insights: Attributes as a Language
The core innovation of JCM is treating a list of attributes as a sequence rather than a bag of labels. This allows the model to leverage powerful NLP-style architectures to understand that certain attributes naturally "belong" together. Furthermore, the model is trained simultaneously on attribute recognition and person Re-ID. This creates a virtuous cycle: knowing a person's attributes helps identify them across different cameras, and the identification task forces the model to pick up on subtle, discriminative attribute cues.
Experimental Results
The researchers evaluated JCM on three widely used benchmarks: Market-1501, Duke Attribute, and PETA.
- State-of-the-Art Performance: JCM achieved a mean accuracy (mA) of 89.7% on Market-1501 and 90.7% on PETA, outperforming previous leading methods such as AWMDN and DeepMar.
- Re-ID Enhancement: On the Market-1501 dataset, the model achieved a 93.1% Rank-1 matching rate (with re-ranking). Ablation studies confirmed that removing specific semantic attributes led to a direct drop in Re-ID accuracy, proving that these features are vital for identification.
Discussion and Future Work
While JCM demonstrates exceptional performance, certain challenges remain. The model currently relies on a fixed mapping table to define attribute order; optimizing this sequence structure could yield further gains. Additionally, the attention mechanism can occasionally fail if the saliency region for a specific attribute is not accurately located. Future work may focus on refining these saliency maps and exploring more flexible sequence generation techniques to further bridge the gap between attribute recognition and specialized Re-ID models.
Summary updated