Abstract
Person and vehicle re-identification (ReID) tasks are traditionally addressed using static convolutional neural networks. However, fixed filters often struggle to capture the unique, instance-level details necessary for distinguishing similar objects across varying viewpoints. This paper introduces the Instance and Pair-Aware Dynamic Network (IPAD), which leverages dynamic convolutions to adapt feature extraction to specific inputs. By employing self-guided and mutual-guided dynamic branches, the model generates customized kernels that highlight salient features for individual images and discriminative cues for image pairs. Experimental results on five major benchmarks demonstrate that IPAD achieves state-of-the-art performance, highlighting the potential of dynamic architectures in fine-grained retrieval tasks.
Introduction
Re-identification (ReID) involves matching a query object across a network of non-overlapping cameras. The primary challenge lies in high intra-class variation—due to changes in pose, lighting, and occlusion—and low inter-class variation, where different individuals or vehicles appear remarkably similar. Conventional ReID models utilize static convolutional filters learned during training. While effective for general feature extraction, these fixed weights lack the flexibility to adapt to the unique characteristics of a specific instance, such as a particular logo on a shirt or a subtle scratch on a car.
To overcome these limitations, the Instance and Pair-Aware Dynamic Network (IPAD) treats convolution as a dynamic operation where kernels are generated on-the-fly based on the input data. This allows the network to focus on instance-specific details and mutual relevance between image pairs, significantly improving retrieval accuracy.
Methodology
The IPAD framework consists of three parallel branches designed to capture multi-level feature representations.
1. Global Branch
The Global Branch utilizes a standard ResNet-50 backbone to extract holistic features. This branch provides a baseline representation of the input image, capturing general structural and color information.
2. Self-Guided Dynamic (S.D.) Branch
The S.D. branch focuses on instance-aware feature extraction. It employs a "controller" (a shallow neural network) to generate customized convolutional kernels for each input image. These kernels are then applied to the image's feature maps, allowing the network to adapt its receptive field and focus to the most salient regions of that specific instance.
3. Mutual-Guided Dynamic (M.D.) Branch
The M.D. branch introduces pair-awareness into the feature extraction process. When comparing a query image with a gallery image, the features of one image are used to generate the convolutional kernels for the other. This cross-referencing mechanism ensures that the extracted features are optimized for the specific comparison at hand, highlighting mutually discriminative visual cues that might be ignored by instance-independent models.
The entire network is optimized using a combination of Triplet Loss and Cross-Entropy Loss, ensuring that similar instances are clustered together in the embedding space while maintaining high classification accuracy.
Experimental Results
The IPAD framework was evaluated on five mainstream ReID datasets: Market-1501, DukeMTMC-reID, and CUHK03 for person ReID, and VeRi776 and VehicleID for vehicle ReID.
Performance Gains
On the DukeMTMC-reID dataset, IPAD improved the mean Average Precision (mAP) from a baseline of 69.2% to 72.9%. On Market-1501, the model reached 88.7% mAP. The framework also showed superior performance in vehicle ReID; on the VeRi776 dataset, it achieved an mAP of 82.4%, outperforming specialized models like PVEN (79.5%). These results demonstrate that the dynamic convolution approach is highly generalizable across different object categories.
Discussion and Analysis
The core advantage of IPAD lies in its ability to perform "super-attention." By making the weights dependent on the input, the network gains a form of flexibility more powerful than standard spatial or channel attention mechanisms.
As shown in the heatmaps above, the S.D. branch (SDB) often highlights unique details that the Global Branch (GB) overlooks. This instance-specific focus is crucial for distinguishing between individuals with similar overall appearances. Furthermore, ablation studies confirmed that the S.D. and M.D. branches provide complementary information, with their combination yielding the best overall performance.
Conclusion
The IPAD framework represents a significant shift from static to dynamic feature extraction in ReID. While the computational cost of pair-aware kernel generation remains a consideration for large-scale deployments, the performance gains across multiple benchmarks underscore the value of dynamic networks in complex visual recognition tasks. Future work will focus on optimizing these dynamic operations for real-time applications where gallery sizes reach the millions.
Summary updated