Manuscript Offprint

arXiv:2609.05884

CALM: Class-wise Agreement and Label-gated Disagreement Modulation for Decentralized Federated Learning

Yifan Ying, Qing Tian

ABSTRACT

Conventional federated learning relies on parameter averaging, which forces clients to be doubly homogeneous: all must run an identical architecture, and accuracy degrades when local data are non-IID. Decentralized federated distillation sidesteps both: each client runs its peers' model snapshots as teachers on its own local data and distills from their soft predictions, with no server, no public data, and no shared architecture. Under severe non-IID skew, however, the trustworthiness of the aggregated teacher target is a matter of degree, yet existing pipelines make hard, all-or-nothing decisions: outlier teachers are discarded by threshold, and whatever target survives is trusted in full. We propose CALM, which replaces every hard decision with a smooth trust gate at three levels: per class, teachers are weighted by agreement with the peer consensus; per sample, distillation is scaled by the teachers' divergence from that target; and a label gate scales it by how strongly the target supports the sample's true label. None of this adds communication or auxiliary data. On CIFAR-10, SVHN, OrganAMNIST, and Google Speech Commands with heterogeneous client architectures under Dirichlet label skew, CALM consistently outperforms uniform and hard-filtered distillation and matches or exceeds competing heterogeneous-FL methods.

Index Terms— Federated learning, knowledge distillation, non-IID data, model heterogeneity, ensemble disagreement

1. INTRODUCTION

Federated learning (FL) trains models across clients without centralizing raw data [1, 2], but its canonical instrument, parameter averaging, imposes two forms of homogeneity that practical deployments rarely satisfy: all clients must share one architecture, and performance degrades sharply when local data are non-IID [3, 4, 5, 6]. Knowledge distillation (KD) escapes the architectural constraint by exchanging soft predictions rather than weights [7, 8, 9], and its fully decentralized variant removes the central server and public transfer set as well: each client shares only a model snapshot, instantiated its peers as local teachers, evaluates them on its own private data, and distills from their combined soft predictions [5, 10]. The appeal is concrete: picture a fleet of voice-assistant devices jointly learning spoken-command recognition, where a home hub with an AI accelerator serves a full-scale acoustic model, a budget smartphone can host only compact ones, raw voice recordings must never leave the device, and each device hears its own skewed slice of the command vocabulary, speakers, and acoustic conditions. Peer distillation fits exactly: any two models over the same label space can exchange knowledge as black boxes, and because each teacher is evaluated on the student's own recordings, no audio ever leaves a device, yet

knowledge of commands a device rarely hears still reaches it from peers that hear them often.

In this setting, the distillation target for every training sample is an aggregate of peer teacher predictions, and under heterogeneous, non-IID data its quality is sharply uneven: for a sample whose class most peers have barely seen, the teacher pool splinters into a few informed opinions and many guesses. Prior methods respond with hard decisions. Agreement filtering discards teachers that deviate from the peer consensus beyond a fixed threshold [11], echoing Byzantine-robust aggregation [12]; the surviving teachers are then averaged, and the resulting target is imposed on the student with full force on every sample. Each hard decision loses graded information: a teacher just past the cutoff is silenced entirely while one just inside speaks at full volume, and a target formed from a pool in open conflict teaches as loudly as one backed by unanimous consensus.

We propose to make trust graded everywhere. Our method, CALM (Class-wise Agreement and Label-gated Disagreement Modulation), replaces the pipeline's hard decisions with three smooth gates operating at three levels. At the teacher-class level, each teacher's contribution to the target for class cc is weighted by exp⁡(−Δ/τ)\exp(-\Delta/\tau), where Δ\Delta is its deviation from the per-class peer consensus, so that agreement is rewarded continuously where a hard filter would impose a cutoff and discard the graded evidence. At the sample level, following the intuition that ensemble disagreement proxies epistemic uncertainty [13], the KD loss is scaled by exp⁡(−d(x)/σ)\exp(-d(x)/\sigma), where d(x)d(x) is the teachers' mean divergence from the aggregated target, so contested targets contribute less than consensual ones. Both signals, however, are label-free and can be fooled when correlated teachers confidently agree on the wrong class. The third gate therefore anchors trust in the one piece of ground truth the client holds: distillation is further gated by (qˉy)η(\bar{q}^y)^\eta, the probability the aggregated target assigns to the sample's true label, so peer knowledge that contradicts local evidence is attenuated rather than absorbed.

Our contributions are: (1) we identify the all-or-nothing treatment of teacher trust, both in target construction and in loss application, as a failure mode of decentralized federated KD under non-IID data; (2) we propose CALM, three composable smooth trust gates (soft class-wise agreement, disagreement-modulated loss, and a label-consistency gate) that add no communication, no auxiliary data, and no learned parameters; and (3) on CIFAR-10, SVHN, OrganAMNIST, and Google Speech Commands, under heterogeneous architectures and severe Dirichlet skew, CALM improves global accuracy over uniform and hard-filtered distillation and matches or exceeds competing methods, with each gate contributing and the combination strongest. Beyond accuracy, the weight λ(x,y)\lambda(x, y) that CALM assigns to each sample also separates samples whose peer target is wrong from those whose target is right (Fig. 2), a built-in indicator of where peer supervision can be trusted.

*Corresponding author: qtian@uab.edu.

Figure

Fig. 1: Overview of the CALM framework. Left: in a server-free, public-data-free setting, clients with heterogeneous architectures exchange model snapshots, never raw data, and a student obtains teacher logits by running each on its own local batch. Top middle (Gate 1): CALM builds a soft class-wise agreement target, downweighting each teacher smoothly as it deviates from the peer consensus and renormalizing onto the probability simplex. Bottom middle (Gate 2): teacher disagreement around the aggregated target becomes a per-sample trust factor that lowers distillation strength when the pool conflicts. Bottom right (Gate 3): the label-consistency gate reads how strongly the target supports the ground-truth label, attenuating distillation when the target contradicts local evidence. Top right: the final KD weight multiplies Gates 2 and 3; the heatmap shows λ=λdis⋅g\lambda = \lambda^{\text{dis}} \cdot g varying smoothly from full-strength to weak distillation, with no threshold anywhere.

References (22)