Manuscript Offprint
arXiv:2610.28941MINER: Modeling Inter- and Intra-Person Variance for Reidentification
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
Clothes-Changing Person Re-Identification (CC-ReID) remains challenging due to drastic appearance shifts across outfits. Most prior works devise biometric signal-extraction heuristics to enhance inter-person variance, e.g., using segmentation masks, while leaving intra-person variance uncontrolled. We present MINER, a simple model-agnostic framework that suppresses garment bias by contrasting hard examples and adaptively balancing dataset-dependent intra- and inter-person variance. Extensive experiments show that MINER improves retrieval across CC-ReID benchmarks, achieving state-of-the-art performance on four datasets and ranking among the leaders in all three tracks of the open TVRID RGB-Depth ReID challenge. For code and checkpoints see oronnir.github.io/MINER.
1. Introduction
Person re-identification (ReID) aims to retrieve images of the same individual across disjoint camera views and has become a central component in modern large-scale surveillance, robotics, and video analytics systems. In this setting, a query is matched against a gallery of images from other cameras, and performance is evaluated by identity ranking. While standard ReID benchmarks assume fixed clothing, real-world deployments often involve drastic outfit changes over time. This gives rise to the more challenging task of Clothes-Changing Person Re-Identification (CC-ReID), where appearance variations induced by clothing largely dominate the visual signal. Consequently, CC-ReID requires models to rely on subtle biometric cues, e.g., body shape features, while remaining invariant to garments.
Most prior CC-ReID methods explicitly aim to suppress clothing-related features and at the same time enhance biometric cues by either disentangling biometric and appearance factors, leveraging auxiliary clothing parsers, or attribute supervision. These approaches focus primarily on modeling inter-person variance—namely, maximizing the discrepancy between different identities. While this design philosophy is highly effective for improving clothing invariance, it does not take into account intra-person variance directly. Namely, it minimizes the discrepancy within different outfits of the same identity as a byproduct of metric learning rather than as a first-class modeling objective.
In this work, we revisit this fundamental assumption and demonstrate that simultaneously controlling the balance of within-person and between-person variance leads to substantial gains in CC-ReID performance. We show that explicitly concentrating the training process on visually similar yet distinct identities, while simultaneously enforcing maximal cross-clothing variability within each identity, produces significantly more discriminative and robust embedding spaces. This dual optimization principle naturally yields strong improvements in global retrieval quality and state-of-the-art (SOTA) performance on multiple CC-ReID benchmarks, including PRCC, LTCC, Celeb-ReID-light (Celeb-L), and DeepChange.
MINER is an inter-class identity-level and intra-class clothing-level stochastic hard mining strategy that can be used to finetune existing models, enhancing their performance. MINER constructs training batches by (i) soft-sampling visually similar but different identities as hard negatives using a reference encoder, and (ii) soft-sampling maximally dissimilar clothing pairs cross-camera as hard positives. Such controlled yet stochastic exposure to extreme intra- and inter-identity appearance variations drives a contrastive optimization process that explicitly aligns with the goal of CC-ReID. We further formulate a multi-positive contrastive objective, which leverages block-diagonal identity supervision across query–gallery pairs during training. In summary, our contributions are:
• We formulate CC-ReID as a trade-off between inter-person discrimination and cross-clothing invariance, and derive an online controller that adapts it from gradient variance—without grid search or extra forward passes.
• We combine stochastic hard mining with multi-positive contrastive learning over hard negative identities and cross-clothing positives.
• MINER improves SOTA backbones on four CC-ReID benchmarks and ranks top-3 in all TVRID 2026 tracks.
Clothes-Changing Re-Identification. CC-ReID focuses on long-term identity tracking, where garments vary dramatically between observations of the same person. Dedicated datasets, like PRCC [63], expose extreme appearance gaps, and have motivated a rich line of methods to isolate clothes-agnostic cues [13, 57, 60, 70]. A large body of work exploits structural priors: body-shape [19], silhouette [22], pose [34], human parsing [9, 51], head or face fusion [50], and co-attention mechanisms to disentangle body structure from clothing appearance [65].
Recent approaches rely on visual semantic modeling and CLIP-driven representations [45]. CLIP-ReID [28] and others adapt contrastive vision-language pretraining [74] to ReID, while CCAF, MMPL, and MADE use masked or prompt-based text to highlight identity-relevant semantics and suppress clothing information [29, 39, 41]. Cloth-Changing Aware Transformer (CCAT) injects cloth-aware priors into a transformer backbone to improve identity robustness across outfits [46]. In parallel, identity/disentanglement approaches such as DIFFER [30], GEFF [1], and Chen et al. [5] factor biometric identity from non-biometric attributes (clothes, hairstyle, accessories) via gradient reversal or face/body fusion, achieving strong CC-ReID performance. However, CC-ReID remains an open problem, as clothing changes substantially hinder identity discrimination. Most existing methods treat query-gallery pairs independently during training, leaving direct contrastive modeling of visually similar identities across clothing variations largely underexplored.
Cross-Modal ReID. Security applications drive increasing interest in different night-time ReID signals [21, 24, 43, 44]. RGB-Depth maps RGB query to Depth gallery [7]. While these tasks use a same-clothes setup, we use it to demonstrate the generality of our method to factor out the cross-modality gap instead.
Hard-Sample Mining in (CC-)ReID. Hard-sample mining prioritizes the most difficult positive and negative examples under the current embedding to strengthen discriminative learning. Classic hard triplet losses and point-to-set variants, e.g., Hermans et al. [18], emphasize difficult positives and negatives within each batch to sharpen the embedding geometry [53, 69, 75]. Sheng et al. [49] propose global hard sample mining, arguing that mining from the whole training set yields harder samples than local batch mining and can further improve performance. Yan et al. [62] suggest a fine-grained difference-aware pairwise loss to better capture subtle appearance differences in traditional ReID.
In CC-ReID, hard mining has been explored more recently. HSGL (Hard Sample Generation and Learning) introduces a multimodal framework that generates hard samples guided by both textual and visual semantics to emphasize clothing-induced appearance variance [33]. Other works implicitly mine hard examples through cloth-aware augmentation, pose-diversified synthesis, or cross-domain clothes-changing scenarios [14, 27, 32, 64, 71].
Our MINER sampler performs centroid-level hard mining within precomputed person and clothing clusters: it jointly selects hard-negative identities (highly similar centroids across person identities) and hard-positive clothing pairs (with a low similarity across outfits for the same person identity) using a soft sampling distribution. This yields batches with controlled intra-/inter-person difficulty while remaining compatible with standard contrastive training.
Contrastive Learning for CC-ReID. Contrastive learning has become a central paradigm for representation learning in both supervised and self-supervised settings [3, 16, 38]. In vision-language models such as CLIP, symmetric contrastive objectives over image-text pairs yield highly transferable representations, motivating their adoption in CC-ReID via dual-encoder training [29]. Recent CC-ReID methods extend this paradigm by adapting CLIP-style supervision to emphasize biometric cues while mitigating clothing-induced bias [30, 39, 41]. However, despite relying on a single-positive contrastive setup, CLIP fundamentally depends on large batches to provide sufficient implicit negatives, without which optimization becomes unstable and prone to representation collapse [3].
Instead, we reformulate contrastive learning over multi-positive hard-mined sampled batches, where positives and negatives are organized across identities, cameras, and clothing sets. By applying an InfoNCE-style loss over these structured sets, MINER enables targeted soft hard-mining that focuses gradient updates on challenging intra-person outfit changes and inter-person look-alikes.
3. Method
To refine a model for clothes-agnostic identity representation we define a sampling mechanism that controls identity and clothing selection per batch. The main idea is to contrast visually similar distinct identities where each identity is depicted in visually different appearances. We sample identities over their embeddings centroids and gather them into a bipartite batch denoted as a query set and a gallery set.
3.1. MINER Sampler
Let be a set of training images, each image is annotated by a tuple , where is the person identity (PID), is the camera index, and is the clothing ID. Let denote a pre-trained image encoder to be finetuned. We pre-compute the following centroids:
where is the set of all images of person p, and the subset of images of .
Camera-pair candidate identity set. Given a pair of distinct cameras , we define the set of valid candidate person identities, , which appear in both cameras with at least two different clothing configurations, i.e.,
Soft Hard-Negative PID Mining. We compose a batch of m person identities by first uniformly sampling one
and computing cosine similarity in -space :
For all , we define
Rather than taking nearest identities deterministically—brittle under noisy centroids—the batch identity set is obtained by sampling identities proportional to without replacement, thereby increasing inter-person variance by emphasizing (soft) hard-negative identities.
Soft Hard-Positive Clothing-Pair Mining. After selecting visually similar identities, we construct query–gallery pairs that increase intra-person variation across clothing and camera views. For each , the valid clothing pairs are:
Algorithm 1 MINER Hard Mining for CC-ReID
Input: Set I; Encoder f; Batch parameters
Output: Query set Q, gallery set G
1: Sample distinct cameras .
2: Construct the candidate identity set (Eq. 2).
3: Sample one identity uniformly .
4: compute similarity (Eq. 3).
5: Draw m identities without replacement by .
6: Initialize , .
7: for all do
8: Construct for different clothes (Eq. 5).
9: Sample hard clothing pair (Eq. 8).
10: Sample n images from and add them to Q.
11: Sample n images from and add them to G.
12: end for
13: Update centroids , (Eq. 1).
14: return Q, G.
where is the set of clothing IDs worn by p in camera c. Each pair is scored via cosine similarity between their f centroids
Rather than selecting the hardest clothing pair deterministically, we sample the cross-camera clothing pair stochastically using a soft argmin distribution. For each and each , we define
where . The clothing pair is then sampled as
Final training tuples. For each , we sample images from , images from , and use them as query and gallery images with shared identity .
3.2. Contrastive Loss Function
Given a mined batch produced by Alg. 1, we obtain a set of query images and a set of gallery images , where , so each identity contributes query images and gallery images. Recall that denotes the CC-ReID encoder producing -normalized embeddings, we define the query and gallery embeddings as and , respectively.
Similarity matrix. We compute the dense pairwise similarity matrix as: , like CLIP [45].
Block-diagonal ground-truth structure. By construction, each identity contributes exactly query samples and gallery samples per batch. Therefore, the binary

Figure 1. MINER Contrastive Loss over a bipartite sampled batch. Hard-Negative person IDs and Hard-Positive examples per person distill both inter-person (white) and intra-person (blue) variance simultaneously using a block-diagonal label matrix.
ground-truth correspondence matrix assumes a block-diagonal structure like SupCon [25]:
where each diagonal block of shape represents all cross-clothing matches between queries and galleries of the same identity within the batch. All off-diagonal blocks correspond to hard negative cross-identity matches (see illustration of in Fig. 1).
Contrastive Objective. We adopt a symmetric cross-entropy contrastive objective over rows and columns of S, adapting contrastive loss to the CC-ReID setting. The query-to-gallery loss is defined as
and the gallery-to-query loss is defined symmetrically as
The final training objective is . Unlike simple contrastive training, where only a single positive pair exists per row, our block-diagonal supervision induces multiple positive targets per query and per gallery sample. This formulation naturally enforces: (i) cross-clothing invariance within identity blocks, and (ii) strong discrimination against visually similar hard negatives mined at the identity level. As a result, the learned embedding space is explicitly optimized for clothing-agnostic cross-camera identity retrieval.
3.3. Adaptive Batch Composition
Subsections 3.1–3.2 built a sampler and loss that, for a given batch shape , expose controlled inter- and intra-person variance; that shape has so far been hand-set, and we now set it automatically. Under a fixed image budget , m and n compete—more identities means fewer images per identity—so the design choice is not the size of the batch, but the allocation of between inter-person diversity and intra-person cross-clothing coverage. As we show in Sec. 4, this is a genuine, dataset-dependent trade-off. The two knobs serve different objectives: m stabilizes discrimination, which is shared across the batch; n stabilizes cross-clothing alignment, which must be estimated per identity. The objective currently estimated less reliably deserves more budget. We thus cast batch composition as a budget-constrained estimation problem, and minimize the resulting risk under . Its minimizer is closed-form and depends on the data through a single scalar—the ratio of inter- to intra-person gradient variance—which the backward pass on already yields, so the allocation adapts online with no extra forward pass and no grid search.
Two structurally distinct gradient signals. The contrastive objective separates exactly into a within-block (positive) and a between/off-block (negative) part. Differentiating the per-query loss through the softmax, propagating through , and summing the symmetric gallery-to-query term (standard softmax cross-entropy) decomposes the batch gradient of into two additive signals,
the invariance signal that collapses cross-clothing positives of the same identity, and the discrimination signal that separates visually similar hard negatives. By construction exists only when each identity supplies at least one cross-clothing pair ( , ), and is refined by more images per identity ( ); exists only when , and is refined by more identities ( ). The two knobs thus act on two different gradient directions, and as we now show, the budget refines them at different rates.
Variance components of a two-stage mined batch. MINER draws a batch in two stages: m identities from (Eq. 4), then 2n images per identity under the mined clothing pair (Eq. 8)—a classical two-stage sampling design [6], whose gradient estimator admits a between/within variance-components decomposition [48]. With per-identity mean gradient and its mean , define the between-identity and within-identity covariances
Inter vs. intra-person variance ratio: PRCC

Figure 2. The mAP as a function of intra- and inter-person examples per batch, within memory constraints. The performance peaks at m = 5 PIDs and n = 17 images per person on PRCC.
tr is the dispersion of the descent direction across identities; tr , its dispersion within an identity. The two enter the batch at different sample sizes, m and 2n.
Budget-constrained allocation. Under a fixed budget, each signal is governed by the variance of its own estimator. Discrimination concerns the shared descent direction , of which every batch identity is an observation; pooling the per-identity means estimates with trace-variance . The second term equals , a constant under the budget, so only is allocation-relevant. Invariance is not shared: by the block-diagonal structure of , positive pairs lie strictly within identity blocks, so collapsing identity 's outfits requires estimated from 's own images alone—images of other identities never enter 's positive pairs and cannot sharpen it. Its rate is the average per-identity estimation error , in which does not appear: we average local errors of size rather than estimating a common mean—the shared-representation versus task-specific rate split of multi-task learning [2, 36], each identity acting as a task. The allocation-relevant risk is their sum,
The first term is the allocation-relevant variance of the pooled (population-descent) gradient; minimizing it alone collapses the allocation to n = 1. This collapse is the blind spot of a single-pooled-gradient view [37]: it is insensitive to whether each identity is well aligned, whereas cross-clothing retrieval is per-identity by construction—mAP averages per-query AP, each query fixed by its own identity's geometry, a quantity other identities cannot sharpen. Eq. 14
Inter vs. intra-person variance ratio: Celeb-L

Figure 3. The empirically best batch composition differs substantially across datasets: mAP peaks for Celeb-L at m = 21 PIDs and n = 4 images per person, motivating dataset-adaptive allocation.
therefore adds the second term—the per-identity alignment the pooled view omits—making the inter/intra allocation a genuine trade-off rather than a degenerate “maximize m.” We do not claim tracks mAP pointwise; rather, its closed-form optimum recovers the grid-search mAP optimum of Figs. 2–3, under which MINER attains the results of Sec. 5. Minimizing along the budget frontier ( is strictly convex in n) gives the unique allocation
The constraint holds identically, , and the optimum depends on the data through the single scalar , the ratio of inter- to intra-person gradient variance. The symmetry of in query-gallery fixes an equal per-side split; is projected to feasible integers .
Modeling assumptions. Eq. 15 rests on three modeling choices and affects only the adaptive selection of , not the contrastive objective itself. (i) We take the allocation objective to be the equally weighted sum of the two estimation risks above; their and scalings come from the corresponding estimator variances, so the lone modeling choice is the equal weighting, which rescales but not its functional form. (ii) Covariances are evaluated under the conditional mining (Alg. 1), not IID: the between-ID term under and the within-ID term under ; we assume the between-ID dispersion is carried mainly by and the within-ID dispersion mainly by , i.e. their cross-covariance is small relative to the marginal traces, so
Algorithm 2 Variance Controller
Input: Memory budget ; EMA rate ; interval
1: Initialize from a feasible default;
2: for each training step do
3: Mine batch with current (Alg. 1).
4: Backprop .
5: Form (Eqs. 16–17).
6:
7: if then
8: ;
9: Project to feasible integers .
10: end if
11: end for
the two risks decouple as in Eq. 14. (iii) Projection-head gradients provide a stable low-variance proxy for the corresponding full-parameter covariance traces. We address these assumptions in the supplement.
Online variance-component estimators. Both traces in Eq. 15 are estimable from the current mined batch via one-way random-effects ANOVA. With per-identity means and grand mean , the ANOVA-style variance-component estimators are
the second term in Eq. 17 removing the within-identity noise that inflates the raw between-identity scatter. Both reduce to sums of squared gradient norms grouped by identity, accumulated on-device in a single squared-norm read per identity, mirroring McCandlish et al. [37] but resolved per identity: the m in Eqs. 16–17 sharpens the population-trace estimate, not the per-identity alignment error. To keep the cost negligible we evaluate the norms on the projection head only—the gradient w.r.t. the -normalized embedding , available with no additional backward pass and a standard low-variance surrogate for the full-parameter gradient. The two traces are smoothed by an exponential moving average (EMA) across steps, , to suppress single-batch noise. The overall variance controller is detailed in Alg. 2.
4. Balancing the Batch Variance
Both intra- and inter-person variance are central to CC-ReID representation, but are they equally important? We probe this on PRCC by sweeping the allocation along the memory-capacity frontier ( ) and recording mAP (Fig. 2). mAP rises to a single peak at

Figure 4. The same identity exhibits greater intra-person variance in Celeb-L (top) than in PRCC (bottom), spanning clothing, pose, and scene.
(69.7%) and declines on either side: the m-heavy allocation and the n-heavy fall to 67.6%. PRCC is captured under controlled conditions, so its identities are mutually similar and tr is small; the resulting low (0.31) favors larger n.
To show how this balance shifts with the data prior, we repeat the analysis on Celeb-L, collected “in-the-wild” through paparazzi photos (Fig. 4). Both components rise—no identity recurs in the same outfit, and the identities themselves are far more heterogeneous—but tr rises faster: grows to 5.34, so Celeb-L peaks at a higher ratio: , i.e., more identities and fewer samples each (Fig. 3).
Does the controller earn its complexity? Adaptive allocation is warranted if (i) no single is optimal across datasets and (ii) the controller recovers each dataset's optimum without grid search; both hold. The PRCC and Celeb-L optima lie at opposite ends of the frontier and do not transfer: loses 0.9 mAP on Celeb-L, loses 2.1 on PRCC. Since this prior is unknown at training time, the relevant criterion is worst-case minimax regret [47]: the controller incurs only 0.2 mAP worst-case and 0.10 mean—lower on both than every fixed split (best fixed: 0.6 and 0.33, on different splits)—thus Pareto-dominating all nine (see supplement). It recovers each optimum at negligible cost: regret 0.0/0.1/0.2 on PRCC/LTCC/Celeb-L.
5. Experiments
We evaluate MINER, with its Variance Controller, and report Rank@1 and mAP metrics on six CC-ReID datasets, and two traditional ReID protocols: PRCC [63], LTCC [42], Celeb-L [20], DeepChange [61], VC-Clothes [57], LaST [52]. MINER was also submitted to three different tracks of the open competition TVRID [7]. We follow the evaluation protocol of full dataset-isolation, i.e., training a new model per dataset and splitting training from test with no re-ranking. For evaluation protocols and implementation details, see the supplemental material.
CC-ReID Finetuning Evaluation. We present our main results in Tab. 1 over the datasets above where MINER is compared with 17 methods [9, 10, 13–15, 23, 26, 29–31, 40, 41, 52, 64, 67, 68, 71]. We initiate the fine-tune with pretrained checkpoints and run 20 epochs with Alg. 2. The experiments demonstrate MINER using EVA-CLIP [55] and DIFFER [30] checkpoints separately. Our method finetunes backbone models and achieves SOTA scores on 4 datasets; VC/LaST remain competitive. The controller estimated on PRCC and on Celeb-L, closely matching the validation grid optima and , respectively, from Sec. 4 ( ). The same validation was conducted on LTCC, resulting in three near-tied mAP peaks. The controller converged to one of them: the continuous estimate , and a grid-based near-peak . Thus, the Variance Controller recovers the dataset-specific allocation without grid search.
MINER CC-ReID vs. Backbones. To verify the impact of our method on different backbones, like CLIP-ReID [28] and MADE [41], for the CC-ReID task we reproduce and evaluate our method on PRCC, LTCC, and Celeb-L. CLIP-ReID base underperforms as it was not trained for CC-ReID. MINER improves all backbones in all datasets by 6.7 and 4.6 Rank@1 and mAP points, respectively (Tab. 2). Furthermore, MINER gains (33.3, 32.5), (6.5, 5.6) ( , ) over vanilla pretrained EVA-CLIP and ID-Loss baseline respectively on PRCC, LTCC, and Celeb-L. See full analysis in the supplement.
Standard ReID. While our work focuses on CC-ReID, traditional ReID is still a critical task in CCTV applications. We conducted a Same-Clothes (SC) traditional evaluation on PRCC and LTCC (General) against seven methods [9, 13, 17, 30, 40, 41, 67]. Although MINER suppresses clothing-related cues, it remains effective in SC-ReID, achieving SOTA on both datasets with (Rank@1, mAP) of (100.0, 99.4) and (93.8, 67.7), respectively (supplement).
Cross-Modal ReID. We extend MINER to cross-modal learning. We adapt MINER by addressing the modality indicator per-source (e.g., RGB or depth) instead of clothes-ID indicator . By contrasting hard-negatives across identities and hard-positive across modalities, the algorithm controls inter- and intra-person variance like in CC-ReID. MINER was submitted to the ICPR 2026 Competition on Privacy-Preserving Person Re-Identification from Top-View RGB-Depth Camera (TVRID) [7]. The challenge addressed three top-view ReID challenges: RGB-RGB, Depth-Depth, and RGB-Depth. The setup is challenging as faces are not seen visually through the overhead sensor installation. With 148 competing teams and 732 submissions, MINER was the sole method to reach the podium in all three tracks, with (Rank@1, mAP) of (99.8, 99.9), (97.2, 98.3), (91.5, 94.9), respectively.
6. Discussion
Most CC-ReID work treats intra-person variance across outfits as a byproduct of metric learning, prioritizing inter-person separation. Our results show this is suboptimal: explicitly controlling the within- and between-identity variance is a first-order factor for clothes-agnostic embeddings.
Why does the intra-/inter-person balance matter? In CC-ReID, the dominant appearance shift is structured, identity-preserving clothing change, not viewpoint or illumination. Inter-person separation alone yields embeddings discriminative for same-clothes pairs yet brittle across outfits. MINER foregrounds cross-outfit alignment, using dissimilar cross-camera outfit pairs as hard positives and visually similar identities as hard negatives. Our mining strategy ablation study on PRCC/Celeb-L shows significant gain to Rank@1 ( ) using simultaneous hard-positive and hard-negative mining (see Tab. 3). MINER samples from soft distributions over identity and outfit centroids rather than selecting the deterministic “hardest” case, which is unstable under noisy hardness estimates [58]. Consistently, deterministic hard mining reduces R@1 by 3.7/0.6 points on PRCC/Celeb-L relative to MINER. Centroid-level mining is lower-variance than per-image selection and computationally efficient [54], yielding gains in 20 finetuning epochs. Its block-diagonal supervision treats each identity as a multi-positive query-gallery set, enforcing cross-outfit invariance within blocks while discriminating against hard negatives across identities; the supplemental analysis shows this formulation is gradient-selective, concentrating optimization on confusable negatives and cross-clothing positives while suppressing redundant easy-match supervision.
Gains hold across backbones (CLIP-ReID, MADE, DIFFER, EVA-CLIP) and extend to same-clothes and RGB-Depth where modality acts as an appearance factor analogous to clothing—suggesting MINER is a general mechanism for controlling within-class variability while preserving between-class discrimination. The optimal ratio is dataset-dependent: the homogeneous, controlled PRCC favors larger n, while “in-the-wild” Celeb-L favors larger m. The monotonic decay of mAP on either side of the optimum indicates both extremes hurt—too few identities weakens inter-person pressure, too few samples-per-identity weakens cross-outfit alignment.
Runtime analysis. On a single A100 80GB GPU, MINER embeds PRCC in 54 seconds (17,896 images at 329 Hz), computes identity centroids in 13 ms, and performs each SGD step in 517 ms. The variance controller adds only 0.7 ms per T steps to update the batch composition , making its runtime overhead negligible.
Implementation details. Experiments follow the DIFFER codebase. Images are resized to and ImageNet-normalized. Models are trained for 20 epochs
| CC-ReID METHOD | BACKBONE | VANILLA WEIGHTS | PRCC | LTCC | CELEB-L | DEEPCHANGE | VC-CLOTHES | LAST | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R@1 | MAP | R@1 | MAP | R@1 | MAP | R@1 | MAP | R@1 | MAP | R@1 | MAP | |||
| CAL [13] *22 | RESNET50 | ✓ | 55.2 | 55.8 | 40.1 | 18.0 | - | - | 54.0 | 19.0 | 81.4 | 81.7 | 73.7 | 37.2 |
| LAST [52] *22 | RESNET50 | ✓ | 57.7 | 54.7 | - | - | 54.4 | 11.8 | - | - | - | - | 71.0 | 28.0 |
| MBUNET [71] *23 | RESNET50 | 68.7 | 65.2 | 40.3 | 15.0 | 35.5 | 21.5 | - | - | 82.7 | 70.3 | - | - | |
| ACID [64] *23 | RESNET50 | ✓ | 55.4 | 66.1 | 29.1 | 14.5 | 27.9 | 15.8 | - | - | 84.3 | 74.2 | - | - |
| SCNET [14] *23 | RESNET50 | ✓ | 58.7 | 59.9 | 47.5 | 25.5 | - | - | 53.5 | 18.7 | - | - | - | - |
| CCAF [29] *23 | ViT-B/CLIP | ✓ | 70.4 | 63.7 | 42.9 | 20.1 | - | - | - | - | - | - | - | - |
| MADE [41] *24 | ViT-L/EVA | ✓ | 64.3 | 59.1 | 47.4 | 24.4 | 72.0 | 52.3 | - | - | - | - | 79.0 | 40.9 |
| CLIP3DREID [31] *24 | RESNET50 | ✓ | 60.6 | 59.3 | 42.1 | 21.7 | 39.4 | 26.3 | 56.7 | 20.8 | - | - | - | - |
| RFLNET [67] *25 | RESNET50 | ✓ | 58.1 | 59.0 | 43.9 | 22.2 | - | - | 52.4 | 19.0 | 89.1 | 82.9 | - | - |
| FA-REID [9] *25 | RESNET50 | ✓ | 63.7 | 60.7 | 43.9 | 19.9 | - | - | - | - | 85.7 | 85.9 | - | - |
| CSCI [40] *25 | ViT-L/EVA | ✓ | 66.2 | 61.3 | 47.8 | 24.4 | - | - | - | - | - | - | - | - |
| PT-REID [10] *25 | ViT-B/CLIP | ✓ | 66.3 | 63.4 | 48.0 | 25.0 | - | - | - | - | 86.8 | 86.5 | - | - |
| MTAT [15] *25 | ViT-L/EVA | ✓ | - | - | 48.0 | 22.3 | 71.0 | 51.4 | - | - | - | - | - | - |
| DIFFER [30] *25 | ViT-L/EVA | ✓ | 68.5 | 64.7 | 58.2 | 31.6 | 75.6 | 54.3 | - | - | - | - | - | - |
| HPL [68] *25 | RESNET50 | ✓ | 74.3 | 69.0 | - | - | - | - | - | - | 84.9 | 84.7 | - | - |
| ORB [23] *26 | RESNET50 | 62.0 | 58.3 | 43.1 | 22.1 | - | - | - | - | 88.2 | 85.8 | - | - | |
| ORTHO [26] *26 | ViT-L/EVA | ✓ | 74.4 | 70.2 | 56.1 | 30.2 | 79.1 | 59.0 | - | - | - | - | 84.3 | 53.5 |
| MINER (DIFFER) | ViT-L/EVA | 73.9 | 69.7 | 60.9 | 33.3 | 76.9 | 56.3 | 57.8 | 20.0 | 88.8 | 79.8 | 82.3 | 49.5 | |
| MINER (EVA-CLIP) | ViT-L/EVA | ✓ | 74.5 | 70.0 | 60.2 | 34.4 | 77.2 | 59.1 | 66.8 | 27.7 | 81.3 | 82.0 | 83.0 | 50.4 |
Table 1. Comparison of various methods on CC-ReID: MINER Rank@1 and mAP performance across CC-ReID datasets vs. SOTA. We initialize to both EVA-CLIP and DIFFER separately. All methods use pre-trained weights, Vanilla Weights were trained on generic datasets like ImageNet while others used additional ReID finetuning. VC-Clothes is synthetic. Best result is in bold, the second is underlined.
| CC-ReID METHOD | DATA SET | BASE-REPRODUCED | +MINER | ||
|---|---|---|---|---|---|
| R@1 | MAP | R@1 | MAP | ||
| CLIP-REID | PRCC | 17.5 | 18.0 | 29.0 | 30.3 |
| MADE | PRCC | 61.7 | 56.2 | 71.2 | 64.7 |
| DIFFER | PRCC | 68.5 | 64.7 | 73.9 | 69.7 |
| CLIP-REID | LTCC | 17.3 | 8.3 | 32.7 | 11.2 |
| MADE | LTCC | 44.0 | 19.4 | 47.4 | 23.3 |
| DIFFER | LTCC | 58.2 | 31.6 | 60.9 | 33.3 |
| CLIP-REID | CELEB-L | 12.0 | 6.4 | 21.0 | 10.3 |
| MADE | CELEB-L | 66.0 | 48.4 | 68.0 | 49.5 |
| DIFFER | CELEB-L | 75.6 | 54.3 | 76.9 | 56.3 |
| AVERAGE | 46.8 | 34.1 | 53.4 | 38.7 | |
| GAIN (Δ) | +6.7 | +4.6 | |||
Table 2. Gains from using MINER on various reproduced backbone scores in Rank@1 and mAP across three CC-ReID datasets. MINER improves both metrics on all backbones and datasets.
| over 3 paired seeds | Random-Negative | Hard-Negative |
|---|---|---|
| Random-Positive | 67.1/74.3 | 72.0/75.3 |
| Hard-Positive | 67.5/76.0 | 73.6/76.4 |
Table 3. Sampler ablation reporting on PRCC/Celeb-L. MINER uses both hard-positive and hard-negative mining.
(SGD), learning rate , weight decay 0.01, and a linear schedule with one warmup epoch, warmup ratio 0.01, and decay factor . Batches follow , CLIP softmax temperature , , and the variance controller is updated every iterations.
Limitations. MINER assumes vanilla-pretrained weights; training from scratch remains unexplored as unreliable early embeddings yield noisy centroids and unstable mining. It also requires clothing-ID labels and at least two outfits per identity to expose intra-person variation. Limited clothing diversity therefore weakens hard-positive mining, as in LTCC where some identities have only one clothing ID.
Ethics. Person ReID can aid safety-critical retrieval but also risks privacy-invasive surveillance. We use only public benchmarks, do not infer protected attributes, and recommend deployment only under lawful, purpose-limited governance with access control and regular privacy audits.
Future work. Extending MINER from finetuning to training from scratch requires mining strategies stable under unreliable early-stage embeddings. MINER may also apply to cross-domain metric learning tasks such as speaker identification under spoken language code-switching.
7. Conclusion
CC-ReID is challenging since clothing-induced within-identity variation differs substantially across datasets. We show that balancing intra- and inter-person variance during training is critical for clothes-agnostic representation learning, and introduce MINER, a simple stochastic mining framework with online closed-form batch adaptation. MINER improves retrieval across CC-ReID benchmarks and generalizes to conventional and RGB-Depth ReID, reinforcing variance-aware training as a principled path toward robust identity representation under appearance shift.
8. Acknowledgments
This work was supported by the Joint NSFC-ISF Research Grant number 3077/23 and ISF grant number 1574/21.
References
[1] Daniel Arkushin, Bar Cohen, Shmuel Peleg, and Ohad Fried. GEFF: Improving any clothes-changing person reid model using gallery enrichment with face features. In 2024 IEEE/CVF Winter Conference on Applications of Computer Vision Workshops (WACVW), pages 1–8, 2024. 2
[2] Jonathan Baxter. A model of inductive bias learning. Journal of artificial intelligence research, 12:149–198, 2000. 5
[3] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020. 2
[4] Weihua Chen, Xianzhe Xu, Jian Jia, Hao Luo, Yaohua Wang, Fan Wang, Rong Jin, and Xiuyu Sun. Beyond appearance: a semantic controllable self-supervised learning framework for human-centric visual tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023. 2
[5] Zhihao Chen, Yiyuan Ge, and Qing Yue. Features reconstruction disentanglement cloth-changing person re-identification. In International Conference on Intelligent Computing, pages 390–403. Springer, 2024. 2
[6] William Gemmell Cochran. Sampling techniques. john wiley & sons, 1977. 4
[7] Raphaël Delécluse, Hazem Wannous, and Laurent Guimas. Icpr 2026 competition on privacy-preserving person re-identification from top-view rgb-depth camera (TVRID). arXiv preprint arXiv:2605.04977, 2026. 2, 6, 7, 14
[8] Janez Demšar. Statistical comparisons of classifiers over multiple data sets. Journal of Machine Learning Research, 7:1–30, 2006. 16
[9] Yongkang Ding, Yuxiang Wang, Yina Jian, Chang Yu, Ke Tian, Zi Ye, and Gaozhe Jiang. FA-ReID: Feature alignment with adversarial learning for clothing-changing person re-identification. Neurocomputing, page 132237, 2025. 2, 7, 8
[10] Yongkang Ding, Yuqing Wu, Chenwei Wu, Meina Qu, and Liyan Zhang. Person parsing-driven and text-guided for cloth-changing person re-identification. IEEE Internet of Things Journal, 2025. 7, 8
[11] Dengpan Fu, Dongdong Chen, Hao Yang, Jianmin Bao, Lu Yuan, Lei Zhang, Houqiang Li, Fang Wen, and Dong Chen. Large-scale pre-training for person re-identification with noisy labels. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 4975–4985, 2022. 2
[12] Hongyang Gu, Qisong Yang, Lei Pu, Siming Han, and Yao Ding. ReIDMamba: Learning discriminative features with visual state space model for person re-identification. arXiv:2511.07948, 2025. 2
[13] Xinqian Gu, Hong Chang, Bingpeng Ma, Shutao Bai, Shiguang Shan, and Xilin Chen. Clothes-changing person re-identification with rgb modality only. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 1060–1069, 2022. 2, 7, 8
[14] Peini Guo, Hong Liu, Jianbing Wu, Guoquan Wang, and Tao Wang. Semantic-aware consistency network for cloth-changing person re-identification. In Proceedings of the 31st ACM international conference on multimedia, pages 8730–8739, 2023. 2, 8
[15] Chengrui Hao, Boyu Wang, Chunlei Peng, Decheng Liu, Nannan Wang, Ruimin Hu, and Xinbo Gao. Masked text adversarial training for cloth-changing person re-identification. IEEE Transactions on Information Forensics and Security, 2025. 7, 8
[16] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9729–9738, 2020. 2
[17] Shuting He, Hao Luo, Pichao Wang, Fan Wang, Hao Li, and Wei Jiang. TransReID: Transformer-based object re-identification. In Proceedings of the IEEE/CVF international conference on computer vision, pages 15013–15022, 2021. 2, 7
[18] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defence of the triplet loss for person re-identification. In arXiv:1703.07737, 2017. 2
[19] Peixian Hong, Tao Wu, Ancong Wu, Yipeng Liu, and Wei-Shi Zheng. Fine-grained shape-appearance mutual learning for cloth-changing person re-identification. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10513–10522, 2021. 2
[20] Yan Huang, Qiang Wu, JingSong Xu, Yi Zhong, and ZhaoXiang Zhang. Clothing status awareness for long-term person re-identification. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11895–11904, 2021. 6
[21] Kongzhu Jiang, Tianzhu Zhang, Xiang Liu, Bingqiao Qian, Yongdong Zhang, and Feng Wu. Cross-modality transformer for visible-infrared person re-identification. In European Conference on Computer Vision, 2022. 2
[22] Xin Jin, Tianyu He, Kecheng Zheng, Zhiheng Yin, Xu Shen, Zhen Huang, Ruoyu Feng, Jianqiang Huang, Zhibo Chen, and Xian-Sheng Hua. Cloth-changing person re-identification from a single image with gait prediction and regularization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14278–14287, 2022. 2
[23] Padmaja Jonnalagedda and Bir Bhanu. Novel unified body-based biometric for clothing invariant human recognition. IEEE Transactions on Biometrics, Behavior, and Identity Science, 2025. 7, 8
[24] Arthur Josi, Mahdi Alehdaghi, Rafael MO Cruz, and Eric Granger. Multimodal data augmentation for visual-infrared person reid with corrupted data. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 32–41, 2023. 2
[25] Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. Advances in neural information processing systems, 33:18661–18673, 2020. 4, 19
[26] Dong-Woo Kim and Tae-Kyun Kim. Learning instance-adaptive low-rank orthogonal subspaces for clothes-changing person re-identification. arXiv preprint arXiv:2606.11661, 2026. 7, 8
[27] Inès Hyeonsu Kim, JoungBin Lee, Soowon Son, Woojeong Jin, Kyusun Cho, Junyoung Seo, Min-Seop Kwak, Seokju Cho, JeongYeol Baek, Byeongwon Lee, and Seungryong Kim. Pose-diversified augmentation with diffusion model for person re-identification. arXiv preprint arXiv:2406.16042, 2024. 2
[28] Siyuan Li, Li Sun, and Qingli Li. CLIP-ReID: exploiting vision-language model for image re-identification without concrete text labels. In Proceedings of the AAAI conference on artificial intelligence, pages 1405–1413, 2023. 2, 7
[29] Shuang Li, Jiaxu Leng, Guozhang Li, Ji Gan, Haosheng Chen, and Xinbo Gao. Clip-driven cloth-agnostic feature learning for cloth-changing person re-identification, 2024. 2, 7, 8
[30] Xin Liang and Yogesh S. Rawat. DIFFER: Disentangling identity features via semantic cues for clothes-changing person Re-ID. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 13980–13989, 2025. 2, 7, 8, 13
[31] Feng Liu, Minchul Kim, Zhiyuan Ren, and Xiaoming Liu. Distilling clip with dual guidance for learning discriminative human body shape representation. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 256–266. IEEE, 2024. 7, 8
[32] Fangyi Liu, Mang Ye, and Bo Du. Cloth-aware augmentation for cloth-generalized person re-identification. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 4053–4062, 2024. 2
[33] Hankun Liu, Yujian Zhao, and Guanglin Niu. Try harder: Hard sample generation and learning for cloth-changing person re-id. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 1704–1713, 2025. 2
[34] Xiangzeng Liu, Kunpeng Liu, Jianfeng Guo, Peipei Zhao, Yining Quan, and Qiguang Miao. Pose-guided attention learning for cloth-changing person re-identification. Trans. Multi., 26:5490–5498, 2024. 2
[35] Hao Luo, Youzhi Gu, Xingyu Liao, Shenqi Lai, and Wei Jiang. Bag of tricks and a strong baseline for deep person re-identification. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 1487–1495, 2019. 2
[36] Andreas Maurer, Massimiliano Pontil, and Bernardino Romera-Paredes. The benefit of multitask representation learning. Journal of Machine Learning Research, 17(81): 1–32, 2016. 5
[37] Sam McCandlish, Jared Kaplan, Dario Amodei, and OpenAI Dota Team. An empirical model of large-batch training, 2018. 5, 6, 18
[38] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 2
[39] Kazuki Osamura, Hidetsugu Uchida, Shijie Nie, and Narishige Abe. Multi-masked prompt learning for clothing-change person re-identification. In 2024 IEEE International Joint Conference on Biometrics (IJCB), pages 1–8. IEEE, 2024. 2
[40] Priyank Pathak and Yogesh S Rawat. Colors see colors ignore: Clothes changing Reid with color disentanglement. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 16797–16807, 2025. 7, 8
[41] Chunlei Peng, Boyu Wang, Decheng Liu, Nannan Wang, Ruimin Hu, and Xinbo Gao. Masked attribute description embedding for cloth-changing person re-identification. IEEE Transactions on Multimedia, 2024. 2, 7, 8
[42] Xuelin Qian, Wenxuan Wang, Li Zhang, Fangrui Zhu, Yanwei Fu, Tao Xiang, Yu-Gang Jiang, and Xiangyang Xue. Long-term cloth-changing person re-identification. In Asian Conference on Computer Vision, 2020. 6
[43] Liuxiang Qiu, Si Chen, Yan Yan, Jing-Hao Xue, Da-Han Wang, and Shunzhi Zhu. High-order structure based middle-feature learning for visible-infrared person re-identification. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 4596–4604, 2024. 2
[44] Liuxiang Qiu, Si Chen, Jing-Hao Xue, Da-Han Wang, Shunzhi Zhu, and Yan Yan. HOH-net: High-order hierarchical middle-feature learning network for visible-infrared person re-identification. IEEE Transactions on Circuits and Systems for Video Technology, 2025. 2
[45] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PMLR, 2021. 2, 3, 12
[46] Xuena Ren, Dongming Zhang, and Xiuguo Bao. Person re-identification with a cloth-changing aware transformer. In 2022 International Joint Conference on Neural Networks (IJCNN), pages 1–8, 2022. 2
[47] Leonard J. Savage. The theory of statistical decision. Journal of the American Statistical Association, 46(253):55–67, 1951. 6, 16
[48] Shayle R Searle, George Casella, and Charles E McCulloch. Variance components. John Wiley & Sons, 2009. 4
[49] Hao Sheng, Yanwei Zheng, Wei Ke, Dongxiao Yu, Xiuzhen Cheng, Weifeng Lyu, and Zhang Xiong. Mining hard samples globally and efficiently for person reidentification. IEEE Internet of Things Journal, 7(10):9611–9622, 2020. 2
[50] Wei Shi, Hong Liu, and Mengyuan Liu. Identity-relevance aware representation for cloth-changing person re-identification. Image and Vision Computing, 117:104335, 2022. 2
[51] Xiujun Shu, Ge Li, Xiao Wang, Weijian Ruan, and Qi Tian. Semantic-guided pixel sampling for cloth-changing person re-identification. IEEE Signal Processing Letters, 28(8):1365–1369, 2021. 2
[52] Xiujun Shu, Xiao Wang, Xianghao Zang, Shiliang Zhang, Yuanqi Chen, Ge Li, and Qi Tian. Large-scale spatiotemporal person re-identification: Algorithms and benchmark. IEEE Transactions on Circuits and Systems for Video Technology, 32(7):4390–4403, 2021. 6, 7, 8
[53] Evgeny Smirnov, Aleksandr Melnikov, Andrei Oleinik, Elizaveta Ivanova, Ilya Kalinovskiy, and Eugene Luckyanets. Hard example mining with auxiliary embeddings. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 37–46, 2018. 2
[54] Yumin Suh, Bohyung Han, Wonsik Kim, and Kyoung Mu Lee. Stochastic class-based hard example mining for deep metric learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7251–7259, 2019. 7
[55] Quan Sun, Yuxin Fang, Ledell Wu, Xinlong Wang, and Yue Cao. Eva-clip: Improved training techniques for clip at scale. arXiv preprint arXiv:2303.15389, 2023. 7
[56] Yifan Sun, Liang Zheng, Weijian Deng, Shengjin Wang, and Qi Tian. Beyond part models: Person retrieval with refined part pooling (and a strong convolutional baseline). In The European Conference on Computer Vision (ECCV), page 480–496, 2018. 2
[57] Fangbin Wan, Yang Wu, Xuelin Qian, Yixiong Chen, and Yanwei Fu. When person re-identification meets changing clothes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 830–831, 2020. 2, 6
[58] Xinshao Wang, Yang Hua, Elyor Kodirov, Guosheng Hu, and Neil M. Robertson. Deep metric learning by online soft mining and class-aware attention. Proceedings of the AAAI Conference on Artificial Intelligence, 33(01):5361–5368, 2019. 7
[59] Yubin Wang, Huimin Yu, Yuming Yan, and Yichong Lu. Learning discriminative features with multiple granularities for person re-identification. In Proceedings of the 2018 ACM on Multimedia Conference (MM '18), page 274–282, 2018. 2
[60] Yubin Wang, Huimin Yu, Yuming Yan, Shuyi Song, Biyang Liu, and Yichong Lu. Exploring shape embedding for cloth-changing person re-identification via 2d-3d correspondences. In Proceedings of the 31st ACM International Conference on Multimedia, pages 7121–7130, 2023. 2
[61] Peng Xu and Xiatian Zhu. Deepchange: A long-term person re-identification benchmark with clothes change. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 11196–11205, 2023. 6
[62] Cheng Yan, Guansong Pang, Xiao Bai, Changhong Liu, Xin Ning, Lin Gu, and Jun Zhou. Beyond triplet loss: person re-identification with fine-grained difference-aware pairwise loss. IEEE Transactions on Multimedia, 24:1665–1677, 2021. 2
[63] Qize Yang, Ancong Wu, and Wei-Shi Zheng. Person re-identification by contour sketch under moderate clothing change. IEEE Transactions on Pattern Analysis and Machine Intelligence, 43(6):2029–2046, 2021. 2, 6
[64] Zhengwei Yang, Xian Zhong, Zhun Zhong, Hong Liu, Zheng Wang, and Shin'Ichi Satoh. Win-win by competition:
Auxiliary-free cloth-changing person re-identification. IEEE Transactions on Image Processing, 32:2985–2999, 2023. 2, 7, 8
[65] Zhengwei Yang, Xian Zhong, Zhun Zhong, Hong Liu, Zheng Wang, and Shin'ichi Satoh. Good is bad: Causality inspired cloth-debiasing for cloth-changing person re-identification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 1472–1481, 2023. 2
[66] Mang Ye, Shuoyi Chen, Chenyue Li, Wei-Shi Zheng, David Crandall, and Bo Du. Transformer for object re-identification: A survey. International Journal of Computer Vision, 133(5):2410–2440, 2025. 2
[67] Qingze Yin, Guodong Ding, Tongpo Zhang, and Yumei Gong. Robust fine-grained learning for cloth-changing person re-identification. Mathematics, 13(3):429, 2025. 7, 8
[68] Chenyang Yu, Xuehu Liu, Ju Dai, Pingping Zhang, and Huchuan Lu. Hierarchical proxy learning for cloth-changing person re-identification. In ICASSP 2025 - 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1–5, 2025. 7, 8
[69] Rui Yu, Zhiyong Dou, Song Bai, Zhaoxiang Zhang, Yongchao Xu, and Xiang Bai. Hard-aware point-to-set deep metric for person re-identification. In Proceedings of the European conference on computer vision (ECCV), pages 188–204, 2018. 2
[70] Zhengxu Yu, Yilun Zhao, Bin Hong, Zhongming Jin, Jianqiang Huang, Deng Cai, and Xian-Sheng Hua. Apparel-invariant feature learning for person re-identification. IEEE Transactions on Multimedia, 24:4482–4492, 2021. 2
[71] Guoqing Zhang, Jie Liu, Yuhao Chen, Yuhui Zheng, and Hongwei Zhang. Multi-biometric unified network for cloth-changing person re-identification. IEEE Transactions on Image Processing, 32:4555–4566, 2023. 2, 7, 8
[72] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In International Conference on Computer Vision (ICCV), page 1116–1124, 2015. 2
[73] Liang Zheng, Hengheng Zhang, Shaoyan Sun, Manmohan Chandraker, Yi Yang, and Qi Tian. Person re-identification in the wild. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1367–1376, 2017. 2
[74] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. International Journal of Computer Vision, 130(9):2337–2348, 2022. 2
[75] Xiao Zhou, Yujie Zhong, Zhen Cheng, Fan Liang, and Lin Ma. Adaptive sparse pairwise loss for object re-identification. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 19691–19701, 2023. 2
Supplemental Material for
MINER: Modeling Inter- and Intra-Person Variance for Reidentification
Abstract
This supplement provides reproduction details and extended analysis supporting the main paper. We first give the full training configuration — backbone, normalization, optimization schedule, and per-dataset protocols — across the clothes-changing, traditional, and RGB-Depth ReID settings, together with additional results on same-clothes and general ReID and on all three TVRID tracks (RGB, Depth, RGB-Depth). A paired-seed ablation then separates hard-positive from hard-negative mining, showing that hard-negative mining is the reliable component across datasets while hard-positive mining contributes most where intraperson variance is highest. The sampler and the Variance Controller act on different axes: the sampler decides which pairs enter a batch, the Controller how a fixed image budget is split between identities and samples per identity. We benchmark the latter against nine fixed allocations — it attains the lowest mean and worst-case regret and the best average rank — and show that the closed-form allocation risk orders measured retrieval on PRCC and Celeb-L, LTCC being a near-flat plateau in which no allocation is meaningfully preferred. We next validate the Controller's three modeling assumptions by their effect on the chosen allocation: the equal-weighting choice is immaterial to retrieval, the omitted cross-term is small and sign-favorable (so the additive risk is a conservative upper bound), and the projection-head proxy recovers the same allocation as the full-parameter gradient to within one unit per coordinate. We also show the allocation objective is strictly convex along the budget frontier, so its minimizer is unique. Finally, we analyze the contrastive objective at the gradient level, relate it to supervised contrastive learning, and show that bipartite query–gallery normalization avoids a target-mass dilution that an all-to-all formulation would incur.
A. Implementation Details
Unless noted otherwise, all settings below follow the DIFFER code base, with hyper-parameters adapted to MINER; Tab. 4 lists the complete configuration. All runs use a fixed random seed (1234); ablations requiring repeated measures vary only the seed.
Backbone and inputs. We report results with two image encoders, DIFFER and EVA2-CLIP-L/14, both producing a 1,024-D embedding, on PRCC, LTCC, Celeb-L, DeepChange, VC-Clothes, and LaST. Inputs are resized to and normalized with the standard ImageNet statistics , .
Optimization. Models are trained with SGD under a linear learning-rate schedule with a one-epoch warmup (warmup ratio 0.01) followed by decay with factor . The DIFFER-initialized runs use 20 epochs, learning rate , and weight decay 0.01. The EVA-CLIP checkpoints are not pre-trained on any ReID task, so they require longer adaptation: we finetune them for 30 epochs at a higher learning rate of , keeping all other settings fixed.
MINER-specific settings. The per-batch image budget is with , the hard memory ceiling on an 80 GB A100. The Variance Controller updates every iterations and smooths the gradient-variance traces with an EMA of rate . Soft sampling over identity and clothing centroids (Eqs. 4 and 7, main paper) uses a softmax temperature , following CLIP [45]; for the single-modal datasets and for the cross-modal TVRID setting (Sec. B.4).
| Hyper-parameter | Value |
|---|---|
| Input image size | |
| Normalization mean () | (0.485, 0.456, 0.406) |
| Normalization std. () | (0.229, 0.224, 0.225) |
| Optimizer | SGD |
| Learning rate | |
| LR scheduler | Linear |
| Weight decay | 0.01 |
| Total epochs | 20 |
| Warmup epochs | 1 |
| Warmup ratio | 0.01 |
| LR decay factor () | 0.1 |
| Random seed | 1234 |
| Batch budget, | 174 |
| Controller interval () | 20 |
| Controller EMA rate () | 0.025 |
| Softmax temperature () | 0.1 |
Table 4. Default training configuration (DIFFER-initialized runs). is the hard memory ceiling on the per-batch image budget . EVA-CLIP-initialized runs use 30 epochs at learning rate ; the cross-modal TVRID setting uses (Sec. B.4).
This is the only setting that differs from Tab. 4, which otherwise reports the DIFFER-initialized configuration.
B. Experiments
We follow each benchmark's official evaluation protocol and the conventions of its original work. Throughout, retrieval is single-query, each query is scored against the gallery without re-ranking, and no test-set statistic or prior is used; results are reported as Rank@1 accuracy (R@1) and mean Average Precision (mAP). The per-dataset protocols are: PRCC on the cross-clothes Camera A→C split, LTCC on its official clothes-changing split, Celeb-L on its inherently clothes-changing query/gallery split, DeepChange on its long-term probe/gallery protocol, VC-Clothes on the Camera 3/4 clothes-changing split, and LaST on its large-scale spatio-temporal protocol.
B.1. Clothes-Changing ReID
For the six CC-ReID datasets (PRCC, LTCC, Celeb-ReID-Light, DeepChange, VC-Clothes, LaST) we evaluate under the cross-clothing setting, in which query and gallery images show different outfits of the same identity wherever the protocol defines such pairs. The corresponding results appear in Tab. 1 of the main paper.
B.2. Traditional ReID
While MINER targets the clothes-changing setting, conventional fixed-clothing retrieval remains central to deployment, so we additionally evaluate two same-clothing protocols: PRCC in the Same-Clothes (SC) protocol and LTCC in the General protocol (Tab. 5). For comparability we match the backbone and evaluation settings of the prior work we compare against.
On LTCC-General, MINER sets a new state of the art by a wide margin (93.8/67.7 vs. the next-best 85.0/52.8 in R@1/mAP), despite prioritizing identity over clothing cues. PRCC-SC is effectively saturated — seven methods reach 100.0 R@1 — so it offers little discriminative headroom; there MINER is competitive on mAP (99.4) without surpassing the top entries. The strong LTCC-General result is the more informative of the two: it shows that MINER's clothes-agnostic training does not sacrifice same-clothes retrieval, and in fact improves it where the benchmark is not already maxed out.
B.3. MINER as a Finetuning Framework
B.3.1. Backbone Gains
Table 2 of the main paper reports the gain MINER delivers on top of existing backbones. For each backbone we reproduce the original training procedure to convergence, record the reproduced base scores, and then apply MINER as a finetuning stage on the converged model. Our reproduced base numbers occasionally differ from the originally reported ones, as is common when re-training across code bases and hardware. This does not affect the conclusion: the quantity of interest is the delta from adding MINER, and measuring base and +MINER under identical settings on our own reproduction isolates that delta more cleanly than a cross-paper comparison would. The consistent improvement across backbones therefore quantifies MINER's value as a generic, architecture-agnostic finetuning step.
| SC-ReID Method | PRCC | LTCC | ||
|---|---|---|---|---|
| R@1 | mAP | R@1 | mAP | |
| TransReID | 97.3 | 95.9 | 73.8 | 39.4 |
| CAL | 100.0 | 99.8 | 74.2 | 40.8 |
| MADE | 100.0 | 98.6 | 84.2 | 48.2 |
| RFLNet | 100.0 | 99.6 | - | - |
| FA-ReID | 100.0 | 99.0 | 75.7 | 41.3 |
| CSCI | 100.0 | 99.9 | 82.6 | 48.0 |
| DIFFER | 100.0 | 98.6 | 85.0 | 52.8 |
| MINER (Ours) | 100.0 | 99.4 | 93.8 | 67.7 |
Table 5. Same-clothes (PRCC-SC) and General (LTCC) ReID vs. prior work, in R@1/mAP. Best is bold, second underlined. PRCC-SC R@1 is saturated at 100.0 across methods; MINER sets a new state of the art on LTCC-General.
| Method | PRCC | LTCC | Celeb-L | |||
|---|---|---|---|---|---|---|
| R@1 | mAP | R@1 | mAP | R@1 | mAP | |
| EVA-CLIP (No finetune) | 39.3 | 23.9 | 15.0 | 5.1 | 57.7 | 37.1 |
| Baseline (ID Loss) | 65.1 | 63.0 | 54.6 | 30.4 | 72.7 | 53.3 |
| DIFFER | 68.5 | 64.7 | 58.2 | 31.6 | 75.6 | 54.3 |
| MINER (EVA-CLIP) | 74.5 | 70.0 | 60.2 | 34.4 | 77.2 | 59.1 |
| MINER (DIFFER) | 73.9 | 69.7 | 60.9 | 33.3 | 76.9 | 56.3 |
Table 6. MINER versus three initialization baselines on PRCC, LTCC, and Celeb-L under the clothes-changing protocol, in R@1/mAP. Upper block: EVA-CLIP off the shelf, EVA-CLIP finetuned with a plain ID-loss, and the ReID-pretrained DIFFER encoder. Lower block: MINER applied to each of the two initializations. Best per column in bold, second underlined.
B.3.2. Baseline
The EVA-CLIP backbone is a strong general purpose image encoder. We further report its expressive power for the CC-ReID task both as a zero-shot (off-the-shelf) vanilla encoder and as a baseline with a simple approach like multi-class classifier finetuning using the simple ID-Loss. This analysis was conducted by Liang and Rawat [30] on EVA-CLIP and demonstrated in Tab. 6 over the PRCC, LTCC, and Celeb-L datasets. MINER introduces net mAP gains of 46.1, 29.3, and 22.0 respectively compared with the vanilla EVA-CLIP and 7.0, 4.0, and 5.8 over the baseline.
B.4. TVRID 2026 Competition
The ICPR 2026 Competition on Privacy-Preserving Person Re-Identification from Top-View RGB-Depth Cam-
| Task | Rank | Method | R@1 | mAP |
|---|---|---|---|---|
| RGB | 1st | Duy et al. | 100.0 | 100.0 |
| 2nd | Carlo Metta | 100.0 | 99.9 | |
| 3rd | MINER (Ours) | 99.8 | 99.9 | |
| Avg. | Task average | 85.7 | 89.6 | |
| Depth | 1st | Jiang et al. | 98.8 | 99.4 |
| 2nd | MINER (Ours) | 97.2 | 98.3 | |
| 3rd | Rashidunnabi et al. | 90.4 | 94.3 | |
| Avg. | Task average | 47.1 | 57.2 | |
| RGB-D | 1st | Rashidunnabi et al. | 99.8 | 99.9 |
| 2nd | Jiang et al. | 97.9 | 98.7 | |
| 3rd | MINER (Ours) | 91.5 | 94.9 | |
| Avg. | Task average | 30.4 | 40.7 |
Table 7. TVRID top-3 entries and per-track average over 732 submissions. MINER is the only method on the podium of all three tracks. The large podium-to-average gap, especially on Depth and RGB-Depth, reflects an unsaturated, face-free setting.
era (TVRID) [7] drew 732 submissions from 148 research groups across three tracks (RGB, Depth, RGB-Depth). As Tab. 7 shows, MINER is the only method to place in the top three of all three tracks; every other leading method reaches the podium in at most two. The wide gap between the podium scores and the per-track averages (e.g. 94.9 vs. 40.7 mAP on RGB-Depth) indicates the setting is far from saturated — top-view sensors hide the face, so identity must be recovered from body shape and gait alone.
Cross-modal adaptation. The RGB-Depth track maps a query in one modality to a gallery in another, so we adapt MINER's appearance factor from clothing to modality: hard positives are now cross-modal pairs of the same identity and hard negatives are same-modality look-alikes, controlling intra- and inter-person variance exactly as in the single-modal case (Fig. 5). We instantiate two EVA-CLIP-L/14 encoders from the DIFFER checkpoints, one per modality, and finetune on the TVRID data.
Two changes accommodate the cross-modal setting. First, query and gallery are no longer interchangeable, which breaks the symmetry between and ; we therefore decouple the per-side image counts, allowing and modeling the budget as rather than the single-modal . This extends the allocation knob to the 3-tuple . Second, the larger RGBDepth domain shift produces a flatter similarity distribution, so we raise the softmax temperature to (from 0.1) to keep the contrastive targets well-scaled. All other settings follow Sec. A.
B.5. MINER's Sampler: Ablation Study
The main thesis of MINER rests on the interaction of two factors: the intra-class and inter-class variance effects. To quantify their individual contributions, we report the paired t-test analysis in Tab. 8. Seeds were shared across configurations, yielding a paired design with dof = 2. The full MINER sampler (hard-positive and hard-negative combined) produces the largest and most significant Rank@1 gain on both datasets: +6.50 ( ) on PRCC and +2.17 ( ) on Celeb-L. Decomposing the two factors reveals a dataset-dependent pattern that is consistent with our variance analysis. Hard-negative mining is the reliable component: it improves significantly over random mining on both datasets (+4.87, on PRCC; +1.03, on Celeb-L). Hard-positive mining alone, in contrast, is not significant on PRCC (+0.33, ) and only marginal on Celeb-L (+1.73, ), yet its point estimate is largest precisely on Celeb-L. Complementarily, the Variance Controller independently adapts m : n according to the measured gradient-variance ratio. Thus, the sampler ablation reveals where cross-clothing positives are most beneficial, while the controller determines how the training budget should be reallocated.
While random mining provides a natural lower-bound baseline, we additionally evaluate the opposite extreme: deterministic hard mining. Specifically, instead of sampling from MINER's soft hardness distributions, we deterministically select the most similar negative identities and, for each identity, the most dissimilar cross-clothing positive pair. Using the same paired seeds as in Tab. 8, this experiment isolates the contribution of MINER's stochastic sampling from that of hard-example selection itself. As shown in Tab. 9, deterministic hard mining reaches on PRCC and on Celeb-L, compared with and for MINER, respectively. Thus, deterministic selection improves substantially over random mining, confirming the value of hard-example selection, but remains below stochastic MINER by 3.70 R@1 points on PRCC and 0.56 points on Celeb-L. The consistent advantage in R@1 supports MINER's use of soft hard mining: biasing training toward difficult examples while retaining stochasticity is preferable to repeatedly selecting only the most extreme samples. The smaller gap on Celeb-L further indicates that the benefit of stochasticity is dataset-dependent rather than uniform.
B.6. Multi-Positive Objective and Variance Controller: Ablation Study
To isolate MINER's objective and adaptive batch allocation from its hard-mining sampler, we combine the controlled comparisons of Tab. 6 and Tab. 8. Specifically, the random-positive/random-negative setting disables hard

MINER Batch (B): , ,
Figure 5. MINER's contrastive loss over a cross-modal bipartite batch. Hard-negative identities and hard-positive cross-modal pairs distill inter-person (white) and intra-person (blue) variance simultaneously via a block-diagonal label matrix, here over the RGB-Depth data of the TVRID 2026 Competition.
| Dataset | Setting/Factor | Sampler configuration | (%) | |
|---|---|---|---|---|
| PRCC | (i) | Random positive + random negative | 67.13 ± 0.25 | - |
| (ii) | Random positive + hard negative | 72.00 ± 0.26 | +4.87, | |
| (iii) | Hard positive + random negative | 67.47 ± 0.25 | +0.33, | |
| (iv) | MINER: hard positive + hard negative | 73.63 ± 0.30 | +6.50, | |
| Celeb-L | (i) | Random positive + random negative | 74.27 ± 0.60 | - |
| (ii) | Random positive + hard negative | 75.30 ± 0.53 | +1.03, | |
| (iii) | Hard positive + random negative | 76.00 ± 0.20 | +1.73, | |
| (iv) | MINER: hard positive + hard negative | 76.43 ± 0.40 | +2.17, |
Table 8. Sampler-mining ablation on PRCC and Celeb-ReID-Light over three paired seeds. Results report mean ± standard deviation over 3 seeds. Paired t-tests compare each configuration against the random-positive/random-negative baseline (i), with dof = 2.
| Dataset | Deterministic Hard Mining (%) | MINER (%) |
|---|---|---|
| PRCC | 69.93 ± 0.15 | 73.63 ± 0.30 |
| Celeb-L | 75.87 ± 0.09 | 76.43 ± 0.40 |
Table 9. Deterministic mining selects the hardest negative identities and hardest positive clothing pairs, while MINER samples stochastically from the corresponding hardness distributions. Results report mean ± sample standard deviation over 3 seeds. MINER consistently improves R@1 over deterministic hard mining, with a larger gain on PRCC than on Celeb-L.
mining while retaining MINER's block-diagonal multi-positive objective and Variance Controller. Compared with the matched ID-loss baseline, this configuration improves
by points on PRCC (from to ) and points on Celeb-L (from to ). These gains show that MINER's improvement is not solely attributable to hard-example mining; the multi-positive objective and adaptive allocation provide an independent contribution.
B.7. MINER's Variance Controller: Ablation Study
We compare the Variance Controller against the nine fixed allocations on the PRCC/LTCC/Celeb-L grids (Tab. 10). Because mAP scales differ across datasets, we analyze regret—the gap, in mAP points, to each dataset's grid optimum—so that the per-dataset oracle has regret 0 and every policy is measured on a common scale.
Minimax regret (primary). At training time the dataset's intra-/inter-person prior is unknown, so a fixed allocation is chosen blind and its quality is governed by its worst case across datasets [47]. The controller attains a worst-case regret of 0.2 mAP and a mean of 0.10, against a best fixed allocation of 0.6 worst-case ( ) and 0.33 mean ( )—attained, notably, by different splits. The controller's mean and worst-case regret are below those of every fixed allocation (Tab. 10, last two columns), so it Pareto-dominates all nine on both criteria simultaneously, improving the best fixed choice by in mean and in worst-case regret. This is a property of the measured grid and requires no distributional assumption.
Average rank (companion). As a standard cross-dataset summary [8], we rank the ten configurations within each dataset and average. The controller obtains the best mean rank, 3.33, ahead of every fixed split (next best 4.50). Tellingly, the three aggregate criteria above each favor a different fixed allocation, yet the controller leads on all three—no fixed split is robustly best, whereas the controller is.
On significance testing. An omnibus Friedman test over the three datasets is not significant ( ), and is necessarily underpowered at N = 3: the Bonferroni–Dunn critical difference ( ranks) exceeds the entire observed rank range (5.5), so no post-hoc comparison can clear it regardless of effect size. We therefore report these gaps descriptively rather than as inferential claims. Statistical power here resides not in the three datasets but in the seed replicates of the main results (Sec. 5): the controller's largest shortfall (0.2 mAP) lies within their run-to-run variation, while the transfer penalties of fixed splits ( : 0.9 mAP on Celeb-L; : 2.1 on PRCC) exceed it several-fold. The regret gap can only widen as datasets with more varied priors are added.
Visualizing the effect. Tab. 10 reports the measured mAP and regret for every fixed allocation. Fig. 6 plots the same grid against the allocation risk of Eq. 14, evaluated per dataset at its estimated controller ratio ; only relative risk is needed, so the common covariance scale cancels, and risk and regret are independently normalized to [0, 1] within each dataset for display. Two comparisons appear in the figure and they carry different weight. That the risk is minimized at the Controller's selection is not evidence: by Eq. 15 the Controller returns the argmin of Eq. 14, so the dashed line and the orange minimum coincide by construction. The substantive question is whether that risk tracks measured retrieval — a quantity the grid supplies independently of the Controller. It does, wherever the grid can resolve it. The Spearman rank correlation between risk and mAP is on PRCC ( ) and on Celeb-L ( ): lower predicted risk accompanies higher measured mAP, and on both datasets the risk-minimizing cell is also the best-measured cell ( and ). LTCC is uninformative rather than contradictory — its nine allocations span only 0.6 mAP in total, comparable to run-to-run variation, so their ordering is largely noise and the correlation is correspondingly small and not significant ( , ). Consistent with a flat objective, the Controller's selection there sits 0.1 mAP below the best measured cells.
B.8. Variance Controller Assumption Validation
The adaptive allocation of Alg. 2 (main paper, Sec. 3.3) rests on three modeling choices. Each affects only the selection of , never the contrastive objective itself: (i) the allocation objective is the equally weighted sum of the two estimation risks; (ii) the between- and within-identity risks decouple, so is additive; and (iii) projection-head gradients are a low-variance proxy for the full-parameter covariance traces. We validate all three by their effect on the chosen allocation, since that — not the intermediate quantities — is what the controller produces.
Assumption (i): equal weighting. The 1/m and 1/2n scalings in E are fixed by the corresponding estimator variances; the only free choice is the relative weight on the two terms, which we set to 1:1. This choice is not load-bearing. Generalizing to
the constrained minimizer satisfies
so enters only through the scalar multiplier : it slides the operating point along the budget frontier but cannot change the functional form, recovering Eq. 15 at . Since mAP is a smooth, single-peaked function of the allocation (main paper, Figs. 2–3), a bounded reweighting of moves the operating point a bounded distance along a flat ridge. Fig. 7 confirms this on Celeb-L: as varies over the estimated allocation shifts substantially, yet R@1 and mAP vary within seed noise, with at least as good as either alternative. The equal-weighting choice therefore does not affect retrieval.
Assumption (ii): risk decoupling. The additive form (Eq. 14) has two subclaims: (ii-a) attribution — the between-identity dispersion is carried mainly by the discrimination signal (off-block / negatives) and the within-identity dispersion by the invariance signal (within-block / positives), Eq. 12; and (ii-b) decoupling — their cross-covariance is small enough that no cross-term survives.
We stress that the deployed estimators (Eqs. 16–17) recover tr and tr directly from the full per-sample gradient by one-way ANOVA; they do not use the
| <m,n> | mAP | Regret | Agg. regret | Rank | |||||
|---|---|---|---|---|---|---|---|---|---|
| PRCC | LTCC | Celeb-L | PRCC | LTCC | Celeb-L | Mean | Worst | ||
| <29,3> | 67.6 | 33.9 | 55.7 | 2.1 | 0.6 | 0.8 | 1.17 | 2.1 | 8.83 |
| <21,4> | 67.6 | 34.0 | 56.5 | 2.1 | 0.5 | 0.0 | 0.87 | 2.1 | 6.50 |
| <17,5> | 68.2 | 34.4 | 56.3 | 1.5 | 0.1 | 0.2 | 0.60 | 1.5 | 5.50 |
| <12,7> | 68.6 | 34.2 | 56.4 | 1.1 | 0.3 | 0.1 | 0.50 | 1.1 | 5.17 |
| <9, 9> | 68.9 | 34.4 | 56.3 | 0.8 | 0.1 | 0.2 | 0.37 | 0.8 | 4.50 |
| <7,12> | 69.1 | 34.1 | 56.2 | 0.6 | 0.4 | 0.3 | 0.43 | 0.6 | 6.00 |
| <5,17> | 69.7 | 34.4 | 55.6 | 0.0 | 0.1 | 0.9 | 0.33 | 0.9 | 4.67 |
| <4,21> | 69.6 | 34.5 | 55.5 | 0.1 | 0.0 | 1.0 | 0.37 | 1.0 | 4.50 |
| <3,29> | 68.6 | 34.5 | 55.1 | 1.1 | 0.0 | 1.4 | 0.83 | 1.4 | 6.00 |
| MINER Controller | 69.7 | 34.4 | 56.3 | 0.0 | 0.1 | 0.2 | 0.10 | 0.2 | 3.33 |
Table 10. Per-allocation mAP and regret (gap to each dataset's grid optimum) on PRCC/LTCC/Celeb-L, with mean and worst-case regret and Demšar average rank across the three. The Variance Controller attains the lowest mean and worst-case regret of all configurations—Pareto-dominating every fixed split—and the best average rank. Lower is better throughout; per-dataset optima are underlined.

Eq. 14 relative risk
Batch allocation (or )
Best measured mAP
Figure 6. Risk (orange) versus mAP regret (blue) across Tab. 10's nine allocations, each normalized within its dataset; lower is better. Dashed lines mark the Controller's choice — the risk minimum by construction (Eq. 15) — and shaded cells the best measured. The test is whether the curves track. They do on PRCC () and Celeb-L (), where lowest risk is also best measured. LTCC spans only 0.6 mAP, too flat to order (, ); the Controller's lands 0.1 mAP off.
split and do not assume decoupling. The split motivates why the two terms respond to and ; the assumption governs only whether may omit the cross-term. We assess this two ways.
First, the cross-term has a favorable sign. Writing for the per-sample contributions to , their trace-correlation
is not large in magnitude both in PRCC and LTCC (Tab. 11). By the identity , a negative cross-term makes the true coupled risk smaller than the additive . Dropping it therefore yields a conservative upper bound on the risk, not an uncontrolled approximation.
Second, and decisively, the omission does not change the output: the allocation obtained under the additive surrogate matches the per-dataset grid optimum (Sec. B.7) and the full-parameter solution (Tab. 11). Whatever residual coupling exists, it does not move . Assumption (ii) is thus an approximation that is both conservative and allocation-preserving.
Assumption (iii): projection-head proxy. For efficiency the controller evaluates the traces on the projection head, , rather than the full-parameter gradient — the standard low-variance gradient surrogate of McCandlish

Estimated and vs.

Figure 7. Effect of the risk weighting on Celeb-L. Top: retrieval performance (mAP, R@1) is flat across . Bottom: the controller allocation shifts markedly with . The allocation moves while performance does not, confirming the equal-weighting choice is immaterial. Mean over three seeds; error bars are standard deviation.
et al. [37]. Only the ratio enters Eq. 15, and a ratio is robust to the (large, roughly multiplicative) magnitude gap between head and full gradients, which cancels in the quotient. We verify this where it matters — in allocation space, with integer tolerance — rather than by comparing raw traces. As Tab. 11 shows, the projection-head and full-parameter estimators yield the same on PRCC (exact) and agree within one unit per coordinate on LTCC. The cheap surrogate reproduces the allocation of the full gradient.
C. Extended Theoretical Analysis
In this section we first detail the per-sample gradient definition and then dive into the deeper meaning of our loss function.
C.1. Per-Query Gradient and the Two-Signal Split
This appendix derives the gradient decomposition of our proposed block-diagonal loss function. With
| Dataset | Allocation (iii) | (ii) | |
|---|---|---|---|
| Proj. | Full | ||
| PRCC | (exact) | -0.23 | |
| LTCC | (within 1) | -0.25 | |
Table 11. Validation of Assumptions (ii) and (iii). The last column reports the trace-correlation between the invariance and discrimination gradient signals (Assumption ii); it is small and negative, so the additive risk is a conservative upper bound. The first two columns report the allocation recovered by the projection-head versus the full-parameter estimator (Assumption iii); they agree, exactly on PRCC and within one unit per coordinate on LTCC.
and normalized target , the per-query loss is . Using the softmax identity and ,
where , . The parameter gradient is . The positive coordinates (target ) pull together the cross-clothing matches of 's identity—the invariance contribution—while the negative coordinates push apart cross-identity look-alikes—the discrimination contribution. Summing over queries and adding the symmetric gallery-to-query term gives the additive split , with supported on within-block (positive) pairs and on off-block (negative) pairs.
C.2. Convexity of the Allocation Objective
We consider the continuous allocation problem
Since the covariance matrices , their traces are nonnegative. We consider this non-degenerate case where both traces are strictly positive. As decreases when either or increases, any minimizer must saturate the budget: . Thus, , and the objective along the budget frontier becomes
Its derivatives are
Hence, is strictly convex on , so its unique stationary point is its unique global minimizer. Solving gives
Therefore,
which yields Eq. 15 of the paper. The controller subsequently projects this continuous solution onto the feasible integer allocations.
C.3. Loss Function Analysis
This section analyzes the contrastive loss formulation used in MINER to clarify its intended optimization behavior. The loss is designed to explicitly control how gradient mass is distributed across multiple same-identity positives and identity-confusable negatives within a batch, a property that is critical for learning clothing-invariant representations. We therefore examine the loss at the gradient level, relate it to prior supervised contrastive formulations, and show how its structure aligns with the discriminative pressure induced by our sampling strategy. Throughout this section we use the single-modal batch shape of the main paper, where each identity contributes n query and n gallery images, so ; the asymmetric cross-modal generalization is treated in Sec. B.4.
Gradient interpretation. Section C.1 derived the per-query gradient for the query-to-gallery direction , where each query carries exactly positive gallery samples in the block-diagonal supervision matrix , i.e., for all and . We read off its two regimes. For a positive pair the gradient is
which drives the predicted softmax probability toward 1/n, spreading probability mass evenly across the n cross-clothing matches of the identity. For a negative pair it reduces to
so the update magnitude equals the predicted probability and is largest for the highest-scoring negatives.
Because our batch construction explicitly concentrates identity-level hard negatives through the soft sampling distribution of of the main paper, these negatives systematically attain larger similarity scores early in training, produce disproportionately large gradients, and dominate the optimization dynamics. This provides a formal explanation for the strong discriminative pressure induced by our mining strategy and its empirical impact on improving global retrieval metrics such as mAP. At the same time, the block-diagonal positive structure distributes gradient mass across the multiple cross-clothing positives of each identity, preventing collapse to single-instance memorization and explicitly enforcing clothing-invariant identity clusters.
Relation to Supervised Contrastive Learning. Khosla et al. [25] identify two ways to generalize contrastive learning to arbitrary numbers of positives. We adopt the “sum-outside-log” formulation, defined as:
where is the index set of candidates contrasted against anchor , and denotes the set of positives sharing the ground-truth identity label with the anchor.
Query→Gallery. Consider a bipartite batch consisting of query embeddings and gallery embeddings , with . In the query→gallery direction, each query serves as an anchor and is compared against all gallery embeddings, which form the contrastive set. Adopting the notation of Eq. 24, we set and with . The positive set for anchor is ; by construction for all . Substituting into Eq. 24 and averaging over the anchors yields
which is identical to the query-to-gallery objective (Eq. 10 of the main paper).
Gallery→Query. The gallery-to-query term is defined symmetrically by swapping the roles of queries and galleries, yielding the gallery-to-query objective (Eq. 11 of the main paper); the final objective averages both directions as in (main paper, Sec. 3.2).
Motivation for bipartite normalization
MINER trains on mined batches split into a query set Q and a gallery set G, with and each identity contributing n images to each side. The bipartite objective of the main paper) normalizes each query over galleries and each gallery over queries. To understand the effect of this choice, we compare it to an all-to-all supervised contrastive variant that also includes within-set candidates (query-query and gallery-gallery).
Fix a query anchor index i with embedding and define the all-to-all candidate set
where and are embeddings of the gallery and query images and , respectively. Define the all-to-all probability over candidates by
Two effects distinguish bipartite from all-to-all normalization; we lead with the one that moves the objective’s optimum rather than merely its scale.
Target-mass dilution (primary). Under bipartite normalization each query distributes unit positive-target mass over its cross-set (gallery) positives, so each receives (Sec. C.1). Under the all-to-all objective the anchor's positive set additionally includes its same-identity queries, for a total of positives, so each cross-set positive now receives only . The total target mass placed on the retrieval-relevant cross-set positives therefore drops from 1 to
At MINER’s operating points this is already near the limit: at the PRCC optimum and at the Celeb-L optimum . Roughly half of the supervisory target mass is thus diverted to within-set query-query pairs, away from the query-gallery comparisons that retrieval actually evaluates. Unlike a uniform rescaling, this reweighting moves the fixed point of the loss, not merely its magnitude.
Probability-mass shrinkage (secondary). The same within-set candidates also rescale the model’s predicted distribution. Partition the all-to-all denominator into cross-set and within-set terms:
(28)
Then, for any gallery embedding ,
(29)
Adding query–query candidates shrinks all cross-set probabilities by the common factor whenever is non-negligible, so the total probability mass allocated to all gallery candidates becomes
whereas under bipartite normalization . Taken alone, this is a uniform attenuation of the cross-set gradient—equivalent to a smaller effective step size—and is therefore milder than the target-mass effect above; we include it because it compounds with that effect under the same within-set candidates.
Why the within-set positives are inert. One might expect the within-set positives to compensate by contributing useful gradient. They do not. Under -normalization and strong initialization, same-identity query pairs become nearly collinear: for such a pair the tangential component has norm
(31)
To make this precise, we decompose the all-to-all positive gradient into cross-set and within-set contributions. Let denote the positive set of and let . Define the per-anchor all-to-all loss
Under the MINER sampler (Alg. 1 of the main paper), contains cross-set positives and within-set positives, hence . For compactness, define the positive index subsets
Write and define
Then the positive contribution decomposes as
(32)
When (Eq. 31), , so the second sum is negligible and the update direction is dominated by cross-set terms—while these within-set logits still inflate and, through (Eq. 29), drain the magnitude budget available to cross-set terms. The within-set positives thus pay the full dilution cost of both effects above and return almost no gradient in exchange.
What about within-set negatives? A natural objection is that query–query negatives (different-identity query pairs) supply discriminative signal that bipartite normalization discards. In this setting they are redundant: because every identity contributes images to both Q and G, the contrast between any two identities is already exercised by cross-set query–gallery negatives in S. Each off-block entry with is exactly such a hard-negative comparison, and the MINER sampler selects identities so that these off-block pairs are maximally confusable. Within-set negatives would re-encode the same identity-separation pressure on a different pairing whose utility is dataset- and regime-dependent, at the cost of the dilution quantified above.
Together, these observations explain why bipartite normalization matches MINER’s retrieval setting: it preserves probability mass and uniform-positive target mass on the cross-set comparisons selected by the MINER sampler (Alg. 1 of the main paper) and evaluated at test time, while discarding within-set pairs that are either inert (positives) or redundant (negatives).