FedKLPR: Federated KL Pruning for Re-ID
- FedKLPR is a personalized federated learning framework for unsupervised person re-identification that integrates KL-divergence regularization with adaptive pruning to mitigate statistical heterogeneity and communication overhead.
- It employs camera-aware proxy loss and parameter-wise sparse fusion, enabling each client to maintain a tailored, sparse model while aligning with a global feature distribution.
- Empirical results on eight benchmark datasets demonstrate up to a 38% reduction in communication cost with accuracy maintained within a 1% degradation, highlighting its practical efficiency.
FedKLPR is a personalized federated learning framework for unsupervised person re-identification that addresses two coupled constraints in practical federated Re-ID deployments: statistical heterogeneity across clients and substantial communication overhead from repeated transmission of large backbones such as ResNet-50 and ResNet-34. Its design combines KL-based distributional regularization, pruning-aware aggregation, parameter-wise sparse fusion, and dynamic pruning control. In experiments on eight benchmark datasets, it reduces communication cost by 33\%-38\% on ResNet-50 and 20\%-40\% on ResNet-34, while maintaining model accuracy within 1\% degradation (Yu et al., 24 Aug 2025).
1. Problem setting and design objective
FedKLPR is formulated for unsupervised person Re-ID in a federated environment where each client corresponds to a different dataset and therefore a different domain. The target application is decentralized surveillance or public-safety infrastructure in which data remain local, but a shared model is still desirable. In this setting, each client exhibits a distinct combination of camera layout, background, illumination, identity population, and dataset scale. The resulting non-IID regime is described through label skew, feature skew, and quantity skew.
Two difficulties motivate the method. The first is statistical heterogeneity: local optimization on one client can induce divergent updates, unstable global convergence, model drift, and poor performance on smaller or more difficult datasets. The second is communication overhead: standard federated training transmits dense deep models in every round, which is costly for bandwidth-constrained edge deployments.
The personalization objective in FedKLPR is not post-hoc fine-tuning of a single shared model. Rather, personalization is built into training through two mechanisms: local models are regularized toward a global feature distribution using KL divergence, and each client maintains its own pruning behavior and sparsity pattern. The framework therefore seeks a balance between distributional alignment and client-specific structural adaptation.
2. Local learning: camera-aware training and KL-divergence regularization
FedKLPR builds on FedCAPR, using its camera-aware proxy loss as the primary local task loss. For client , DBSCAN clustering and camera grouping produce a pseudo-labeled set
where is a pseudo identity label and is a camera-aware proxy label. A memory bank stores feature prototypes for each proxy and is updated by
The baseline local loss is
where emphasizes intra-camera discrimination, aligns identities across cameras, and mitigates cross-camera variance via camera-aware proxy selection. These terms are implemented as contrastive softmax losses over similarities 0.
FedKLPR adds KL-Divergence Regularization Loss (KLL) to this baseline. Let 1 denote the personalized model received at round 2, 3 the updated local model, and 4 a validation mini-batch. The KL term is
5
The local objective becomes
6
with 7.
This regularizer constrains the current local feature distribution relative to the previous personalized or global model. In the paper’s formulation, this is the mechanism by which local training incorporates new client-specific information without drifting arbitrarily far from the shared representation. The intended effect is mitigation of heterogeneity-induced instability in a distribution space rather than in raw parameter space (Yu et al., 24 Aug 2025).
3. Pruning-aware federated aggregation
FedKLPR introduces four named components, each tied to a distinct failure mode of standard federated optimization.
| Component | Function | Core mechanism |
|---|---|---|
| KLL | Distributional alignment | KL regularization between current and previous personalized models |
| KLPWA | Server aggregation | Combines KL-based weights and pruning-ratio weights |
| SAS | Sparse model fusion | Excludes zero-valued weights from averaging |
| CRR | Dynamic compression control | Halts or rolls back pruning when accuracy conditions fail |
The server-side aggregation starts from
8
but the weights 9 are not based on dataset size alone.
The first weighting term is the KL-Divergence-aggregation Weight (KLAW). After local training, client 0 computes
1
and then
2
The interpretation given in the method description is that larger KL change indicates that the client has acquired more new information and should therefore have greater influence on the global update.
The second weighting term is the Pruning-ratio-aggregation Weight (PRAW). If 3 is the pruning ratio of client 4, then
5
Squaring 6 emphasizes heavily pruned clients, which the method treats as more structurally aligned with the target sparse global model.
These are combined in KL-Divergence-Prune Weighted Aggregation (KLPWA): 7 Thus,
8
A second aggregation issue arises because different clients prune different coordinates. Sparse Activation Skipping (SAS) addresses this by excluding zero-valued parameters from averaging. For parameter index 9, let 0. The aggregated parameter is
1
Zeros therefore do not dilute informative nonzero values. In the terminology of the method description, KLPWA determines which clients matter more, while SAS determines where a client is allowed to contribute (Yu et al., 24 Aug 2025).
4. Adaptive pruning and round structure
FedKLPR uses unstructured weight pruning. Sparsity is imposed at the scalar-parameter level rather than through channel or filter removal, and each client maintains its own pruning mask. The stated target is approximately 70\% sparsity, with clients attempting to remove up to 9\% of remaining parameters per round.
Pruning is controlled by Cross-Round Recovery (CRR), a two-stage verification mechanism based on local validation accuracy. Let 2 denote the accuracy after local training but before pruning in round 3, and 4 the accuracy after pruning. Let 5 be a minimum accuracy threshold, 6 a cross-round stability margin, and 7 a maximum within-round accuracy drop.
In the first stage, pruning is allowed only if
8
and
9
The first condition requires that the model be strong enough to prune; the second requires that its performance be sufficiently stable across rounds.
In the second stage, pruning is retained only if
0
If the drop is too large, pruning is rolled back or postponed.
The federated training protocol uses 20 global rounds and 5 local epochs per round, with Adam at learning rate 1. In each round, the server broadcasts the current global model, clients run local unsupervised Re-ID training with KLL, apply CRR-governed pruning, compute 2 and 3, and return sparse local models together with pruning masks and aggregation statistics. The server then applies KLPWA and SAS to form the next global model. The experiments use ResNet-50 and ResNet-34, both pre-trained on ImageNet (Yu et al., 24 Aug 2025).
5. Empirical evaluation
The evaluation treats eight datasets as eight federated clients. The large-scale clients are DukeMTMC-reID with 702 train IDs and 8 cameras, and Market-1501 with 751 train IDs and 6 cameras. The smaller two-camera clients are iLIDS-VID, CUHK03, PRID2011, VIPeR, CUHK01, and 3DPeS. Performance is reported with Rank-1 and mAP.
Against earlier federated Re-ID baselines such as FedUReID, FedUCC, FedUCC+, FedUCA, and FedCAPR, the non-pruning variant using KLL + KLAW already yields strong accuracy. Relative to older federated Re-ID baselines, the reported gains include more than 38\% Rank-1 improvement on CUHK03, as well as +5.5\% on PRID2011 and +9\% on CUHK01 over non-FedCAPR baselines. Relative to FedCAPR, the method is described as broadly comparable overall, with a notable improvement on VIPeR, where Rank-1 changes from 63.0\% to 69.6\% and mAP from 70.3\% to 77.3\%.
The pruning results are the distinguishing empirical claim. For ResNet-50, FedKLPR reduces total communication cost over 20 rounds to roughly 2.16–2.46 GB, compared with the FedCAPR baseline at approximately 3.42 GB, corresponding to the stated 33–38\% reduction. For ResNet-34, communication is reduced from approximately 3.09 GB to 2.08–2.59 GB, corresponding to 20–40\% reduction. The pruning ratios typically lie around 61–68\% sparsity for ResNet-50 and around 60–70\% sparsity for ResNet-34.
Accuracy retention is reported as strong on large clients and often favorable on smaller ones. Relative to non-pruned FedCAPR, the pruned ResNet-50 variant maintains Rank-1 and mAP within 4 on Duke, Market, and iLIDS, while improving smaller datasets such as CUHK03 from 68.43 to 70.57 in Rank-1, PRID2011 from 82.00 to 84.00, and VIPeR from 62.97 to 67.41. For ResNet-34, the reported improvements over pruning baselines such as SubFedAvg and FedDIP include iLIDS: 84.69\%, CUHK03: 62.93\%, and VIPeR: 60.76\%.
The ablation study isolates the contribution of each component. KLL + KLAW improves accuracy even without pruning. Adding plain pruning alone causes substantial drops on small datasets. Adding PRAW + CRR or SAS + CRR mitigates those drops. The full combination KLL + KLAW + P + PRAW + SAS + CRR achieves about 70\% pruning ratio on most clients and improves Rank-1 over unstructured pruning alone by +6.1\% on iLIDS, +6.7\% on VIPeR, and +6.1\% on 3DPeS (Yu et al., 24 Aug 2025).
6. Scope, nomenclature, and limitations
FedKLPR is specifically a method for unsupervised person Re-ID with KL-based personalization and adaptive pruning. It should not be conflated with several similarly named methods in other subfields. FedKL addresses federated reinforcement learning by penalizing KL divergence between local and global policies (Xie et al., 2022). A hybrid federated Kernel Regularized Least Squares scheme is implemented through FedCG rather than a method formally named FedKLPR (Damiani et al., 2024). KF-FedKL denotes Kalman Filter aided Federated Koopman Learning for nonlinear system linearization under partial observations (Chen et al., 7 Jul 2025). A separate source on medical federated learning explicitly states that the acronym “FedKLPR” does not appear in the text of the corresponding paper and is almost certainly a typo or variant referring to FedKPer (Fowler et al., 1 May 2026).
Within the Re-ID literature, FedKLPR is presented as the first method to explicitly integrate model pruning, KL regularization, and pruning-aware aggregation tailored to unsupervised Re-ID. Its direct predecessor is FedCAPR, from which it inherits the camera-aware contrastive training pipeline. The method’s personalization is representation-oriented rather than meta-learning-based: each client keeps a sparse local model and memory bank, while KLL keeps feature distributions aligned.
The principal limitations stated for the method are also specific. The experiments assume that all 8 clients participate in each round; partial participation and asynchronous FL are not analyzed. The pruning is unstructured, so hardware gains may require structured sparsity or dedicated sparse kernels. The evaluation is restricted to ResNet-50/34 and to the unsupervised Re-ID pipeline based on clustering and camera-aware proxies. Labeled settings and other tasks are not evaluated. The paper therefore supports a narrow but technically well-defined reading of FedKLPR: a communication-efficient personalized federated framework for unsupervised person re-identification, not a generic KL-regularized federated method across domains (Yu et al., 24 Aug 2025).