Abstract
Standard triplet loss in vehicle re-identification (reID) often fails to account for high intra-class variability, such as the visual discrepancy between the front and rear of a vehicle. Forcing these distinct views into a single point in the embedding space results in a jagged, ill-conditioned loss landscape that hinders optimization. We propose Relation Preserving Triplet Mining (RPTM), a method that leverages feature matching to identify "natural groupings" or similar poses within an object ID. By ensuring that training triplets respect these visual relationships, RPTM produces a smoother loss landscape and more stable training. Our approach achieves state-of-the-art performance on major vehicle and person reID benchmarks without requiring explicit pose labels.
Introduction: The Problem of Intra-Class Variability
In vehicle re-identification, the objective is to match a specific vehicle across different camera views. The standard approach utilizes triplet loss to minimize the distance between positive pairs (same ID) and maximize the distance between negative pairs (different IDs). However, a fundamental flaw exists: a vehicle's front view is visually unrelated to its rear view. Forcing a neural network to map these disparate appearances to the same coordinate is mathematically ill-conditioned, leading to a difficult-to-optimize loss landscape. Traditional "hard triplet mining" exacerbates this by selecting the most visually dissimilar images of the same car as positives, effectively instructing the network to ignore natural visual relationships.
Methodology: Relation Preserving Triplet Mining (RPTM)
The core innovation of this work is RPTM, which replaces blind ID-based mining with a strategy that respects "natural affinity" between images.
The process involves several key components:
- Feature Matching via GMS: The system employs Grid-Based Motion Statistics (GMS) to count matching keypoints between image pairs, providing a robust measure of visual similarity.
- Relational Indicator: A relational matrix is constructed based on these matches. High match counts indicate a "natural group," such as similar poses or viewpoints.
- Semi-Hard Positive Mining: Instead of selecting the "hardest" positive (the most dissimilar view), RPTM selects a "middle-ground" positive that shares a natural group with the anchor but is not a near-duplicate.
- Implicit View Consistency: This strategy allows the network to learn a pose-aware embedding space implicitly, without the need for expensive manual pose or keypoint labels.
Results and Key Insights
The authors evaluated RPTM on major benchmarks, including VehicleID, Veri-776, and DukeMTMC. RPTM achieved state-of-the-art results, notably reaching 78.60 mAP on the VehicleID Large test set and 88.00 mAP on Veri-776 (with re-ranking).
Optimization Stability
A critical finding is that respecting natural subgroups within an ID leads to a significantly smoother optimization surface.
As shown in Figure 2, the loss landscape with RPTM is much less jagged than the standard approach. This "well-conditioned" loss allows for more robust training and the use of universal hyperparameters across different datasets, reducing the need for extensive per-dataset tuning.
Conclusion
Relation Preserving Triplet Mining addresses a core limitation of standard triplet loss in re-identification tasks. By aligning the optimization objective with the natural visual structure of the data, RPTM stabilizes training and improves generalization. The method's ability to discover pose-aware embeddings without manual labels makes it both powerful and efficient for large-scale deployment. Future work may extend this approach to unsupervised domain adaptation and anomaly detection.
Summary updated