Next Article in Journal
A Multi-Chain Blockchain Framework for Trusted Data Management and Efficient Traceability in Fruit and Vegetable Supply Chains
Previous Article in Journal
Climatology-Anchored Residual Learning for Spatio-Temporal Traffic Forecasting
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

FLVaccin: Unbalanced Hierarchical Federated Learning with Vaccination-Calibrated Adaptive Quarantine for Robust Poisoning Defense

Computer and Information Technology Department, Politehnica University of Timisoara, Piața Victoriei 2, 300006 Timișoara, Romania
*
Author to whom correspondence should be addressed.
Computers 2026, 15(8), 547; https://doi.org/10.3390/computers15080547
Submission received: 28 July 2026 / Revised: 16 August 2026 / Accepted: 19 August 2026 / Published: 21 August 2026
(This article belongs to the Section AI-Driven Innovations)

Abstract

Poisoning attacks present a significant challenge for federated learning (FL), particularly when clients operate with Non-IID data and updates are transmitted through multi-tier aggregators. This paper introduces FLVaccin, a hierarchical personalized FL framework structured as an unbalanced tree. In this framework, each non-root node both hosts local clients and aggregates shared MobileNetV2 features (FedPer), whereas the root node does not possess local data. The proposed defense integrates node-level CIFAR-100 vaccination, which calibrates depth- and round-adaptive tolerances, with per-client trend quarantine and root backbone rejection. Experimental results on CIFAR-10 with 100 clients, 25 aggregators, and Dirichlet Non-IID partitioning ( α = 0.5 ) demonstrate that the clean baseline achieves 79.9% accuracy. In contrast, unconstrained mixed attacks reduce performance to near-chance levels (20.2% k-fold). When vaccination and quarantine are enabled, 535 attack events still result in a 76.5% ± 0.4% k-fold accuracy (77.3% test), remaining within 2.6 percentage points of the clean model. These findings indicate that tree-aware, vaccination-calibrated monitoring can maintain model utility under persistent multi-vector poisoning without the need to share raw data.

1. Introduction

Federated learning (FL) enables training of a shared model across decentralized clients without exchanging raw data samples [1]. However, this privacy benefit is fragile because any participant with control over local data or outgoing updates can poison the training process and compromise or backdoor the global model [2,3,4]. Most robust aggregation methods, such as Krum, trimmed mean, and geometric median, assume a flat star topology and experience further degradation under strong non-independent and identically distributed (Non-IID) data skew [5,6].
Hierarchical FL enhances scalability by introducing intermediate aggregators [7]. However, most existing hierarchical structures position all clients at the leaves, with interior nodes solely relaying updates [8]. In practical edge and organizational deployments, mid-tier sites frequently possess their own data. An unbalanced hierarchy, where clients exist at multiple depths, more accurately reflects these scenarios but also alters the attack surface. Specifically, a compromised client can corrupt an entire branch before the root receives the update, and depth-dependent Non-IID volatility renders a single global anomaly threshold ineffective. While cryptographic secure aggregation in hierarchical FL (such as SHIELD [8]) ensures message integrity, it does not independently detect poisoned local data or anomalous learning patterns.
This work addresses this gap by introducing FLVaccin, a hierarchical personalized federated learning system (FedPer [9]). In this system, shared MobileNetV2 features are federated in a bottom-up manner, while each client retains a private classifier head. Two compact defenses operate in tandem. The first, vaccination, incorporates trusted CIFAR-100 images into selected client shards, enabling measurement of benign distribution shifts and the establishment of appropriate tolerances. The second, quarantine, monitors per-client accuracy and loss trends using depth- and round-adaptive allowances derived from the calibration process, temporarily excluding suspicious clients and permitting the root to reject a compromised global backbone.
The primary contributions of this work are as follows:
  • An unbalanced hierarchical FedPer topology in which every non-root node both hosts clients and aggregates shared backbones, with only the root node lacking local clients.
  • A coupled defense mechanism that calibrates depth- and round-adaptive per-client quarantine, as well as root backbone rejection, based on node-level vaccination statistics.
Figure 1 summarizes FLVaccin: an unbalanced FedPer tree (center) with a federated shared backbone and private client heads (top left); red paths show poisoned updates without defense. Defense Pillar I (bottom) injects CIFAR-100 auxiliary data at vaccinated nodes, calibrated in 30 single-round runs. Defense Pillar II (right) quarantines clients whose metric trends exceed depth-dependent tolerances and lets the root reject bad global backbone updates.
The rest of this paper is organized as follows: Section 2 reviews related work. Section 3 describes the system. Section 4 presents results. Section 5 and Section 6 discuss findings and conclude the paper. Section 5.1 discusses fairness of literature comparisons; Section 5.2 interprets the results mechanistically and discusses practicality and accuracy–loss trade-offs.

2. Related Work

We organize prior work along three axes that motivate FLVaccin: (i) poisoning attacks and flat defenses; (ii) personalized and hierarchical FL under heterogeneity; (iii) vaccination-style or hierarchical security mechanisms. The goal is not an exhaustive survey, but to clarify which assumptions FLVaccin relaxes.

2.1. Poisoning Attacks and Flat Defenses

Untargeted poisoning aims to reduce overall accuracy [4,10]; targeted backdoors preserve clean accuracy while misclassifying triggered inputs [3,11,12]. Practical vectors include label flipping [13], model-update scaling or noise injection [14,15], Byzantine replacements [5,16], and sign-flip updates [4]. Production-oriented analyses stress that intermittent, heterogeneous attack schedules are more realistic than a fixed malicious fraction [17].
On the defense side, robust aggregators such as Krum [5], coordinate-wise trimmed mean, and geometric median [6,18] discard outlier updates in parameter space. Trust- or validation-based methods (FLTrust [19], BaFFLe [20]) reweight or reject clients using a trusted reference or feedback set. Anomaly detectors (CONTRA [21]) and reputation schemes [22,23,24] track suspicious behavior over time, while FLCert [25] offers certified ensemble robustness at higher compute cost. Surveys [2,26,27] note that these defenses predominantly assume a flat server and full-model averaging. They therefore neither exploit tree depth nor contain branch-local damage before root aggregation.

2.2. Personalization, Heterogeneity, and Hierarchical FL

Non-IID client data remains a central obstacle for FedAvg-style training. Personalized FL methods such as FedPer keep a shared feature extractor while leaving classifier heads local [9]. Recent personalization designs further refine feature extractors or aggregation under heterogeneity: Liu et al. [28] propose a composite feature-extractor personalization algorithm for IoT FL; Bi et al. [29] combine self-excluding aggregation with knowledge distillation; and Hu et al. [30] study adaptive sample selection for vertical FL with distributed labels. While these methods improve utility under data skew, they do not address poisoning attacks and typically retain flat, non-hierarchical coordination.
Hierarchical or edge–cloud federated learning [7] reduces communication overhead by aggregating updates at intermediate nodes. SHIELD [8] represents the closest hierarchical security baseline, providing secure aggregation against poisoning attacks for leaf-only tree structures. The FLVaccin setting differs in three key aspects relevant to defense design: clients may be positioned at intermediate levels, aggregation employs FedPer instead of full-model averaging, and monitoring is proactive, relying on metric trends rather than exclusively cryptographic methods.

2.3. Vaccination-Style and Tree-Aware Defenses

Auxiliary-data vaccination techniques inject trusted samples to strengthen local training against poisoning attacks [31,32]. Related CIFAR-10 defenses, including BOD-hybrid [33], FeRA [34], and FLAIR [35], demonstrate strong performance primarily against single-family attacks on flat topologies. In contrast, FLVaccin employs vaccination as a calibration mechanism on an unbalanced tree: benign CIFAR-100 injection quantifies legitimate metric volatility, which is then used to establish depth- and round-adaptive quarantine thresholds, supplemented by a root-level backbone rejection gate.
Table 1 presents representative CIFAR-10 poisoning defenses, with accuracy figures as reported in the cited papers rather than under a unified protocol. The experiments in this work utilize hierarchical FedPer. The reasons why direct head-to-head reimplementation is not feasible, as well as the impact of setup differences on these scores, are discussed in Section 5.1.

3. Materials and Methods

3.1. System Architecture

Figure 2 presents the software architecture of FLVaccin. The primary algorithmic contribution is the interaction among modules within the unbalanced FedPer tree rather than within any individual component. The orchestrator executes communication rounds on CUDA, Apple MPS, or CPU platforms using Python 3.10, PyTorch 2.0, and torchvision 0.15. It sequentially loads the configuration, data loader (CIFAR-10/100 shards), tree structure (unbalanced host tree), and model (MobileNetV2 FedPer partitioned into a shared backbone and a private head). Hosted clients perform training with both client and personalization phases. Subsequently, two optional processes may occur: vaccination, which injects trusted CIFAR-100 samples at designated nodes, and attack simulation, which introduces corrupted data or updates. Client metrics are processed by the defense module, which (i) excludes clients whose accuracy or loss trajectories violate depth- and round-adaptive tolerances, and (ii) may reject a compromised root backbone. Updates that pass these defenses are aggregated bottom-up using FedPer averaging. The evaluation module records metrics and completes the operational cycle.
The principal innovation compared to standard hierarchical federated learning (FL) pipelines is the integrated coupling of these processes. Vaccination serves not only as a hardening mechanism but also as the calibration source for quarantine thresholds. Quarantine decisions are determined for each client at every non-root depth prior to the propagation of branch updates to the root. In contrast, flat robust aggregators lack this depth-aware filtering, and leaf-only hierarchical designs do not account for intra-level clients. Section 3.2, Section 3.3, Section 3.4, Section 3.5 and Section 3.6 provide formal definitions of the topology, vaccination bands, and quarantine rules, while Section 4 details the experimental tree implementation.

3.2. Hierarchical Topology and FedPer Protocol

We model the federation as an unbalanced tree T = ( V , E ) , where V is the set of vertices (aggregator nodes) and E is the set of undirected edges connecting parent–child aggregators. Each vertex v V has depth l v (the root at l = 0 ), child aggregators Ch ( v ) , and  n v 0 hosted clients with private CIFAR-10 shards. Unlike classical hierarchical FL, where all clients sit at the leaves and interior nodes only relay updates, FLVaccin allows intra-level placement: every non-root node hosts local clients that perform all local training on private shards and FedPer-aggregates its subtree before passing the result upward—nodes aggregate only and do not train. Only the root has n root = 0 —it coordinates the federation, broadcasts the accepted shared backbone, and may reject a bad global update after validation (Section 3.6). Because fan-out | Ch ( v ) | and client load n v differ across nodes, the tree is heterogeneous rather than balanced; prior hierarchical FL papers typically assume clients only at the deepest tier.
All experiments use personalized FL (FedPer) [9]. Each MobileNetV2 network splits into a shared feature block θ sh (the features backbone, federated bottom-up) and a local classifier block θ i loc (the classifier head, private to client i). Table 2 defines every symbol in the round protocol; superscript t always denotes the start of communication round  t { 1 , , T } .
Over T communication rounds, learning proceeds bottom-up through the tree:
  • Broadcast. The root sends θ sh , t to all clients. Client i assembles ( θ sh , t , θ i loc , t ) from the broadcast backbone and the head retained from the previous round.
  • Local training. Each active client runs E local epochs on its shard (after optional vaccination or attack corruption), updating both parameter blocks; θ i loc , t + 1 is stored locally and is not federated.
  • Bottom-up FedPer aggregation. From the deepest level to the root, each node v pools non-quarantined models from its hosted clients and child nodes into S v and averages only shared weights θ j sh , t :
    θ v sh , t = 1 | S v | j S v θ j sh , t .
    Classifier heads are averaged solely to build a complete model for node-level validation and upward relay; clients never receive this pooled head.
  • Global acceptance. The root evaluates the candidate θ sh , t + 1 ; if validation trends exceed the allowed tolerance, the previous backbone is kept (Section 3.6).
Figure 3 illustrates this topology schematically. Green horizontal bands mark hierarchy levels ( L 0 , L 1 , , L n ). The black node at L 0 is the root; all other aggregator nodes are grey. Solid and dashed lines denote top-down broadcast and bottom-up FedPer aggregation, respectively. Each non-root grey node may host from 0 to N local clients (inset); only the root has n root = 0 . Section 4 details the experimental tree implementation.

3.3. Datasets, Partitioning, and Vaccination

We use CIFAR-10 as the primary classification benchmark (50,000 training and 10,000 test images, 10 classes, 32   ×   32 RGB) and CIFAR-100 as an auxiliary source of out-of-distribution vaccine images. Training images are augmented with random crop (padding 4), horizontal flip, and channel normalization using CIFAR-10 statistics. The 50,000 training samples are split across N federation clients under a Dirichlet Non-IID partition with concentration α = 0.5 : for each class k, a client mixture vector
p k = ( p k , 1 , , p k , N ) Dir ( α 1 N ) ,           k { 1 , , 10 } ,
gives the fraction p k , i of class k allocated to client  i { 1 , , N } , with  i = 1 N p k , i = 1 ; lower α induces stronger label skew across clients.
Vaccination is applied at the node level on this same data setup: any non-root aggregator can be marked as vaccinated. For node v with vaccine fraction p v ( 0 , 1 ] , each hosted client replaces exactly p v · | D i | samples in its local shard with random CIFAR-100 images while keeping the original CIFAR-10 labels. Because clients reside at multiple hierarchy levels, injection can target shallow coordinators, deep edge nodes, or any combination—unlike leaf-only schemes in flat or classical hierarchical FL.
Before multi-round defended training, we run a vaccination mean-accuracy calibration to characterize how benign auxiliary injection affects round-one performance—not adversarial attacks. We execute 30 independent single-round FedPer trials on the fixed tree (defense disabled). These trials are grouped into three vaccination bands—Low, Medium, and Hard—with 10 random configurations per band. Each trial independently samples (i) the non-root aggregator nodes that are vaccinated and (ii) the replaced fraction of each selected node’s client shard, drawing both values uniformly at random within the band ranges below (the same percentage interval applies to node coverage and per-node injection dose). Vaccinated nodes may therefore appear at any hierarchy level ( L 1 L n ):
  • Low: 10–25% of non-root nodes vaccinated; each selected node receives 10–25% vaccine in its clients’ shards;
  • Medium: 25–50% of nodes; 25–50% vaccine per selected node;
  • Hard: 50–80% of nodes; 50–80% vaccine per selected node.
Each trial completes one FedPer round and records round-one global validation accuracy on the full CIFAR-10 test set. The spread of benign accuracy reactions across these 30 setups feeds the quarantine tolerance mapping f tol (Section 3.6); measured outcomes are reported in Section 4.2.

3.4. Model Architecture and Training Protocol

Each client trains a MobileNetV2 [1] backbone initialized from ImageNet pre-training. Because CIFAR images are 32   ×   32 , the first convolution uses stride 1 instead of 2, and the 10-class head outputs one logit per CIFAR-10 category. Following FedPer (Section 3.2), the features module maps to the shared parameters θ sh federated at every tree node (Equation (1)), while the classifier module maps to the private head θ i loc retained by client i across rounds.
All experiments run for T = 20 communication rounds. In each round, every active client performs E = 3 local epochs with Adam ( η = 0.001 , batch size B = 64 , cross-entropy loss) on its local shard after the root broadcasts θ sh , t and the client merges it with θ i loc , t . Optional node-level CIFAR-100 mixing and adversarial corruption are applied to the shard before local training; each client is then evaluated on the full 10 000-image CIFAR-10 test set. Clients whose metric trends trigger quarantine are omitted from S v for that round only; non-quarantined updates are FedPer-aggregated bottom-up as in Section 3.2.

3.5. Threat Model and Attack Suite

We assume a white-box adversary controlling a subset of clients who can corrupt local data and/or outgoing weights before FedPer aggregation. Each attack is parameterized by severity s [ 0.01 , 1.0 ] , which deterministically sets the fraction of corrupted samples (data attacks) or perturbed parameters (model attacks). Five attacks are supported, each tied to primary literature:
  • Label flipping (data poisoning) [13]: random incorrect labels for an s-fraction of local samples.
  • Backdoor (data poisoning) [3,11]: a 3   ×   3 white trigger in the bottom-right corner with target class 0 on an s-fraction of samples.
  • Model poisoning (model/update poisoning) [4,14]: additive Gaussian noise scaled to layer standard deviation on an s-fraction of weights.
  • Byzantine (model/update poisoning) [5,16]: random replacement of an s-fraction of weights.
  • Sign-flip update (model/update poisoning) [4]: after local training, independently select each weight scalar with probability s and negate it ( w w ); unselected parameters are unchanged.
In free-attack mode, compromised clients still participate in FedPer aggregation; in attack+defense mode, quarantine may exclude them.

3.6. Trend-Based Quarantine Defense

Quarantine applies to individual clients (node_id, client_id), not to aggregator nodes as a whole. Each hosted client is monitored on four signals when available: training accuracy, training loss, validation accuracy, and validation loss. The allowed relative drop δ i for client i depends on the tree level l i of its host node and on the training round t. This couples vaccination mean-accuracy calibration with depth-interpolated, round-adaptive per-client trend quarantine on the unbalanced aggregator tree.
Round-one baseline. All clients are quarantined in round  t = 1 so their metrics establish trend baselines without influencing FedPer aggregation; enforcement begins in round  t = 2 .
Design rationale. Each client is allowed a relative amount of metric deterioration from one round to the next before it is treated as suspicious. That allowance δ i t is not a constant: it is learned from benign vaccination experiments (how much accuracy can legitimately move when CIFAR-100 is mixed in), scaled by how deep the client sits in the tree, and tightened as training progresses. Table 3 lists every symbol used below.
Step 1: Calibrating δ ¯ from vaccination. The 30-run study (Section 4.2) asks: without any attack, how much can round-one global accuracy move when benign CIFAR-100 is injected at Low, Medium, or Hard intensity? For each trial we record global validation accuracy and compare it to the unvaccinated round-one baseline. The largest relative swing across all benign setups is
δ ¯ = max benign   trials A global ( 1 ,   trial ) A global ( 1 ,   baseline ) A global ( 1 ,   baseline ) ,
i.e., the worst-case legitimate performance change induced by heterogeneous vaccination—not by poisoning. We use δ ¯ as the reference scale for how much round-over-round movement a deep client may exhibit before quarantine.
Step 2: depth-dependent endpoints at round t = 2 . Clients deeper in the tree see stronger local Non-IID skew and larger auxiliary-data effects, so they receive a wider tolerance band than clients near the root (whose updates propagate upward and affect the global backbone). At the start of enforcement ( t = 2 ) we set:
δ deep ( 2 ) = δ ¯ ,           δ root ( 2 ) = δ ¯ / 2 ,
meaning a deepest-level client may tolerate up to δ ¯ relative deterioration in any monitored metric, while a shallow-level client—and the root’s own global-backbone acceptance test—may tolerate only half that. In our experiments δ ¯ 30 % , so δ deep ( 2 ) 30 % and δ root ( 2 ) 15 % (Section 4.2).
Step 3: tightening over rounds. As training proceeds, the model should stabilize and large metric swings become less plausible even under benign heterogeneity. Both depth endpoints therefore shrink linearly from round 2 to the final round T:
δ root ( t ) = δ root ( 2 ) t 2 T 2 δ root ( 2 ) δ root ( T ) ,             δ deep ( t ) = δ deep ( 2 ) t 2 T 2 δ deep ( 2 ) δ deep ( T ) ,
where the late-round targets are δ root ( T ) = ( δ root ( 2 ) ) 2 / δ ¯ and δ deep ( T ) = δ root ( 2 ) . At  T = 20 with δ ¯ = 30 % , this yields δ root ( 20 ) 7.5 % and δ deep ( 20 ) 15 % : shallow clients become strictest by the end of training, while deep clients tighten only to the early root level.
Step 4: per-client allowance by depth. A client hosted at intermediate level l i receives a tolerance interpolated between the root and deep endpoints for that round. With normalized depth ρ i = l i / l max ( ρ i = 0 at the root, ρ i = 1 at the deepest level):
δ i t = f tol ( l i , t , T ) = δ root ( t ) + ρ i δ deep ( t ) δ root ( t ) .
Thus a level- L 1 client uses δ root ( t ) , a level- L max client uses δ deep ( t ) , and clients at L 2 (say) fall halfway between when l max = 3 .
Step 5: per-client quarantine rule. For each client i and round t 2 , we compare metrics to the previous round and express the change as a fraction of the prior value (so a 5-point accuracy drop from 50% and from 80% are treated consistently):
Δ A i t = A i t A i t 1 A i t 1 ,           Δ L i t = L i t 1 L i t L i t 1 .
Δ A i t > 0 means accuracy improved; Δ L i t > 0 means loss decreased (also an improvement). Validation accuracy and loss trends are computed the same way. Client i is quarantined for round t only if any one of its four trends falls below δ i t —that is, if accuracy drops by more than δ i t relative to the prior round, or loss rises by more than δ i t , on either the training or validation split. Excluded clients may rejoin in a later round when their trends recover; quarantine does not permanently ban a client.
Root global-backbone rejection. The root has no local clients; after bottom-up FedPer aggregation it evaluates the candidate global shared backbone on the CIFAR-10 test set. If the global validation-accuracy or validation-loss trend relative to the last accepted round falls below δ root ( t ) , the round fails and the previous accepted θ sh is retained and broadcast unchanged.
Algorithm 1 summarizes the per-round defense loop and aggregation implemented in FLVaccin.
Algorithm 1 Trend-based quarantine with vaccination-calibrated tolerances
Require: 
Tree T , round t, total rounds T, client metrics { A i , L i }
Ensure: 
Set of clients S included in FedPer aggregation
  1:
if  t = 1   then
  2:
       Quarantine all clients; record baseline metrics; return ∅
  3:
end if
  4:
for each client i hosted at tree level l i 1  do
  5:
        δ i f tol ( l i , t , T )                                               ▹ depth- and round-adaptive allowance
  6:
       Compute Δ A i t , Δ L i t and validation trends vs. round t 1
  7:
       if any trend < δ i  then
  8:
             Quarantine client i for round t                                            ▹ per-client, per-round
  9:
       else
10:
             Add i to candidate set S
11:
       end if
12:
end for
13:
FedPer-aggregate shared backbones bottom-up over non-quarantined models in S
14:
δ root f tol ( 0 , t , T )                                                                                     ▹ root has no clients
15:
if global validation trend < δ root  then
16:
       Reject candidate global backbone; keep previous accepted θ sh
17:
else
18:
       Accept and broadcast θ sh
19:
end if
Quarantine is per-client, per-round exclusion from FedPer aggregation. The root never quarantines nodes; it only accepts or rejects the candidate global shared backbone based on its validation trend.

4. Results

4.1. Experimental Tree and Setup

All scenarios use one fixed unbalanced tree of the form illustrated schematically in Figure 3: four levels (root at level 0), 25 non-root aggregator nodes, and 100 hosted clients distributed across levels 1–3. Figure 4 shows the concrete instance used in every experimental condition. Client counts per node range from 1 to 10 with heterogeneous fan-out: for example, N 1 hosts 10 local clients and three child aggregators ( N 5 N 7 ), whereas N 24 hosts one client and no children. Branches differ in depth and arity— N 3 fans out to four level-2 leaves ( N 10 N 13 ), while N 1 ’s subtree reaches level 3 with nine additional aggregators—so shallow coordinators and deep edge nodes coexist in the same federation. Parenthetical numbers on each node denote hosted client counts; only the root at L 0 aggregates with n root = 0 .
Every scenario trains with hierarchical FedPer: MobileNetV2 shared features are federated bottom-up, and each client keeps a private classifier head. The same topology, Dirichlet Non-IID partitioning ( α = 0.5 , N = 100 ), and optimization hyperparameters are used unless noted below. Table 4 summarizes the four experimental conditions.
Table 4 presents an ablation study comprising four scenarios, each representing a controlled ablation on a fixed tree structure and a Non-IID data split. Scenario (A), vaccination-only calibration, quantifies the benign accuracy cost in the absence of adversaries and provides δ ¯ for f tol . Scenario (B), the clean baseline, represents the upper bound of utility without attacks or defense, achieving 79.9% accuracy. Scenario (C), free attack, disables quarantine while maintaining hierarchical FedPer aggregation; despite a reduced number of events (130), accuracy declines to near chance, indicating that the combination of topology and FedPer is insufficient for defense. Scenario (D), attack plus defense, implements vaccination-calibrated quarantine under a more intensive schedule (535 events), resulting in recovery to 76.5% accuracy. The k-fold evaluation isolates the defense contribution as approximately 56 percentage points above the free attack scenario and only 2.6 points below the clean baseline. In scenario (D), root rejection was skipped in 5 out of 20 rounds; omitting this mechanism would permit deteriorated backbones to enter the federation, while removing per-client quarantine would revert performance toward scenario (C). Detailed per-scenario performance curves are provided in Section 4.2, Section 4.3, Section 4.4 and Section 4.5.

4.2. Vaccination Mean-Accuracy Analysis

We first quantify how node-level CIFAR-100 injection affects early global accuracy on the unbalanced tree before any adversarial stress test. Thirty independent single-round runs—each on the same fixed topology with a fresh random seed—sample configurations within three vaccination bands (10 runs per band); each band jointly draws the fraction of vaccinated non-root nodes and the per-node injection percentage uniformly at random from the same range.
The overall mean round-one global accuracy is 30.8%. Group means across the three bands—which increase both node coverage and per-node injection rate together—are: Low 34.7%, Medium 31.5%, and Hard 26.3%. Higher band severity consistently reduces first-round accuracy, reflecting the distribution shift introduced by out-of-distribution vaccine images with preserved CIFAR-10 labels. Figure 5 plots round-one global accuracy for all 30 single-round calibration runs, grouped into Low (10–25%), Medium (25–50%), and Hard (50–80%) bands (ten runs each; each percentage range applies to both node fraction and injection dose): green, yellow, and red bars show per-run accuracy with dashed tier means and a solid overall mean at 30.8%, and round-to-round spread within each band—for example, Hard ranges from 18.0% to 33.3%—captures benign volatility under random node selection and injection fractions.
Figure 6 summarizes the sampled vaccination configuration behind each run: cell color encodes the mean CIFAR-100 injection percentage across vaccinated nodes, and the “nC” label counts hosted clients at vaccinated nodes for that run. Hard bands consistently cover more nodes, vaccinate more clients, and apply higher per-node injection than Low bands, explaining the accuracy gradient above.
Compared with the clean baseline round-one accuracy of 32.1%, the Hard band shows an additional ≈8.4 percentage-point penalty relative to Low. The largest benign relative swing across these setups motivates δ ¯ 30 % for the deepest level and δ ¯ / 2 15 % for the root in f tol (Equation (6)); shallow and deep clients interpolate between these endpoints by tree depth.

4.3. Baseline Training Without Attacks

The clean baseline trains for 20 rounds without attacks, vaccination, or defense on the same unbalanced tree under FedPer. Figure 7 tracks global validation accuracy and loss at the root after each communication round: accuracy rises from 32.1% in round 1 to 79.9% at round 20 while loss falls from 1.99 to 0.615 , with the steepest gain in early rounds and steady refinement thereafter.
Figure 8 breaks down performance across all 20 rounds, pooling per-client training and validation metrics and per-node validation at aggregators. Hosted clients reach high local training accuracy (mean 83.7%, median 85.7%) but lower validation accuracy (mean 44.6%, median 45.9%), reflecting Dirichlet Non-IID label skew; several client–round points fall below 50% training accuracy. Aggregator nodes validate near 50.3% mean accuracy with wider spread than the global model, while training loss stays near zero for most clients but validation loss shows a long tail (maximum ≈ 22.6). This heterogeneity motivates per-client monitoring in the defended scenario (Section 4.5).
We next assess the frozen global FedPer model—shared backbone with each client’s retained private head—using repeated stratified 5-fold × 10 validation (50 folds total). Final test accuracy is 79.9% with training accuracy 80.0%. Table 5 summarizes the repeated k-fold statistics.
Figure 9 shows the tight fold-wise distributions (accuracy IQR 79.6 80.4 % ; loss IQR 0.58 0.60 ). Both metrics differ significantly from chance ( p < 0.001 for accuracy vs. random guessing and for loss vs. a random-classifier baseline).
Figure 10 reports the mean k-fold confusion matrix. Macro-averaged F1 is 79.6%. Recall is highest for automobile (96.9%), frog (94.1%), and ship (91.6%) and lowest for cat (52.6%), bird (61.9%), and airplane (67.5%). The dominant off-diagonal mass is cat→dog (258 mean counts) and bird→frog (130), consistent with visually similar CIFAR-10 categories under personalized heads. This run establishes the reference FedPer performance for the chosen topology and Non-IID configuration.

4.4. Free Attacks Without Defense

In the unconstrained attack scenario, the adversary launches random attacks covering all five attack types (130 events total: 29 label-flipping, 28 sign-flip, 25 model-poisoning, 24 Byzantine, 24 backdoor). Severity is set interactively per round via a Min–Max percentage band; bands across the 20-round schedule span 1–100%. No quarantine is applied—all client updates still enter hierarchical FedPer aggregation. Figure 11 tracks root-level validation metrics: accuracy mirrors the clean baseline through round 5, drops under attacks in rounds 6–10 (minimum 21.2% at round 7), recovers during attack-free rounds 11–17, peaks at 77.4% in round 18, then collapses to 21.0% at round 20 after renewed poisoning in rounds 18–20 (loss falls to 0.64 at the peak and rises to 2.30 at round 20; round 19 reaches 10.0% accuracy).
Figure 12 contrasts normal and attacked clients and nodes, pooled over all 20 rounds. Attacked clients show lower training accuracy (mean 56.8%, median 55.1%) and validation accuracy (mean 23.2%, median 20.2%) than normal clients (training 82.9%/84.9%; validation 42.8%/43.9%). Attacked aggregator nodes validate at a mean of 25.9% (median 17.5%) versus 46.0%/46.4% for normal nodes; attacked-client validation loss reaches 15.3%.
Figure 13 maps the 130 attack events to communication rounds 6–10 and 18–20 (no attacks in rounds 1–5 or 11–17). Cell color encodes mean severity (%); the count in each cell is the number of targeted clients for that attack type in that round. All five attack types appear in every attack round, with 10–25 attacked clients per round.
We next assess the frozen poisoned FedPer model with the same repeated 5-fold × 10 validation (50 folds). Final test accuracy is 21.0% with training accuracy 20.0%—indistinguishable from 10-class chance. Table 6 summarizes the k-fold statistics.
Figure 14 shows the collapsed fold-wise distributions (middle 50% of folds: accuracy 19.8–20.3%; loss 2.317–2.322).
Figure 15 reports the mean k-fold confusion matrix after collapse. Macro-averaged F1 is 10.5%. Predictions concentrate on cat (recall 45.2%), deer (82.5%), and frog (69.0%), while automobile, bird, dog, horse, and truck reach 0% recall. Hierarchical FedPer averaging alone does not contain this adaptive mixed-attack schedule.

4.5. Attacks with Trend-Based Defense

The defended scenario applies interactive attack scheduling with substantially higher volume (535 attack events: 117 backdoor, 109 model-poisoning, 106 Byzantine, 105 sign-flip, 98 label-flipping) and enables vaccination-calibrated per-client quarantine: round-one calibration of all clients, then depth- and round-adaptive allowances f tol ( l i , t , T ) (from 15% at shallow levels to 30% at depth 3 early in training, tightening by round 20), plus root-level FedPer backbone rejection when validation trends exceed the root allowance. Per-round attack severity bands are interactive; most rounds use 1–25% to 1–50% ranges, but the schedule includes at least one 80–100% round. CIFAR-100 injection is not active in this run; defense relies on the monitoring policy whose bounds were calibrated from the vaccination mean study. Figure 16 tracks root-level validation metrics under attacks in every round: accuracy rises from 28.3% at round 2 to 77.3% at round 20 while loss falls from 2.05 to 0.66 ; orange markers at rounds 10, 12, 14, 19, and 20 mark root-level backbone rejection (skip-root aggregation).
Figure 17 contrasts normal and attacked clients and nodes, pooled over all rounds (1465 normal vs. 535 attacked client–round records). Attacked clients show lower training accuracy (mean 66.0%, median 67.2%) and validation accuracy (mean 26.2%, median 25.1%) than normal clients (training 80.5%/82.8%; validation 40.9%/42.1%), but attacked aggregator nodes validate at mean 43.7% (median 46.0%)—comparable to normal nodes (42.5%/44.0%)—indicating that quarantine and root rejection limit poisoned updates before they accumulate branch-wide.
Figure 18 maps all 535 attack events and 815 quarantine events across 20 rounds. Cell color encodes mean attack severity (%); the count in each attack-type cell is the number of targeted clients for that type in that round. Attacks occur in every round (5–50 clients per round); severity peaks in rounds 18–19 (≈80–100%). Round 1 quarantines all 100 clients for calibration; subsequent rounds quarantine 14–47 clients, generally matching or exceeding the number attacked.
The system logged 815 quarantine events across 19 completed FedPer aggregation rounds after round-one calibration. Root-level backbone rejection skipped global aggregation in 5 of those rounds (10, 12, 14, 19, and 20), leaving only 14 successful root updates; nevertheless, final test accuracy is 77.3% with training accuracy 76.4%—only 2.6 percentage points below the 79.9% clean baseline (retaining 96.8% of clean accuracy) despite more than four times as many attacks as the free-attack run and despite one-quarter of post-calibration root rounds being rejected. Table 7 summarizes the repeated k-fold statistics.
Figure 19 shows the tight fold-wise distributions (middle 50% of folds: accuracy 76.2–76.8%; loss 0.680–0.693). Both metrics differ significantly from chance ( p < 0.001 ).
Figure 20 reports the mean k-fold confusion matrix. Macro-averaged F1 is 76.3%. Recall is highest for frog (91.9%), automobile (91.7%), and truck (88.0%) and lowest for cat (48.5%) and bird (53.9%). The dominant off-diagonal mass is cat→dog (302 mean counts) and bird→frog (130), similar to the clean baseline but at much higher overall accuracy than the undefended attack run.

5. Discussion

Our experimental program (Section 4) evaluates four conditions on one fixed unbalanced tree—25 non-root aggregators, 100 hosted clients across four levels, Dirichlet Non-IID shards ( α = 0.5 ), and hierarchical FedPer with MobileNetV2—using the methods in Section 3. Table 4 summarizes outcomes; the subsections below interpret each stage and how they connect to the defense design.
Vaccination calibration and tolerance mapping. Before any adversarial stress test, the 30-run vaccination mean-accuracy study (Section 4.2) quantified how benign node-level CIFAR-100 injection perturbs round-one global accuracy on our tree. The overall mean is 30.8%, with band means Low 34.7%, Medium 31.5%, and Hard 26.3%—a monotonic penalty as both vaccinated-node coverage and per-node injection rise. Compared with the clean baseline’s round-one accuracy of 32.1%, the Hard band costs an additional ≈8.4 percentage points relative to Low. The largest benign relative swing across these setups ( δ ¯ 30 % ) directly anchors f tol : deepest clients may tolerate up to δ ¯ early in training, shallow clients and the root only δ ¯ / 2 15 % , with both endpoints tightening linearly to round 20 (Equations (4)–(6)). This couples auxiliary-data statistics to depth-aware monitoring rather than fixing a single global threshold.
Unbalanced topology and Non-IID heterogeneity. Hosting clients at every non-root level—not only at leaves—assigns local training to clients at intermediate aggregators, while those nodes FedPer-aggregate subtree backbones without training locally (Section 3.2). The clean baseline (Section 4.3) shows why per-client monitoring is necessary: hosted clients reach a mean training accuracy of 83.7% but a validation accuracy of only 44.6% under Dirichlet skew, while aggregator nodes validate near 50.3%, well below the global model’s 79.9%. Depth-interpolated tolerances in f tol acknowledge that deeper branches legitimately exhibit larger metric swings than shallow coordinators whose updates propagate to the root.
Attack impact without defense. The free-attack scenario (Section 4.4) confirms that hierarchical FedPer averaging alone does not contain a mixed, severity-adaptive adversary. Despite fewer attack events (130 vs. 535 in the defended run), accuracy mirrors the clean curve through round 5, collapses to 21.2% under rounds 6–10 attacks, partially recovers during attack-free rounds 11–17 (peaking at 77.4% in round 18), then falls to 21.0% when poisoning resumes in rounds 18–20. K-fold validation (20.02% ± 0.42%) and macro F1 (10.5%) are indistinguishable from chance. Attacked aggregator nodes validate at a mean of 25.9% versus 46.0% for normal nodes—poisoned updates propagate branch-wide without filtering. This aligns with critiques that production FL threat models must assume sustained, heterogeneous attack schedules [17].
Effectiveness of trend-based quarantine. The defended scenario (Section 4.5) subjects the same tree to 535 attack events in every round (five attack types, 5–50 targeted clients per round, severity peaking at ≈80–100% in rounds 18–19) while applying the quarantine policy in Algorithm 1. Round-one calibration quarantines all 100 clients; subsequent rounds log 815 quarantine events across 19 post-calibration FedPer rounds. Per-client exclusion removes anomalous local updates before they accumulate: attacked clients validate at mean 26.2%, yet attacked nodes validate at 43.7%—comparable to normal nodes (42.5%)—showing that branch-level damage is contained even when individual shards are corrupted.
Root-level FedPer backbone rejection provides a second safety layer. Global aggregation was skipped in 5 rounds (10, 12, 14, 19, 20), leaving only 14 successful root updates—yet final test accuracy reaches 77.3% (76.46% ± 0.39% k-fold), only 2.6 percentage points below the 79.9% clean baseline (96.8% of clean accuracy). Macro F1 (76.3%) and per-class recall patterns (strong on automobile, frog, truck; weak on cat, bird) closely resemble the clean run (79.6% macro F1) rather than the collapsed free-attack confusion matrix. Training progress (Figure 16) shows stable convergence after calibration despite continuous attacks, and the attack timeline (Figure 18) correlates quarantine volume with attack bursts—including the round 18–19 severity spike.
Contextual placement relative to published defenses. Table 1 reports CIFAR-10 accuracies from prior work under heterogeneous setups. Our defended k-fold accuracy (76.5%) follows 535 mixed attacks (five families, severity 1–100%) every round on an unbalanced FedPer tree with Dirichlet Non-IID ( α = 0.5 ). Cross-paper percentage gaps alone cannot establish ranking.
Flat single-vector defenses such as RECESS [32], FLAIR [35], BOD-hybrid [33], Sundar et al. [31], and FeRA [34], and the hierarchical SHIELD [8] baseline, differ from FLVaccin in topology, aggregation, Non-IID settings, and attack scope. The only quantitative claim we treat as rigorously supported by our own experiments is recovery to within 2.6 percentage points of our clean baseline (79.9%) under continuous mixed attacks. Section 5.1 explains why we do not reimplement third-party defenses for head-to-head scoring.

5.1. Fairness of Literature Comparison and Methodological Limitations

Why head-to-head reimplementation is not feasible. Re-running the top baselines inside FLVaccin (same tree, α = 0.5 , hierarchical FedPer, mixed attacks) would be ideal, but not currently feasible for four reasons.
(i) Missing or incomplete code. Several works do not release runnable artifacts that reproduce Table 1; partial releases usually assume flat FedAvg rather than hierarchical FedPer.
(ii) Incompatible assumptions. SHIELD [8] relies on secure aggregation in a leaf-only hierarchy; flat defenses assume a single server and full-model averaging. Porting them onto our unbalanced tree with private FedPer heads would require unspecified redesign choices and cease to be a fair reproduction.
(iii) Insufficient detail. Many papers omit hyperparameters, Non-IID generators, attack schedules, or evaluation folds needed to match published percentages.
(iv) Threat-model mismatch. Our primary evidence is internal (clean vs. free-attack vs. defended; Table 4). External baselines often target a single attack family or milder Non-IID settings, so even a port would leave residual ambiguity.
Limitations of compared approaches and FLVaccin responses. Relative to Table 1:
  • Flat aggregation cannot exploit tree depth or contain branch-local damage; FLVaccin uses depth-aware per-client quarantine and root backbone rejection.
  • Single-vector evaluations understate mixed threats; FLVaccin runs five attack families every round.
  • Secure aggregation (SHIELD) does not detect poisoned data or metric trends; FLVaccin adds vaccination-calibrated quarantine.
  • Milder or unreported Non-IID settings inflate apparent robustness; FLVaccin uses α = 0.5 and calibrates tolerances from vaccination volatility.
  • Full-model averaging can propagate poisoned classifiers; FedPer keeps heads private and federates only the shared backbone.
Impact of research setups. Published percentages in Table 1 are not commensurate: topology, FedAvg vs. FedPer, Non-IID concentration, attack definition, and model/training budget all shift absolute accuracy independently of defense quality.
We therefore do not claim universal superiority over higher table percentages. We claim that (1) under our protocol, quarantine recovers near-clean accuracy after free-attack collapse; (2) FLVaccin targets a harder combination of unbalanced hierarchy, FedPer, α = 0.5 , and mixed continuous attacks; and (3) cross-paper percentages are contextual, not a ranking.

5.2. Theoretical Interpretation, Practicality, and Trade-Offs

The defense operates effectively because, under FedPer, only the shared backbone is averaged. As a result, a poisoned client primarily affects the federation by shifting θ sh in an undesirable direction, while private heads remain local. The quarantine mechanism limits this influence whenever round-over-round trends fall below δ i t . Since δ i t interpolates between vaccination-estimated benign volatility at varying depths and becomes more stringent with increasing t, this rule functions as a depth-aware sequential outlier test. Early rounds permit larger Non-IID fluctuations, whereas later rounds expect a more stable backbone. Root rejection serves as an additional safeguard on the aggregated candidate, preventing a single compromised branch average from replacing an accepted global model. The collapse under free attack arises directly from unconstrained averaging: when malicious updates are introduced into S v at every level, errors accumulate along the path to the root.
Accuracy–loss behavior is characterized as follows. During the clean run, validation loss decreases as accuracy increases, reaching 0.615 loss at 79.9% accuracy. In the presence of free attacks, loss exceeds 2.3 as accuracy approaches chance levels. When defenses are applied, loss follows the clean trajectory after calibration, even under continuous attacks. This outcome suggests that excluding unstable clients maintains optimization progress rather than sacrificing accuracy for an alternative loss regime. However, vaccination incurs a measurable cost: Hard-band round-one accuracy is approximately 8.4 points lower than the Low setting. This reduction secures a calibrated δ ¯ and is primarily incurred in round one, corresponding to the universal calibration quarantine.
Regarding practicality and limitations, FLVaccin utilizes only metrics already computed for logging, such as training and validation accuracy and loss, which results in minimal per-round overhead compared to local stochastic gradient descent (SGD). The method assumes the availability of a trusted validation signal at the root for backbone acceptance and trusted vaccine images at selected nodes. Deployment optimizations include caching tolerances, adapting δ ¯ online, and integrating quarantine with secure aggregation when update confidentiality is required. Formal Byzantine resilience bounds under arbitrary non-independent and identically distributed (Non-IID) trees remain unresolved; current support is mechanistic and empirical, as evidenced by the ablation results in Table 4.

6. Conclusions

FLVaccin is a hierarchical personalized federated learning (FL) framework implemented on an unbalanced tree, where each non-root node hosts clients and FedPer aggregates shared MobileNetV2 features. The proposed defense integrates CIFAR-100 vaccination calibration with depth- and round-adaptive per-client quarantine, as well as root backbone rejection. Experimental results indicate that hierarchical FedPer alone fails under mixed poisoning attacks, while the integrated defense restores accuracy to near-clean levels. As discussed in Section 5.1, this work does not assert absolute superiority over results from incompatible literature; the primary evidence is based on controlled comparisons of clean, free-attack, and defended scenarios on the FLVaccin tree.
All experiments reported in this paper, together with the full source code, are available in the public Git repository at https://github.com/tudordavidz/FLVaccin, accessed on 20 August 2026.

Author Contributions

Conceptualization, T.-M.D.; methodology, T.-M.D.; software, T.-M.D.; validation, T.-M.D.; formal analysis, T.-M.D.; investigation, T.-M.D.; resources, T.-M.D. and M.U.; data curation, T.-M.D.; writing—original draft preparation, T.-M.D.; writing—review and editing, T.-M.D. and M.U.; visualization, T.-M.D.; supervision, M.U.; project administration, T.-M.D. and M.U. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

CIFAR-10 and CIFAR-100 are publicly available from the torchvision datasets repository. The FLVaccin framework, experimental configurations, and result artifacts are available at https://github.com/tudordavidz/FLVaccin, accessed on 20 August 2026.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
FLFederated Learning
FedPerPersonalized Federated Learning
Non-IIDNon-Independent and Identically Distributed
CIFARCanadian Institute For Advanced Research

References

  1. McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; y Arcas, B.A. Communication-efficient learning of deep networks from decentralized data. In Artificial Intelligence and Statistics; JMLR, Inc.: New York, NY, USA, 2017; pp. 1273–1282. [Google Scholar]
  2. Lyu, L.; Yu, H.; Yang, Q. Threats to federated learning: A survey. arXiv 2020, arXiv:2003.02133. [Google Scholar]
  3. Bagdasaryan, E.; Veit, A.; Hua, Y.; Estrin, D.; Shmatikov, V. How to backdoor federated learning. In Proceedings of the International Conference on Artificial Intelligence and Statistics, Online, 26–28 August 2020; pp. 2938–2948. [Google Scholar]
  4. Fang, M.; Cao, X.; Jia, J.; Gong, N. Local model poisoning attacks to Byzantine-Robust federated learning. In Proceedings of the 29th USENIX Security Symposium (USENIX Security 20), Virtual, 12–14 August 2020; pp. 1605–1622. [Google Scholar]
  5. Blanchard, P.; El Mhamdi, E.M.; Guerraoui, R.; Stainer, J. Machine learning with adversaries: Byzantine tolerant gradient descent. Adv. Neural Inf. Process. Syst. 2017, 30, 118–128. [Google Scholar]
  6. Yin, D.; Chen, Y.; Kannan, R.; Bartlett, P. Byzantine-robust distributed learning: Towards optimal statistical rates. In Proceedings of the International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; pp. 5650–5659. [Google Scholar]
  7. Liu, L.; Zhang, J.; Song, S.H.; Letaief, K.B. Client-edge-cloud hierarchical federated learning. In ICC 2020—2020 IEEE International Conference on Communications (ICC); IEEE: Piscataway, NJ, USA, 2020; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  8. Siriwardhana, Y.; Porambage, P.; Liyanage, M.; Marchal, S.; Ylianttila, M. SHIELD: Secure aggregation against poisoning in hierarchical federated learning. IEEE Trans. Dependable Secur. Comput. 2025, 22, 1024–1040. [Google Scholar] [CrossRef] [Scilit]
  9. Collins, L.; Hassani, H.; Mokhtari, A.; Shakkottai, S. Exploiting shared representations for personalized federated learning. In Proceedings of the International Conference on Machine Learning, Shenzhen, China, 18–24 July 2021; pp. 2089–2099. [Google Scholar]
  10. Xie, C.; Koyejo, O.; Gupta, I. Fall of empires: Breaking byzantine-tolerant sgd by inner product manipulation. In Uncertainty in Artificial Intelligence; JMLR, Inc.: New York, NY, USA, 2020; pp. 261–270. [Google Scholar]
  11. Wang, H.; Sreenivasan, K.; Rajput, S.; Vishwakarma, H.; Agarwal, S.; Sohn, J.Y.; Lee, K.; Papailiopoulos, D. Attack of the tails: Yes, you really can backdoor federated learning. Adv. Neural Inf. Process. Syst. 2020, 33, 16070–16084. [Google Scholar]
  12. Xie, C.; Huang, K.; Chen, P.Y.; Li, B. Dba: Distributed backdoor attacks against federated learning. In Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  13. Tolpegin, V.; Truex, S.; Gursoy, M.E.; Liu, L. Data poisoning attacks against federated learning systems. In Proceedings of the European Symposium on Research in Computer Security, Guildford, UK, 14–18 September 2020; pp. 480–501. [Google Scholar]
  14. Bhagoji, A.N.; Chakraborty, S.; Mittal, P.; Calo, S. Analyzing federated learning through an adversarial lens. In Proceedings of the International Conference on Machine Learning, Long Beach, CA, USA, 9–15 June 2019; pp. 634–643. [Google Scholar]
  15. Baruch, G.; Baruch, M.; Goldberg, Y. A little is enough: Circumventing defenses for distributed learning. Adv. Neural Inf. Process. Syst. 2019, 32, 8635–8645. [Google Scholar]
  16. El-Mhamdi, M.; Guerraoui, R.; Rouault, S. The hidden vulnerability of distributed learning in byzantium. In Proceedings of the International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; pp. 3521–3530. [Google Scholar]
  17. Shejwalkar, V.; Houmansadr, A.; Kairouz, P.; Ramage, D. Back to the drawing board: A critical evaluation of poisoning attacks on production federated learning. In Proceedings of the 2022 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA, 22–26 May 2022; pp. 1354–1371. [Google Scholar] [CrossRef] [Scilit]
  18. Pillutla, K.; Kakade, S.M.; Harchaoui, Z. Robust aggregation for federated learning. IEEE Trans. Signal Process. 2022, 70, 1142–1154. [Google Scholar] [CrossRef] [Scilit]
  19. Cao, X.; Fang, M.; Liu, J.; Gong, N.Z. Fltrust: Byzantine-robust federated learning via trust bootstrapping. arXiv 2020, arXiv:2012.13995. [Google Scholar]
  20. Andreina, S.; Marson, G.A.; Möllering, H.; Karame, G. Baffle: Backdoor detection via feedback-based federated learning. In Proceedings of the 2021 IEEE 41st International Conference on Distributed Computing Systems (ICDCS), Washington, DC, USA, 7–10 July 2021; pp. 852–863. [Google Scholar]
  21. Awan, S.; Luo, B.; Li, F. Contra: Defending against poisoning attacks in federated learning. In Proceedings of the European Symposium on Research in Computer Security, Virtual, 4–8 October 2021; pp. 455–475. [Google Scholar]
  22. Tan, J.; Liang, Y.C.; Luong, N.C.; Niyato, D. Toward smart security enhancement of federated learning networks. IEEE Netw. 2020, 35, 340–347. [Google Scholar] [CrossRef] [Scilit]
  23. Kang, J.; Xiong, Z.; Niyato, D.; Zou, Y.; Zhang, Y.; Guizani, M. Reliable federated learning for mobile networks. IEEE Wirel. Commun. 2020, 27, 72–80. [Google Scholar] [CrossRef] [Scilit]
  24. Uprety, A.; Rawat, D.B. Mitigating poisoning attack in federated learning. In Proceedings of the 2021 IEEE Symposium Series on Computational Intelligence (SSCI), Virtual, 5–7 December 2021; pp. 01–07. [Google Scholar]
  25. Cao, X.; Zhang, Z.; Jia, J.; Gong, N.Z. Flcert: Provably secure federated learning against poisoning attacks. IEEE Trans. Inf. Forensics Secur. 2022, 17, 3691–3705. [Google Scholar] [CrossRef] [Scilit]
  26. Xia, G.; Chen, J.; Yu, C.; Ma, J. Poisoning attacks in federated learning: A survey. IEEE Access 2023, 11, 10708–10722. [Google Scholar] [CrossRef] [Scilit]
  27. Kairouz, P.; McMahan, H.B. Advances and open problems in federated learning. Found. Trends Mach. Learn. 2021, 14, 1–210. [Google Scholar] [CrossRef] [Scilit]
  28. Liu, C.; Zhou, N.; Yu, W. Personalized federated learning algorithm based on composite feature extractor. IEEE Internet Things J. 2026, 13, 22947–22958. [Google Scholar] [CrossRef] [Scilit]
  29. Bi, W.Z.; Yu, W.J.; Gong, L.H. Personalized federated learning based on self-excluding aggregation with knowledge distillation. Clust. Comput. 2026, 29, 543. [Google Scholar] [CrossRef] [Scilit]
  30. Hu, X.B.; Wang, Y.P.; Zhou, N.R. AISS-VFL: Efficient adaptive importance-aware sample selection for vertical federated learning over distributed labels. Expert Syst. Appl. 2026, 318, 132011. [Google Scholar] [CrossRef] [Scilit]
  31. Sundar, A.P.; Li, F.; Zou, X.; Gao, T.; Hosler, R. Vaccination against backdoor attacks on federated learning systems. IEEE Trans. Syst. Man Cybern. Syst. 2025, 55, 4434–4443. [Google Scholar] [CrossRef] [Scilit]
  32. Yan, H.; Zhang, W.; Chen, Q.; Li, X.; Sun, W.; Li, H.; Lin, X. RECESS: Vaccine for federated learning against model-poisoning attacks. arXiv 2023, arXiv:2310.05431. [Google Scholar] [CrossRef] [Scilit]
  33. Wilkerson, K.; Lama, P.; Merrow, A.; Bonnet, R.; Vedula, V.; Boppana, R.V. Efficient backdoor defense for federated learning with partial model inspection. In Proceedings of the International Conference on Cyber Security and Technology, San Antonio, TX, USA, 15–17 October 2025; IEEE: Piscataway, NJ, USA, 2025. [Google Scholar] [CrossRef] [Scilit]
  34. Obioma, C.P.; Sun, Y.; Mustafa, M.A. Defending the edge: Representative-attention defense against backdoor attacks in federated learning (FeRA). arXiv 2025, arXiv:2505.10297. [Google Scholar] [CrossRef] [Scilit]
  35. Sharma, A.; Chen, W.; Zhao, J.; Qiu, Q.; Bagchi, S.; Chaterji, S. FLAIR: Defense against model poisoning attack in federated learning. In Proceedings of the 2023 ACM Asia Conference on Computer and Communications Security (ASIA CCS ’23), Melbourne, VIC, Australia, 10–14 July 2023; ACM: New York, NY, USA, 2023; pp. 553–566. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Graphical abstract of FLVaccin. Center: unbalanced tree—root (green); aggregators (grey) host clients and FedPer-aggregate upward; red: malicious updates. Top left: Personalized FL, shared backbone vs. private head. Bottom mid: node-level CIFAR-100 vaccination (30-run calibration). Bottom right: depth-aware per-client quarantine and root backbone rejection.
Figure 1. Graphical abstract of FLVaccin. Center: unbalanced tree—root (green); aggregators (grey) host clients and FedPer-aggregate upward; red: malicious updates. Top left: Personalized FL, shared backbone vs. private head. Bottom mid: node-level CIFAR-100 vaccination (30-run calibration). Bottom right: depth-aware per-client quarantine and root backbone rejection.
Computers 15 00547 g001
Figure 2. FLVaccin architecture and defense dataflow. Setup modules configure the unbalanced FedPer tree. During client training, vaccination and potential attacks may be applied. The defense mechanism implements per-client quarantine and, optionally, root backbone rejection prior to bottom-up aggregation and evaluation. The primary innovation is the coupling of vaccination, tolerance, and quarantine mechanisms across different tree depths.
Figure 2. FLVaccin architecture and defense dataflow. Setup modules configure the unbalanced FedPer tree. During client training, vaccination and potential attacks may be applied. The defense mechanism implements per-client quarantine and, optionally, root backbone rejection prior to bottom-up aggregation and evaluation. The primary innovation is the coupling of vaccination, tolerance, and quarantine mechanisms across different tree depths.
Computers 15 00547 g002
Figure 3. Schematic unbalanced hierarchical FL tree under FedPer. Green bars: levels L 0 , L 1 , , L n . Black circle: root (no local clients). Grey circles: non-root aggregators that FedPer-aggregate child shared backbones; each may host 0–N local clients (right inset). Lines: federation flow between levels and from node to clients.
Figure 3. Schematic unbalanced hierarchical FL tree under FedPer. Green bars: levels L 0 , L 1 , , L n . Black circle: root (no local clients). Grey circles: non-root aggregators that FedPer-aggregate child shared backbones; each may host 0–N local clients (right inset). Lines: federation flow between levels and from node to clients.
Computers 15 00547 g003
Figure 4. Fixed experimental unbalanced tree used in all scenarios. Four hierarchy levels ( L 0 L 3 ): the root at L 0 (red) has zero local clients; blue nodes N 1 N 25 are non-root aggregators at levels 1–3. Edges show heterogeneous fan-out (e.g., N 1 has three children; N 4 has one; N 24 is a leaf). Parenthetical counts are hosted clients per node (1–10; 100 total). The same structure is instantiated in every run reported below.
Figure 4. Fixed experimental unbalanced tree used in all scenarios. Four hierarchy levels ( L 0 L 3 ): the root at L 0 (red) has zero local clients; blue nodes N 1 N 25 are non-root aggregators at levels 1–3. Edges show heterogeneous fan-out (e.g., N 1 has three children; N 4 has one; N 24 is a leaf). Parenthetical counts are hosted clients per node (1–10; 100 total). The same structure is instantiated in every run reported below.
Computers 15 00547 g004
Figure 5. Round 1 global accuracy across 30 vaccination calibration runs on the fixed tree (one federated round per run). Bars are grouped by vaccination band—Low, Medium, and Hard (10–25%, 25–50%, and 50–80% node coverage and per-node injection, respectively)—with ten runs per band. Dashed horizontal lines: tier means (Low 34.7%, Medium 31.5%, Hard 26.3%); solid navy line: overall mean 30.8%. Per-run values are printed inside each bar.
Figure 5. Round 1 global accuracy across 30 vaccination calibration runs on the fixed tree (one federated round per run). Bars are grouped by vaccination band—Low, Medium, and Hard (10–25%, 25–50%, and 50–80% node coverage and per-node injection, respectively)—with ten runs per band. Dashed horizontal lines: tier means (Low 34.7%, Medium 31.5%, Hard 26.3%); solid navy line: overall mean 30.8%. Per-run values are printed inside each bar.
Computers 15 00547 g005
Figure 6. Vaccination configuration sampled in each calibration run. Cell color: mean CIFAR-100 injection percentage across vaccinated nodes (scale 0–80%). Cell label (e.g., “12C”): number of hosted clients at vaccinated nodes for that run. Runs are grouped by the same Low, Medium, and Hard bands; darker cells in the Hard band reflect both broader node coverage and higher per-node injection rates.
Figure 6. Vaccination configuration sampled in each calibration run. Cell color: mean CIFAR-100 injection percentage across vaccinated nodes (scale 0–80%). Cell label (e.g., “12C”): number of hosted clients at vaccinated nodes for that run. Runs are grouped by the same Low, Medium, and Hard bands; darker cells in the Hard band reflect both broader node coverage and higher per-node injection rates.
Computers 15 00547 g006
Figure 7. Global validation accuracy and loss during clean 20-round hierarchical FedPer training on the fixed tree. Dual y-axes: accuracy (left, blue) and cross-entropy loss (right, red) evaluated on the full CIFAR-10 test set at the root after each communication round.
Figure 7. Global validation accuracy and loss during clean 20-round hierarchical FedPer training on the fixed tree. Dual y-axes: accuracy (left, blue) and cross-entropy loss (right, red) evaluated on the full CIFAR-10 test set at the root after each communication round.
Computers 15 00547 g007
Figure 8. Distribution of training and validation metrics across hosted clients and aggregator nodes, pooled over all 20 communication rounds. Dual y-axes: accuracy (left, blue) and loss (right, red). Red line: median; black triangle: mean; circles: outliers.
Figure 8. Distribution of training and validation metrics across hosted clients and aggregator nodes, pooled over all 20 communication rounds. Dual y-axes: accuracy (left, blue) and loss (right, red). Red line: median; black triangle: mean; circles: outliers.
Computers 15 00547 g008
Figure 9. Repeated k-fold validation accuracy and loss for the frozen clean FedPer model (50 folds: 5-fold × 10 repeats). Red line: median; black triangle: mean.
Figure 9. Repeated k-fold validation accuracy and loss for the frozen clean FedPer model (50 folds: 5-fold × 10 repeats). Red line: median; black triangle: mean.
Computers 15 00547 g009
Figure 10. Mean k-fold confusion matrix for the clean baseline (aggregated over 50 validation folds). Cell values: mean predicted counts per true class; darker blue indicates higher counts.
Figure 10. Mean k-fold confusion matrix for the clean baseline (aggregated over 50 validation folds). Cell values: mean predicted counts per true class; darker blue indicates higher counts.
Computers 15 00547 g010
Figure 11. Global validation accuracy and loss under free-attack poisoning without defense. Dual y-axes: accuracy (left, blue) and loss (right, red) at the root after each round; dashed vertical lines mark attack rounds.
Figure 11. Global validation accuracy and loss under free-attack poisoning without defense. Dual y-axes: accuracy (left, blue) and loss (right, red) at the root after each round; dashed vertical lines mark attack rounds.
Computers 15 00547 g011
Figure 12. Distribution of training and validation metrics for normal vs. attacked clients and nodes under free attacks (pooled over all rounds). Dual y-axes: accuracy (left, blue) and loss (right, red). Red line: median; black triangle: mean; circles: outliers.
Figure 12. Distribution of training and validation metrics for normal vs. attacked clients and nodes under free attacks (pooled over all rounds). Dual y-axes: accuracy (left, blue) and loss (right, red). Red line: median; black triangle: mean; circles: outliers.
Computers 15 00547 g012
Figure 13. Attack-event timeline for the free-attack scenario. Rows: five attack types plus total attacked clients per round. Columns: communication rounds 1–20; color scale: mean severity (%). Cell labels: number of targeted clients per attack type (bottom row: total attacked clients). Attacks cluster in rounds 6–10 and 18–20.
Figure 13. Attack-event timeline for the free-attack scenario. Rows: five attack types plus total attacked clients per round. Columns: communication rounds 1–20; color scale: mean severity (%). Cell labels: number of targeted clients per attack type (bottom row: total attacked clients). Attacks cluster in rounds 6–10 and 18–20.
Computers 15 00547 g013
Figure 14. Repeated k-fold validation accuracy and loss for the frozen model after free-attack training (50 folds: 5-fold × 10 repeats). Red line: median; black triangle: mean.
Figure 14. Repeated k-fold validation accuracy and loss for the frozen model after free-attack training (50 folds: 5-fold × 10 repeats). Red line: median; black triangle: mean.
Computers 15 00547 g014
Figure 15. Mean k-fold confusion matrix after unconstrained attacks without defense (aggregated over 50 validation folds). Cell values: mean predicted counts per true class.
Figure 15. Mean k-fold confusion matrix after unconstrained attacks without defense (aggregated over 50 validation folds). Cell values: mean predicted counts per true class.
Computers 15 00547 g015
Figure 16. Global validation accuracy and loss under sustained attacks with trend-based quarantine enabled. Dual y-axes: accuracy (left, blue) and loss (right, red) at the root; dashed vertical lines mark attack rounds; orange squares: skip-root aggregation (rejected global backbone update).
Figure 16. Global validation accuracy and loss under sustained attacks with trend-based quarantine enabled. Dual y-axes: accuracy (left, blue) and loss (right, red) at the root; dashed vertical lines mark attack rounds; orange squares: skip-root aggregation (rejected global backbone update).
Computers 15 00547 g016
Figure 17. Distribution of training and validation metrics for normal vs. attacked clients and nodes under defended training (pooled over all rounds). Dual y-axes: accuracy (left, blue) and loss (right, red). Red line: median; black triangle: mean; circles: outliers.
Figure 17. Distribution of training and validation metrics for normal vs. attacked clients and nodes under defended training (pooled over all rounds). Dual y-axes: accuracy (left, blue) and loss (right, red). Red line: median; black triangle: mean; circles: outliers.
Computers 15 00547 g017
Figure 18. Attack and quarantine timeline for the defended scenario. Rows: five attack types, total attacked clients, and total quarantined clients per round. Columns: communication rounds 1–20; color scale: mean attack severity (%). Cell labels: targeted client counts per attack type.
Figure 18. Attack and quarantine timeline for the defended scenario. Rows: five attack types, total attacked clients, and total quarantined clients per round. Columns: communication rounds 1–20; color scale: mean attack severity (%). Cell labels: targeted client counts per attack type.
Computers 15 00547 g018
Figure 19. Repeated k-fold validation accuracy and loss for the frozen defended FedPer model (50 folds: 5-fold × 10 repeats). Red line: median; black triangle: mean.
Figure 19. Repeated k-fold validation accuracy and loss for the frozen defended FedPer model (50 folds: 5-fold × 10 repeats). Red line: median; black triangle: mean.
Computers 15 00547 g019
Figure 20. Mean k-fold confusion matrix after defended training (aggregated over 50 validation folds). Cell values: mean predicted counts per true class.
Figure 20. Mean k-fold confusion matrix after defended training (aggregated over 50 validation folds). Cell values: mean predicted counts per true class.
Computers 15 00547 g020
Table 1. Contextual landscape of CIFAR-10 poisoning defenses (reported accuracies; not a head-to-head comparison). Columns: Attack—threat type; Acc. with defense—reported accuracy under attack with the defense enabled; Hierarchy—whether the method uses hierarchical aggregation; Non-IID ( α )—client data split (IID, Dirichlet Non-IID with concentration α , or not reported).
Table 1. Contextual landscape of CIFAR-10 poisoning defenses (reported accuracies; not a head-to-head comparison). Columns: Attack—threat type; Acc. with defense—reported accuracy under attack with the defense enabled; Hierarchy—whether the method uses hierarchical aggregation; Non-IID ( α )—client data split (IID, Dirichlet Non-IID with concentration α , or not reported).
MethodYearAttackAcc. with DefenseHierarchyNon-IID ( α )
Sundar et al. [31]2025Backdoor82.9%NoNot reported
RECESS [32]2023Model poison60.4%NoNot reported
SHIELD [8]2025Poisoning60.58%YesIID & Non-IID ( α = 1 )
BOD-hybrid [33]2025Backdoor78.2%NoIID & Non-IID
FeRA [34]2025DBA backdoor86.1%NoNot reported
FLAIR [35]2023Untargeted66.9%NoNot reported
Bagdasaryan et al. [3]2020Model-repl.∼80%NoNot reported
FLVaccin (ours)2026Mixed (5)76.5% YesNon-IID ( α = 0.5 )
Mixed (5): label flip, backdoor, model poison, Byzantine, and sign-flip. 5-fold×10 k-fold after 535 attacks with quarantine. Cross-row percentage gaps are not evidence of absolute superiority (Section 5.1).
Table 2. FedPer round-protocol notation.
Table 2. FedPer round-protocol notation.
GroupSymbolMeaning
Model split
θ sh Shared backbone (features); averaged bottom-up at every node
θ i loc Private classifier head of client i (classifier); never sent to aggregation
θ sh , t , θ i loc , t Backbone and head of client i when round t begins
Rounds
t, TCurrent round index and total communication rounds
ELocal training epochs per active client in each round
Indices
iFederation client (hosted at some tree node)
vAggregator node in V
jModel indexed in aggregation pool S v
Aggregation
S v Non-quarantined models at node v (hosted clients and child-node models)
| S v | Number of models averaged in Equation (1)
θ v sh , t , θ sh , t + 1 Shared backbone after aggregation at v; candidate global backbone at root (accepted or rejected)
Table 3. Quarantine notation: symbols, meaning, and role in the defense.
Table 3. Quarantine notation: symbols, meaning, and role in the defense.
SymbolMeaning
A i t , L i t Client i’s training accuracy and loss after round t (validation metrics computed on the full CIFAR-10 test set)
Δ A i t , Δ L i t Round-over-round relative change in accuracy and loss (Equation (7)); positive means improvement
δ i t Maximum tolerated drop for client i in round t; quarantine triggers if any trend falls below δ i t
δ ¯ Largest benign relative accuracy swing from the 30-run vaccination calibration (Section 4.2); upper bound on legitimate metric movement
δ root ( t ) , δ deep ( t ) Allowed drops at the shallowest hosted level ( l = 1 , near the root) and at the deepest level ( l = l max ) in round t
l i , l max , ρ i Tree level of the node hosting client i; maximum level in the tree; normalized depth ρ i = l i / l max (0 at root, 1 at deepest)
f tol ( l i , t , T ) Maps depth and round to client i’s allowance δ i t by linear interpolation between the root and deep endpoints (Equation (6))
Table 4. Summary of experimental scenarios and key outcomes.
Table 4. Summary of experimental scenarios and key outcomes.
ScenarioAttacksDefenseTest AccRepeated K-Fold Acc
Vaccination mean0Off30.8% (round-1 mean)
Normal baseline0Off79.9% 79.99 %   ±   0.41
Free attack130Off21.0% 20.02 %   ±   0.42
Attack + defense535Vaccination + quarantine77.3% 76.46 %   ±   0.39
Table 5. Repeated k-fold validation statistics for the clean baseline (5-fold × 10 repeats, 50 folds; frozen global shared backbone with per-client heads).
Table 5. Repeated k-fold validation statistics for the clean baseline (5-fold × 10 repeats, 50 folds; frozen global shared backbone with per-client heads).
MetricMean ± Std95% CIp-Value
Validation accuracy 79.99 %   ±   0.41 % [79.87, 80.11] < 0.001
Validation loss 0.592   ±   0.011 [0.588, 0.595] < 0.001
Table 6. Repeated k-fold validation statistics after free-attack training (5-fold × 10 repeats, 50 folds; frozen global shared backbone with per-client heads).
Table 6. Repeated k-fold validation statistics after free-attack training (5-fold × 10 repeats, 50 folds; frozen global shared backbone with per-client heads).
MetricMean ± Std95% CIp-Value
Validation accuracy 20.02 %   ±   0.42 % [19.90, 20.14] < 0.001
Validation loss 2.320   ±   0.005 [2.319, 2.322] 1.000
Table 7. Repeated k-fold validation statistics after defended training (5-fold × 10 repeats, 50 folds; frozen global shared backbone with per-client heads).
Table 7. Repeated k-fold validation statistics after defended training (5-fold × 10 repeats, 50 folds; frozen global shared backbone with per-client heads).
MetricMean ± Std95% CIp-Value
Validation accuracy 76.46   ±   0.39 % [76.35, 76.58] < 0.001
Validation loss 0.687   ±   0.008 [0.685, 0.689] < 0.001
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

David, T.-M.; Udrescu, M. FLVaccin: Unbalanced Hierarchical Federated Learning with Vaccination-Calibrated Adaptive Quarantine for Robust Poisoning Defense. Computers 2026, 15, 547. https://doi.org/10.3390/computers15080547

AMA Style

David T-M, Udrescu M. FLVaccin: Unbalanced Hierarchical Federated Learning with Vaccination-Calibrated Adaptive Quarantine for Robust Poisoning Defense. Computers. 2026; 15(8):547. https://doi.org/10.3390/computers15080547

Chicago/Turabian Style

David, Tudor-Mihai, and Mihai Udrescu. 2026. "FLVaccin: Unbalanced Hierarchical Federated Learning with Vaccination-Calibrated Adaptive Quarantine for Robust Poisoning Defense" Computers 15, no. 8: 547. https://doi.org/10.3390/computers15080547

APA Style

David, T.-M., & Udrescu, M. (2026). FLVaccin: Unbalanced Hierarchical Federated Learning with Vaccination-Calibrated Adaptive Quarantine for Robust Poisoning Defense. Computers, 15(8), 547. https://doi.org/10.3390/computers15080547

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop