Abstract
Pedestrian Attribute Recognition (PAR) is a critical task in surveillance, yet it suffers from low image resolution and viewpoint variations. This paper introduces a novel regularization framework that enforces Spatial and Semantic Consistency (SSC). By leveraging the "human prior" that specific attributes appear in predictable locations and share core semantic features across different images, the proposed method achieves state-of-the-art performance. Crucially, the framework functions as a training-time regularizer, adding no computational overhead during inference.
Introduction: The Problem of Spatial Attention Deviation
Identifying traits like gender, clothing type, or accessories from surveillance footage is notoriously difficult. Existing models often treat images in isolation and suffer from "spatial attention deviation." For instance, a baseline model might look at the background or the wrong part of the body to identify "boots."
Furthermore, models often fail to capture the "essence" of an attribute—its semantic consistency. They may struggle to recognize that a baseball cap and a beret both share the intrinsic features of a "hat." This work aims to bridge this gap by mining relationships between different images of the same attribute to establish stable priors.
Methodology: The SSC Framework
The authors propose the SSC framework, which integrates two main components into a standard ResNet-50 backbone during the training phase.
1. SPAtial Consistency (SPAC) Module
The SPAC module uses Class Activation Maps (CAMs) to determine where the model is "looking" for a specific attribute. It maintains a Spatial Memory ($M^{spa}$), which is a momentum-updated aggregate of attention maps from "qualified" positive samples (those identified with high confidence). A regularization loss ($L_{spac}$) penalizes the model if its current attention map deviates from this stable, learned spatial prior.
2. SEMantic Consistency (SEMC) Module
The SEMC module extracts a semantic feature vector for each attribute by pooling the feature map, weighted by the spatial attention map. It maintains a Semantic Memory ($M^{sem}$) that acts as a "prototype" for what an attribute should look like. A second loss ($L_{semc}$) ensures that the features of an attribute in a new image are consistent with the global prototype in memory.
Importantly, these modules are only used during training. The final model used for deployment remains a standard, efficient network with no extra parameters.
Experiments and Key Results
The framework was evaluated on three major benchmarks: PETA (19,000 images), RAP (~41,000 images), and PA100K (100,000 images).
- Performance Gains: The SSC framework achieved state-of-the-art (SOTA) results across all datasets. On PETA, the mean Accuracy (mA) improved from a baseline of 81.15% to 86.52%. On PA100K, it rose from 78.53% to 81.87%.
- Consistency Proof: Quantitative analysis shows that the similarity distributions for both spatial and semantic features shift dramatically toward 1.0 compared to the baseline, proving the model successfully learned to be more consistent.
- Efficiency: The method outperforms complex architectures like ALM while maintaining a significantly smaller parameter footprint during inference.
Discussion and Insights
- Collective Wisdom: Spatial and semantic memories act as a "collective wisdom" of the entire dataset, helping the model ignore noise and focus on reliable regions.
- Inter-image Relations: While most attention mechanisms focus on relations within a single image, this work highlights that valuable information for fine-grained recognition lies in consistency across images.
- Thresholding for Quality: By only updating memory with high-confidence samples (confidence > 0.9), the system prevents label noise from poisoning the learned priors.
Limitations and Future Work
While effective for attributes with predictable locations (e.g., hats, boots), the framework may struggle with spatially fluid attributes like "handbags," which can be held in various positions. Additionally, the method requires an initial "warm-up" period to ensure the base model reaches a minimum level of competence before consistency regularizations are applied. Future research may extend this approach to other multi-label tasks, such as vehicle attribute recognition.
Summary updated