Federated learning lets hospitals or users of brain-computer interfaces train a shared model on brain recordings (EEG) without pooling the raw signals. It is also easy to sabotage. A few malicious participants can upload carefully shaped model updates that steer the shared model wrong. The most effective of these attacks do not look like outliers. They hide inside the normal spread of honest updates. EEG may be the worst case for this, because people's brain signals differ so much: skull thickness, cortical folding and baseline rhythms all vary. That natural spread hands the attacker a large cover. Defenses that tighten their filters to compensate end up throwing out honest participants whose brains are simply unusual.
This note proposes to shrink the cover instead of trying to see through it. A large share of cross-subject EEG variation is a nuisance shift in each person's spatial covariance, the "reference point" of their signal. If each client removes that shift locally, through per-subject re-centering of covariance inputs or private per-subject normalization layers, before computing the update it shares, then honest updates to the shared parameters should become much more alike. An attacker whose permitted deviation scales with the honest spread is then forced to deviate less. Off-the-shelf robust aggregation, which fails on heterogeneous data, could start working again, and it would need no server-held validation data. We would test this on standard motor-imagery benchmarks against the strongest attacks and defenses in the literature.
Core Claim
The claim is that per-subject alignment, kept private on each client, works as a multiplier on Byzantine robustness in federated EEG. A Byzantine client is one that behaves arbitrarily or maliciously. The claim is specific enough to falsify. The "A Little Is Enough" attack (ALiE), from A Little Is Enough: Circumventing Defenses For Distributed Learning, sets each malicious update to
$$\Delta w_{\text{mal}} = \mu - z^{\max}\,\sigma,$$
where $\mu$ and $\sigma$ are the coordinate-wise mean and standard deviation of the honest updates and $z^{\max}$ is the largest shift that still passes the defense's acceptance test. Two consequences follow directly from this construction. The per-round deviation the attacker can inject is proportional to $\sigma$. Any intervention that lowers $\sigma$ for honest clients without lowering accuracy therefore lowers the damage linearly, even against an attacker who knows the defense and recomputes $z^{\max}\sigma$ on the aligned updates.
We predict three things. Alignment will cut honest update dispersion on the shared parameters by a measurable factor. Attack damage will track that factor. Simple aggregators such as trimmed mean and median will close most of the gap to the strongest specialized defenses. If dispersion falls but damage does not, the claim is wrong.
Relation to Prior Work
The work closest to this one is Reputation-Based Federated Learning Defense to Mitigate Threats in EEG Signal Classification. It defends federated emotion-EEG classifiers against a label-flipping attacker guided by explainability scores. Its defense scores each client by how much that client's update helps on a server-held validation set, and permanently evicts clients whose score falls too low. It differs from our proposal on three axes. Its models are tree ensembles, not neural networks. Its attacks poison data rather than parameters. It depends on clean central EEG data, which is itself a privacy cost, and that data cannot represent unseen subjects' physiology. We use none of these three ingredients.
Federated Transfer Learning for EEG Signal Classification motivates the work in two ways. It shows that federated Riemannian networks on covariance matrices help poorly performing subjects on PhysioNet motor imagery. Its split into "good" and "bad" subjects is direct evidence of the heterogeneity that gives attackers cover. Its aggregation is plain averaging, which has zero tolerance for malicious updates. SPD-CNN adds further evidence that covariance-based models handle cross-subject shift well. It trains centrally, with a few-shot meta-transfer step. The method we reuse is the private per-domain normalization of covariance features in TSMNet. We repurpose it as a security mechanism, not only an adaptation trick.
Three results constrain the design. Manipulating the Byzantine and How To Backdoor Federated Learning show that tighter filtering on non-uniform data harms honest minority clients and that natural spread covers attackers. Any defense we propose must therefore report false-rejection rates for honest unusual subjects. Bant scores updates on a server trial set. Its automatic variant breaks down when that set is small, which argues against validation-based designs where EEG data is scarce. Personalized Federated Learning towards Communication Efficiency, Robustness and Fairness (lp-proj) is the closest mechanism-level relative. It keeps parameters outside a fixed random subspace private and reaches consensus inside that subspace. Our private part is instead chosen by the physics of the signal: the per-subject covariance reference. The ablation below separates the two.
Research Program
We would build three clients-side pipelines. All of them share only the parameters that are meant to be invariant across subjects.
The first is EEGNet, a compact convolutional network with about 1,100 parameters (EEGNet). Each client re-centers its trials by its own mean covariance before training. This is a standard EEG alignment step and needs no change to the architecture.
The second is a covariance network in the style of TSMNet. Its per-subject normalization statistics and biases stay local and are never uploaded.
The third is an FTL-style network that applies a bilinear reduction to covariance matrices, then a tangent-space projection, then a classifier. It gets the same private normalization.
Each pipeline runs with alignment switched on and off. That gives a clean comparison of identical shared parameters with and without the nuisance removed.
On top of each pipeline we run a grid of attacks and aggregators. For every cell we log three things: the honest-update dispersion ratio (mean coordinate-wise standard deviation of honest shared updates, aligned divided by unaligned), clean accuracy, and accuracy under attack. A second, analytical strand asks whether a malicious client gains anything by lying about its own alignment statistics. Those statistics never leave the device, so its only channel to other clients is the shared update. We test whether an attacker who optimizes over both its private and shared parameters can rebuild the larger effective spread.
Baselines
The naive reference point is undefended federated averaging on the unaligned models, run both clean and under attack. It bounds the problem from both sides. We also report centralized training on pooled data, as a non-private accuracy ceiling. For BCI Competition IV-2a, which MOABB distributes as BNCI2014001, the strongest centralized accuracy in the file is 83.99% average four-class accuracy for ConSwinFormer (A Novel 3D Approach with a CNN and Swin Transformer). We cite it as context, not as a target, because our models are far smaller.
The classical robust aggregators are coordinate-wise median, trimmed mean, Krum and Bulyan. They matter because the proposal claims alignment rescues exactly these cheap rules. Published evidence shows they fail under heterogeneity and optimized attacks. On MNIST, Krum's error rose from 0.11 to 0.75 under partial-knowledge poisoning (Local Model Poisoning Attacks to Byzantine-Robust Federated Learning). On CIFAR-10, ALiE pushed Krum from about 60% to 20.3% accuracy (A Little Is Enough).
The strongest existing defense is spatial-temporal analysis, STPA (Byzantine-robust Federated Learning through Spatial-temporal Analysis of Local Model Updates). It clusters updates by cosine similarity and checks each round's aggregate against a running momentum direction. It reports about 1% error on MNIST with 34% label-flipping clients, where Krum exceeded 80%, and it was the only tested defense that converged stably against ALiE on CIFAR-10. FedCut (FedCut) is the strongest baseline against colluding groups. It partitions a time-averaged similarity graph of client updates spectrally. No reported result was found on Lacuna for STPA, FedCut or any Byzantine-robust aggregator on an EEG benchmark.
We also include the reputation defense from the EEG paper, Bant, and lp-proj. Each validation-based method gets the same small held-out pool of subjects, so its reliance on validation data is visible rather than hidden. Every method runs on identical client partitions, model, local epochs, number of rounds and random seeds. Each gets an equal hyperparameter search budget (the same number of configurations, chosen on clean validation subjects that are never used for testing). Every aggregator also runs on the aligned pipeline. Beating STPA means that trimmed mean or median on aligned updates matches or exceeds STPA on unaligned updates under ALiE and Fang-style poisoning, at equal or lower honest-client false-rejection rates. STPA plus alignment beating STPA alone counts as a secondary win.
The ablation that isolates the key ingredient is personalization without alignment. A randomly chosen set of private parameters, matched in size to the normalization parameters, stays local, as in lp-proj. If this random split reduces dispersion as much as the covariance-reference split does, the gain comes from generic personalization and not from EEG structure.
Why not just…?
Why not just use STPA or FedCut on standard federated EEG models? This is the real threat. STPA already survives ALiE on CIFAR-10, and it may survive it on EEG too. However, both methods decide by cosine-similarity clustering. With 109 heterogeneous subjects, honest clients may form many small clusters that look like colluding groups, and this is exactly the false-rejection failure that Manipulating the Byzantine predicts. The experiments settle the question directly. If STPA on unaligned updates already matches aligned trimmed mean on both accuracy under attack and worst-decile honest-subject accuracy, then the multiplier claim collapses to "alignment helps STPA's clustering," and we would report it that way.
Why not just validate updates on server-side data, as the reputation and Bant defenses do? These methods need EEG on the server, and on scarce data they become fragile. Bant's authors note that their automatic variant fails on small or noisy trial sets. An unseen subject's honest update can also legitimately raise loss on a fixed validation pool. We measure this directly as the eviction rate of honest clients from BNCI2015004's participants with disabilities when the validation pool comes from able-bodied subjects.
Why not just personalize with a random private subspace, as lp-proj does? Random personalization lowers the spread of shared updates in some way. The question is whether it removes the right spread. The size-matched random-split ablation answers this. Our hypothesis fails if the random split performs as well.
Why not just align the data and stop, without any robust aggregator? Alignment shrinks the attacker's room but does not close it. Under plain averaging, one unbounded update still dominates. We expect aligned averaging to fail under scaling attacks while aligned trimmed mean holds. The grid includes this cell.
Proposed Experiments
The main testbed is PhysioNet Motor Movement/Imagery. It has 109 subjects, so each subject can be one client. That gives a realistic number of clients and the heterogeneity FTL documented. The multi-class checks use BNCI2014001 (four classes, 9 subjects, split by session to give 18 clients), BNCI2015004 (five classes, 14 subjects including participants with disabilities, for the fairness analysis) and Sch2017 (128 channels, to test whether alignment still helps when the shared parameter vector is larger). All are loaded through MOABB, following SPD-CNN.
The attacks are ALiE, Fang-style directed deviation under both full and partial knowledge, sign flipping, label flipping, the SVM-plus-explainability targeted label flipping from the reputation paper, and a distributed backdoor (Distributed Backdoor Attacks in Federated Learning) that maps "right hand" to "both feet." The malicious fraction is 10%, 20% and 30%.
The metrics are clean accuracy, accuracy under attack, backdoor success rate, worst-decile subject accuracy, the honest false-rejection rate (for filtering defenses), and the dispersion ratio.
Three checks decide the question. First, across all models and datasets, the drop in accuracy under ALiE should fall roughly in proportion to the dispersion ratio. A flat relationship would refute the mechanism. Second, an adaptive attacker who knows the alignment scheme and optimizes jointly over its private and shared parameters should not recover the unaligned level of damage. If it does, alignment only obscures the attack and does not constrain it. Third, alignment must not buy robustness at the cost of unusual honest subjects. Worst-decile accuracy and the false-rejection rate for BNCI2015004's participants with disabilities must stay level or improve compared with STPA on unaligned updates. Meeting all three would establish a cheap, validation-free defense recipe for federated EEG. Failing the first would still produce the first parameter-poisoning benchmark of neural EEG models in federated training.
References
- A Little Is Enough: Circumventing Defenses For Distributed Learning
- Reputation-Based Federated Learning Defense to Mitigate Threats in EEG Signal Classification
- Federated Transfer Learning for EEG Signal Classification
- SPD-CNN: A plain CNN-based model using the symmetric positive definite matrices for cross-subject EEG classification with meta-transfer-learning
- Manipulating the Byzantine: Optimizing Model Poisoning Attacks and Defenses for Federated Learning
- How To Backdoor Federated Learning
- Bant: Byzantine Antidote via Trial Function and Trust Scores
- Personalized Federated Learning towards Communication Efficiency, Robustness and Fairness
- EEGNet: A Compact Convolutional Network for EEG-based Brain-Computer Interfaces
- A Novel 3D Approach with a CNN and Swin Transformer for Decoding EEG-Based Motor Imagery Classification
- Local Model Poisoning Attacks to Byzantine-Robust Federated Learning
- Byzantine-robust Federated Learning through Spatial-temporal Analysis of Local Model Updates
- FedCut: A Spectral Analysis Framework for Reliable Detection of Byzantine Colluders
- Time-Distributed Backdoor Attacks on Federated Spiking Learning