Paper deep dive
FM-ReID: Selective Competitive Token Routing for Object Re-Identification
Zhiqi Li, Xiaowei Zhou, Zeyuan Sun, Feng Gao, Junyu Dong
Intelligence
Status: not_run | Model: - | Prompt: - | Confidence: 0%
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Object re-identification (ReID) faces a recurring challenge: different identities can share highly similar global appearances, while the cues that distinguish them are localized, heterogeneous, and visible only under particular viewpoints. This challenge arises in animal ReID through markings, contours, and scars, in person ReID through subtle clothing and accessory cues, and in vehicle ReID through localized appearance details. Although visual foundation models encode such information in dense tokens, a single holistic descriptor can obscure discriminative local signals. We propose FM-ReID, an end-to-end framework that formulates local representation learning as selective competitive token routing. Its Competitive Fine-grained Mining module uses multiple mining queries and a residual query to compete for dense DINOv3 tokens. Above-prior selection retains tokens preferentially allocated to each mining query, while the residual slot receives tokens excluded from the retrieval descriptors. The resulting multi-query descriptors are jointly trained with a holistic representation for retrieval, without fixed spatial partitions or equal-area constraints. FM-ReID achieves strong results on animal, person, and vehicle ReID benchmarks, supporting competitive token routing as an effective way to augment holistic foundation-model representations.
Tags
Links
- Source: https://arxiv.org/abs/2609.36560v1
- Canonical: https://arxiv.org/abs/2609.36560v1
Trouble viewing inline? Open PDF directly â
Full Text
44,245 characters extracted from source content.
Expand or collapse full text
FM-REID: SELECTIVE COMPETITIVE TOKEN ROUTING FOR OBJECT RE-IDENTIFICATION A PREPRINT Zhiqi Li 1,2 , Xiaowei Zhou 1â , Zeyuan Sun 1 , Feng Gao 1 , Junyu Dong 1,2â 1 Faculty of Information Science and Engineering, Ocean University of China, Qingdao, China 2 Sanya Oceanographic Institution, Ocean University of China, Sanya, China lizhiqi,sunzeyuan@stu.ouc.edu.cn zhouxiaowei,gaofeng,dongjunyu@ouc.edu.cn ABSTRACT Object re-identification (ReID) faces a recurring challenge: different identities can share highly similar global appearances, while the cues that distinguish them are localized, heterogeneous, and visible only under particular viewpoints. This challenge arises in animal ReID through markings, contours, and scars, in person ReID through subtle clothing and accessory cues, and in vehicle ReID through localized appearance details. Although visual foundation models encode such information in dense tokens, a single holistic descriptor can obscure discriminative local signals. We propose FM-ReID, an end-to-end framework that formulates local representation learning as selective competitive token routing. Its Competitive Fine-grained Mining module uses multiple mining queries and a residual query to compete for dense DINOv3 tokens. Above-prior selection retains tokens preferentially allocated to each mining query, while the residual slot receives tokens excluded from the retrieval descriptors. The resulting multi-query descriptors are jointly trained with a holistic representation for retrieval, without fixed spatial partitions or equal-area constraints. FM-ReID achieves strong results on animal, person, and vehicle ReID benchmarks, supporting competitive token routing as an effective way to augment holistic foundation-model representations. (a) Motivation Local DifferencesHolistic + Local Cues HeadBackFin Similar Appearance (b) Method Comparison Holistic-only ReID FM-ReID: Holistic + Local diff diff + + Figure 1: (a) Object ReID often requires localized identity cues to complement holistic representations when different instances have similar global appearances. (b) FM-ReID selectively mines such cues from dense foundation-model tokens through competitive query routing, without fixed spatial partitions or equal-area constraints. â Corresponding authors: zhouxiaowei@ouc.edu.cn and dongjunyu@ouc.edu.cn. arXiv:2609.36560v1 [cs.CV] 29 Sep 2026 FM-ReID: Selective Competitive Token RoutingA PREPRINT 1 Introduction Object re-identification (ReID) retrieves the same instance across cameras, times, or viewpoints. Its central difficulty is that different identities can share highly similar global appearances, whereas the evidence that distinguishes them is often localized, heterogeneous, and visible only from particular viewpoints. In animal ReID, this evidence may consist of markings, contours, or scars (CermĂĄk et al., 2024; Adam et al., 2025); in person ReID, it can be subtle clothing and accessory cues; and in vehicle ReID, it can be localized appearance details. Viewpoint changes, deformation, occlusion, and background clutter further alter the location and visibility of these cues. Local and multi-granular representation learning has long been used to complement holistic features with additional localized representations. Early approaches divide feature maps into fixed stripes or multiple predetermined granu- larities (Sun et al., 2018; Wang et al., 2018), while more recent Transformer-based methods rearrange patch tokens or learn prototypes that attend to latent regions (He et al., 2021; Li et al., 2021; Zhu et al., 2024). However, fixed partitions and rearrangement rules rely on approximate spatial alignment and can become unreliable across shapes, poses, and occlusions. Independently normalized queries may also repeatedly attend to the same salient evidence. These limitations motivate a local representation mechanism that can select complementary evidence without fixed spatial partitions, equal-area constraints, or category-specific anatomy. Self-supervised visual foundation models provide a promising basis for this mechanism. DINO-family models learn object-aware dense representations from large-scale data without category-specific part annotations (Caron et al., 2021; Oquab et al., 2024; SimĂ©oni et al., 2025). Although their patch tokens encode rich spatial and semantic structure, dense tokens alone do not determine which local evidence should augment a retrieval descriptor. The allocation mechanism must distinguish query-specific evidence from ambiguous or uninformative tokens, while accommodating identity cues with unequal visible extents. We address this problem with FM-ReID, an end-to-end framework that formulates local representation learning as selective competitive token routing on top of a DINOv3 visual encoder. Its holistic branch fuses the image-level CLS token with average-pooled patch context. Its Competitive Fine-grained Mining (CFM) module introduces multiple learnable mining queries and a residual query that compete for dense patch tokens through query-wise normalization. Above-prior selection retains tokens preferentially allocated to each mining query before query-specific aggregation, whereas the residual slot receives evidence excluded from the retrieval descriptors. Thus, a token need not contribute to any mining descriptor, and the retained support can vary across queries. We jointly train the resulting multi-query descriptors with the holistic representation for retrieval, yielding a multi-granular embedding without fixed spatial partitions or equal-area constraints. Our main contributions are summarized as follows: âąWe propose FM-ReID, an end-to-end object ReID framework that augments a holistic representation with fine-grained features selectively mined from dense foundation-model tokens, without part annotations. âąWe introduce the CFM module, in which mining queries and a residual query compete for tokens; above-prior selection allows evidence to remain outside the retrieval descriptors and permits query supports of unequal size. âą We jointly train holistic and multi-query descriptors for retrieval. Evaluations on animal, person, and vehicle ReID benchmarks show that competitive token routing can effectively augment holistic foundation-model representations. âą We provide FM-FISH, a benchmark for fine-grained identity discrimination among visually similar fish in underwater and laboratory settings. 2 Related Work 2.1 Fine-Grained Representation Learning for Object ReID Fine-grained representations are crucial when identities share similar holistic appearances. The challenge is especially pronounced in animal ReID, where localized markings and subtle structural differences may be the only reliable identity cues (CermĂĄk et al., 2024; Adam et al., 2025), but analogous ambiguities occur in person and vehicle ReID. Early part-based methods impose spatial structure directly. PCB (Sun et al., 2018) partitions convolutional feature maps into horizontal stripes, while MGN (Wang et al., 2018) combines global features with local descriptors at several fixed granularities. Such partitions are effective for approximately aligned pedestrians, but can become semantically inconsistent under pose changes, occlusion, or non-human object geometry. Transformer-based methods provide more 2 FM-ReID: Selective Competitive Token RoutingA PREPRINT flexible token processing. TransReID (He et al., 2021) shifts, shuffles, and groups patch tokens through its Jigsaw Patch Module. PAT (Li et al., 2021) learns part prototypes with a Transformer decoder, and AAformer (Zhu et al., 2024) uses Optimal Transport to align patches with learnable part tokens. For animals, PAW-ViT (Neto et al., 2026) specializes anatomical part tokens through semantic segmentation distillation. Our propovsed FM-ReID uses identity supervision to learn selective token aggregation without prescribed anatomical regions or equal-area assignments. 2.2 Query-Based Discovery and Competitive Assignment Learnable queries and prototypes have been used to discover latent regions from weak supervision. Region Group- ing (Huang and Li, 2020) learns interpretable object regions from image-level labels, while conceptual-part models (Zhou et al., 2021) associate spatial features with latent prototypes. In ReID, PAT applies part prototypes independently and in- troduces auxiliary objectives to improve diversity. APD (Lai et al., 2021) uses competition in part-mask generation, and AAformer adopts a globally balanced patch-to-part assignment. DRL-Net (Jia et al., 2023) separates identity-relevant and identity-irrelevant queries. These methods establish prior uses of competitive assignment and auxiliary queries; CFM combines them with above-prior selection over dense foundation-model tokens. Competition among latent slots has also been studied in object-centric learning. Slot Attention (Locatello et al., 2020) normalizes attention across slots and renormalizes over inputs for aggregation. Our proposed CFM builds on this allocation principle for discriminative retrieval. Its residual query and above-prior selection allow evidence to remain unclaimed by the mining queries, while query-specific aggregation permits unequal support sizes. The intended contribution is this selective aggregation of additional identity evidence from strong dense representations. 2.3 Visual Foundation Models for ReID Vision-language models have become strong initialization sources for ReID. CLIP-ReID (Li et al., 2023) learns identity- specific text tokens and transfers textual knowledge to image representations. TF-CLIP (Yu et al., 2024) constructs visual memories for video ReID, CLIMB-ReID (Yu et al., 2025) combines CLIP-based transfer with sequence modeling, and EvoPrompt-ReID (He et al., 2026) jointly evolves prompts and the image encoder through bilevel optimization. Their main emphasis is cross-modal knowledge or temporal modeling rather than competitive organization of dense spatial tokens. A complementary direction learns person-specific representations through additional self-supervised pre-training. LUPerson (Fu et al., 2021) supplies large-scale unlabeled pedestrian data; PASS (Zhu et al., 2022a) learns part-aware consistency from predefined local zones; and SOLIDER (Chen et al., 2023) introduces pseudo-semantic supervision and controllable representation learning. Although effective, these approaches use in-domain data, person-oriented spatial assumptions, or additional pre-training stages. General self-supervised foundation models offer category-agnostic dense features. DINO (Caron et al., 2021) reveals emergent object structure in self-supervised Vision Transformers, DINOv2 (Oquab et al., 2024) scales the resulting general-purpose representations, and register tokens improve the spatial consistency of dense feature maps (Darcet et al., 2024). DINOv3 (SimĂ©oni et al., 2025) further advances dense self-supervised features at scale. Our proposed FM-ReID uses this visual knowledge without text prompts or secondary in-domain pre-training. It augments holistic pooling with selective competitive aggregation, whose empirical contribution is evaluated using the same DINOv3 backbone. 3 Method 3.1 Overview of FM-ReID FM-ReID augments a holistic representation with selectively mined localized representations. As illustrated in Figure 2, an input imageX âR HĂWĂC is processed by a DINOv3 encoder, which produces a CLS tokenz cls âR D andN spatial patch tokensZ = [z 1 ,..., z N ]âR NĂD . We discard register tokens because they do not correspond to image locations. The holistic branch combines the CLS token with average-pooled patch context: f h = Ï h [z cls ;N â1 P N n=1 z n ] ,(1) where[·;·]denotes concatenation andÏ h is a linearâBNâGELU projection. In parallel, the Competitive Fine-grained Mining (CFM) module convertsZintoKfine-grained representations. Rather than assigning queries to fixed spatial regions, CFM makes mining queries and a residual query compete for each patch token, then retains only above-prior mining assignments for aggregation. The residual output is not used as a retrieval descriptor, providing an alternative allocation for evidence that is not preferentially retained by the mining queries. The following two subsections detail 3 FM-ReID: Selective Competitive Token RoutingA PREPRINT FM-ReID frameworkHolistic learning branch Fine-grained mining branch Training supervision Object images Vision Transformer encoder DINOv3 CLS token Patch tokens GAP Concat Projection Linear · BN · GELU Holistic feature CFM Module Learnable miner queries Residual query Miner features [Holistic, Miner] Ă K [Holistic,Miners] Holistic ReID loss Fine-grained ReID loss Fusion ReID loss Diversity loss âź Miners Residual Discarded Feature flowTraining supervision GAP Global Average Pooling CFM Competitive Fine-grained Mining Figure 2: Overview of FM-ReID. DINOv3 provides a holistic CLS token and dense patch tokens. CFM selectively routes patch-token evidence through competing mining and residual queries, then retains above-prior assignments for the mining descriptors. During training, the holistic feature, holisticâfine-grained pairs, and their joint fusion receive ReID supervision. At inference, normalized holistic and fine-grained features form the retrieval embedding, while the residual output is discarded. this selective aggregation and the joint supervision used to combine the holistic and fine-grained representations for retrieval. All components, including the DINOv3 encoder, are optimized end to end. 3.2 Competitive Fine-Grained Mining Independent attention queries can repeatedly select the same dominant region because each query normalizes its attention over all tokens in isolation. CFM instead makes its queries compete for every token before aggregation. Competitive token assignment.We useKlearnable fine-grained mining queriesq k K k=1 and one residual competi- tion queryq 0 . In the reported experiments, the mining-query matrix is initialized asG/â„Gâ„ F , where the entries of GâR KĂD are sampled from a standard Gaussian. The residual query is independently initialized fromN (0, 0.02 2 I D ) and provides an auxiliary non-retrieval slot for competing assignments. LetQ = [q 0 ; q 1 ;... ; q K ]. For attention head m, queries, keys, and values are computed as Q m = QW m q , K m = (Z + E)W m k , V m = ZW m v , (2) whereEis a learnable spatial position embedding. Position is injected only into the keys, so it guides assignment without altering the visual content being aggregated. Given the scaled similaritiess m kn = âšQ m k , K m n â©/ â d, wheredis the head dimension, CFM applies softmax across queries rather than tokens: a m kn = exp(s m kn ) P K j=0 exp(s m jn ) , K X k=0 a m kn = 1.(3) Consequently, increasing one queryâs assignment to a patch necessarily reduces the mass available to the others. The residual output is excluded from direct identity supervision and the retrieval descriptor. The residual query still receives gradients indirectly through the shared competition. Evidence selection and aggregation. A query-wise softmax may still produce ambiguous assignments close to the uniform solution. We therefore subtract the uniform competition prior, suppress assignments that do not exceed it, and renormalize each query over tokens: Ëa m kn = h a m kn â 1 K+1 i + , w m kn = Ëa m kn P N t=1 Ëa m kt + Δ . (4) The first normalization in Equation 3 allocates probability mass across queries; the second in Equation 4 pools each queryâs retained evidence. Multiple queries may exceed the prior for the same token, so their supports can overlap 4 FM-ReID: Selective Competitive Token RoutingA PREPRINT f 1 f 2 f 3 f 4 f 5 q 1 q 2 q r q 3 q 4 q 5 p 1 p 2 p N ⯠p 3 Miner features Competitive Fine-grained Mining (CFM) Ă Above-prior Query-wise softmax Mining + residual queries Patch tokens Q Keys with pos.Values Residual (discarded) Selective pooling Token-wise norm. Query refinement aQuery-wise softmax weightKMining query count (excl. residual) q k k-th learnable mining query q k ++ LayerNorm MLP k Independent MLPs Figure 3: Competitive Fine-grained Mining (CFM). Mining queries and a residual query compete for each patch token through a softmax across queries. Above-prior mining assignments are retained and renormalized over tokens to form query-specific descriptors; their supports may overlap and vary in size. Query refinement produces the fine-grained features, whereas the residual output is excluded from the retrieval embedding. and need not have equal sizes. A token with no above-prior mining assignment contributes to none of the fine-grained aggregates. The multi-head output is o k = W o Concat m N X n=1 w m kn V m n ! .(5) After discarding o 0 , each fine-grained output is refined with an independent two-layer MLP: Ì f k = LN(o k + q k ), f k = Ì f k + MLP k ( Ì f k ). (6) The residual connection adds the learned query seed, and query-specific refiners transform the aggregated features before ReID supervision. 3.3 Optimization and Inference LetR(x,y) =L id (BN(x),y) +L tri (x,y)denote the standard ReID objective, comprising label-smoothed identity classification and batch-hard triplet loss. Separate BNNecks and classifiers are used for different feature streams. We supervise the holistic feature directly. For each mined feature, we concatenate its holistic contextg k = [f h ; f k ] to stabilize identity learning. We also supervise their joint fusionf u = [f h ;αf 1 ;... ;αf K ], whereαprevents the fine-grained blocks from overwhelming the holistic feature. The three ReID losses are L h =R(f h ,y), L f = 1 K K X k=1 R(g k ,y), L u =R(f u ,y). (7) To encourage decorrelation among mined feature vectors, let Ì F (b) f âR KĂD stack theL 2 -normalized fine-grained features of sample b. We regularize their Gram matrix by L div = 1 BK 2 B X b=1 Ì F (b) f Ì F (b)†f â I K 2 F .(8) The final training objective is L =L h + λ u L u + λ f L f + λ d L div .(9) At inference, the holistic and fine-grained BNNeck outputs are individually L 2 -normalized and concatenated: f test = [ Ì f h ;α Ì f 1 ;... ;α Ì f K ].(10) The stored descriptor has(K + 1)Ddimensions: 4,608 for the defaultK = 5andD = 768, compared with 768 for the holistic baseline. Competition maps and the residual output are not stored for retrieval. 5 FM-ReID: Selective Competitive Token RoutingA PREPRINT Table 1: Comparison on (a) WildlifeReID-10k under the official closed-set protocol and (b) vehicle ReID benchmarks. The first four baselines in (a) are from Adam et al. (2025); TransReID and CLIP-ReID are from our runs. Bold indicates the best result in each metric. (a) WildlifeReID-10k ModelInputmTop-1mTop-5BAKS ConvNeXt-Base 224 2 81.190.378.5 EfficientNet-B3 300 2 77.888.575.1 ViT-Base 224 2 78.388.775.8 Swin-Base 224 2 81.590.479.1 TransReID 256 2 80.5289.4678.22 CLIP-ReID 256 2 76.4987.6174.21 FM-ReID 256 2 85.0392.0783.33 (b) Vehicle ReID MethodReference VeRi-776VehicleID mAPR1R1R5 TransReIDICCV2182.197.483.697.1 DCALCVPR2280.296.9â CLIP-ReIDAAAI2383.397.485.397.6 Fast-ReIDMM2381.997.986.697.9 EvoPrompt-ReIDCVPR2684.297.5-- FM-ReIDâ87.898.387.498.6 4 Experiments 4.1 Experimental Setup Dataset We evaluate FM-ReID on animal, person, and vehicle ReID benchmarks. For animal ReID, we use WildlifeReID-10k (Adam et al., 2025) and our FM-FISH benchmark. WildlifeReID-10k covers 37 source datasets. For person ReID, we use Market-1501 (Zheng et al., 2015), MSMT17 (Wei et al., 2018), DukeMTMC-reID (Ristani et al., 2016), and Occluded-Duke (Miao et al., 2019). The latter evaluates retrieval under partial occlusion. For vehicle ReID, we use VeRi-776 (Liu et al., 2016a) and VehicleID (Liu et al., 2016b). Our proposed FM-FISH combines self-collected images, an FS-48 subset, AAUZebraFish, WhaleSharkID, and MFT25 track crops, comprising 45,632 images and 724 identity labels (Table 3(a)). It targets fine-grained matching among visually similar fish. We retain source-specific splits: the self-collected subset uses unseen test identities, the Wildlife subsets include known-identity queries, and MFT25 uses within-sequence temporal splits with track-based labels. Implementation details.We fine-tune DINOv3 ViT-Base/16 (SimĂ©oni et al., 2025) on each benchmark with a batch size of 64, using five mining queries and one residual query. Input images are resized to256Ă 256for animal and vehicle ReID, and256Ă 128for person ReID. On WildlifeReID-10k, we train for 120 epochs with AdamW. Ablation variants share the same backbone and training recipe within each benchmark. All FM-ReID results use final checkpoints without re-ranking. All experiments are conducted on an NVIDIA GeForce RTX 5080 GPU. Evaluation metrics. We report mean average precision (mAP) and cumulative matching characteristic (CMC) accuracy for person, vehicle, and fish ReID following the respective benchmark protocols. For WildlifeReID-10k, we report mTop-1, mTop-5, and balanced accuracy on known samples (BAKS) under the official closed-set protocol (Adam et al., 2025). mTop-1 and mTop-5 are the unweighted means of the image-level top-1 and top-5 identification accuracies across source datasets, respectively. BAKS averages per-identity top-1 accuracy equally over known identities within each source dataset and then equally across source datasets. 4.2 Evaluation on WildlifeReID-10k Table 1(a) compares FM-ReID with the published WildlifeReID-10k baselines and our TransReID and CLIP-ReID runs. FM-ReID achieves 85.03% mTop-1, 92.07% mTop-5, and 83.33% BAKS, leading the listed methods on all three metrics. Compared with Swin-Base, the strongest official baseline, it improves mTop-1 and BAKS by 3.53 and 4.23 percentage points, respectively. 4.3 Evaluation on Person ReID Benchmarks Table 2 compares FM-ReID with representative CNN- and Transformer-based methods on four person ReID benchmarks. FM-ReID achieves the highest mAP among the listed methods on MSMT17, DukeMTMC-reID, and Occluded-Duke. On MSMT17, it obtains 79.8% mAP and 91.3% Rank-1, exceeding EvoPrompt-ReID by 2.7 and 1.0 percentage points, respectively. It also achieves competitive results of 92.3% mAP and 96.1% Rank-1 on Market-1501, and reaches 85.0% mAP and 92.2% Rank-1 on DukeMTMC-reID. 6 FM-ReID: Selective Competitive Token RoutingA PREPRINT Table 2: Comparison with selected published methods on MSMT17, Market-1501, DukeMTMC-reID, and Occ-Duke. Bold indicates the best result among the listed methods. MethodReferenceBackbone MSMT17Market-1501DukeMTMCOcc-Duke mAPR1mAPR1mAPR1mAPR1 PCB Sun et al. (2018)ECCV18 CNN 40.468.281.693.869.283.3-- OSNet Zhou et al. (2019)ICCV1952.978.784.994.873.588.6-- Fast-ReID He et al. (2023)M2359.983.3--78.989.6-- TransReID He et al. (2021)ICCV21 ViT 67.485.388.995.282.090.759.266.4 DCAL Zhu et al. (2022b)CVPR2264.083.187.594.780.189.0-- DPM Tan et al. (2022)M22----82.691.061.871.4 CLIP-ReID Li et al. (2023)AAAI2373.488.789.695.583.190.859.567.1 TF-CLIP Yu et al. (2024)AAAI2473.988.590.495.7---- AAformer Zhu et al. (2024)TNNLS2458.284.488.095.480.990.1-- EvoPrompt-ReID He et al. (2026)CVPR2677.190.391.796.1---- FM-ReID (Ours)âViT79.891.392.396.185.092.265.572.6 Table 3: FM-FISH: (a) dataset statistics and (b) comparison results. MFT25 identity labels denote annotated tracks. Bold indicates the best result in each metric. (a) FM-FISH dataset statistics SourceIDsImages Self-collected361,205 FS-48 subset4822,692 AAUZebraFish5281 WhaleSharkID5197,305 MFT2511614,149 Total72445,632 (b) ReID results MethodReferencemAPR1R5R10 TransReIDICCV2143.253.765.871.8 CLIP-ReIDAAAI2341.455.267.572.8 FM-ReIDâ55.163.572.376.3 On Occluded-Duke, FM-ReID achieves 65.5% mAP and 72.6% Rank-1, improving over CLIP-ReID by 6.0 and 5.5 percentage points. These results demonstrate the frameworkâs effectiveness in both standard and occluded person retrieval. 4.4 Evaluation on Vehicle ReID Benchmarks As shown in Table 1(b), FM-ReID obtains 87.8% mAP and 98.3% Rank-1 on VeRi-776, improving mAP over EvoPrompt-ReID by 3.6 percentage points. On VehicleID, it reaches 87.4% Rank-1 and 98.6% Rank-5, exceeding Fast-ReID by 0.8 and 0.7 points, respectively. FM-ReID leads the listed methods on both vehicle benchmarks. 4.5 Evaluation on FM-FISH Table 3(b) reports the results on FM-FISH. FM-ReID achieves 55.1% mAP and 63.5% Rank-1, outperforming TransReID by 11.9 and 9.8 percentage points, and CLIP-ReID by 13.7 and 8.3 points, respectively. The gains across all reported metrics support its effectiveness for fine-grained fish identity matching. 4.6 Ablation Studies Table 4 evaluates the contributions of holistic aggregation and fine-grained mining. Adding GAP to CLS improves WildlifeReID-10k mTop-1 by 0.99 points and MSMT17 mAP by 1.3 points. Full CFM further improves these metrics by 0.75 and 2.3 points over CLS+GAP. Retaining the residual query adds 0.49 points in WildlifeReID-10k mTop-1 and 0.1 points in MSMT17 mAP, supporting its role in competitive aggregation. Number of mining queries.Figure 4 evaluates the effect ofK. On WildlifeReID-10k, performance improves from K = 1toK = 5, where mTop-1 and BAKS reach 85.03% and 83.33%, respectively. On MSMT17, mAP rises from 78.2% atK = 1to 79.8% atK = 5and remains between 79.5% and 80.0% for largerK. The defaultK = 5is within 7 FM-ReID: Selective Competitive Token RoutingA PREPRINT Table 4: Component ablation on WildlifeReID-10k and MSMT17. Mining and Residual denote the mining queries and auxiliary residual query. Within each benchmark, all variants use DINOv3-B/16, the same training recipe, and seed 1234; CFM variants retain the default fusion and diversity objectives. Bold indicates the best result in each metric. Backbone HolisticCFMWildlifeReID-10kMSMT17 CLSGAPMiningResidualmTop-1mTop-5BAKSmAPR1 DINOv3-B/16 â83.2991.4481.4676.189.6 â84.2891.5682.4177.490.5 â84.5492.0182.9079.691.4 â85.0392.0783.3379.791.4 1357912 82 82.5 83 83.5 84 Mining queries (K) BAKSmTop-1 84 84.5 85 85.5 (a) WildlifeReID-10k 13579111316 78 79 80 Mining queries (K) mAPRank-1 90 91 92 (b) MSMT17 Figure 4: Sensitivity to the number of mining queriesK: (a) WildlifeReID-10k, with BAKS/mTop-1 on the left/right axes; (b) MSMT17, with mAP/Rank-1 on the left/right axes. Dotted lines markK = 5; the residual query is retained and excluded fromK. All runs use epoch-120 checkpoints and seed 1234. Panel (a) retains the full-model result at K = 5, while (b) uses independent sweep runs for every K. 0.2 points of the best mAP and 0.5 points of the best Rank-1 result on MSMT17, providing a compact choice with competitive performance. 4.7 Efficiency Table 5 compares inference-model parameters, FLOPs, and peak GPU memory. Adding GAP to the CLS baseline introduces 1.18M parameters and 4.5 MiB of peak memory, with unchanged FLOPs at the reported precision. Relative to Baseline + GAP, FM-ReID increases FLOPs by only 1.41%, with parameter and peak-memory increases of 9.66% and 9.28%, respectively. TransReID uses its checkpoint-specific patch stride of 12, while all other methods use 16; its higher FLOPs also reflect the longer token sequence. 4.8 Qualitative Visualization Figure 5 shows the spatial weighting patterns of the holistic representation and individual miners. In these two examples, Miner 3 concentrates on the ear region, while Miners 2 and 5 show more distributed responses over the body and its surroundings. Miner 1 places greater emphasis on surrounding structures. These examples illustrate query-dependent aggregation of patch information from localized regions, broader body areas, and contextual regions alongside the holistic representation. We combine these additional miner features with the holistic representation to enhance inter-identity separability in the fused feature space and support more accurate re-identification. 5 Conclusion We presented FM-ReID, an object ReID framework that extracts additional identity evidence from dense DINOv3 tokens through selective competition. Its CFM module combines mining queries, a residual query, and above-prior selection, allowing unclaimed evidence and unequal support sizes. The resulting features augment a holistic representation. FM-ReID exceeds the closed-set baselines reported by the WildlifeReID-10k benchmark paper, and within-backbone ablations evaluate its contribution beyond holistic pooling. Separate supervised experiments on animal, person, and 8 FM-ReID: Selective Competitive Token RoutingA PREPRINT Table 5: Inference cost at256Ă 128, FP32, and batch size 1 on an RTX 5080. Baseline uses DINOv3 with CLS pooling; parentheses indicate increases over Baseline + GAP. MethodParameters (M)GFLOPsPeak memory (MiB) TransReID92.9240.77371.5 CLIP-ReID86.1422.78346.1 Baseline85.6623.40341.5 Baseline + GAP86.8423.40346.0 FM-ReID(+9.66%) 95.23(+1.41%) 23.73(+9.28%) 378.1 OriginalHolisticMiner 1Miner 2Miner 3Miner 4Miner 5 ID 01 ID 03 Figure 5: Qualitative visualization on two panda identities. From left to right: input images, holistic responses, and five miner attention maps. Holistic responses use featureâpatch cosine similarity, while miner maps show token aggregation weights. Each map is independently minâmax normalized for display; colors indicate relative responses within each map. vehicle benchmarks support the architectureâs cross-category applicability. Transfer to unseen object categories remains unevaluated. References Vojtech CermĂĄk, LukĂĄs Picek, LukĂĄs Adam, and Kostas Papafitsoros. Wildlifedatasets: An open-source toolkit for animal re-identification. In IEEE/CVF Winter Conference on Applications of Computer Vision, WACV 2024, Waikoloa, HI, USA, January 3-8, 2024, pages 5941â5951. IEEE, 2024. doi: 10.1109/WACV57701.2024.00585. URL https://doi.org/10.1109/WACV57701.2024.00585. LukĂĄs Adam, Vojtech CermĂĄk, Kostas Papafitsoros, and LukĂĄs Picek. Wildlifereid-10k: Wildlife re-identification dataset with 10k individual animals. In IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, CVPR Workshops 2025, Nashville, TN, USA, June 11-15, 2025, pages 2099â2109. Computer Vision Foundation / IEEE, 2025. URLhttps://openaccess.thecvf.com/content/CVPR2025W/FGVC/html/Adam_ WildlifeReID-10k_Wildlife_re-identification_dataset_with_10k_individual_animals_CVPRW_ 2025_paper.html. Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling (and A strong convolutional baseline). In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss, editors, Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, September 8-14, 2018, Proceedings, Part IV, volume 11208 of Lecture Notes in Computer Science, pages 501â518. Springer, 2018. doi: 10.1007/978-3-030-01225-0\_30. URL https://doi.org/10.1007/978-3-030-01225-0_30. Guanshuo Wang, Yufeng Yuan, Xiong Chen, Jiwei Li, and Xi Zhou. Learning discriminative features with multiple granularities for person re-identification. In Susanne Boll, Kyoung Mu Lee, Jiebo Luo, Wenwu Zhu, Hyeran Byun, Chang Wen Chen, Rainer Lienhart, and Tao Mei, editors, 2018 ACM Multimedia Conference on Multimedia Conference, M 2018, Seoul, Republic of Korea, October 22-26, 2018, pages 274â282. ACM, 2018. doi: 10.1145/ 3240508.3240552. URL https://doi.org/10.1145/3240508.3240552. Shuting He, Hao Luo, Pichao Wang, Fan Wang, Hao Li, and Wei Jiang. Transreid: Transformer-based object re-identification. In 2021 IEEE/CVF International Conference on Computer Vision, ICCV 2021, Montreal, QC, 9 FM-ReID: Selective Competitive Token RoutingA PREPRINT Canada, October 10-17, 2021, pages 14993â15002. IEEE, 2021. doi: 10.1109/ICCV48922.2021.01474. URL https://doi.org/10.1109/ICCV48922.2021.01474. Yulin Li, Jianfeng He, Tianzhu Zhang, Xiang Liu, Yongdong Zhang, and Feng Wu.Diverse part discovery:Occluded person re-identification with part-aware transformer.In IEEE Con- ference on Computer Vision and Pattern Recognition,CVPR 2021,virtual,June 19-25,2021, pages 2898â2907. Computer Vision Foundation / IEEE, 2021.doi:10.1109/CVPR46437.2021. 00292. URLhttps://openaccess.thecvf.com/content/CVPR2021/html/Li_Diverse_Part_Discovery_ Occluded_Person_Re-Identification_With_Part-Aware_Transformer_CVPR_2021_paper.html. Kuan Zhu, Haiyun Guo, Shiliang Zhang, Yaowei Wang, Jing Liu, Jinqiao Wang, and Ming Tang. Aaformer: Auto- aligned transformer for person re-identification. IEEE Trans. Neural Networks Learn. Syst., 35(12):17307â17317, 2024. doi: 10.1109/TNNLS.2023.3301856. URL https://doi.org/10.1109/TNNLS.2023.3301856. Mathilde Caron, Hugo Touvron, Ishan Misra, HervĂ© JĂ©gou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In 2021 IEEE/CVF International Conference on Computer Vision, ICCV 2021, Montreal, QC, Canada, October 10-17, 2021, pages 9630â9640. IEEE, 2021. doi: 10.1109/ICCV48922.2021.00951. URL https://doi.org/10.1109/ICCV48922.2021.00951. Maxime Oquab, TimothĂ©e Darcet, ThĂ©o Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mido Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, HervĂ© JĂ©gou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. Dinov2: Learning robust visual features without supervision. Trans. Mach. Learn. Res., 2024, 2024. URL https://openreview.net/forum?id=a68SUt6zFt. Oriane SimĂ©oni, Huy V. Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seung Eun Yi, MichaĂ«l Ramamonjisoa, Francisco Massa, Daniel Haziza, Luca Wehrstedt, Jianyuan Wang, TimothĂ©e Darcet, ThĂ©o Moutakanni, Leonel Sentana, Claire Roberts, Andrea Vedaldi, Jamie Tolan, John Brandt, Camille Couprie, Julien Mairal, HervĂ© JĂ©gou, Patrick Labatut, and Piotr Bojanowski. Dinov3. CoRR, abs/2508.10104, 2025. doi: 10.48550/ARXIV.2508.10104. URL https://doi.org/10.48550/arXiv.2508.10104. EugĂȘnio Dias Ribeiro Neto, Marc Chaumont, GĂ©rard Subsol, Michel de Garine-Wichatitsky, and HĂ©lĂšne Guis. An improved architecture for part-based animal re-identification through semantic segmentation distillation. In 2026 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 5280â5289, 2026. doi: 10.1109/ WACV61042.2026.00512. Zixuan Huang and Yin Li. Interpretable and accurate fine-grained recognition via region grouping. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8659â8669, 2020. doi: 10.1109/CVPR42600. 2020.00869. Xiaowei Zhou, Jie Yin, Ivor W. Tsang, and Chen Wang. Human-understandable decision making for visual recognition. In Kamal Karlapalem, Hong Cheng, Naren Ramakrishnan, R. K. Agrawal, P. Krishna Reddy, Jaideep Srivastava, and Tanmoy Chakraborty, editors, Advances in Knowledge Discovery and Data Mining - 25th Pacific-Asia Conference, PAKDD 2021, Virtual Event, May 11-14, 2021, Proceedings, Part I, volume 12714 of Lecture Notes in Computer Science, pages 168â180. Springer, 2021. doi: 10.1007/978-3-030-75768-7\_14. URLhttps://doi.org/10. 1007/978-3-030-75768-7_14. Shenqi Lai, Zhenhua Chai, and Xiaolin Wei. Transformer meets part model: Adaptive part division for person re- identification. In IEEE/CVF International Conference on Computer Vision Workshops, ICCVW 2021, Montreal, QC, Canada, October 11-17, 2021, pages 4133â4140. IEEE, 2021. doi: 10.1109/ICCVW54120.2021.00461. URL https://doi.org/10.1109/ICCVW54120.2021.00461. Mengxi Jia, Xinhua Cheng, Shijian Lu, and Jian Zhang. Learning disentangled representation implicitly via transformer for occluded person re-identification. IEEE Transactions on Multimedia, 25:1294â1305, 2023. doi: 10.1109/TMM. 2022.3141267. Francesco Locatello, Dirk Weissenborn, Thomas Unterthiner, Aravindh Mahendran, Georg Heigold, Jakob Uszko- reit, Alexey Dosovitskiy, and Thomas Kipf. Object-centric learning with slot attention. In Hugo Larochelle, MarcâAurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URLhttps://proceedings.neurips.c/paper/2020/hash/ 8511df98c02ab60aea1b2356c013bc0f-Abstract.html. Siyuan Li, Li Sun, and Qingli Li. Clip-reid: Exploiting vision-language model for image re-identification without concrete text labels. In Brian Williams, Yiling Chen, and Jennifer Neville, editors, Thirty-Seventh AAAI Conference on Artificial Intelligence, AAAI 2023, Thirty-Fifth Conference on Innovative Applications of Artificial Intelligence, IAAI 2023, Thirteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2023, Washington, 10 FM-ReID: Selective Competitive Token RoutingA PREPRINT DC, USA, February 7-14, 2023, pages 1405â1413. AAAI Press, 2023. doi: 10.1609/AAAI.V37I1.25225. URL https://doi.org/10.1609/aaai.v37i1.25225. Chenyang Yu, Xuehu Liu, Yingquan Wang, Pingping Zhang, and Huchuan Lu. TF-CLIP: learning text-free CLIP for video-based person re-identification. In Michael J. Wooldridge, Jennifer G. Dy, and Sriraam Natarajan, editors, Thirty- Eighth AAAI Conference on Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2014, February 20-27, 2024, Vancouver, Canada, pages 6764â6772. AAAI Press, 2024. doi: 10.1609/AAAI.V38I7. 28500. URL https://doi.org/10.1609/aaai.v38i7.28500. Chenyang Yu, Xuehu Liu, Jiawen Zhu, Yuhao Wang, Pingping Zhang, and Huchuan Lu. Climb-reid: A hybrid clip-mamba framework for person re-identification. In Toby Walsh, Julie Shah, and Zico Kolter, editors, AAAI- 25, Sponsored by the Association for the Advancement of Artificial Intelligence, February 25 - March 4, 2025, Philadelphia, PA, USA, pages 9589â9597. AAAI Press, 2025. doi: 10.1609/AAAI.V39I9.33039. URLhttps: //doi.org/10.1609/aaai.v39i9.33039. Yuanlin He, Zhenchuan Wang, Jun Chen, Yingying He, Jiabao Wang, Weiwen Wang, Kun Xu, Zijin Zhou, Xiaoxiao Wang, Mingju Chen, Tingting Liu, and Zhisong Pan. Evoprompt-reid: A bilevel optimization framework for prompt-encoder co-evolution in image re-identification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings, pages 6758â6767, June 2026. Dengpan Fu, Dongdong Chen, Jianmin Bao, Hao Yang, Lu Yuan, Lei Zhang, Houqiang Li, and Dong Chen. Unsuper- vised pre-training for person re-identification. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2021, virtual, June 19-25, 2021, pages 14750â14759. Computer Vision Foundation / IEEE, 2021. doi: 10.1109/CVPR46437.2021.01451. URLhttps://openaccess.thecvf.com/content/CVPR2021/html/Fu_ Unsupervised_Pre-Training_for_Person_Re-Identification_CVPR_2021_paper.html. Kuan Zhu, Haiyun Guo, Tianyi Yan, Yousong Zhu, Jinqiao Wang, and Ming Tang. PASS: part-aware self-supervised pre- training for person re-identification. In Shai Avidan, Gabriel J. Brostow, Moustapha CissĂ©, Giovanni Maria Farinella, and Tal Hassner, editors, Computer Vision - ECCV 2022 - 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XIV, volume 13674 of Lecture Notes in Computer Science, pages 198â214. Springer, 2022a. doi: 10.1007/978-3-031-19781-9\_12. URL https://doi.org/10.1007/978-3-031-19781-9_12. 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 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2023, Vancouver, BC, Canada, June 17-24, 2023, pages 15050â 15061. IEEE, 2023. doi: 10.1109/CVPR52729.2023.01445. URLhttps://doi.org/10.1109/CVPR52729.2023. 01445. TimothĂ©e Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id=2dnO3LLiJ1. Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In 2015 IEEE International Conference on Computer Vision (ICCV), pages 1116â1124, 2015. doi: 10.1109/ICCV.2015.133. Longhui Wei, Shiliang Zhang, Wen Gao, and Qi Tian. Person transfer GAN to bridge domain gap for person re- identification. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 79â88. Computer Vision Foundation / IEEE Computer Society, 2018. doi: 10.1109/CVPR.2018.00016. URLhttp://openaccess.thecvf.com/content_cvpr_2018/html/Wei_ Person_Transfer_GAN_CVPR_2018_paper.html. Ergys Ristani, Francesco Solera, Roger S. Zou, Rita Cucchiara, and Carlo Tomasi. Performance measures and a data set for multi-target, multi-camera tracking. In Gang Hua and HervĂ© JĂ©gou, editors, Computer Vision - ECCV 2016 Workshops - Amsterdam, The Netherlands, October 8-10 and 15-16, 2016, Proceedings, Part I, volume 9914 of Lecture Notes in Computer Science, pages 17â35, 2016. doi: 10.1007/978-3-319-48881-3\_2. URL https://doi.org/10.1007/978-3-319-48881-3_2. Jiaxu Miao, Yu Wu, Ping Liu, Yuhang Ding, and Yi Yang. Pose-guided feature alignment for occluded person re-identification. In 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, pages 542â551. IEEE, 2019. doi: 10.1109/ICCV.2019.00063. URL https://doi.org/10.1109/ICCV.2019.00063. Xinchen Liu, Wu Liu, Huadong Ma, and Huiyuan Fu. Large-scale vehicle re-identification in urban surveillance videos. In IEEE International Conference on Multimedia and Expo, ICME 2016, Seattle, WA, USA, July 11-15, 2016, pages 1â6. IEEE Computer Society, 2016a. doi: 10.1109/ICME.2016.7553002. URLhttps://doi.org/10.1109/ICME. 2016.7553002. 11 FM-ReID: Selective Competitive Token RoutingA PREPRINT Hongye Liu, Yonghong Tian, Yaowei Wang, Lu Pang, and Tiejun Huang. Deep relative distance learning: Tell the difference between similar vehicles. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 2167â2175. IEEE Computer Society, 2016b. doi: 10.1109/CVPR.2016.238. URL https://doi.org/10.1109/CVPR.2016.238. Kaiyang Zhou, Yongxin Yang, Andrea Cavallaro, and Tao Xiang. Omni-scale feature learning for person re-identification. In 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, pages 3701â3711. IEEE, 2019. doi: 10.1109/ICCV.2019.00380. URLhttps://doi.org/10. 1109/ICCV.2019.00380. Lingxiao He, Xingyu Liao, Wu Liu, Xinchen Liu, Peng Cheng, and Tao Mei. Fastreid: A pytorch toolbox for general instance re-identification. In Abdulmotaleb El-Saddik, Tao Mei, Rita Cucchiara, Marco Bertini, Diana Patricia Tobon Vallejo, Pradeep K. Atrey, and M. Shamim Hossain, editors, Proceedings of the 31st ACM International Conference on Multimedia, M 2023, Ottawa, ON, Canada, 29 October 2023- 3 November 2023, pages 9664â9667. ACM, 2023. doi: 10.1145/3581783.3613460. URL https://doi.org/10.1145/3581783.3613460. Haowei Zhu, Wenjing Ke, Dong Li, Ji Liu, Lu Tian, and Yi Shan. Dual cross-attention learning for fine-grained visual categorization and object re-identification. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 4682â4692. IEEE, 2022b. doi: 10.1109/CVPR52688. 2022.00465. URL https://doi.org/10.1109/CVPR52688.2022.00465. Lei Tan, Pingyang Dai, Rongrong Ji, and Yongjian Wu. Dynamic prototype mask for occluded person re-identification. In JoĂŁo MagalhĂŁes, Alberto Del Bimbo, Shinâichi Satoh, Nicu Sebe, Xavier Alameda-Pineda, Qin Jin, Vincent Oria, and Laura Toni, editors, M â22: The 30th ACM International Conference on Multimedia, Lisboa, Portugal, October 10 - 14, 2022, pages 531â540. ACM, 2022. doi: 10.1145/3503161.3547764. URLhttps://doi.org/10.1145/ 3503161.3547764. 12