FedeKD: Energy-Based Gating for Robust Federated Knowledge Distillation under Heterogeneous Settings
Summary
This paper introduces FedeKD, a reliability-aware framework for federated knowledge distillation that uses an energy-based gating mechanism to mitigate negative transfer in heterogeneous settings. The authors demonstrate that weighting knowledge transfer based on sample-wise trust improves robustness and predictive performance without requiring public datasets.
View Cached Full Text
Cached at: 05/08/26, 07:58 AM
# FedeKD: Energy-Based Gating for Robust Federated Knowledge Distillation under Heterogeneous Settings
Source: [https://arxiv.org/html/2605.05553](https://arxiv.org/html/2605.05553)
Quang\-Huy Nguyen Department of Computer Science and Software Engineering Auburn University Auburn, AL 36849 hqn0001@auburn\.edu &Jiaqi Wang Department of Computer Science and Software Engineering Auburn University Auburn, AL 36849 jqwang@auburn\.edu &Wei\-Shinn Ku∗ Department of Computer Science and Software Engineering Auburn University Auburn, AL 36849 wzk0004@auburn\.edu
###### Abstract
Federated learning \(FL\) operates in heterogeneous environments, where variations in data distributions and asymmetric model design often result in negative transfer\. While federated knowledge distillation \(FKD\) avoids direct model parameter sharing, existing methods typically rely on public datasets or assume that transferred knowledge is uniformly reliable, which limits their robustness in practice\. This paper presentsFedeKD, a reliability\-aware FKD framework that makes sample\-wise trust estimation an explicit component of knowledge transfer, without relying on additional public data\. Each client maintains a high\-capacity private model for local learning and a lightweight shared proxy model for cross\-client knowledge exchange\. During training, proxy models are aggregated on the server to form a global proxy, which is then used to guide updates of the private models\. At the core ofFedeKDis an energy\-based gating mechanism that converts task\-specific private\-proxy disagreement into sample\-wise trust weights for backward distillation\. This mechanism enables sample\-wise weighting of knowledge transfer, where the proxy model contributes more to reliable samples while down\-weighting unreliable ones\. Extensive experiments on six real\-world datasets demonstrate thatFedeKDsignificantly reduces negative transfer under heterogeneous settings while maintaining strong predictive performance\.
## 1Introduction
Federated learning \(FL\) enables multiple clients to collaboratively train models without sharing raw data, making it well\-suited for privacy\-sensitive applications\. However, real\-world deployments involve significant heterogeneity in data distributions and model asymmetry, making reliable knowledge sharing challenging\. Canonical parameter aggregation methods, including FedAvgMcMahanet al\.\([2017](https://arxiv.org/html/2605.05553#bib.bib13)\)and FedProxLiet al\.\([2020](https://arxiv.org/html/2605.05553#bib.bib14)\), often suffer from degraded performance and unstable convergence under such heterogeneity\.
Federated knowledge distillation \(FKD\) offers an alternative by transferring knowledge through model outputs rather than parameters\. However, in heterogeneous settings, the quality of transferred knowledge can vary significantly across samples and clients\. This calls for treating knowledge reliability as a first\-class object in FKD, rather than assuming that all transferred signals should influence local learning equally\. Teacher models may produce misleading signals due to distribution shifts, limited local data, or architectural differences\. Blindly transferring such knowledge can lead to severe negative transfer \(i\.e\., performance degradation compared to local training\) across clients\. Existing FKD methods typically assume that transferred knowledge is uniformly reliable, overlooking the variability in knowledge quality across samples and clients\. This challenge mirrors human learning, where guidance becomes unreliable when a teacher’s expertise is misaligned with the learner’s context or when the guidance provides little actionable information\.
In this work, we seek to answer the fundamental question:when should a teacher model be trusted to guide knowledge transfer?Our key insight is inspired by a simple real\-world principle: a teacher does not treat all knowledge equally, but instead emphasizes the parts they understand best and are most confident in\. Building on this insight, we introduce aFederated learning framework withenergy\-gatedKnowledgeDistillation \(FedeKD\) to dynamically determine how much each proxy prediction should influence each private\-model update \(Figure[1](https://arxiv.org/html/2605.05553#S1.F1)\)\.FedeKDachieves robust knowledge transfer across heterogeneous clients and mitigates negative transfer through adaptive, sample\-wise weighting\.
Figure 1:Framework ofFedeKD\. Private Model denotes a higher\-capacity network for local learning, while Proxy Model is a lightweight network used for communication and aggregation across clients\. See Appendix[H](https://arxiv.org/html/2605.05553#A8)for details\.FedeKDoperates in two stages\. In theforwardstage, each client distills knowledge from its private model into a proxy model, which is aggregated on the server to form a global proxy\. In thebackwardstage, the global proxy guides updates of the private model through an energy\-gated mechanism\. This process enablessample\-wise trust\-weighted knowledge transfer, where the model relies more on the proxy when the transferred knowledge appears reliable and less when it appears unreliable\.
To sum up, the contributions of this work are twofold:
- •We introduce a reliability\-aware backward distillation objective that shifts the focus from how to exchange knowledge to how much each transferred signal should be trusted\. To support this objective without requiring public data, we designFedeKDwith an asymmetric private\-proxy architecture\. The objective is implemented via a batch\-normalized energy gate that maps task\-specific private\-proxy disagreement into continuous sample\-wise trust weights\. For classification, the energy uses entropy\-calibrated distributional disagreement; for regression, it uses continuous prediction disagreement\. This mechanism down\-weights unreliable knowledge while preserving informative signals, thereby mitigating negative transfer in heterogeneous FL environments\.
- •Extensive experiments on six real\-world datasets demonstrate thatFedeKDsignificantly improves both average\-case and worst\-case negative transfer while maintaining strong predictive performance\. Additional ablation studies show that the proposed gating mechanism remains effective across different heterogeneity levels and hyperparameter settings\.
## 2Related Works
##### Parameter aggregation methods\.
Parameter aggregation remains the dominant paradigm in FL, where a global model is obtained by aggregating locally trained client models\. FedAvgMcMahanet al\.\([2017](https://arxiv.org/html/2605.05553#bib.bib13)\)and FedProxLiet al\.\([2020](https://arxiv.org/html/2605.05553#bib.bib14)\)have demonstrated strong empirical performance under homogeneous settings\. FedDynDurmuset al\.\([2021](https://arxiv.org/html/2605.05553#bib.bib52)\)further improves robustness under heterogeneous data by introducing a dynamic regularization term that aligns local and global objectives during training\. These methods assume that all clients share a common model architecture and operate under relatively homogeneous data distributions, allowing model updates to be directly aggregated to improve global performance\. However, such assumptions are often violated in real\-world FL environments\. In heterogeneous settings, direct parameter aggregation often fails due to distribution mismatch across clients, leading to degraded convergence and suboptimal performance\. In addition, sharing model parameters may expose sensitive information about local data distributions, raising potential privacy concerns in FL settings\.
In contrast,FedeKDavoids direct aggregation of private model parameters and instead performs aggregation in the proxy space, using knowledge distillation as the primary mechanism for knowledge exchange\. This design reduces the exposure of private model parameters, thereby enhancing privacy preservation in federated settings\. Furthermore, instead of assuming uniform reliability across clients or samples,FedeKDapproximates the quality of transferred knowledge via task\-specific model disagreement, using entropy calibration for classification and continuous prediction disagreement for regression\.
##### Federated Knowledge Distillation and Heterogeneous FL\.
To address the limitations of parameter aggregation under heterogeneous settings, recent works have explored alternative communication paradigms based on knowledge distillation\. Instead of directly aggregating model parameters, these methods exchange auxiliary information such as logitsHuanget al\.\([2022](https://arxiv.org/html/2605.05553#bib.bib30)\), class scoresLi and Wang \([2019](https://arxiv.org/html/2605.05553#bib.bib41)\), or label\-wise representationsYiet al\.\([2023](https://arxiv.org/html/2605.05553#bib.bib33)\); Tanet al\.\([2022](https://arxiv.org/html/2605.05553#bib.bib42)\)to facilitate collaboration across heterogeneous models\. More recent approaches further extend this idea through techniques such as ensemble learningLinet al\.\([2020](https://arxiv.org/html/2605.05553#bib.bib43)\), mutual learningYuet al\.\([2022](https://arxiv.org/html/2605.05553#bib.bib45)\); Shenet al\.\([2023](https://arxiv.org/html/2605.05553#bib.bib46)\), or model reassemblyWanget al\.\([2023](https://arxiv.org/html/2605.05553#bib.bib44)\)\. While these methods improve flexibility in heterogeneous FL, they often rely on additional public datasets or shared data representations to stabilize training\. However, such reliance introduces two key limitations in practice\. \(1\) The availability and selection of suitable public data remain challenging in real\-world applications\. \(2\) Exchanging intermediate representations or model\-related information may expose sensitive information about local data distributions, raising privacy concerns\. Moreover, these approaches typically assume that transferred knowledge is uniformly reliable, overlooking the variability in knowledge quality across samples and clients\. In contrast,FedeKDdoes not require additional public data and restricts communication to lightweight proxy models\.
FedTypeWanget al\.\([2024](https://arxiv.org/html/2605.05553#bib.bib29)\)is the closest prior work, as it also considers asymmetrical reciprocity between small proxy models and large client models\. However,FedeKDdiffers from FedType in several key aspects\.First, the key methodological difference lies in how reliability is represented, optimized, and coupled to the private\-model update\. FedType relies on two conformal models to construct discrete, sample\-dependent uncertainty sets for the client and proxy models, whereasFedeKDreplaces set\-valued reliability filtering with a continuous training objective: task\-specific private\-proxy disagreement directly modulates the backward distillation loss through sample\-level trust weights \(Eq\.[3](https://arxiv.org/html/2605.05553#S3.E3)\)\. This formulation provides finer\-grained control over knowledge transfer at the sample level, allowing the model to smoothly down\-weight unreliable signals rather than relying on set\-based filtering\.Second, FedType’s specific conformal\-set reciprocity formulation is classification\-oriented, as it is defined over discrete label spaces\. In contrast,FedeKDdefines reliability directly on model outputs, enabling the same gating principle to apply to classification via distributional disagreement and to regression via continuous prediction disagreement\.
## 3FedeKD
### 3\.1Problem Setup
We consider a FL setting withKKclients\. Each clientkkhas access to a local dataset𝒟k=\{\(xi,yi\)\}\\mathcal\{D\}\_\{k\}=\\\{\(x\_\{i\},y\_\{i\}\)\\\}, which is not shared with other clients or the server\. The goal is to collaboratively improve local models while preserving data privacy under heterogeneous data distributions\. Each client maintains two models: a private modelfkf\_\{k\}for the primary learning task and a lightweight proxy modelgkg\_\{k\}for cross\-client knowledge exchange\. The proxy models share a common architecture across clients and are aggregated on the server, while private models remain local and are never shared\.
### 3\.2Overview ofFedeKD
At each communication round,FedeKDimplements three sequential stages: forward proxy distillation, proxy aggregation, and energy\-gated private\-model update\. In the forward stage, each client keeps its private model fixed and trains only the lightweight proxy model to mimic the current private model on local data\. The proxy models are then uploaded to the server and aggregated to form a global proxy model, which is broadcast back to all clients\. In the backward stage, each client updates its private model once using a combined objective consisting of the supervised loss and the energy\-gated backward distillation loss from the global proxy\. Algorithm[1](https://arxiv.org/html/2605.05553#alg1)summarizes one communication round\.
### 3\.3Forward Proxy Distillation
At the beginning of each communication round, each client keeps its private modelfkf\_\{k\}fixed and trains only the proxy modelgkg\_\{k\}on local data\. The proxy is trained to mimic the private model via forward knowledge distillation using a task\-specific distillation loss\. For classification, this corresponds to matching predictive distributions, while for regression, it reduces to matching continuous predictions\. This step enables the proxy model to capture task\-relevant knowledge from the private model while maintaining a shared representation space across clients\.
### 3\.4Proxy Aggregation
After local updates, each client uploads its proxy model to the server\. The server aggregates these proxy models to form a global proxy, which is then broadcast back to all clients\. Importantly, aggregation is performed only in the proxy space, avoiding direct sharing of private model parameters and thereby reducing the exposure of sensitive information\.
### 3\.5Energy\-Gated Backward Distillation
To transfer knowledge from the global proxy back to the private model,FedeKDintroduces a reliability\-aware backward distillation objective that operationalizes sample\-wise trust through energy\-based gating\. Given an inputxx, an energy scoreE\(x\)E\(x\)is computed to measure the disagreement between the private and proxy models, i\.e\.,E\(x\)=ℰ\(g\(x\),fk\(x\)\)E\(x\)=\\mathcal\{E\}\(g\(x\),f\_\{k\}\(x\)\), whereℰ\(⋅\)\\mathcal\{E\}\(\\cdot\)can be instantiated using various discrepancy measures\.
For classification, we adopt an entropy\-normalized symmetric KL divergence defined as
E\(x\)=12\(KL\(p∥q\)\+KL\(q∥p\)\)H\(p\)\+H\(q\)\+ϵH,E\(x\)=\\frac\{\\frac\{1\}\{2\}\\big\(\\mathrm\{KL\}\(p\\,\\\|\\,q\)\+\\mathrm\{KL\}\(q\\,\\\|\\,p\)\\big\)\}\{H\(p\)\+H\(q\)\+\\epsilon\_\{H\}\},\(1\)wherep=σ\(fk\(x\)\)p=\\sigma\(f\_\{k\}\(x\)\),q=σ\(g\(x\)\)q=\\sigma\(g\(x\)\),H\(⋅\)H\(\\cdot\)denotes entropy, andϵH=10−8\\epsilon\_\{H\}=10^\{\-8\}is a small numerical constant\. This formulation measures private\-proxy disagreement while calibrating its magnitude by the total predictive entropy of the two models\. For regression, we use squared error as a proxy for prediction disagreement, and the energy reduces to
E\(x\)=12‖fk\(x\)−g\(x\)‖22,E\(x\)=\\frac\{1\}\{2\}\\\|f\_\{k\}\(x\)\-g\(x\)\\\|\_\{2\}^\{2\},\(2\)which provides a continuous measure of point\-prediction disagreement\. For the scalar\-output regression tasks used in our experiments, this reduces to the squared difference between the private and proxy predictions\. Unlike the classification energy, this regression energy does not model predictive uncertainty; instead, it measures functional disagreement between the private and proxy predictions\.
##### Design rationale\.
The proposed classification energy function is based on a symmetric KL divergence normalized by the total entropy, as defined in Eq\. \([1](https://arxiv.org/html/2605.05553#S3.E1)\)\. This formulation has three key properties\. First, the symmetric KL divergence ensures that the disagreement measure is invariant to the ordering of the private and proxy models, i\.e\.,E\(p,q\)=E\(q,p\)E\(p,q\)=E\(q,p\)\. Second, entropy normalization makes the score a relative measure of disagreement rather than an absolute KL magnitude\. For a fixed symmetric KL value, the normalized energy is larger when the private and proxy predictions are sharp and low\-entropy, and smaller when their predictions are diffuse and high\-entropy\. Thus, the gate emphasizes confident contradictions between the private and proxy models, which are more likely to induce harmful transfer, while treating diffuse high\-entropy disagreements as less decisive\. Finally, the normalized form combines distributional mismatch with prediction specificity, enabling reliability\-aware weighting of transferred knowledge\.
The energy scores are then converted into sample\-wise trust weights within each minibatch\. For a minibatchB=\{xi\}i=1\|B\|B=\\\{x\_\{i\}\\\}\_\{i=1\}^\{\|B\|\}, letEi=E\(xi\)E\_\{i\}=E\(x\_\{i\}\),μB=\|B\|−1∑i=1\|B\|Ei\\mu\_\{B\}=\|B\|^\{\-1\}\\sum\_\{i=1\}^\{\|B\|\}E\_\{i\}, andsB=\(\|B\|−1∑i=1\|B\|\(Ei−μB\)2\)1/2s\_\{B\}=\(\|B\|^\{\-1\}\\sum\_\{i=1\}^\{\|B\|\}\(E\_\{i\}\-\\mu\_\{B\}\)^\{2\}\)^\{1/2\}\. We first form a batch\-normalized energy and then apply a logistic gate:
E~i=Ei−μBsB\+ϵB,wi=ρ\(−βE~i\),ρ\(t\)=11\+exp\(−t\),\\widetilde\{E\}\_\{i\}=\\frac\{E\_\{i\}\-\\mu\_\{B\}\}\{s\_\{B\}\+\\epsilon\_\{B\}\},\\qquad w\_\{i\}=\\rho\(\-\\beta\\widetilde\{E\}\_\{i\}\),\\qquad\\rho\(t\)=\\frac\{1\}\{1\+\\exp\(\-t\)\},\(3\)whereϵB=10−8\\epsilon\_\{B\}=10^\{\-8\}is a small numerical constant andβ\>0\\beta\>0controls the sharpness of the gate\. This gate makes reliability batch\-relative: a sample is trusted according to how safe its transfer signal appears compared with other samples in the same minibatch, rather than according to a fixed global threshold\.
The private model is updated using a weighted distillation objective defined as
ℒBKD=𝔼B∼𝒟k\[1\|B\|∑i=1\|B\|sg\(wi\)ℓKD\(xi\)\],\\mathcal\{L\}\_\{\\text\{BKD\}\}=\\mathbb\{E\}\_\{B\\sim\\mathcal\{D\}\_\{k\}\}\\left\[\\frac\{1\}\{\|B\|\}\\sum\_\{i=1\}^\{\|B\|\}\\operatorname\{sg\}\(w\_\{i\}\)\\ell\_\{\\text\{KD\}\}\(x\_\{i\}\)\\right\],\(4\)whereℓKD\(xi\)\\ell\_\{\\text\{KD\}\}\(x\_\{i\}\)denotes the distillation loss between the proxy and private models, andsg\(⋅\)\\operatorname\{sg\}\(\\cdot\)denotes stop\-gradient\. We useℓKD\(xi\)=KL\(qi∥pi\)\\ell\_\{\\text\{KD\}\}\(x\_\{i\}\)=\\mathrm\{KL\}\(q\_\{i\}\\\|p\_\{i\}\)for classification, withpi=σ\(fk\(xi\)\)p\_\{i\}=\\sigma\(f\_\{k\}\(x\_\{i\}\)\)andqi=σ\(g\(xi\)\)q\_\{i\}=\\sigma\(g\(x\_\{i\}\)\), and squared error for regression\. The full private\-model update combines the supervised loss with the gated distillation term:
ℒprivate=ℒsup\+λkdℒBKD\.\\mathcal\{L\}\_\{\\text\{private\}\}=\\mathcal\{L\}\_\{\\text\{sup\}\}\+\\lambda\_\{\\text\{kd\}\}\\mathcal\{L\}\_\{\\text\{BKD\}\}\.\(5\)The stop\-gradient operator ensures that the gate acts as a reliability weight rather than introducing an additional optimization path through the energy function\. Thus, for each sample, the gate rescales the distillation gradient but does not reverse the underlying distillation direction\. We provide stability\-oriented properties of this mechanism in Appendix[F](https://arxiv.org/html/2605.05553#A6), including batch\-relative monotonicity, bounded and non\-degenerate trust weights, a variational interpretation of the logistic gate, and output\-level influence results for both classification and regression\.
Intuitively, samples with low relative disagreement are assigned higher trust weights, while high relative\-disagreement samples are down\-weighted\. In practice, this mechanism modulates the influence of the proxy model on each sample by reweighting the distillation loss according to the relative level of agreement between the private and proxy models\.
##### Properties of the energy\-based gating function\.
The batch\-normalized logistic gate should be interpreted as a relative trust assignment within each minibatch\. Samples with energy below the batch mean receive weights above1/21/2, whereas samples with energy above the batch mean receive weights below1/21/2\. Moreover, for any two samples in the same minibatch,Ei≤EjE\_\{i\}\\leq E\_\{j\}implieswi≥wjw\_\{i\}\\geq w\_\{j\}, so the gate preserves the intended ordering of reliability\. This batch\-relative monotonicity property is formalized in Proposition[1](https://arxiv.org/html/2605.05553#Thmproposition1)\. The logistic gate also produces bounded and non\-degenerate trust weights\. In particular, the weights remain strictly between0and11, avoiding hard rejection while still reducing the influence of high\-energy samples\. This property is formalized in Proposition[2](https://arxiv.org/html/2605.05553#Thmproposition2)\. In addition, the logistic form admits a variational interpretation as the solution to an entropy\-regularized soft trust assignment problem, as shown in Proposition[3](https://arxiv.org/html/2605.05553#Thmproposition3)\. Finally, because the gate is detached during backpropagation, it scales the distillation loss without introducing an additional gradient path through the energy function\. As a result, the gated per\-sample distillation gradient is a positive scalar multiple of the ungated distillation gradient and cannot reverse its direction\. We formalize this behavior in Proposition[4](https://arxiv.org/html/2605.05553#Thmproposition4), with output\-level influence results for regression and classification in Corollaries[1](https://arxiv.org/html/2605.05553#Thmcorollary1)and[2](https://arxiv.org/html/2605.05553#Thmcorollary2)\. Together, these stability properties connect the proposed objective to the empirical robustness ofFedeKD: unreliable proxy guidance is not discarded by a hard rule, but is systematically assigned lower influence while useful distillation signals remain active\.
These properties help explain the empirical robustness ofFedeKDobserved in Section[4](https://arxiv.org/html/2605.05553#S4), where unreliable samples tend to receive lower relative weights across heterogeneous settings\.
## 4Benchmark
### 4\.1Settings
##### Benchmarks and Data Partitioning\.
We evaluate the effectiveness and scalability ofFedeKDon six real\-world datasets most frequently used by prior FL worksLuet al\.\([2023](https://arxiv.org/html/2605.05553#bib.bib16)\); Wanget al\.\([2024](https://arxiv.org/html/2605.05553#bib.bib29)\); Minet al\.\([2025](https://arxiv.org/html/2605.05553#bib.bib22)\); Nguyenet al\.\([2026](https://arxiv.org/html/2605.05553#bib.bib47)\), ensuring a fair comparison with established baselines\. The six datasets span two tasks: classification \(FashionMNISTXiaoet al\.\([2017](https://arxiv.org/html/2605.05553#bib.bib35)\), CIFAR\-10Krizhevsky \([2009](https://arxiv.org/html/2605.05553#bib.bib36)\), OCTMNISTKermanyet al\.\([2018](https://arxiv.org/html/2605.05553#bib.bib48)\), and OrganAMNISTXuet al\.\([2019](https://arxiv.org/html/2605.05553#bib.bib49)\)\) and regression \(RetinaMNISTLiuet al\.\([2022](https://arxiv.org/html/2605.05553#bib.bib40)\)and Diabetic Retinopathy \(Regular Fundus\)Woerneret al\.\([2025](https://arxiv.org/html/2605.05553#bib.bib51)\)\)\. To simulate realistic data heterogeneity, we apply a Dirichlet partition with concentration parameterα\\alphato induce label shift in classification and covariate shift in regression tasks\. Smaller values ofα\\alphacorrespond to more heterogeneous data distributions across clients\. Detailed data statistics and partition descriptions are provided in Appendix[G](https://arxiv.org/html/2605.05553#A7)\.
##### Experimental Design for Heterogeneity\.
Following prior work in cross\-silo FLWanget al\.\([2025](https://arxiv.org/html/2605.05553#bib.bib28)\); Nguyenet al\.\([2026](https://arxiv.org/html/2605.05553#bib.bib47)\), we consider a system with six clients and adopt an asymmetric model design within each client, consisting of a high\-capacity private model and a lightweight proxy model\. All clients share identical model architectures\. Model asymmetry arises from the distinct roles and capacities of the private and proxy models, which create discrepancies between models during knowledge transfer\. Further details on the model architectures and the controlled heterogeneity setup are provided in Appendix[H](https://arxiv.org/html/2605.05553#A8)\.
##### Hyperparameter settings\.
ForFedeKD, we useβ=1\\beta=1andλkd=1\\lambda\_\{\\text\{kd\}\}=1across all experiments without additional tuning\. All baselines are evaluated using their standard or publicly reported hyperparameter configurations\. Models are trained using Adam with a learning rate of10−410^\{\-4\}, using55communication rounds with22local epochs per round across all methods to ensure consistent and computationally comparable evaluation\. The local minibatch size is set toB=64B=64for all training procedures, while a larger batch size of 256 is used for evaluation\.
### 4\.2Evaluation Metrics
We evaluate model performance under both classification and regression settings with a focus on negative transfer and robustness across heterogeneous clients, while also reporting accuracy and RMSE as measures of predictive performance\.
##### Classification\.
We report accuracy, defined asAcc=1N∑i=1N𝕀\(y^i=yi\)\\text\{Acc\}=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\mathbb\{I\}\(\\hat\{y\}\_\{i\}=y\_\{i\}\), wherey^i\\hat\{y\}\_\{i\}andyiy\_\{i\}denote the predicted and ground\-truth labels\. To explicitly quantify negative transfer, we compute the performance change relative to local training asΔk=Acckmethod−Accklocal\\Delta\_\{k\}=\\text\{Acc\}\_\{k\}^\{\\text\{method\}\}\-\\text\{Acc\}\_\{k\}^\{\\text\{local\}\}, where negative values indicate degradation\. We aggregate these values across clients using their average \(AvgΔ\\Delta\) and worst case \(WorstΔ\\Delta\), and further report the 10th percentile \(P10Δ\\text\{P10 \}\\Delta\) over clients to capture lower\-tail behavior\. Client\-level robustness is additionally assessed using the averageAvg=1K∑k=1KAcck\\text\{Avg\}=\\frac\{1\}\{K\}\\sum\_\{k=1\}^\{K\}\\text\{Acc\}\_\{k\}and worst\-caseWorst=minkAcck\\text\{Worst\}=\\min\_\{k\}\\text\{Acc\}\_\{k\}accuracy\.
##### Regression\.
We report root mean squared error \(RMSE\), defined asRMSE=1N∑i=1N\(y^i−yi\)2\\text\{RMSE\}=\\sqrt\{\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\(\\hat\{y\}\_\{i\}\-y\_\{i\}\)^\{2\}\}\. Following the same evaluation principle, we defineΔk=RMSEkmethod−RMSEklocal\\Delta\_\{k\}=\\text\{RMSE\}\_\{k\}^\{\\text\{method\}\}\-\\text\{RMSE\}\_\{k\}^\{\\text\{local\}\}, where positive values indicate degradation\. In this setting, we focus on the upper tail of the distribution and report the 90th percentile \(P90Δ\\text\{P90 \}\\Delta\) over clients, along with the average \(Avg\.Δ\\Delta\) and worst\-case \(WorstΔ\\Delta\) values ofΔk\\Delta\_\{k\}\. We measure robustness across clients using the averageAvg=1K∑k=1KRMSEk\\text\{Avg\}=\\frac\{1\}\{K\}\\sum\_\{k=1\}^\{K\}\\text\{RMSE\}\_\{k\}and the worst\-caseWorst=maxkRMSEk\\text\{Worst\}=\\max\_\{k\}\\text\{RMSE\}\_\{k\}\.
### 4\.3Robustness to Negative Transfer
Table 1:Measurement of average\-case negative transfer \(AvgΔ\\Delta\) for classification tasks \(higher is better\)\. Results are reported as mean±std\{\}\_\{\\pm\\text\{std\}\}over 10 independent runs\.Boldandunderlinedenote the best and second\-best results in each column, respectively\.FedeKDconsistently achieves the strongest reduction in negative transfer under severe heterogeneity \(α=0\.1\\alpha=0\.1\), remains highly competitive at moderate heterogeneity \(α=0\.3\\alpha=0\.3\), and performs comparably to the best alternatives when data distributions become more homogeneous \(α=0\.5\\alpha=0\.5\)\. Notably,FedeKDexhibits consistently lower variance across runs, indicating more stable and reliable performance compared to the baselines\.Table 2:Measurement of AvgΔ\\Deltafor regression tasks \(lower is better\)\.FedeKDconsistently and stably achieves the lowest AvgΔ\\Delta\.Tables[1](https://arxiv.org/html/2605.05553#S4.T1)and[2](https://arxiv.org/html/2605.05553#S4.T2)report the primary average\-case negative\-transfer results for classification and regression, respectively\. To assess whether these gains also hold beyond the mean, we further examine worst\-case and tail\-sensitive metrics reported in Tables[4](https://arxiv.org/html/2605.05553#A9.T4),[5](https://arxiv.org/html/2605.05553#A9.T5),[6](https://arxiv.org/html/2605.05553#A10.T6), and[7](https://arxiv.org/html/2605.05553#A10.T7)in Appendices\.
##### Classification\.
For classification,FedeKDdelivers the strongest overall robustness profile against negative transfer across four datasets and multiple heterogeneity levels \(α\\alpha\)\. On the main metric AvgΔ\\Deltain Table[1](https://arxiv.org/html/2605.05553#S4.T1),FedeKDis best in all four datasets atα=0\.1\\alpha=0\.1, remains best on three datasets atα=0\.3\\alpha=0\.3, and stays competitive atα=0\.5\\alpha=0\.5, where the gap between methods naturally shrinks as client distributions become less skewed\. This pattern indicates that reliability\-aware distillation is most beneficial when transferred knowledge is least trustworthy, particularly under strong data heterogeneity\.
A stronger robustness signal appears when evaluation moves beyond averages to the vulnerable\-client regime\. In Table[4](https://arxiv.org/html/2605.05553#A9.T4),FedeKDconsistently achieves the best WorstΔ\\Deltaacross all datasets and all heterogeneity levels, showing that it most effectively limits the most severe degradation experienced by any client\. Likewise, Table[6](https://arxiv.org/html/2605.05553#A10.T6)shows thatFedeKDalso dominates P10Δ\\Delta, which captures the lower tail of the client distribution rather than only the single worst case\. Together, these two results indicate that the gains ofFedeKDare not driven by a few easy clients or by averaging effects\. Instead, the method improves robustness throughout the lower end of the client population\. These results show thatFedeKDnot only improves average\-case performance but also provides consistent robustness gains across the lower tail of the client population\.
##### Regression\.
On the primary metric AvgΔ\\Deltain Table[2](https://arxiv.org/html/2605.05553#S4.T2),FedeKDis best in every setting across both RetinaMNIST and Diabetic Retinopathy and across all heterogeneity levels\. Standard FL baselines remain consistently harmful, whileFedeKDis the only method that reliably drives average degradation toward zero or below\.
This advantage becomes more pronounced under stronger robustness metrics\. Table[5](https://arxiv.org/html/2605.05553#A9.T5)shows thatFedeKDachieves the lowest WorstΔ\\Deltain every setting, substantially reducing the severity of the most extreme degradation\. Similarly, Table[7](https://arxiv.org/html/2605.05553#A10.T7)shows the same trend for P90Δ\\Delta, confirming that the benefit extends to the upper tail of the error distribution and is not confined to a single pathological client\. In other words,FedeKDimproves both the center and the tail of the regression negative\-transfer distribution\.
### 4\.4Predictive Performance under Negative Transfer Mitigation
Figure 2:Classification accuracy on FashionMNIST and CIFAR\-10 \(left\) as well as RMSE regression on RetinaMNIST and Diabetic Retinopathy \(right\) atα=0\.1\\alpha=0\.1\. Full results are reported in Appendix[K](https://arxiv.org/html/2605.05553#A11)\.We further examine whetherFedeKDmaintains strong predictive performance in terms of mean client accuracy and RMSE\. While these metrics are not the primary optimization objective, they provide an important complementary view of overall model quality\.
##### Classification\.
As shown in Figure[2](https://arxiv.org/html/2605.05553#S4.F2)\(left\) and Table[8](https://arxiv.org/html/2605.05553#A11.T8)in Appendix[K](https://arxiv.org/html/2605.05553#A11),FedeKDremains consistently competitive in mean client accuracy across all datasets and heterogeneity levels\. In highly heterogeneous settings \(α=0\.1\\alpha=0\.1\),FedeKDachieves the best accuracy on all four datasets, indicating that reliability\-aware knowledge transfer does not compromise predictive performance even under severe distribution shifts\. At moderate heterogeneity \(α=0\.3\\alpha=0\.3\),FedeKDcontinues to rank among the top methods, often matching or slightly exceeding FedType\-based variants\. As data distributions become more homogeneous \(α=0\.5\\alpha=0\.5\), the performance gap between methods naturally narrows, yetFedeKDstill maintains near\-optimal accuracy across all datasets\. Importantly, in the few cases whereFedeKDis not the top\-performing method in accuracy, the difference is marginal\. This behavior aligns with the design objective of the method: rather than maximizing accuracy alone,FedeKDprioritizes robustness against negative transfer while preserving high overall performance\. The results therefore demonstrate that strong reductions in negative transfer can be achieved without sacrificing predictive accuracy\.
##### Regression\.
A similar pattern is observed in regression tasks\. As reported in Figure[2](https://arxiv.org/html/2605.05553#S4.F2)\(right\) and Table[9](https://arxiv.org/html/2605.05553#A11.T9),FedeKDconsistently achieves the lowest mean client RMSE across both RetinaMNIST and Diabetic Retinopathy under all heterogeneity levels\. This result is particularly notable because standard FL baselines not only suffer from significant negative transfer \(Table[2](https://arxiv.org/html/2605.05553#S4.T2)\) but also exhibit worse predictive performance in absolute terms\.
## 5Ablation Studies
##### Ablation Analysis of the Gating Mechanism\.
The central methodological component ofFedeKDis the reliability\-aware backward gate, which determines how strongly each transferred proxy signal should affect the private model\. To isolate the contribution of this gating mechanism, we compare our KD gating withNo Gatingas well as several energy\-based gating variants \(entropy\-basedenergy,margin\-basedenergy,LogSumExpenergy, andfeature\-distanceenergy\) under the same forward\-stage setup\. All descriptions of these variants can be found in Appendix[L](https://arxiv.org/html/2605.05553#A12)\. Table[10](https://arxiv.org/html/2605.05553#A12.T10)showsNo Gatingconsistently suffers from substantially larger negative transfer across all datasets and heterogeneity levels\. This confirms that simply introducing backward distillation is insufficient, particularly under high data heterogeneity across clients, where naive full\-trust transfer amplifies unreliable and conflicting knowledge\. These results demonstrate that effective backward distillation in heterogeneous settings requires a reliability\-aware gating mechanism\. While some variants, particularly feature\-distance energy, achieve competitive performance in certain cases, none consistently match the KL\-based gating used inFedeKD\. In particular, alternative energies often exhibit higher variance or degrade under strong heterogeneity, indicating less reliable selection of informative samples\.
##### Sensitivity toβ\\beta\.
Figure 3:AvgΔ\\Deltaacrossβ\\betavalues on CIFAR\-10 and OrganAMNIST atα=0\.5\\alpha=0\.5\. In practice,β∈\[1,2\]\\beta\\in\[1,2\]provides a reliable default choice under this setting\.We further investigate the impact of the gating sharpness parameterβ\\beta, which controls how aggressively unreliable knowledge is suppressed during backward distillation\. Figure[3](https://arxiv.org/html/2605.05553#S5.F3)reports AvgΔ\\Deltaacrossβ∈\{0\.25,0\.5,2,4,8\}\\beta\\in\\\{0\.25,0\.5,2,4,8\\\}under mild heterogeneity \(α=0\.5\\alpha=0\.5\)\. Across both CIFAR\-10 and OrganAMNIST, performance follows a consistent pattern: moderate values ofβ\\betaperform best, withβ=2\\beta=2achieving the highest AvgΔ\\Delta\. Smaller values \(e\.g\.,β=0\.25\\beta=0\.25\) apply nearly uniform weights, resulting in weak gating and limited improvement over naive distillation, while larger values \(e\.g\.,β=4,8\\beta=4,8\) lead to overly selective gating that suppresses useful knowledge and degrades performance\. Interestingly, the optimalβ\\betaremains above the default \(β=1\\beta=1\) even under mild heterogeneity\. This suggests that unreliable knowledge persists beyond data heterogeneity and also arises from model asymmetry and proxy aggregation, necessitating non\-trivial gating even when client distributions are relatively homogeneous\.
##### Sensitivity toλkd\\lambda\_\{\\text\{kd\}\}\.
We varyλkd∈\{0,0\.25,0\.5,2,4\}\\lambda\_\{\\text\{kd\}\}\\in\\\{0,0\.25,0\.5,2,4\\\}while fixing other hyperparameters to examine its impact on negative transfer under mild heterogeneity \(α=0\.5\\alpha=0\.5\)\. As shown in Figure[4](https://arxiv.org/html/2605.05553#A13.F4)of Appendix[M](https://arxiv.org/html/2605.05553#A13), performance exhibits a clear unimodal pattern, with moderate valuesλkd∈\[0\.25,0\.5\]\\lambda\_\{\\text\{kd\}\}\\in\[0\.25,0\.5\]achieving the highest AvgΔ\\Delta, while larger values lead to substantial degradation\. This reflects a trade\-off between utilizing proxy knowledge and preserving local learning: smallλkd\\lambda\_\{\\text\{kd\}\}under\-utilizes shared knowledge, whereas largeλkd\\lambda\_\{\\text\{kd\}\}amplifies the distillation term \(λkd⋅w\(x\)\\lambda\_\{\\text\{kd\}\}\\cdot w\(x\)\), effectively overriding the gating mechanism and reintroducing negative transfer\. In practice, while the default setting \(λkd=1\\lambda\_\{\\text\{kd\}\}=1\) provides a stable and reliable choice, we recommend reducingλkd\\lambda\_\{\\text\{kd\}\}to0\.50\.5or0\.250\.25under less severe heterogeneity, as moderate distillation is sufficient and avoids over\-amplifying proxy\-induced discrepancies\.
## 6Conclusion
##### Limitations\.
Our study has several limitations\. First, the experiments are conducted on public benchmarks with simulated cross\-silo partitions, which may not fully capture real\-world multi\-site variation such as differences in data acquisition, population characteristics, annotation quality, and site\-specific workflows\. Second, whileFedeKDimproves client\-level robustness, we do not directly evaluate fairness across subpopulations; thus, our results should be interpreted as improving robustness under heterogeneity rather than addressing broader fairness concerns\. Third,FedeKDrequires maintaining both private and proxy models and performing bidirectional distillation, which introduces additional computation and synchronization overhead\. Finally, the regression energy measures prediction disagreement rather than calibrated predictive uncertainty\.
##### Conclusion and Future Work\.
We introducedFedeKD, a reliability\-aware federated knowledge distillation framework for heterogeneous FL\. By converting private\-proxy disagreement into sample\-wise trust weights,FedeKDmitigates negative transfer while maintaining strong predictive performance across classification and regression tasks\. Future work will extendFedeKDtoward real multi\-site deployments, fairness\-aware evaluation, adaptive and calibration\-aware trust estimation, and more communication\-efficient training\.
## Acknowledgments and Disclosure of Funding
…
## References
- A\. E\. Durmus, Z\. Yue, M\. Ramon, M\. Matthew, W\. Paul, and S\. Venkatesh \(2021\)Federated learning based on dynamic regularization\.InThe Ninth International Conference on Learning Representations,Virtual\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px1.p1.1)\.
- W\. Huang, M\. Ye, and B\. Du \(2022\)Learn from others and be yourself in heterogeneous federated learning\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,New Orleans, Louisiana,pp\. 10143–10153\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p1.1)\.
- D\. S\. Kermany, M\. Goldbaum, W\. Cai, C\. C\. S\. Valentim, H\. Liang, S\. L\. Baxter, A\. McKeown, G\. Yang, X\. Wu, F\. Yan, J\. Dong, M\. K\. Prasadha, J\. Pei, M\. Y\. L\. Ting, J\. Zhu, C\. Li, S\. Hewett, J\. Dong, I\. Ziyar, A\. Shi, R\. Zhang, L\. Zheng, R\. Hou, W\. Shi, X\. Fu, Y\. Duan, V\. A\. N\. Huu, C\. Wen, E\. D\. Zhang, C\. L\. Zhang, O\. Li, X\. Wang, M\. A\. Singer, X\. Sun, J\. Xu, A\. Tafreshi, M\. A\. Lewis, H\. Xia, and K\. Zhang \(2018\)Identifying medical diagnoses and treatable diseases by image\-based deep learning\.Cell172\(5\),pp\. 1122–1131\.Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- A\. Krizhevsky \(2009\)Learning multiple layers of features from tiny images\.Master’s thesis, University of Toronto\.Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- D\. Li and J\. Wang \(2019\)FedMD: Heterogenous Federated Learning via Model Distillation\.arXiv preprint arXiv:1910\.03581\.External Links:[Link](https://arxiv.org/abs/1910.03581)Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p1.1)\.
- T\. Li, A\. K\. Sahu, M\. Zaheer, M\. Sanjabi, A\. Talwalkar, and V\. Smith \(2020\)Federated optimization in heterogeneous networks\.InProceedings of Machine Learning and Systems,Vol\.2,Austin, TX, USA,pp\. 429–450\.Cited by:[§1](https://arxiv.org/html/2605.05553#S1.p1.1),[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px1.p1.1)\.
- T\. Lin, L\. Kong, S\. U\. Stich, and M\. Jaggi \(2020\)Ensemble distillation for robust model fusion in federated learning\.InAdvances in Neural Information Processing Systems,Vol\.33,virtual,pp\. 2351–2363\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p1.1)\.
- R\. Liu, X\. Wang, Q\. Wu, L\. Dai, X\. Fang, T\. Yan, J\. Son, S\. Tang, J\. Li, Z\. Gao, A\. Galdran, J\. M\. Poorneshwaran, H\. Liu, J\. Wang, Y\. Chen, P\. Porwal, G\. S\. Wei Tan, X\. Yang, C\. Dai, H\. Song, M\. Chen, H\. Li, W\. Jia, D\. Shen, B\. Sheng, and P\. Zhang \(2022\)Deepdrid: Diabetic retinopathy—grading and image quality estimation challenge\.Patterns3\(6\)\.Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- C\. Lu, Y\. Yu, S\. P\. Karimireddy, M\. I\. Jordan, and R\. Raskar \(2023\)Federated Conformal Predictors for Distributed Uncertainty Quantification\.InProceedings of the 40th International Conference on Machine Learning,Vol\.202,Honolulu, Hawaii, USA,pp\. 22942–22964\.Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- H\. B\. McMahan, E\. Moore, D\. Ramage, S\. Hampson, and B\. A\. y Arcas \(2017\)Communication\-efficient learning of deep networks from decentralized data\.InProceedings of the 20th International Conference on Artificial Intelligence and Statistics,Vol\.54,Florida, USA,pp\. 1273–1282\.Cited by:[§1](https://arxiv.org/html/2605.05553#S1.p1.1),[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px1.p1.1)\.
- Y\. Min, C\. Zhang, L\. Peng, and C\. Zou \(2025\)Personalized federated conformal prediction with localization\.InProceedings of the 39th International Conference on Neural Information Processing Systems,Vol\.,San Diego, USA,pp\.\.Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- Q\. Nguyen, J\. Wang, and W\. Ku \(2026\)Conformalized Neural Networks for Federated Uncertainty Quantification under Dual Heterogeneity\.arXiv\(\),pp\.\.External Links:[Document](https://dx.doi.org/10.48550/2602.23296)Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2),[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px2.p1.1)\.
- T\. Shen, J\. Zhang, X\. Jia, F\. Zhang, Z\. Lv, K\. Kuang, C\. Wu, and F\. Wu \(2023\)Federated mutual learning: a collaborative machine learning method for heterogeneous data, models, and objectives\.Frontiers of Information Technology & Electronic Engineering24\(10\),pp\. 1390–1402\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p1.1)\.
- Y\. Tan, G\. Long, L\. Liu, T\. Zhou, Q\. Lu, J\. Jiang, and C\. Zhang \(2022\)FedProto: Federated Prototype Learning across Heterogeneous Clients\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.36,pp\. 8432–8440\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p1.1)\.
- J\. Wang, X\. Yang, S\. Cui, L\. Che, L\. Lyu, D\. \(\. Xu, and F\. Ma \(2023\)Towards personalized federated learning via heterogeneous model reassembly\.InThirty\-seventh Conference on Advances in Neural Information Processing Systems,Vol\.,New Orleans, LA, United States,pp\. 29515–29531\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p1.1)\.
- J\. Wang, Z\. Yin, Q\. You, L\. Lyu, and F\. Ma \(2025\)Asymmetrical Reciprocity\-based Federated Learning for Resolving Disparities in Medical Diagnosis\.InProceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V\. 1,Vol\.31,Toronto ON Canada,pp\. 1445–1456\.Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px2.p1.1)\.
- J\. Wang, C\. Zhao, L\. Lyu, Q\. You, M\. Huai, and F\. Ma \(2024\)Bridging model heterogeneity in federated learning via uncertainty\-based asymmetrical reciprocity learning\.InProceedings of the 41st International Conference on Machine Learning,Vol\.41,Vienna, Austria,pp\. 52290–52308\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p2.1),[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- S\. Woerner, A\. Jaques, and C\. F\. Baumgartner \(2025\)A comprehensive and easy\-to\-use multi\-domain multi\-task medical imaging meta\-dataset\.Scientific Data12\(1\)\.External Links:[Document](https://dx.doi.org/10.1038/s41597-025-04866-4)Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- H\. Xiao, K\. Rasul, and R\. Vollgraf \(2017\)Fashion\-mnist: a novel image dataset for benchmarking machine learning algorithms\.arXiv preprint arXiv:1708\.07747\.Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- X\. Xu, F\. Zhou, B\. Liu, D\. Fu, and X\. Bai \(2019\)Efficient multiple organ localization in CT image using 3D region proposal network\.IEEE Transactions on Medical Imaging38\(8\),pp\. 1885–1898\.Cited by:[§4\.1](https://arxiv.org/html/2605.05553#S4.SS1.SSS0.Px1.p1.2)\.
- L\. Yi, G\. Wang, X\. Liu, Z\. Shi, and H\. Yu \(2023\)FedGH: heterogeneous federated learning with generalized global header\.InProceedings of the 31st ACM International Conference on Multimedia,Ottawa ON, Canada,pp\. 8686–8696\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p1.1)\.
- S\. Yu, W\. Qian, and A\. Jannesari \(2022\)Resource\-aware federated learning using knowledge extraction and multi\-model fusion\.arXiv preprint arXiv:2208\.07978\.Cited by:[§2](https://arxiv.org/html/2605.05553#S2.SS0.SSS0.Px2.p1.1)\.
## Contents
## Appendix ABroader Impact
FedeKDintroduces a reliability\-aware federated knowledge distillation framework that offers a promising approach for advancing healthcare AI under data heterogeneity and privacy constraints\. By enabling collaborative learning without requiring direct data sharing, the framework supports compliance with strict data protection regulations while preserving patient confidentiality\. At the same time,FedeKDimproves the robustness and stability of models trained across diverse clinical sites, allowing them to better generalize across variations in data acquisition, population characteristics, and annotation quality\. By leveraging disagreement between private and proxy models to guide knowledge transfer,FedeKDenhances the effective use of distributed and heterogeneous medical data without centralization\. This capability can expand the applicability of AI systems in healthcare, supporting more reliable diagnostic models and decision support tools across institutions with varying resources\. Furthermore, the framework promotes broader participation in collaborative learning settings, enabling institutions with limited data or computational capacity to benefit from shared model improvements\. Overall,FedeKDhas the potential to contribute to more scalable, privacy\-preserving, and robust healthcare AI systems, supporting improved clinical decision\-making and advancing the development of trustworthy machine learning solutions in sensitive real\-world environments\.
## Appendix BCompute and Environment Configuration
All experiments are conducted on servers equipped with NVIDIA A100 GPUs \(80 GB\) and AMD EPYC CPUs, running on Linux\-based systems with CUDA 11\.8\. Models are implemented in PyTorch and trained using single\-GPU setups with up to 32 CPU cores per run\. Additional implementation details, including hyperparameters and training configurations, are provided in the accompanying code repository\.
## Appendix CCode and Repository
We provide an implementation ofFedeKDatlink\. This repository includes resources for data preprocessing scripts, baseline methods, and experiment configurations\. The codebase is designed to facilitate reproducibility and further research in heterogeneous federated learning\. All relevant details and instructions are documented in the repository\.
## Appendix DAuthor Statement
The authors take full responsibility for the content of this work, including the implementation and evaluation of the proposed method\. Any potential issues related to data usage, licensing, or reproducibility will be addressed through updates to the public repository\.
## Appendix EAlgorithm ofFedeKD
Algorithm 1One communication round ofFedeKD1:Client datasets
\{𝒟k\}k=1K\\\{\\mathcal\{D\}\_\{k\}\\\}\_\{k=1\}^\{K\}, private models
\{fk\}k=1K\\\{f\_\{k\}\\\}\_\{k=1\}^\{K\}, proxy models
\{gk\}k=1K\\\{g\_\{k\}\\\}\_\{k=1\}^\{K\},
λkd\\lambda\_\{\\mathrm\{kd\}\},
β\\beta
2:foreach client
kkin paralleldo
3:Freeze private model
fkf\_\{k\}
4:Update proxy model
gkg\_\{k\}on
𝒟k\\mathcal\{D\}\_\{k\}by forward KD from
fkf\_\{k\}
5:Upload proxy model
gkg\_\{k\}to the server
6:endfor
7:Server aggregates proxy models:
g←K−1∑k=1Kgkg\\leftarrow K^\{\-1\}\\sum\_\{k=1\}^\{K\}g\_\{k\}
8:Server broadcasts global proxy
ggto all clients
9:foreach client
kkin paralleldo
10:Freeze global proxy
gg
11:foreach minibatch
B⊂𝒟kB\\subset\\mathcal\{D\}\_\{k\}do
12:Compute private outputs
fk\(xi\)f\_\{k\}\(x\_\{i\}\)and proxy outputs
g\(xi\)g\(x\_\{i\}\)for
xi∈Bx\_\{i\}\\in B
13:Compute energy scores
EiE\_\{i\}and trust weights
wiw\_\{i\}using Eq\.[3](https://arxiv.org/html/2605.05553#S3.E3)
14:Detach
wiw\_\{i\}from the computation graph
15:Update private model
fkf\_\{k\}using
ℒsup\+λkd\|B\|−1∑xi∈Bsg\(wi\)ℓKD\(xi\)\\mathcal\{L\}\_\{\\mathrm\{sup\}\}\+\\lambda\_\{\\mathrm\{kd\}\}\|B\|^\{\-1\}\\sum\_\{x\_\{i\}\\in B\}\\operatorname\{sg\}\(w\_\{i\}\)\\ell\_\{\\mathrm\{KD\}\}\(x\_\{i\}\)
16:endfor
17:endfor
##### Computational and communication cost\.
LetFfF\_\{f\}andBfB\_\{f\}denote the forward and backward costs of the private model, and letFgF\_\{g\}andBgB\_\{g\}denote those of the proxy model\. For each minibatch, forward proxy distillation costs one frozen private forward pass and one proxy forward\-backward update, i\.e\.,Ff\+Fg\+BgF\_\{f\}\+F\_\{g\}\+B\_\{g\}\. The backward stage costs one frozen proxy forward pass and one private forward\-backward update, i\.e\.,Fg\+Ff\+BfF\_\{g\}\+F\_\{f\}\+B\_\{f\}, plus the energy and gating computation, which isO\(\|B\|C\)O\(\|B\|C\)for classification withCCclasses andO\(\|B\|\)O\(\|B\|\)for regression\. Therefore, compared with a standard supervised private update,FedeKDadds one private teacher forward pass, one proxy teacher forward pass, and one lightweight proxy update per communication round\. The communication cost isO\(\|θg\|\)O\(\|\\theta\_\{g\}\|\)per client per round because only proxy parameters are uploaded and broadcast, while private parametersθf\\theta\_\{f\}remain local\.
## Appendix FMechanistic and Stability Properties of Energy\-Gated Distillation
The following results are intended as stability and mechanistic properties of the batch\-normalized logistic gate, rather than as new mathematical inequalities\. They clarify how the gate orders samples, bounds trust weights, and modulates per\-sample distillation gradients under stop\-gradient weighting\.
###### Proposition 1\(Batch\-relative monotonicity\)\.
LetB=\{xi\}i=1nB=\\\{x\_\{i\}\\\}\_\{i=1\}^\{n\}be a minibatch with energy scoresEi=E\(xi\)E\_\{i\}=E\(x\_\{i\}\)\. Define the batch mean and standard deviation as
μB=1n∑j=1nEj,sB=1n∑j=1n\(Ej−μB\)2\.\\mu\_\{B\}=\\frac\{1\}\{n\}\\sum\_\{j=1\}^\{n\}E\_\{j\},\\qquad s\_\{B\}=\\sqrt\{\\frac\{1\}\{n\}\\sum\_\{j=1\}^\{n\}\(E\_\{j\}\-\\mu\_\{B\}\)^\{2\}\}\.ForϵB\>0\\epsilon\_\{B\}\>0andβ\>0\\beta\>0, define the normalized energy and trust weight by
E~i=Ei−μBsB\+ϵB,wi=ρ\(−βE~i\),ρ\(t\)=11\+exp\(−t\)\.\\widetilde\{E\}\_\{i\}=\\frac\{E\_\{i\}\-\\mu\_\{B\}\}\{s\_\{B\}\+\\epsilon\_\{B\}\},\\qquad w\_\{i\}=\\rho\(\-\\beta\\widetilde\{E\}\_\{i\}\),\\qquad\\rho\(t\)=\\frac\{1\}\{1\+\\exp\(\-t\)\}\.Then for any two samplesxi,xj∈Bx\_\{i\},x\_\{j\}\\in B,
Ei≤Ej⟹wi≥wj\.E\_\{i\}\\leq E\_\{j\}\\quad\\Longrightarrow\\quad w\_\{i\}\\geq w\_\{j\}\.
###### Proof\.
SincesB\+ϵB\>0s\_\{B\}\+\\epsilon\_\{B\}\>0, the batch normalization is order\-preserving:
Ei≤Ej⟹Ei−μBsB\+ϵB≤Ej−μBsB\+ϵB\.E\_\{i\}\\leq E\_\{j\}\\quad\\Longrightarrow\\quad\\frac\{E\_\{i\}\-\\mu\_\{B\}\}\{s\_\{B\}\+\\epsilon\_\{B\}\}\\leq\\frac\{E\_\{j\}\-\\mu\_\{B\}\}\{s\_\{B\}\+\\epsilon\_\{B\}\}\.Therefore,
E~i≤E~j\.\\widetilde\{E\}\_\{i\}\\leq\\widetilde\{E\}\_\{j\}\.The mapz↦−βzz\\mapsto\-\\beta zis monotonically decreasing forβ\>0\\beta\>0, and the sigmoid functionρ\(t\)\\rho\(t\)is monotonically increasing\. Hence the compositionz↦ρ\(−βz\)z\\mapsto\\rho\(\-\\beta z\)is monotonically decreasing\. Thus,
E~i≤E~j⟹ρ\(−βE~i\)≥ρ\(−βE~j\),\\widetilde\{E\}\_\{i\}\\leq\\widetilde\{E\}\_\{j\}\\quad\\Longrightarrow\\quad\\rho\(\-\\beta\\widetilde\{E\}\_\{i\}\)\\geq\\rho\(\-\\beta\\widetilde\{E\}\_\{j\}\),which gives
∎
###### Proposition 2\(Bounded and non\-degenerate trust weights\)\.
LetB=\{xi\}i=1nB=\\\{x\_\{i\}\\\}\_\{i=1\}^\{n\}be a minibatch with energy scoresEi=E\(xi\)E\_\{i\}=E\(x\_\{i\}\)\. Define
μB=1n∑j=1nEj,sB=1n∑j=1n\(Ej−μB\)2,\\mu\_\{B\}=\\frac\{1\}\{n\}\\sum\_\{j=1\}^\{n\}E\_\{j\},\\qquad s\_\{B\}=\\sqrt\{\\frac\{1\}\{n\}\\sum\_\{j=1\}^\{n\}\(E\_\{j\}\-\\mu\_\{B\}\)^\{2\}\},and
E~i=Ei−μBsB\+ϵB,wi=ρ\(−βE~i\),ρ\(t\)=11\+exp\(−t\),\\widetilde\{E\}\_\{i\}=\\frac\{E\_\{i\}\-\\mu\_\{B\}\}\{s\_\{B\}\+\\epsilon\_\{B\}\},\\qquad w\_\{i\}=\\rho\(\-\\beta\\widetilde\{E\}\_\{i\}\),\\qquad\\rho\(t\)=\\frac\{1\}\{1\+\\exp\(\-t\)\},whereϵB\>0\\epsilon\_\{B\}\>0andβ\>0\\beta\>0\. Ifn=1n=1, thenw1=1/2w\_\{1\}=1/2\. Ifn≥2n\\geq 2, then for every samplexi∈Bx\_\{i\}\\in B,
ρ\(−βn−1\)≤wi≤ρ\(βn−1\)\.\\rho\\\!\\left\(\-\\beta\\sqrt\{n\-1\}\\right\)\\leq w\_\{i\}\\leq\\rho\\\!\\left\(\\beta\\sqrt\{n\-1\}\\right\)\.In particular,0<wi<10<w\_\{i\}<1for all samples\.
###### Proof\.
Ifn=1n=1, thenE1=μBE\_\{1\}=\\mu\_\{B\}andsB=0s\_\{B\}=0, soE~1=0\\widetilde\{E\}\_\{1\}=0andw1=ρ\(0\)=1/2w\_\{1\}=\\rho\(0\)=1/2\.
Now assumen≥2n\\geq 2\. IfsB=0s\_\{B\}=0, then all energy scores are equal, soE~i=0\\widetilde\{E\}\_\{i\}=0andwi=1/2w\_\{i\}=1/2for allii, which satisfies the claim\.
It remains to consider the casesB\>0s\_\{B\}\>0\. Define
ui=Ei−μBsB\.u\_\{i\}=\\frac\{E\_\{i\}\-\\mu\_\{B\}\}\{s\_\{B\}\}\.Then
∑i=1nui=0,∑i=1nui2=n\.\\sum\_\{i=1\}^\{n\}u\_\{i\}=0,\\qquad\\sum\_\{i=1\}^\{n\}u\_\{i\}^\{2\}=n\.For any fixedii, we have
∑j≠iuj=−ui\.\\sum\_\{j\\neq i\}u\_\{j\}=\-u\_\{i\}\.By Cauchy’s inequality,
\(∑j≠iuj\)2≤\(n−1\)∑j≠iuj2\.\\left\(\\sum\_\{j\\neq i\}u\_\{j\}\\right\)^\{2\}\\leq\(n\-1\)\\sum\_\{j\\neq i\}u\_\{j\}^\{2\}\.Thus,
∑j≠iuj2≥ui2n−1\.\\sum\_\{j\\neq i\}u\_\{j\}^\{2\}\\geq\\frac\{u\_\{i\}^\{2\}\}\{n\-1\}\.Therefore,
n=ui2\+∑j≠iuj2≥ui2\+ui2n−1=nn−1ui2\.n=u\_\{i\}^\{2\}\+\\sum\_\{j\\neq i\}u\_\{j\}^\{2\}\\geq u\_\{i\}^\{2\}\+\\frac\{u\_\{i\}^\{2\}\}\{n\-1\}=\\frac\{n\}\{n\-1\}u\_\{i\}^\{2\}\.Hence,
\|ui\|≤n−1\.\|u\_\{i\}\|\\leq\\sqrt\{n\-1\}\.Since
\|E~i\|=\|Ei−μBsB\+ϵB\|=\|ui\|sBsB\+ϵB≤\|ui\|,\|\\widetilde\{E\}\_\{i\}\|=\\left\|\\frac\{E\_\{i\}\-\\mu\_\{B\}\}\{s\_\{B\}\+\\epsilon\_\{B\}\}\\right\|=\|u\_\{i\}\|\\frac\{s\_\{B\}\}\{s\_\{B\}\+\\epsilon\_\{B\}\}\\leq\|u\_\{i\}\|,we obtain
\|E~i\|≤n−1\.\|\\widetilde\{E\}\_\{i\}\|\\leq\\sqrt\{n\-1\}\.Thus,
−n−1≤E~i≤n−1\.\-\\sqrt\{n\-1\}\\leq\\widetilde\{E\}\_\{i\}\\leq\\sqrt\{n\-1\}\.Becausez↦ρ\(−βz\)z\\mapsto\\rho\(\-\\beta z\)is monotonically decreasing forβ\>0\\beta\>0,
ρ\(−βn−1\)≤wi≤ρ\(βn−1\)\.\\rho\\\!\\left\(\-\\beta\\sqrt\{n\-1\}\\right\)\\leq w\_\{i\}\\leq\\rho\\\!\\left\(\\beta\\sqrt\{n\-1\}\\right\)\.Finally, since the sigmoid function takes values strictly between0and11, we have0<wi<10<w\_\{i\}<1\. ∎
###### Proposition 3\(Variational interpretation of the logistic gate\)\.
For any normalized energyE~∈ℝ\\widetilde\{E\}\\in\\mathbb\{R\}and anyβ\>0\\beta\>0, the trust weight
w⋆=ρ\(−βE~\)=11\+exp\(βE~\)w^\{\\star\}=\\rho\(\-\\beta\\widetilde\{E\}\)=\\frac\{1\}\{1\+\\exp\(\\beta\\widetilde\{E\}\)\}is the unique minimizer overw∈\(0,1\)w\\in\(0,1\)of
ϕ\(w\)=wE~\+1β\[wlogw\+\(1−w\)log\(1−w\)\]\.\\phi\(w\)=w\\widetilde\{E\}\+\\frac\{1\}\{\\beta\}\\left\[w\\log w\+\(1\-w\)\\log\(1\-w\)\\right\]\.
###### Proof\.
Forw∈\(0,1\)w\\in\(0,1\),
ϕ′\(w\)=E~\+1βlogw1−w,\\phi^\{\\prime\}\(w\)=\\widetilde\{E\}\+\\frac\{1\}\{\\beta\}\\log\\frac\{w\}\{1\-w\},and
ϕ′′\(w\)=1βw\(1−w\)\>0\.\\phi^\{\\prime\\prime\}\(w\)=\\frac\{1\}\{\\beta w\(1\-w\)\}\>0\.Therefore,ϕ\\phiis strictly convex on\(0,1\)\(0,1\)and has at most one stationary point\. Settingϕ′\(w\)=0\\phi^\{\\prime\}\(w\)=0gives
logw1−w=−βE~\.\\log\\frac\{w\}\{1\-w\}=\-\\beta\\widetilde\{E\}\.Exponentiating both sides,
w1−w=exp\(−βE~\)\.\\frac\{w\}\{1\-w\}=\\exp\(\-\\beta\\widetilde\{E\}\)\.Solving forwwyields
w=11\+exp\(βE~\)=ρ\(−βE~\)\.w=\\frac\{1\}\{1\+\\exp\(\\beta\\widetilde\{E\}\)\}=\\rho\(\-\\beta\\widetilde\{E\}\)\.Sinceϕ\\phiis strictly convex, this stationary point is the unique minimizer\. ∎
###### Proposition 4\(Detached gating preserves the per\-sample distillation direction\)\.
Letθ\\thetadenote the parameters of the private model and letℓi\(θ\)\\ell\_\{i\}\(\\theta\)be the distillation loss for samplexix\_\{i\}\. Consider the detached gated loss
Li\(θ\)=sg\(wi\)ℓi\(θ\),L\_\{i\}\(\\theta\)=\\operatorname\{sg\}\(w\_\{i\}\)\\ell\_\{i\}\(\\theta\),wheresg\(⋅\)\\operatorname\{sg\}\(\\cdot\)denotes stop\-gradient and0<wi<10<w\_\{i\}<1\. Then
∇θLi\(θ\)=wi∇θℓi\(θ\)\.\\nabla\_\{\\theta\}L\_\{i\}\(\\theta\)=w\_\{i\}\\nabla\_\{\\theta\}\\ell\_\{i\}\(\\theta\)\.Consequently, for each individual sample, detached gating rescales the distillation gradient by a positive scalar and cannot reverse its direction\.
###### Proof\.
Because gradients are stopped throughwiw\_\{i\}, the trust weight is treated as a constant with respect toθ\\thetaduring backpropagation\. Therefore,
∇θLi\(θ\)=∇θ\[sg\(wi\)ℓi\(θ\)\]=wi∇θℓi\(θ\)\.\\nabla\_\{\\theta\}L\_\{i\}\(\\theta\)=\\nabla\_\{\\theta\}\\left\[\\operatorname\{sg\}\(w\_\{i\}\)\\ell\_\{i\}\(\\theta\)\\right\]=w\_\{i\}\\nabla\_\{\\theta\}\\ell\_\{i\}\(\\theta\)\.Since0<wi<10<w\_\{i\}<1, the gated per\-sample gradient is a positive scalar multiple of the ungated per\-sample gradient\. Hence the direction cannot be reversed for that sample\. ∎
###### Corollary 1\(Regression output\-level influence\)\.
For regression, let
ri=fθ\(xi\)−g\(xi\)r\_\{i\}=f\_\{\\theta\}\(x\_\{i\}\)\-g\(x\_\{i\}\)and let the distillation loss be
ℓi=‖ri‖22\.\\ell\_\{i\}=\\\|r\_\{i\}\\\|\_\{2\}^\{2\}\.Under detached gating,
Li=sg\(wi\)ℓi\.L\_\{i\}=\\operatorname\{sg\}\(w\_\{i\}\)\\ell\_\{i\}\.Then the gradient with respect to the private model output is
∇fθ\(xi\)Li=2wiri\.\\nabla\_\{f\_\{\\theta\}\(x\_\{i\}\)\}L\_\{i\}=2w\_\{i\}r\_\{i\}\.Therefore, the negative gradient is proportional to
g\(xi\)−fθ\(xi\),g\(x\_\{i\}\)\-f\_\{\\theta\}\(x\_\{i\}\),and the gated output\-level gradient has no larger magnitude than the ungated distillation gradient:
‖∇fθ\(xi\)Li‖2≤‖∇fθ\(xi\)ℓi‖2\.\\left\\\|\\nabla\_\{f\_\{\\theta\}\(x\_\{i\}\)\}L\_\{i\}\\right\\\|\_\{2\}\\leq\\left\\\|\\nabla\_\{f\_\{\\theta\}\(x\_\{i\}\)\}\\ell\_\{i\}\\right\\\|\_\{2\}\.
###### Proof\.
Sincewiw\_\{i\}is detached, it is constant with respect tofθ\(xi\)f\_\{\\theta\}\(x\_\{i\}\)\. Thus,
∇fθ\(xi\)Li=wi∇fθ\(xi\)‖fθ\(xi\)−g\(xi\)‖22\.\\nabla\_\{f\_\{\\theta\}\(x\_\{i\}\)\}L\_\{i\}=w\_\{i\}\\nabla\_\{f\_\{\\theta\}\(x\_\{i\}\)\}\\\|f\_\{\\theta\}\(x\_\{i\}\)\-g\(x\_\{i\}\)\\\|\_\{2\}^\{2\}\.The gradient of the squared error is
∇fθ\(xi\)‖fθ\(xi\)−g\(xi\)‖22=2\(fθ\(xi\)−g\(xi\)\)=2ri\.\\nabla\_\{f\_\{\\theta\}\(x\_\{i\}\)\}\\\|f\_\{\\theta\}\(x\_\{i\}\)\-g\(x\_\{i\}\)\\\|\_\{2\}^\{2\}=2\(f\_\{\\theta\}\(x\_\{i\}\)\-g\(x\_\{i\}\)\)=2r\_\{i\}\.Hence,
∇fθ\(xi\)Li=2wiri\.\\nabla\_\{f\_\{\\theta\}\(x\_\{i\}\)\}L\_\{i\}=2w\_\{i\}r\_\{i\}\.Since0<wi<10<w\_\{i\}<1,
‖2wiri‖2≤‖2ri‖2,\\left\\\|2w\_\{i\}r\_\{i\}\\right\\\|\_\{2\}\\leq\\left\\\|2r\_\{i\}\\right\\\|\_\{2\},which proves the magnitude bound\. The negative gradient is
−2wiri=2wi\(g\(xi\)−fθ\(xi\)\),\-2w\_\{i\}r\_\{i\}=2w\_\{i\}\(g\(x\_\{i\}\)\-f\_\{\\theta\}\(x\_\{i\}\)\),so the distillation update pulls the private prediction toward the proxy prediction without reversing the squared\-error distillation direction\. ∎
###### Corollary 2\(Classification output\-level influence\)\.
For classification, let
zi=fθ\(xi\),pi=softmax\(zi\),qi=softmax\(g\(xi\)\),z\_\{i\}=f\_\{\\theta\}\(x\_\{i\}\),\\qquad p\_\{i\}=\\mathrm\{softmax\}\(z\_\{i\}\),\\qquad q\_\{i\}=\\mathrm\{softmax\}\(g\(x\_\{i\}\)\),whereqiq\_\{i\}is treated as fixed during the private\-model update\. Let the distillation loss be
ℓi=KL\(qi∥pi\)\.\\ell\_\{i\}=\\mathrm\{KL\}\(q\_\{i\}\\\|p\_\{i\}\)\.Under detached gating,
Li=sg\(wi\)ℓi\.L\_\{i\}=\\operatorname\{sg\}\(w\_\{i\}\)\\ell\_\{i\}\.Then
∇ziLi=wi\(pi−qi\)\.\\nabla\_\{z\_\{i\}\}L\_\{i\}=w\_\{i\}\(p\_\{i\}\-q\_\{i\}\)\.Moreover,
‖∇ziLi‖2≤‖pi−qi‖2≤2\.\\left\\\|\\nabla\_\{z\_\{i\}\}L\_\{i\}\\right\\\|\_\{2\}\\leq\\left\\\|p\_\{i\}\-q\_\{i\}\\right\\\|\_\{2\}\\leq\\sqrt\{2\}\.
###### Proof\.
The KL loss can be written as
ℓi=KL\(qi∥pi\)=∑cqiclogqic−∑cqiclogpic\.\\ell\_\{i\}=\\mathrm\{KL\}\(q\_\{i\}\\\|p\_\{i\}\)=\\sum\_\{c\}q\_\{ic\}\\log q\_\{ic\}\-\\sum\_\{c\}q\_\{ic\}\\log p\_\{ic\}\.The first term is constant with respect toziz\_\{i\}\. Sincepi=softmax\(zi\)p\_\{i\}=\\mathrm\{softmax\}\(z\_\{i\}\), the gradient of the cross\-entropy term with respect to logits is
∇ziℓi=pi−qi\.\\nabla\_\{z\_\{i\}\}\\ell\_\{i\}=p\_\{i\}\-q\_\{i\}\.Becausewiw\_\{i\}is detached,
∇ziLi=wi∇ziℓi=wi\(pi−qi\)\.\\nabla\_\{z\_\{i\}\}L\_\{i\}=w\_\{i\}\\nabla\_\{z\_\{i\}\}\\ell\_\{i\}=w\_\{i\}\(p\_\{i\}\-q\_\{i\}\)\.Since0<wi<10<w\_\{i\}<1,
‖∇ziLi‖2=wi‖pi−qi‖2≤‖pi−qi‖2\.\\left\\\|\\nabla\_\{z\_\{i\}\}L\_\{i\}\\right\\\|\_\{2\}=w\_\{i\}\\\|p\_\{i\}\-q\_\{i\}\\\|\_\{2\}\\leq\\\|p\_\{i\}\-q\_\{i\}\\\|\_\{2\}\.
It remains to show that‖pi−qi‖2≤2\\\|p\_\{i\}\-q\_\{i\}\\\|\_\{2\}\\leq\\sqrt\{2\}\. Letv=pi−qiv=p\_\{i\}\-q\_\{i\}\. Since bothpip\_\{i\}andqiq\_\{i\}are probability vectors,∑cvc=0\\sum\_\{c\}v\_\{c\}=0\. Letvc\+=max\(vc,0\)v^\{\+\}\_\{c\}=\\max\(v\_\{c\},0\)andvc−=max\(−vc,0\)v^\{\-\}\_\{c\}=\\max\(\-v\_\{c\},0\)\. Then
‖v\+‖1=‖v−‖1=a\\\|v^\{\+\}\\\|\_\{1\}=\\\|v^\{\-\}\\\|\_\{1\}=afor somea≤1a\\leq 1\. Therefore,
‖v‖22=‖v\+‖22\+‖v−‖22≤‖v\+‖12\+‖v−‖12=2a2≤2\.\\\|v\\\|\_\{2\}^\{2\}=\\\|v^\{\+\}\\\|\_\{2\}^\{2\}\+\\\|v^\{\-\}\\\|\_\{2\}^\{2\}\\leq\\\|v^\{\+\}\\\|\_\{1\}^\{2\}\+\\\|v^\{\-\}\\\|\_\{1\}^\{2\}=2a^\{2\}\\leq 2\.Thus,
‖pi−qi‖2≤2\.\\\|p\_\{i\}\-q\_\{i\}\\\|\_\{2\}\\leq\\sqrt\{2\}\.∎
##### Remark\.
When the full objective includes the factorλkd\\lambda\_\{\\mathrm\{kd\}\}, the distillation gradients in Corollaries[1](https://arxiv.org/html/2605.05553#Thmcorollary1)and[2](https://arxiv.org/html/2605.05553#Thmcorollary2)are scaled byλkd\\lambda\_\{\\mathrm\{kd\}\}\.
These results do not claim that the gate theoretically guarantees a reduction in final negative transfer\. Rather, they show that the proposed batch\-normalized logistic gate provides a principled relative trust assignment and that, under stop\-gradient gating, it modulates the per\-sample distillation influence without reversing the underlying distillation direction\.
## Appendix GData Licence & Data Statistics
### G\.1License and Ethics
All datasets used in this work are publicly available and are used in accordance with their respective licenses and terms of use\. The medical imaging datasets \(OCTMNIST, OrganAMNIST, and RetinaMNIST\) are derived from MedMNIST \([https://medmnist\.com/](https://medmnist.com/)\) and are released under the Creative Commons Attribution \(CC BY 4\.0\) license\. The Diabetic Retinopathy dataset is obtained via the MedIMeta benchmark \([https://www\.woerner\.eu/projects/medimeta/](https://www.woerner.eu/projects/medimeta/)\), which aggregates multiple medical imaging datasets for research use\. FashionMNIST is distributed under the MIT License, while CIFAR\-10 is released for research purposes\. All datasets consist of de\-identified images and annotations\. We properly cite all original data sources and comply with their usage restrictions\.
### G\.2Data Statistics
We evaluateFedeKDon six public benchmarks spanning standard vision datasets and diverse medical imaging tasks\. These datasets cover heterogeneous data modalities, multi\-class classification, and ordinal regression tasks, with dataset sizes ranging from thousands to hundreds of thousands of samples\.
### Datasets Overview
Table 3:Summary of datasets used in our experiments\. We include standard vision benchmarks and diverse medical imaging datasets spanning classification and regression tasks\.
### Federated Split and Heterogeneity Design
For all datasets, we simulate a cross\-silo FL setting withK=6K=6clients\. Data are first partitioned across clients using a Dirichlet distribution with concentration parameterα∈\{0\.1,0\.3,0\.5\}\\alpha\\in\\\{0\.1,0\.3,0\.5\\\}, where smaller values induce stronger heterogeneity\. Unless otherwise specified, the same split procedure is applied for each value ofα\\alpha\.
For classification tasks, this produces label skew across clients\. For regression tasks \(RetinaMNIST and Diabetic Retinopathy\), we induce covariate shift by clustering feature representations intoB=5B=5bins using K\-means and applying the Dirichlet partition over these clusters\.
After Dirichlet partitioning, each client’s local dataset is further split into training, validation, and test subsets with proportions 60%, 20%, and 20%, respectively\. The training split is used for model optimization, the test split is used for evaluating negative transfer and robustness metrics, and the validation split is reserved for baselines that require an additional hold\-out set \(e\.g\., FedType in this work\)\. Before splitting, each client’s data are randomly permuted to avoid ordering bias\.
##### RetinaMNIST and Diabetic Retinopathy as Regression\.
RetinaMNIST and Diabetic Retinopathy are originally defined as ordinal classification problems with five ordered grades\. In our work, we treat both datasets as regression tasks by modeling the ordered labels as numeric targets\. This formulation enables evaluation ofFedeKDunder a regression\-style setting while preserving the ordinal structure of disease severity levels\.
## Appendix HStudy Design
##### Federated Setup\.
We simulate a cross\-silo federated learning system withK=6K=6clients\. All experiments are repeated over1010independent random seeds, and we report the mean and standard deviation across runs\.
##### Controlled Heterogeneity\.
To rigorously evaluateFedeKDunder realistic non\-IID conditions, we introduce two controlled sources of heterogeneity: data heterogeneity and model asymmetry between private and proxy networks within each client\.
### Data Heterogeneity \(Client\-Level Distribution Shift\)
Heterogeneity is introduced during the initial Dirichlet partitioning stage, affecting the entire local dataset of each client\. Smaller values ofα\\alphainduce stronger heterogeneity\.
- •Classification Tasks\.For binary and multi\-class classification datasets, we apply Dirichlet label skew\. For each classcc, samples belonging to classccare distributed across clients according to proportions drawn from a Dirichlet distribution\. This produces label imbalance and heterogeneous class priors across clients\.
- •Regression Tasks\.For regression tasks, covariate shift is induced by applying K\-means clustering \(B=5\) directly on the input feature vectors \(i\.e\., flattened images after preprocessing\)\. No pretrained feature extractor is used; clustering is performed in the original input space\.
As a result, both training and evaluation are performed under heterogeneous client\-specific data distributions\.
### Model Asymmetry \(Private–Proxy Architecture\)
Model heterogeneity inFedeKDarises from the asymmetric design between private and proxy models rather than differences across clients\.
Each client maintains two models: a high\-capacityprivate modelfor local learning and a lightweightproxy modelfor cross\-client knowledge exchange\. While all clients share the same model architectures, heterogeneity is introduced through the distinct roles and capacities of these two models\.
#### Classification Models
For classification tasks, we use the following architectures:
- •Private Model \(PrivateCNN\)\.A higher\-capacity convolutional neural network with three convolutional layers \(64 → 128 → 128 channels\), followed by a fully connected layer \(256 units\) and a task\-specific output head\. This model captures rich feature representations and serves as the primary learner\.
- •Proxy Model \(ProxyCNN\)\.A lightweight convolutional model with two convolutional layers \(32 → 64 channels\) and a smaller feature dimension \(128 units\)\. This model is used for communication and aggregation across clients\.
Both models share the same input space but differ in representational capacity, creating an asymmetric knowledge transfer setting\. This asymmetry is central toFedeKD, as it introduces potential discrepancies between models that motivate the need for reliability\-aware knowledge transfer\.
#### Regression Models
For regression tasks, we use the same architectural design, with the output layer modified to produce a scalar prediction\. The private model retains higher representational capacity, while the proxy model remains lightweight, preserving the asymmetric design across tasks\.
## Appendix IWorstΔ\\Delta
Table 4:Worst\-case negative transfer \(WorstΔ\\Delta\) for classification tasks measured \(higher is better\)\.FedeKDconsistently delivers the strongest worst\-case robustness, substantially reducing the severity of negative transfer in the most vulnerable clients across all settings\.Table 5:Worst\-case negative transfer \(WorstΔ\\Delta\) for regression tasks measured \(lower is better\)\.FedeKDconsistently minimizes worst\-case degradation, showing strong robustness against extreme negative transfer\.
## Appendix JP10 and P90
Table 6:Measurement of lower\-tail negative transfer \(P10Δ\\Delta\) for classification tasks \(higher is better\)\.FedeKDconsistently improves lower\-tail client robustness, showing that the reduction in negative transfer also extends to clients near the bottom of the performance distribution\.Table 7:Measurement of upper\-tail negative transfer \(P90Δ\\Delta\) for regression tasks \(lower is better\)\.FedeKDconsistently achieves the lowest P90Δ\\Delta, indicating strong robustness in high\-error clients and effective mitigation of severe negative transfer\.
## Appendix KAccuracy & RMSE
Table 8:Mean client accuracy for classification tasks \(higher is better\)\. AlthoughFedeKDis designed primarily to reduce negative transfer rather than to optimize accuracy alone, it remains consistently top\-tier in mean client accuracy across datasets and heterogeneity levels\.Table 9:Mean client RMSE for regression tasks \(lower is better\)\. While our primary objective is to mitigate negative transfer,FedeKDalso achieves the lowest RMSE across both regression benchmarks under all heterogeneity levels\.
## Appendix LRole of Energy\-based Gating
To evaluate the role of the energy function in reliability\-aware gating, we consider several alternative formulations that capture different notions of uncertainty and disagreement\. In all cases, the energy score is first converted into a batch\-normalized relative energyE~i=\(Ei−μB\)/\(sB\+ϵB\)\\widetilde\{E\}\_\{i\}=\(E\_\{i\}\-\\mu\_\{B\}\)/\(s\_\{B\}\+\\epsilon\_\{B\}\)and then mapped to a trust weightwi=ρ\(−βE~i\)w\_\{i\}=\\rho\(\-\\beta\\widetilde\{E\}\_\{i\}\), following Eq\.[3](https://arxiv.org/html/2605.05553#S3.E3)\. Thus, samples with higher relative energy within the minibatch receive lower trust weights\.
Table 10:Ablation study of backward distillation strategies under different energy functions\.No Gatingapplies ungated full\-trust backward distillation\. Alternative energy functions \(entropy,margin,log\-sum\-exp, andfeature\-baseddistances\) are evaluated under the same training protocol\.FedeKDconsistently achieves the best or second\-best in reducing negative transfer and maintaining stability\.Entropy\-based energy\.We first consider predictive entropy as a measure of model uncertainty\. Given logitsz∈ℝCz\\in\\mathbb\{R\}^\{C\}and the corresponding probability vectorp=σ\(z\)p=\\sigma\(z\), the entropy energy is defined as
Eentropy\(x\)=−∑c=1Cpclog\(pc\+ϵ\),E\_\{\\text\{entropy\}\}\(x\)=\-\\sum\_\{c=1\}^\{C\}p\_\{c\}\\log\(p\_\{c\}\+\\epsilon\),\(6\)whereϵ\\epsilonis a small constant for numerical stability\. Low entropy corresponds to confident predictions and thus low energy, while high entropy indicates uncertainty and leads to higher energy\.
Margin\-based energy\.Margin energy measures the confidence gap between the top two predicted classes\. Letz\(1\)z\_\{\(1\)\}andz\(2\)z\_\{\(2\)\}denote the largest and second\-largest logits, respectively\. The margin\-based energy is defined as
Emargin\(x\)=−\(z\(1\)−z\(2\)\)\.E\_\{\\text\{margin\}\}\(x\)=\-\\left\(z\_\{\(1\)\}\-z\_\{\(2\)\}\\right\)\.\(7\)A larger margin indicates more confident predictions and thus lower energy, while a small margin reflects ambiguity and results in higher energy\.
LogSumExp \(LSE\) energy\.We also consider the classical energy\-based score derived from the LogSumExp operator:
ELSE\(x\)=−log∑c=1Cexp\(zc\)\.E\_\{\\text\{LSE\}\}\(x\)=\-\\log\\sum\_\{c=1\}^\{C\}\\exp\(z\_\{c\}\)\.\(8\)This formulation is widely used in energy\-based models and out\-of\-distribution detection, where lower values correspond to higher confidence\.
Feature\-distance \(FEAT\) energy\.Finally, we consider a feature\-space discrepancy between the proxy and private models\. Letfproxy\(x\)f\_\{\\text\{proxy\}\}\(x\)andfprivate\(x\)f\_\{\\text\{private\}\}\(x\)denote the intermediate feature representations extracted from the two models\. The feature\-distance energy is defined as
Efeat\(x\)=‖hproxy\(x\)−hprivate\(x\)‖2,E\_\{\\text\{feat\}\}\(x\)=\\\|h\_\{\\text\{proxy\}\}\(x\)\-h\_\{\\text\{private\}\}\(x\)\\\|\_\{2\},\(9\)wherehprivate\(x\)h\_\{\\text\{private\}\}\(x\)denotes the projected private feature representation, obtained via a linear projection layer to match the proxy feature dimension\. This formulation directly measures representation\-level disagreement rather than output\-level uncertainty\.
## Appendix MSensitivity toλkd\\lambda\_\{\\text\{kd\}\}
Figure 4:AvgΔ\\Deltaacrossλkd\\lambda\_\{\\text\{kd\}\}values on CIFAR\-10 and OrganAMNIST atα=0\.5\\alpha=0\.5\. In practice,λkd∈\[0\.25,0\.5\]\\lambda\_\{\\text\{kd\}\}\\in\[0\.25,0\.5\]works better under this setting\.Similar Articles
FLoKD: Adaptive Knowledge Distillation for Federated Low-Rank LLM over Wireless Networks
The paper proposes FLoKD, an adaptive knowledge-distillation framework for federated LoRA fine-tuning of LLMs over wireless networks, reducing communication overhead by 50-65% while maintaining competitive performance.
Towards Federated Long-Tailed Graph Learning: An Energy-Guided Dual Decoupling Approach
This paper introduces FedEPD, a framework for federated graph learning under long-tailed data distributions. It uses an energy-guided dual decoupling approach to separate topological purification from semantic recalibration, achieving state-of-the-art performance on benchmarks with up to 4.97% accuracy improvement.
FedeRage: Provably Convergent Agnostic Federated Learning under General Client Drift
The paper introduces FedeRage, a risk-averse federated learning method that uses conditional value-at-risk to address unknown client participation and heterogeneity, demonstrating enhanced accuracy, fairness, and convergence in experiments.
Rethinking Reverse KL as Adaptive Entropy Distillation
This paper proposes Adaptive Entropy Distillation (AED), a method that dynamically calibrates token-level imitation strength in knowledge distillation using teacher entropy, achieving superior performance on instruction-following and mathematical reasoning benchmarks.
CRAD: Class-wise Reliability-Aware Distillation for Decentralized Heterogeneous Federated Learning
The paper proposes CRAD, a class-wise reliability-aware distillation method for decentralized federated learning to handle heterogeneous architectures and non-IID data, achieving improved accuracy on image classification benchmarks.