FedIDM: Achieving Fast and Stable Convergence in Byzantine Federated Learning through Iterative Distribution Matching
arXiv:2604.15115v1 [cs.LG] 16 Apr 2026
He Yang , Dongyi Lv , Wei Xi , Song Ma , Hanlin Gu , Jizhong Zhao
Abstract Most existing Byzantine-robust federated learning (FL) methods suffer from slow and unstable convergence. Moreover, when handling a substantial proportion of colluded malicious clients, achieving robustness typically entails compromising model utility. To address these issues, this work introduces FedIDM, which employs distribution matching to construct trustworthy condensed data for identifying and filtering abnormal clients. FedIDM consists of two main components: (1) attacktolerant condensed data generation, and (2) robust aggregation with negative contribution-based rejection. These components exclude local updates that (1) deviate from the update direction derived from condensed data, or (2) cause a significant loss on the condensed dataset. Comprehensive evaluations on three benchmark datasets demonstrate that FedIDM achieves fast and stable convergence while maintaining acceptable model utility, under multiple state-of-the-art Byzantine attacks involving a large number of malicious clients.
1
Introduction
Federated learning (FL) [Kairouz et al., 2021; Huang et al., 2024; Yang et al., 2019; Lyu et al., 2022] facilitates learning from decentralized data sources while preserving privacy, enabling a wide range of promising, privacy-enhancing applications. Despite its advantages, the non-transparent nature of local training data and processes renders FL vulnerable to various Byzantine attacks [Wan et al., 2023; Li et al., 2023; Dong et al., 2023; Zhao et al., 2024; Liu et al., 2024], where the attacker-controlled malicious clients corrupt the model utility by submitting manipulated model updates. Thus far, considerable efforts have been dedicated to developing Byzantine-robust methods, which can be broadly classified into two categories. Firstly, one prevalent approach focuses on eliminating geometrical outliers using statistical techniques such as [Blanchard et al., 2017; Guerraoui et al., 2018; Yin et al., 2018]. Secondly, another line of research explores anomaly detection techniques, including consistency checks [Zhang et al., 2022], update inversion [Zhao et al., 2022], and trust bootstrapping [Cao et al., 2021], to
Existing Defenses
…
… Σ
…
Σ
…
client 1 client 2 client N convergence curve client 1 client 2 malicious clients
Figure 1: Problem illustration. When handling a substantial proportion of colluded malicious clients, most existing Byzantine-robust methods may inadvertently discard valuable updates while preserving poisoned ones, hindering fast and stable convergence.
mitigate the impact of poisoned updates. Although these defenses demonstrate effectiveness against Byzantine attacks in certain scenarios, they face an important limitation when a substantial proportion of malicious clients engage in collusion. In such a case, these methods may inadvertently discard valuable updates from honest participants while retaining poisoned ones, hindering fast and stable convergence (see Figure 1), which is crucial for the effectiveness of Byzantinerobust FL methods [Huang et al., 2024]. To address this issue, we introduce FedIDM, an efficient Byzantine-robust federated learning framework based on iterative distribution matching(in Figure 2). FedIDM divides the federated training process into two stages. In the former stage, FedIDM employs iterative distribution matching to construct compact synthetic datasets (i.e., condensed data) for global model training, which encapsulates rich and representative information, thereby accelerating convergence. In the latter stage, the server adjusts each client’s local update using historical information and evaluates them on the condensed data. These updates are then aggregated using robust aggregation (RA) with a negative contribution-based rejection strategy to mitigate the impact of poisoned updates, preserving model utility and ensuring stable convergence. However, a significant challenge in FedIDM arises when constructing trustworthy condensed data, as malicious clients may launch label-flipping attacks [Jiang et al., 2023; Jebreel et al., 2024; Jebreel and Domingo-Ferrer, 2023] during this process. Defending against such attacks is challenging for two reasons: Firstly, the compression process in distribu-
tion matching necessitates a delicate balance between efficiency and information granularity, potentially causing the loss of critical details needed to detect subtle alterations. Furthermore, data heterogeneity introduces diversity in condensed data, complicating the establishment of a standardized anomaly detection mechanism. Therefore, we introduce an attack-tolerant condensed data generation (ACDG) scheme via contrastive label rectification into FedIDM. Concretely, contrastive learning combined with a Gaussian Mixture Model (GMM) is used to update a rectification network, which mitigates label pollution caused by label-flipping attacks in the condensed data. The rectification network processes each data point, generating model predictions as pseudo-labels. The pseudo-labeled condensed data are then utilized to update the global model. Overall, our contributions can be summarized as follows: • We introduce FedIDM, which leverages iterative distribution matching to ensure robustness while facilitating fast and stable convergence. • FedIDM has a minimal impact on model utility, even in scenarios involving a significant proportion of colluded malicious clients. • We empirically evaluate FedIDM against multiple stateof-the-art attacks on three benchmark datasets, demonstrating a substantial improvement compared to existing defenses.
2
Related Work
Byzantine Attacks against FL. In FL, Byzantine attacks are designed to diminish the global model’s performance by corrupting a portion of the training data or manipulating local model updates during aggregation. In this study, we investigate three state-of-the-art Byzantine attacks: little is enough (LIE) [Baruch et al., 2019], static optimization (STAT-OPT) [Shejwalkar and Houmansadr, 2021; Shejwalkar et al., 2022], and Dynamic Optimization (DYNOPT) [Shejwalkar and Houmansadr, 2021; Shejwalkar et al., 2022]. LIE: The Little Is Enough (LIE) attack subtly corrupts the aggregation process by injecting minimal noise into each dimension of the averaged benign updates. Initially, the adversary calculates the average (∇b ) and standard deviation (σ) of the benign updates. Subsequently, a scaling coefficient (z) is derived from the ratio of compromised to benign clients. The adversarial update is formulated as ∇′ = ∇b + z · σ. STAT-OPT: The Static Optimization (STAT-OPT) attack introduces a general framework for poisoning in FL and customizes it for specific aggregation rules. The attack initiates by computing the average benign update, denoted as ∇b . It then determines a static malicious direction, denoted as ω = −sign(∇b ). The final poisoned update, ∇′ , is computed as −γω, where γ is a suboptimal value chosen to bypass the target aggregation rule. DYN-OPT: The Dynamic Optimization (DYN-OPT) begins by calculating the average of the benign updates, denoted as ∇b . It then perturbs this average in a dynamic, datadependent malicious direction, ω, to compute the final poi-
Table 1: Notations and Definitions.
Notation
Definition
f (·) h(·) h(si )k γik
Feature extractor of the rectification network. Classifier of the rectification network. Probability of si belonging to the k-th class. Probability of the i-th data point belonging to the k-th class. The transformed data of si . Local update of the i-th client. Base update on the server-side. Global model The condensed data during the t-th round.
(1)
(2)
si , si gi gs w St
soned update, ∇′ = ∇b + γω. The parameter γ is chosen to be the largest value that effectively circumvents the target aggregation rule. Byzantine-Robust FL Methods. Considerable research efforts have been dedicated to developing robust FL methods to counter Byzantine attacks.These approaches generally fall into four categories: statistical defenses, anomaly detection defenses, trust-bootstrapping defenses, and client-side defenses. However, several challenges persist: (1) The large number of participants and the non-IID nature of client data complicate the detection of poisoned updates, as local updates inherently exhibit high variability. (2) colluded malicious clients can blend poisoned updates with legitimate ones. (3) The adversary can leverage its potential knowledge to craft stealthy attacks, further complicating the detection of poisoning attempts. Consequently, existing defense strategies often suffer from slow and unstable convergence. Furthermore, in scenarios with a significant proportion of compromised and colluded clients, achieving robustness typically comes at the expense of model utility. These limitations underscore the need for advanced and more effective defense mechanisms.
3
Methodology
This section focuses on the detailed design of FedIDM. For clarity, the symbols used in this work and their corresponding explanations are provided in Table 1.
3.1
Threat Model
Adversary’s Objective. The training objective of FedIDM is defined as the following optimization problem: P|S| 1 w∗ = arg minw∈Rd 1[t ≤ T ] |S| i=1 ℓ(si , yi ; w) + 1[t > PN 1 d T ] N i=1 fi (w), where w ∈ R represents the parameter to be optimized, t denotes the communication round between clients and the server, and T is a constant. S represents the condensed data, si denotes a single data point in S, yi corresponds to the annotated label, which could potentially be a dirty label from an adversary. N is the total number of clients, each of whom conducts local training with the local objective fi : Rp → R based on its private dataset Di . In Byzantine FL, the adversary seeks to disrupt convergence by injecting malicious updates, thereby hindering global model optimization and diminishing its utility in real-world applications.
ACDG …
1 0 0
encoder
0 0 1
Eq.(1)
f(·) h(·)
0.1 0.2 0.2 … 0.2 correction 0.7 0.6 label
local
RA
training server training
𝒈𝑖 𝑁 𝑖=1
𝒈1′
𝒈1
𝒈′2 𝒈2 𝒈′3
𝑔1′
1.32
𝛼𝑖 = 𝑐𝑜𝑠 𝒈′𝑖 , 𝒈𝑠
𝒈3
𝒈′4
0.97
𝒈′5
1.04
σ𝑖 𝛼𝑖 𝒈′𝑖 𝒈= σ𝑖 𝛼𝑖
calculate loss
aggregation
𝒈𝑠 𝒈𝑠
𝒈′5
training
pseudo labels
polluted labels condensed data rectification network
local data
global
𝒈5 𝒈′4
𝒈4 Eq.(8)
global updating
Figure 2: Framework of FedIDM. f (·) and h(·) denote the feature extractor and classifier, respectively.
Adversary’s Capabilities. Following the attack setting in previous works [Fang et al., 2020; Shejwalkar and Houmansadr, 2021; Shejwalkar et al., 2022], FedIDM adopts and extends certain assumptions regarding the capabilities of the adversary: (1) The adversary cannot access the training data of honest clients but has visibility into the local updates of honest clients. (2) The adversary can control multiple clients, referred to as malicious clients, under the assumption that their number may constitute up to 50% of the total clients. (3) The adversary repetitively and dynamically executes attacks throughout the training process across multiple rounds. In this work, we randomly designate 50% of the total rounds as adversarial rounds. (4) The adversary cannot influence the server (such as altering aggregation rules) or interfere with the training process of other honest clients.
3.2
Attack-tolerant Condensed Data Generation
During the attack-tolerant condensed data generation (ACDG) stage, clients locally generate a series of condensed data and then communicate condensed data to the central server. Subsequently, the server aggregates condensed data from all clients to facilitate the training of a global model. Inspired by recent advances in data distillation [Zhao and Bilen, 2023; Zhao et al., 2023; Wang et al., 2022; Xiong et al., 2023], we formulate the following minimization problem to generate condensed data: |D| |S| 1 X 1 X S = arg min Eθ∼Pθ ∥ ϕθ (xi ) − ϕθ (sj )∥2 S |D| i=1 |S| j=1 ∗
+ υLCE (S) (1) where D and S denote the local training data and condensed data, respectively. Pθ represents the distribution of the randomly initialized network parameters, and ϕθ refers to the model ϕ with parameters θ. LCE indicates the crossentropy loss, and υ represents the regularization term. For simplicity, we omit the client subscript, as all clients follow the same optimization process.
However, this process is vulnerable to label-flipping attacks by the adversary, potentially disrupting model training. Therefore, we propose a contrastive label rectification method that incorporates a rectification network, consisting of a shared encoder, a feature extractor f (·), and a classifier h(·). ACDG involves two main stages: (1) modeling the distribution of condensed data. (2) generating pseudo-labels as the rectified labels and updating the global model. Modeling the Distribution of Condensed Data. Firstly, ACDG utilizes a sliding window mechanism combined with semantic transformations for data augmentation. Specifically, at round t, we consolidate condensed data from t−(δ −1) to t and feed them into the rectification network to cleanse potentially polluted labels. Given the aggregated condensed data S̄ (defined as {S t−(δ−1) , · · · , S t }), comprising m data points {s1 , · · · , sm }, we apply semantic transformations through data augmentation techniques (such as flipping and cropping) to each data point twice. This yields a new set Se = (1) (2) (1) (2) (1) (2) {s1 , s1 , · · · , sm , sm }, where si and si denote transformed data points. Subsequently, a GMM is utilized to model the distribue Upon tion of Se over its encoded representation r = f (S). introducing discrete latent variables z ∈ {1, 2, · · · , K}, which correspond to the distinct categories within the original dataset, the GMM is specified as follows: p(r) =
K X k=1
p(r, z = k) =
K X
p(z = k)N (r; µk , σk I)
k=1
(2) where µk and σk represent the mean vector and standard deviation scalar of the k-th component in the GMM. I denotes the identity matrix. For the sake of convenience in description, we denote Se as {s′1 , · · · , s′2m } here. During the parameter update phase of the GMM, we employ the model predictions h(s′i ) for i = 1, · · · , 2m to guide the parameter adjustment process. Specifically, we integrate the model predictions into a standard Expectation-Maximization (EM) algorithm [Dempster et al., 1977], replacing the traditional posterior probabilities.
Consequently, the updated GMM parameters are determined as follows: P2m ′ i=1 h(si )k ri µk = P ′ i h(si )k (3) P2m ′ T k (ri − µk )(ri − µk ) i=1 h(si )P σk = ′ i h(si )k where h(s′i )k is the probability that the rectification network assigns data point s′i to the k-th category. Additionally, ri denotes the embedded representation of s′i . Generating Pseudo-labels After constructing the GMM, we proceed to calculate posterior probabilities γik , which quantify the probability that the i-th data point is assigned the k-th category: exp −(ri − µk )T (ri − µk )/2σk γik = PK (4) T k=1 exp (−(ri − µk ) (ri − µk )/2σk ) For each original sample si with its claimed label yi , we determine the probability of the sample belonging to category k = yi based on γik . After calculating the posterior probabilities for the condensed data, we construct a two-component GMM, defined as follows: 1 X p(γiyi ) = p(γiyi , b) (5) b=0
where b is a binary latent variable representing the probability that γiyi belongs to a benign or malicious component. Subsequently, FedIDM relabels the transformed data points e within S: ( (1) (1) ỹi = βi yi + (1 − βi )h(si ) (6) (2) (2) ỹi = βi yi + (1 − βi )h(si ) where βi ∈ [0, 1] represents the posterior probability that si is free from pollution, as estimated by the two-component GMM, and yi denotes the claimed label. After relabeling the condensed knowledge, we calculate the loss for updating the rectification network: L = Lce + Lctr + Lmixup (7) where Lce denotes the cross-entropy loss, which is Pm (1) (2) (2) (1) given by i=1 ℓ h(si ), ỹi + ℓ h(si ), ỹi , ensuring that the rectification network’s predictions for a pair of transformed data points are consistent. Lctr ] defined as is the InfoNCE loss [Oord et al., 2018 (1) (2) exp f (si )T f (si )/τ P , which pro− log (1) (2) P (1) T s ,s ∈S̃ i
i
sj ∈S̄\si exp
f (si ) f (sj )/τ
motes the learning of meaningful representations. Furthermore, Lmixup is the cross-entropy loss for a mixed sample using the Mixup method [Zhang et al., 2018], calculated as (m) (m) (m) ℓ(h(si ), ỹim ), where si = ρsi + (1 − ρ)sj , ỹi = (1) (2) (1) (2) ρ((ỹi + ỹi )/2) + (1 − ρ)((ỹj + ỹj )/2), and si , sj ∈ S̄. When the rectification network is updated, FedIDM utilizes it to generate pseudo-labels for the aggregated condensed knowledge S̄. For each si ∈ S̄, the pseudo-label ỹi is computed using h(si ). Then these pseudo-labeled samples are integrated into the global model to facilitate its update.
3.3
Robust Aggregation with Negative Contribution-based Rejection
During the Robust Aggregation(RA) stage, each client independently refines a replica of the local model using its local data and then transmits the local update to the central server. During this process, the adversary may potentially execute attacks, which can compromise the integrity of the global model. In parallel, the server trains a separate replica of the global model using condensed knowledge, generating a base update. Subsequently, the server evaluates the contribution of each local update by calculating the cosine distance to the base update. This metric quantifies the alignment between the local and global updates, enabling the identification of updates with negative contributions. Local updates with negative contributions are discarded, while those with positive contributions are aggregated through a weighted sum based on their contributions. Contribution Evaluation. In the t-th round of the interaction between clients and the server, each client i computes a local update gti based on its private data. Simultaneously, the server maintains a memory pool, denoted as Gt = {gt−∆ , · · · , gt−1 }, storing historical global updates from the recent ∆ rounds, where gt represents the global update at round t. Additionally, the server calculates a base update gts using the aggregated knowledge S̄ with pseudolabels. Firstly, a local update correction is conducted to exclude those updates that significantly differ from the server’s base update, gts . To achieve this, we recalibrate each local update using a moving average between historical global updates and the local update. This correction aims to ensure the stationarity of the parameter updating process. Then a contribution αi of gti is evaluated based on the cosine similarity between this average and gts , determining whether to discard gti . If αi > 0, it indicates that gti will be retained; otherwise, it will be discarded. g′t i =
∆ X
λj+1 · norm(gt−j ) + λj · norm gti
j=1
αi = cos
t g′t i , gs
(8)
where λ is a constant, αi denotes the contribution of client i, and norm(·) is ℓ2 -normalization such that ∥gti ∥ is equal to 1. We primarily focus on the directional deviation of the gti from the base update gts , which necessitates the exclusion of the magnitude dimension to enhance the reliability of the contribution evaluation. Consequently, FedIDM applies normalization to each local update and historical global updates. Anomaly Detection and Aggregation Assuming that the recalibrated local updates having positive contribution constitute a plausible honest set χ′t = {g′t i |αi > 0}. Additionally, the corresponding set of original gradients is denoted as χt = {gti |αi > 0}. Although they exhibit positive contributions, stealthy poisoned updates may still be present. Therefore, additional anomaly detection is required. Firstly, we apply the DBSCAN algorithm to cluster updates in χ′t according to their contributions. The minimum number of samples required to form a cluster is set to 1, allowing even