TL;DR
The paper introduces RandEigen, the first Byzantine robust aggregator for machine learning that achieves optimal, dimension-independent security guarantees in quasi-linear time. Unlike prior defenses, it requires no prior knowledge of clean data distributions or pre-computed filtering thresholds, making it highly practical for protecting high-dimensional modern neural networks against data poisoning.
What Problem Does This Paper Address?
In both centralized and federated learning, data poisoning attacks pose a severe threat. Malicious actors inject corrupted data or manipulate local gradients during training to skew the final model, causing misclassifications or embedding malicious backdoors.
To defend against this, researchers use Byzantine robust aggregators to filter out outlier gradients before averaging them. However, modern deep learning models deal with vectors containing millions or billions of dimensions ($d$). This high dimensionality creates a frustrating trade-off between security and speed:
- Weak Aggregators (e.g., coordinate-wise median or trimmed mean) run quickly in linear time ($\tilde{O}(nd)$) but suffer from dimension-dependent bias. Sophisticated, adaptive attacks can easily exploit this to bypass the defense.
- Strong Aggregators (e.g., iterative filtering) offer dimension-independent bias bounds, providing robust security. However, they require expensive matrix operations like eigendecomposition, leading to a prohibitive computational complexity of $\Omega(nd^2)$ or worse. Furthermore, they require defenders to know the variance of clean data beforehand to set a hard filtering threshold—an assumption that rarely holds in practice.
Methods
The authors propose RandEigen, an efficient randomized robust aggregator that breaks the speed-security deadlock using three core innovations:
- Randomized Dimensionality Reduction: RandEigen applies the Johnson-Lindenstrauss (JL) transformation to project high-dimensional gradients ($d$) down to a much smaller, manageable subspace ($k = O(\log d)$). This projection preserves the pairwise distance properties of the vectors on expectation.
- Power Iteration for Eigenvector Approximation: Instead of performing an exact, computationally crushing eigendecomposition on the full covariance matrix, RandEigen uses the power iteration method to rapidly approximate the dominant eigenvector in the lower-dimensional space.
- Eigenvalue Convergence Stopping Criterion: To eliminate the need for a pre-computed threshold derived from clean data, RandEigen introduces a dynamic stopping rule. It monitors the dominant eigenvalue across successive filtering iterations; once the eigenvalue stabilizes (converges), the algorithm safely stops.
Datasets
The authors evaluated RandEigen across multiple standard benchmarks to demonstrate its versatility:
- MNIST & Fashion-MNIST (F-MNIST): Used for image classification tasks trained on convolutional neural networks (CNNs) with roughly $2^{18}$ parameters.
- SST2: Used for sentiment analysis by fine-tuning a BERT language model containing roughly $2^{27}$ parameters.
Key Insights and Ideas
- Fixed Thresholds are a Security Liability: Deterministic filtering thresholds can be reverse-engineered by an adaptive attacker. For instance, the state-of-the-art HiDRA attack crafts poisoned gradients that sit just below standard filtering thresholds, rendering traditional strong aggregators useless. Switching to a dynamic convergence check removes this vulnerability entirely.
- Quasi-Linear Time Doesn't Mean Weak Security: The prevailing assumption was that strong, dimension-independent defenses inherently required quadratic time. RandEigen proves that combining randomized projections with iterative approximations can preserve optimal statistical security while scaling linearly with dimension size.
Key Results
- Massive Speedups: RandEigen achieves a running time of $\tilde{O}(nd)$. Experimentally, it is 15× faster than standard iterative filtering in low-dimensional settings ($d = 1000$) and widens to over 300× faster when $d > 8000$.
- Defeating Adaptive Attacks: Against the devastating HiDRA attack, standard defenses fail completely, causing model accuracy to plummet to ~10%. RandEigen successfully filters out these adaptive outliers, maintaining a high model accuracy of ~93%.
- Negligible Performance Drop: In clean, non-adversarial settings, deploying RandEigen results in an accuracy drop of less than 2% compared to standard arithmetic averaging.
- Low Memory Footprint: By eliminating the need to chunk data to fit into memory, RandEigen requires at most 0.05GB of GPU memory overhead, making it highly scalable for massive modern architectures.
Limitations and Future Work
The authors note a fundamental caveat: RandEigen belongs to the class of bias-bounding defenses. It operates on the empirical reality that most potent poisoning attacks must introduce a noticeably large magnitude of bias to alter model behavior.
Consequently, it remains theoretically possible for an attacker to design a highly stealthy, low-bias attack that introduces minute, imperceptible changes at each individual training step but still achieves a malicious objective over a long duration. A systematic investigation into defending against such low-bias, long-horizon attacks is highlighted as an open direction for future research.
Summary updated