Abstract
Person re-identification (ReID) is a critical task in computer vision that involves matching individuals across non-overlapping camera views. The primary obstacles to high performance are deformable human poses and imperfect bounding box detections. Traditional approaches either rely on rigid part-based divisions, which fail under misalignment, or pose-driven models that require costly manual keypoint annotations. This paper proposes a novel Relative Local Distance (RLD) module that allows models to discover the underlying human structure automatically. By incorporating a lightweight structure-aware branch, the network learns to respect spatial relationships between body parts. Our method achieves state-of-the-art accuracy on major benchmarks and demonstrates significantly accelerated training convergence.
Introduction
The challenge of Person Re-identification stems from the high variability in human appearance across different camera angles, lighting conditions, and poses. Current state-of-the-art methods generally follow two paradigms. Rigid part-based models divide the person into fixed horizontal stripes to capture local features. While effective for well-aligned images, these models are fragile when people are sitting, turning, or shifted within the frame. Conversely, pose-driven models utilize external pose estimators to locate keypoints like joints. Although robust, these models depend on massive amounts of human-annotated data, which is often unavailable or difficult to generalize across different ReID datasets.
This research addresses a fundamental question: Can we discover the human "skeleton" or structural pattern automatically from the data itself, without requiring extra labels? We introduce the Relative Local Distance (RLD) module to capture the latent structural consistency of the human body.
Methodology
The core of our approach is the RLD module, designed to preserve spatial relationships that are typically lost during Global Average Pooling (GAP).
Beyond Global Average Pooling
Standard convolutional neural networks (CNNs) use GAP to flatten 3D feature maps into a single global vector. This process "washes out" the spatial arrangement of features. To retain structural information, we first apply Horizontal Pooling (HP) to the feature maps. This results in a vertical stack of feature vectors, $H = \{h_1, h_2, \dots, h_n\}$, where each $h_i$ represents a specific horizontal region of the person.
The Relative Local Distance Matrix
We compute a "Relative Local Distance Matrix" ($D$) to characterize the person's structure. Each entry $d_{ij}$ in this matrix represents the cosine distance between the feature vector at height $i$ and the feature vector at height $j$: $$d_{ij} = 1 - \frac{h_i \cdot h_j}{\|h_i\| \|h_j\|}$$ This matrix captures how different parts of the body relate to one another in the feature space.
Structure-Aware Branch and Joint Optimization
The matrix $D$ is fed into a small, separate neural branch tasked with identifying the person based solely on these relative distances. The entire network is trained using a joint loss function: $$L = L_{global\_id} + \lambda L_{person\_structure}$$ where $L_{global\_id}$ is the standard identity loss for global features and $L_{person\_structure}$ is the loss for the RLD branch. This dual objective forces the backbone CNN to learn features that are both discriminative for identity and structurally consistent. Notably, this branch is extremely lightweight, adding only approximately 0.8% to the total parameter count.
Experimental Evaluation
We evaluated the RLD method on three large-scale ReID benchmarks: Market-1501, DukeMTMC-reID, and CUHK03.
Performance Gains
On the CUHK03 dataset, which is particularly challenging due to DPM-detected bounding boxes, RLD improved Rank-1 accuracy by +5.7% and mAP by +5.5% over the ResNet-50 baseline. When combined with data augmentation techniques like Random Erasing, our model outperformed existing part-based and pose-driven methods across all datasets.
Training Efficiency
A significant finding of our study is that RLD accelerates convergence. By providing a structural prior, the model reaches lower loss values much earlier in the training process compared to standard baselines. This suggests that the structural constraint helps the network find optimal feature representations more efficiently.
Discussion and Insights
The effectiveness of RLD can be attributed to its role as a self-supervised regularizer. While absolute appearance changes with lighting or camera angle, the relative relationship between body parts (e.g., head above torso, torso above legs) remains structurally consistent.
Visualization of the distance matrices reveals that without RLD, feature dependencies are scattered. With RLD, the matrix becomes "diagonal-heavy." This indicates that the network naturally learns that adjacent body parts are more related than distant ones, effectively "discovering" the vertical continuity of the human body without any explicit supervision.
Conclusion
The Relative Local Distance module provides a simple yet powerful way to incorporate structural awareness into ReID models. By discovering the latent human skeleton from data, RLD avoids the need for expensive pose annotations while providing robustness to pose variations and misalignments. Future work will explore the application of RLD to other structured objects, such as vehicles, and investigate the benefits of extracting structural information from earlier, higher-resolution layers of the network.
Summary updated