arXiv:2610.34305cs.CVOct 2026

Manuscript Offprint

arXiv:2610.34305

Learning Discriminative Prototypes via Boundary Repulsion MixUp for Object Re-Identification

Athena Psalta, Vasileios Tsironis, Konstantinos Karantzalos

Abstract

Object re-identification requires embeddings that are robust to intra-class variation in viewpoint, illumination, and occlusion, yet preserve sharp separation between visually similar identities. The hardest errors arise precisely where confusable identities meet, a region that pairwise losses shape only implicitly. We present PBR-ReID, a prototype-based framework that makes this inter-class geometry an explicit learning target. Each identity is represented by a learnable prototype jointly optimized with a DiNOv3 backbone and the resulting prototype similarity matrix reveals, at every training step, which identities are most confusable. On this signal we build Boundary Repulsion MixUp (BRM), a geometry-aware regularizer that converts standard MixUp's weakness into a discriminative signal. Rather than interpolating samples across confusable identities, which blurs the boundaries that matter most, BRM constructs an explicit boundary proxy between each confusable pair and repels their features away from it, converting boundary ambiguity into a discriminative signal. We adopt a two-stage training protocol consisting of a prototype warmup phase followed by EMA-stabilized joint fine-tuning. Extensive experiments on person and vehicle ReID benchmarks demonstrate strong performance, with thorough ablations confirming each component's contribution. Code is available at https://github.com/psaltaath/pbr-reid.

1. Introduction

Object Re-Identification (ReID) is an important component of intelligent surveillance [34], autonomous driving [22] and multi-camera tracking systems [29], where fine-grained identity matching across non-overlapping cameras must remain robust to viewpoint, illumination and occlusion while precisely separating visually similar identities. Recent advances in Vision Transformers [13, 49], CLIP-driven alignment [23, 58] and part-based attention [73] have pushed retrieval accuracy to impressive levels, yet a more targeted question remains underexplored: should identity representatives be post-hoc feature aggregates, or learnable parameters that actively structure the embedding space?

The most straightforward representation treats each gallery image as an independent representative which is maximally expressive, but outlier-sensitive and linear in gallery size. Aggregating per-class embeddings into a single centroid proves surprisingly effective since it improves both accuracy and outlier robustness while reducing gallery search complexity [55], yet centroids are static post-hoc aggregates. Thus, they are confined to the convex hull of observed features and brittle under multi-modal intra-class distributions. Prototype-based representations have been explored across ReID as memory anchors for unsupervised and continual learning [5, 56], as prototypical contrastive targets [19], and as learnable classifier weights retained at inference [50]. Generalized prototypes constructed from gallery features at inference push past the centroid ceiling [33], but tie the model to the gallery at test time and leave training-time geometry uncontrolled. Across all these cases, however, prototypes remain reactive aggregates or inference-time constructs, decoupled from the inter-class geometry they induce and never used as a discriminative signal during training.

These failures are not spread uniformly across the embedding space but concentrate at the boundaries between confusable classes. Classification errors under distribution shift cluster near semantically similar classes and models with larger inter-class margins are substantially more robust to such shifts [57]. The analogue in ReID is direct, since the most damaging retrieval failures occur between visually confusable identities (e.g. persons in matching attire, vehicles of identical design and color) whose embeddings lie near shared decision boundaries. Standard regularization techniques can deepen this fragility rather than relieve it. Interpolation-based methods such as MixUp [61] are agnostic to class geometry, sampling mixed features uni-formly between pairs, including between highly confusable identities, and thus placing synthetic samples in the most ambiguous regions, where they reinforce rather than resolve boundary confusion. The common thread is that without a stable, explicit representation of class structure during training, the boundaries between genuinely confusable identities are never modeled, and the margins they demand are never enforced.

In this work, we introduce Prototype-based Boundary Repulsion for ReID (PBR-ReID), a framework built on two components that treats identity representatives as learnable parameters actively structuring the embedding space, making the inter-class geometry itself the learning target. First, we attach to each identity kk a learnable prototype pk∈Rd\mathbf{p}_k \in \mathbb{R}^d, a free parameter optimized jointly with a DINOv3 [40] backbone that, unlike a post-hoc centroid, adapts to the global inter-class geometry and makes pairwise identity relationships explicit through the prototype similarity matrix Sij=p^i⊤p^j\mathbf{S}_{ij} = \hat{\mathbf{p}}_i^\top \hat{\mathbf{p}}_j. The prototypes are purely a training-time mechanism, shaping the feature geometry during optimization and discarded at inference, where retrieval relies on backbone features alone. Second, we introduce Boundary Repulsion MixUp (BRM), which reads S\mathbf{S} to single out the most confusable identity pairs, interpolates boundary proxies between their prototypes and penalizes any feature that encroaches upon these proxies, converting boundary ambiguity into an explicit discriminative signal. We train PBR-ReID with a two-stage scheme of prototype warmup followed by EMA-stabilized joint fine-tuning and report strong performance across five person ReID benchmarks (Market-1501 [63], DukeMTMC-reID [64], MSMT17 [53], CUHK03 [67], IUST [32]) and two vehicle ReID benchmarks (VeRi-776 [27], VehicleID [26]), with ablations isolating the contribution of each component.

References (70)