Research
One-Shot Knowledge Transfer for Scalable Person Re-Identification
Overview Research area: Computer vision, specifically person re-identification (ReID), with a focus on knowledge transfer, model compression, and edge deployment. Technical level: Advanced. The paper
- arXiv
- 2511.06016
- Published
- 2025-11-08
- Authors
- Longhua Li, Lei Qi, Xin Geng
AI summary
Overview
Research area: Computer vision, specifically person re-identification (ReID), with a focus on knowledge transfer, model compression, and edge deployment.
Technical level: Advanced. The paper assumes familiarity with convolutional and transformer architectures, normalization layers, clustering, knowledge distillation, and pruning.
One-sentence scope: The paper proposes OSKT, a method that distills a trained teacher ReID model into a compact intermediate "weight chain" in a single pass, from which student models of any width between the weight chain and the teacher can be generated instantly without further training.
What This Paper Is About
Person ReID models are accurate but heavy, so deploying them on edge devices under different resource budgets usually means compressing the teacher separately for each target model size, which is repetitive and expensive. OSKT instead performs one computation that refines the teacher's knowledge into a "weight chain" — an intermediate carrier that keeps the teacher's depth but a much smaller width — and then expands that chain to any required size without additional computation. The goal is a family of resource-adaptive ReID models obtained from a single training run.
Key Contributions
- The authors state they are the first to propose a one-shot computation-based method for generating scalable person ReID models, adaptable to varying resource scenarios.
- The method is designed to be seamlessly integrated with general model architectures (both CNNs and ViTs) and is reported to produce highly accurate models that outperform traditional knowledge transfer methods.
- It introduces the weight chain as a knowledge carrier, formed by clustering the teacher's weight rows for initialization and then progressively refining the chain by jointly training the teacher model and the smallest student model.
- Extensive experiments across single-scenario and cross-scenario transfer, few-shot settings, and lightweight ReID architectures (OSNet and MSINet) are reported as evidence of robustness.
Main Findings
- Single-scenario transfer on Market1501 (ResNet50 teacher): OSKT reaches 75.7 mAP / 89.4 Rank-1 on Res-50-S1, versus 61.3 / 80.7 for DepGraph, 48.5 / 72.3 for WTSel, 41.5 / 65.7 for KD++, and 30.6 / 53.3 from scratch. On Res-50-S5, OSKT obtains 87.6 / 94.5, compared with DepGraph 86.3 / 94.3.
- ViT teachers on Market-1501 (mAP/Rank-1): OSKT yields 74.2 / 87.1 on ViT-S-S1 (DepGraph 56.5 / 74.1, Scratch 13.9 / 23.9) and 81.6 / 91.9 on ViT-B-S1 (DepGraph 15.3 / 30.1). On ViT-B-S2, OSKT reaches 82.9 / 92.4 versus DepGraph 81.5 / 91.7.
- Cross-scenario transfer with ResNet50: In MS→C, OSKT reaches 45.7 / 47.3 on Res-50-S1 against DepGraph's 31.3 / 31.7; in M→C, OSKT reaches 44.6 / 47.4 against DepGraph's 23.4 / 22.7. The paper notes the advantage grows as student model size decreases.
- Cross-scenario transfer with ViT: In MS→C, OSKT reaches 61.2 / 63.5 on ViT-S-S1 versus DepGraph 46.7 / 47.9 and WTSel 1.6 / 0.9. In M→C, ViT-B-S1 reaches 59.4 / 61.7 with OSKT versus 6.2 / 5.2 with DepGraph.
- Knowledge transfer cost: In Table 3, OSKT needs 100·m transfer epochs (m = 3 weight chains) while KD++ needs 200·k and DepGraph 100·k (k = number of student models); fine-tuning epochs are 100·k for all. In Table 5 (ViTs, m = 1), OSKT uses 120·m transfer epochs against 120·k for KD++ and DepGraph, with 120·k fine-tuning epochs throughout.
- Convergence speed: Validation mAP curves over the first 100 downstream epochs show OSKT consistently surpassing other approaches.
- Few-shot robustness: Evaluated at 10%, 30%, and 50% of downstream IDs, with five random samplings of IDs per setting.
- Lightweight architectures (pre-trained on MSMT17): With OSNet at width multiplier 0.25 (0.15M params), OSKT scores 81.8 / 92.5 on Market1501 versus Pretrain 80.0 / 91.6 and Scratch 78.3 / 90.7. With MSINet at 0.5 (0.63M params), OSKT reaches 87.9 / 95.0 on Market1501 and 72.8 / 75.6 on CUHK03.
- Ablation highlights: Replacing the teacher's weights with random initialization (a) drops Res-50-S1 to 54.7 / 76.5 on Market1501. Removing progressive refinement (e) drops ViT-S-S1 to 56.6 / 75.8. Reversing the distance metric between ResNet50 and ViT settings (d) drops ViT-S-S1 to 64.9 / 82.1.
- Scalability: The paper considers student parameter counts spanning 1/64 of the teacher up to the teacher's size, and shows that multiple weight chains can each cover a width range; for a span of inplanes in [8, 64] with s = 3 chains, solving a·x^s = b gives x = 2 and widths 8, 16, and 32.
- Feature-level evidence: T-SNE visualization for layer3.5.conv2 in ResNet50 shows weight rows in the same cluster and their refined counterparts activating similar features, and refined rows converting noisy activations into discriminative pedestrian information.
Methodology in Plain English
The authors first unify CNNs and ViTs by treating any weight unit that produces an output feature dimension as a "row" and any unit that consumes a feature dimension as a "column." In CNNs a convolutional filter is a row and a channel is a column; in ViTs a weight matrix row and column play the same roles. Normalization layers (BN in CNNs, LN in ViTs) each carry per-dimension affine parameters (gamma, beta).
Building on this abstraction, the weight chain keeps the same number of layers as the teacher but far fewer rows per layer. It is initialized by clustering the teacher's weight rows at each layer and using the cluster centers as the chain's rows; layers with residual connections are clustered together so the number of distinct feature dimensions aligns with the number of chain rows. Normalization affine weights are shared with the teacher, so one chain row can correspond to several (gamma, beta) pairs.
Refinement then trains two endpoint models at once: the teacher and the smallest student ("S-Student"), whose width matches the weight chain. The S-Student's gradients are backpropagated into the weight chain. A Mean Squared Error refining loss pulls each teacher row toward the chain row representing its cluster, while the teacher and S-Student are both trained with ID loss and hard triplet loss. The total loss is the sum of the teacher loss, the S-Student loss, and a weighted refining loss; for ViTs the weight alpha grows as iter/n_iter, while for CNNs it is fixed at 1. The intuition is that training the two ends of a bridge implicitly trains every intermediate student, "like lifting a string of beads by their ends."
To generate a student, the chain's refined rows are stacked proportionally to the number of corresponding teacher rows until the requested width is met, the corresponding columns in the next layer are summed to preserve the original function, and the (gamma, beta) pairs associated with each merged row are averaged. The paper describes this as an O(1) operation requiring no additional computation, after which the model can be deployed directly or fine-tuned.
Why This Matters
Impact on research: The work reframes model compression for ReID as a single knowledge-inheritance step rather than a per-size training problem. It offers an architecture-agnostic view (CNNs and ViTs handled through one row/column abstraction) and reports that weight-driven transfer can outperform distillation-based transfer on mainstream ReID benchmarks, which challenges the assumption that teacher guidance alone is the strongest transfer signal.
Real-world applications:
- Surveillance camera networks where different edge devices have different compute and memory budgets.
- Smart city systems that need privacy-preserving, on-device identity matching rather than sending footage to a central cloud.
- Any deployment pipeline that must serve one accuracy target across a fleet of heterogeneous hardware, from constrained sensors to more capable gate
Authors’ abstract
Edge computing in person re-identification (ReID) is crucial for reducing the load on central cloud servers and ensuring user privacy. Conventional compression methods for obtaining compact models require computations for each individual student model. When multiple models of varying sizes are needed to accommodate different resource conditions, this leads to repetitive and cumbersome computations. To address this challenge, we propose a novel knowledge inheritance approach named OSKT (One-Shot Knowledge Transfer), which consolidates the knowledge of the teacher model into an intermediate carrier called a weight chain. When a downstream scenario demands a model that meets specific resource constraints, this weight chain can be expanded to the target model size without additional computation. OSKT significantly outperforms state-of-the-art compression methods, with the added advantage of one-time knowledge transfer that eliminates the need for frequent computations for each target model.