Abstract
Pedestrian Attribute Recognition (PAR) is a critical component of modern surveillance and re-identification systems. However, traditional PAR models are typically trained on a fixed set of attributes, making them difficult to adapt to new requirements in dynamic environments. This paper introduces a meta-learning framework designed for Incremental Few-Shot Learning (IFSL) in the context of PAR. The proposed approach allows a pre-trained model to learn novel attributes from a limited number of labeled examples without requiring full retraining or suffering from "catastrophic forgetting" of previously learned base attributes.
Introduction
Identifying pedestrian traits such as age, gender, and clothing is vital for security applications. Despite its importance, PAR faces significant hurdles in real-world deployment. Requirements often change; for instance, a security team might suddenly need to identify a specific type of backpack or a new uniform. Traditional deep learning models struggle with these changes due to three primary factors:
- Few-Shot Learning Requirements: Labeled data for novel attributes is often scarce.
- Catastrophic Forgetting: Standard fine-tuning on new data typically degrades the model's performance on the original (base) attributes.
- Multi-Label Complexity: Unlike single-label classification, pedestrian images contain multiple overlapping attributes, making it difficult to isolate features for a single new trait.
To address these, we propose a framework that decouples feature extraction from classification, enabling rapid adaptation with zero forgetting of base knowledge.
Methodology
The core of the proposed framework is a meta-learning approach that avoids retraining the entire network. The architecture consists of two primary novel components:
Attribute Prototype Generator Module (APGM)
The APGM acts as a meta-learner that generates classification weights for new attributes rather than learning them through standard backpropagation. By processing the feature embeddings of a few labeled examples (the "support set"), the APGM produces a "prototype" embedding. This prototype serves as the weight vector for the new attribute's classifier. This "disentangling" process is crucial in multi-label scenarios where an image embedding contains signals from many different traits simultaneously.
Attribute Relationship Module (ARM)
The ARM enhances the learning of novel attributes by exploiting correlations between traits. For example, if a model already recognizes "suit-up," it can use that knowledge to better identify a related novel attribute like "necktie." The ARM analyzes co-occurrence patterns between base and novel attributes to "borrow" relevant features from the existing base model weights.
Incremental Workflow
The learning process is divided into two phases:
- Phase 1 (Base Training): A base model is trained on a large dataset with a standard set of attributes.
- Phase 2 (Incremental Adaptation): When novel attributes are introduced, the base model's feature extractor is frozen. The APGM and ARM process the few-shot samples to generate weights for the new attributes, which are then integrated into the final classification layer alongside the original weights.
Experimental Results
The framework was evaluated on two major pedestrian benchmarks: PETA (19,000 images, 61 attributes) and RAP (41,585 images, 69 attributes). The experiments utilized an N-way K-shot setting to simulate real-world constraints.
Performance and Efficiency
- Zero Forgetting: By freezing the feature extractor during the incremental phase, the method maintains 100% of the base model's original accuracy, a significant advantage over standard fine-tuning methods.
- Superior Adaptation: On the RAP dataset (5-way 50-shot), the proposed method achieved a mean Accuracy ($mA$) of 73.06% for novel attributes, outperforming standard fine-tuning (~67%) and Prototypical Networks (~50%).
- Inference Speed: The weight generation for new attributes requires only a single forward pass through the APGM, allowing for near-instant model updates without expensive on-device training.
Conclusion and Future Work
This research demonstrates that meta-learning can effectively bridge the gap between static PAR models and the dynamic needs of real-world surveillance. By decoupling feature extraction and utilizing attribute relationships, the framework achieves high accuracy on novel traits with zero impact on base performance. Future research will explore the use of Graph Neural Networks (GNNs) to more deeply model the hierarchical and complex relationships between human attributes, such as the link between upper-body clothing types and sleeve lengths.
Summary updated