On Johnson-Lindenstrauss Transforms for Byzantine-Robust Optimization
Organizations: Basic Research of Artificial Intelligence Laboratory · MBZUAI · Federated Learning Problems Laboratory
Abstract
The growing scale of data and models in machine learning calls for efficient optimization methods. Distributed optimization addresses this challenge, with compression mechanisms helping to reduce communication costs. A classical tool for dimensionality reduction is the Johnson-Lindenstrauss (JL) transform, which is simple to implement and offers strong geometric guarantees. In particular, JL transforms approximately preserve inner products and pairwise distances between vectors with high probability. In this paper, we exploit this property in Byzantine-robust optimization, where worker messages are weighted according to their alignment with a trusted reference gradient. We further support our theoretical findings with experimental results.
Figures & tables
| Compressor | GPU, ms | CPU, ms | Peak, MB | Stored, MB | Uplink, MB |
|---|---|---|---|---|---|
| Gaussian JL, Kronecker (ours) | |||||
| Rademacher JL, Kronecker (ours) | |||||
| SRHT | |||||
| SRFT | |||||
| SRHT, whole vector † | |||||
| SRFT, whole vector † |
| (a) random matrix | (b) real ResNet-18 gradients | ||||||
|---|---|---|---|---|---|---|---|
| 20 draws of , mean std | 100 pairs, mean std | ||||||
| Compressor | Variant | , | , deg | , | , deg | ||
| Kronecker JL (ours) | Rad. | ||||||
| Gauss. | |||||||
| SRHT | layer | ||||||
| whole | – | – | – | ||||
| Method | none | LF | SF | RG | ALIE | IPM |
|---|---|---|---|---|---|---|
| (a) best accuracy | ||||||
| FedAvg (Adam) | ||||||
| CC | ||||||
| CC + bucketing | ||||||
| CC + FBM | ||||||
| Safeguard | ||||||
| Attack | IID | |||
|---|---|---|---|---|
| No attack | ||||
| Label flipping | ||||
| Sign flipping | ||||
| IPM |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Attack | Byzantine behavior | Byz. fraction |
|---|---|---|
| Label flipping (LF) | Data poisoning: Byzantine clients compute gradients on their local data with each label replaced by . | , |
| Sign flipping (SF) | Byzantine clients send the negated honest gradient . | |
| Random gradients (RG) | Byzantine clients send random vectors with i.i.d. Gaussian entries, . | , |
| ALIE | Omniscient attack: Byzantine clients send , a small coordinate-wise perturbation of the honest mean that stays within the spread of honest gradients and thus evades robust aggregation rules. | |
| IPM | Omniscient attack: Byzantine clients send with , so that the inner product between the aggregated update and the true gradient becomes negative. |
| Trust set | R | R | Best | Final |
|---|---|---|---|---|
| (a) size, all classes | ||||
| Trust set | Epochs | @20 | @50 | @100 | @200 | Best |
|---|---|---|---|---|---|---|
| Compressor | Variant | , | , deg |
|---|---|---|---|
| Kronecker JL (ours) | Rad. | ||
| Gauss. | |||
| SRHT | layer | ||
| whole | |||
| SRFT | layer | ||
| (a) rounds to | |||||
|---|---|---|---|---|---|
| No attack | |||||
| Label flipping | |||||
| Sign flipping | |||||
| IPM | |||||
| (b) traffic to , full-gradient uploads | |||||
Robust Optimization
Robust optimization studies decisions that remain effective when data, models, or operating conditions are uncertain or adversarial.
See all 49 papers