Manuscript Offprint
arXiv:2610.27989On Johnson-Lindenstrauss Transforms for Byzantine-Robust Optimization
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
20 Oct 2026
cs.LG
2610.27989v1
BRAIN Brain Research of Artificial Intelligence
On Johnson-Lindenstrauss Transforms for Byzantine-Robust Optimization
Aleksandr Shestakov, Vladimir Aletov, Aleksandr Beznosikov
Basic Research of Artificial Intelligence Laboratory
Federated Learning Problems Laboratory
MBZUAI
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.
where denotes the local loss at worker , is the fixed set of honest workers, and . The objective is the average loss over the honest workers, whose identities need not be known to the server; when all workers are honest, it reduces to the usual average over all workers. Distributed methods make large-scale training tractable when a single machine is insufficient, but introduce communication bottlenecks, synchronization overhead, and bandwidth limitations that can substantially hinder performance [3].
To mitigate the communication cost, a broad range of compression techniques has been proposed [4, 5], such as quantization [6], which lowers numerical precision, and sparsification [7], which communicates only the most informative coordinates. Workers transmit either compressed gradients [5] or auxiliary sequences that compensate for compression errors across iterations [8, 9, 10]. In both cases, the gradient estimator is obtained by averaging compressed vectors.
However, some distributed setups rely not on the mean itself, but on geometric relations between gradients. A prominent example is Byzantine-robust optimization [11], in which Byzantine workers attempt to derail training by sending arbitrary adversarial messages. One remedy is to assign reliability weights to workers [12], computed from inner products of local gradients with a trusted reference gradient [13, 14], so that workers not aligned with the reference direction are suppressed:
(2) where is a loss function defined on a trusted device. In this illustrative update, the iterate is left unchanged if the denominator is zero, and Byzantine workers may replace their gradients by arbitrary messages.
Such methods depend on preserving -geometry rather than exact coordinate values, which motivates compression operators that approximately preserve Euclidean structure. Johnson–Lindenstrauss (JL) transforms [15] map high-dimensional vectors into a lower-dimensional space while approximately preserving pairwise distances and inner products. We focus on stochastic JL transforms, as they are simple to implement in practice. They have been successfully applied in nearest-neighbor search [16, 17], random partitioning [18], linear regression [19, 20], clustering [21, 22, 23, 24, 25, 26], differential privacy [27, 28], and numerical linear algebra [29, 30, 31].
In distributed optimization and federated learning, however, JL transforms have mostly been treated as unbiased sketching operators [32, 33, 34], leading to guarantees in expectation, or derandomized [35]. These works do not capitalize on the preservation of distances and inner products, and thus do not clearly distinguish JL transforms from standard sparsification or sketching schemes.
Our contributions. In this paper, we
-
Propose a JL-based communication mechanism for Byzantine-robust distributed optimization methods that rely on gradient alignment with a trusted reference gradient;
-
Use high-probability control of compressed honest gradients to derive convergence guarantees without convexity, under average data similarity and an explicit accuracy condition on the trusted reference gradient;
-
Validate our theoretical findings experimentally and demonstrate the practical effectiveness of the proposed approach.
2 Proposed Algorithm
2.1 Notation
We equip with the standard Euclidean norm, . Throughout the paper, denotes a differentiable objective function.
Assumption 1 (Smoothness)
Differentiable function has L-Lipschitz gradient for some , i.e.
Moreover, .
2.2 JL Transforms
Definition 1 (JL Transform [15])
Given , a stochastic mapping is called a JL transform if, for all ,
In words, a JL transform preserves all pairwise distances up to a factor with probability at least , while reducing the dimension from to . If is linear, then , and taking shows that norms are preserved as well: . Since , preserving the norms of and also preserves inner products.
Lemma 1
If is a linear JL Transform, then for all .
We consider two standard linear constructions.
Definition 2 (Gaussian JL matrix)
with i.i.d. entries .
Definition 3 (Rademacher JL matrix)
with i.i.d. entries , each with probability .
Both are JL transforms with distortion and failure probability whenever , where is a universal constant [36, 37]. To return to for the optimization update, we use the lifted operator .
Lemma 2 (Unbiasedness)
For as in Definitions 2 and 3, for all .
Lemma 3 (Second moment)
For all , for Gaussian and for Rademacher .
Thus resembles unbiased sparsification such as , with a uniformly random subset of size , which is also unbiased with variance of order [38]. The key distinction is that the transmitted message of , (so that , just as ), does not preserve norms with high probability. By linearity, the JL property for reduces to for all . For the ratio is with probability , forcing .
Lemma 4 (Operator-norm bound [39])
For as in Definitions 2 or 3, there exists a universal constant , independent of and , such that, with probability at least ,
Consequently, on the same event, for every .
The operator norm controls the lifted update, while the JL property controls the geometry of fixed vectors in the compressed space; the high-probability analysis uses both.
2.3 Grad-BANT
Many Byzantine-resilient methods exploit gradient similarity to distinguish honest workers from adversarial ones. We introduce Grad-BANT (Algorithm 1), inspired by [13]. As in equation 2, it relies on a trial function stored on the trusted server, whose gradient is used to score the received messages; its accuracy with respect to the honest objective is specified in Assumption 3.
Algorithm 1: Grad-BANT
1: Parameters: , , stepsize , momentum , smoothness constant 2: for do 3: Generate a fresh ; server sends and the sketch seed to workers 4: for all in parallel do 5: Honest worker: ; send to server 6: end for 7: ; 8: if all then 9: 10: else 11: 12: end if 13: 14: end for
At each iteration, an honest worker sends with , while a Byzantine worker may send any finite, measurable , possibly chosen after observing the current sketch and the honest messages; denotes the lifted message. Each sketch is sampled independently of all data and previous randomness after is determined, so the honest gradients and the reference gradient are fixed conditional on the history before sampling .
The trust score measures how well the lifted message aligns with the trusted reference gradient , while accounting for its norm: if , the direction is sufficiently aligned with the trusted descent direction and receives a positive weight; otherwise, it is suppressed by the indicator in the update. The scores are clipped by and normalized. If all scores are non-positive, we blend the previous weights with uniform weights (line 9) and leave the iterate unchanged. The momentum parameter smooths the evolution of the weights over time.
For honest workers, the server thus uses the compressed alignment terms , which the JL property keeps close to the exact ones with high probability, while the norm penalty is evaluated on the actual lifted message. The aggregated update is lifted back to via (line 13). Our analysis uses the aggregate honest alignment and the sum of honest squared norms; it does not require the compressed and uncompressed scores to select the same workers. We require the following similarity condition.
Assumption 2 (Data similarity)
The honest workers are said to satisfy -data similarity if there exist such that
This condition bounds heterogeneity on average over the honest workers, which is weaker than imposing it on every honest worker. Since is their average, it also gives
The next assumption quantifies how accurately the trusted reference represents the objective; and capture the mismatch between the trial and the true data distributions.
Assumption 3 (Reference accuracy)
There exist and such that
Theorem 1
Suppose that Assumptions 1, 2, and 3 hold. Let be an integer, , and satisfy . Use fresh Gaussian or Rademacher JL matrices in Algorithm 1, and set
where is the constant in Lemma 4. Then, for any stepsize
after iterations we have
with probability at least , provided that for a sufficiently large universal constant .
The proof is given in Appendix D. Neither convexity nor a small upper bound on is required [14]. The reference error contributes an explicit residual term, heterogeneity affects both the admissible stepsize and the last term in equation 11, and the factor reflects the fraction of honest workers and the weight update. With (, ), the same analysis gives the uncompressed guarantee.
3 Efficient Implementation
Beyond communication, scalability in large-scale distributed learning is limited by the cost of storing and applying the compression operator: a dense Gaussian or Rademacher matrix requires memory and operations per application, which is prohibitive for modern models. We therefore discuss structured and sparse JL constructions, whose geometric guarantees depend on the construction and its parameters, and their use within Grad-BANT.
3.1 Efficient JL Transforms
Dense JL matrices can be replaced by the SRHT , with a random diagonal sign matrix , the normalized Walsh–Hadamard matrix , and a sampler of coordinates, or by the related FJLT [40, 41, 42], both applied in time, or by sparse sketches such as CountSketch [43, 44, 45], applied in time. All of them are generated from a random seed, so the server broadcasts only the seed of . The appendix verifies unbiasedness and second-moment bounds for these sketches, which suffices for the expectation analysis (Theorem 8); the high-probability guarantee of Theorem 1 additionally requires the inner-product, Frobenius-norm, and operator-norm events of Appendix D.
3.2 Per-layer Sketching
Applying a single JL transform to the entire parameter vector may be impractical for large models, and even infeasible for large language models. A natural remedy is per-layer sketching, where each layer of is compressed by its own JL transform , i.e., . If each layerwise transform preserves norms, so does the full block-diagonal transform.
Theorem 2 (Per-layer norm preservation)
Let , where and . Let , where are random matrices defined on a common probability space. Suppose that, for each , there exist parameters and such that, for every fixed , . Then, for every fixed ,
where .
If the layerwise distribution of gradient energy is known, the sketch dimensions can be allocated non-uniformly across layers.
Corollary 1 (Energy-aware allocation)
Let and use Gaussian or Rademacher sketches on the active layers, with dimensions , where is a sufficiently large universal constant. Fix and let . For all active layers with , set
Assume that and for every active layer. Inactive layers are omitted, with . Then, for this fixed vector , the block-diagonal sketch satisfies an -distortion guarantee with probability at least , and the total number of transmitted coordinates scales as
In this feasible regime, energy-aware allocation can reduce the total communication cost for the fixed vector compared to a uniform allocation.
3.3 Matrix and Tensor Extensions
Neural network parameters are naturally matrices or higher-order tensors, which suggests sketches that respect this structure. For , instead of applying a dense sketch to , one can use two smaller JL matrices and and set
A dense sketch of to dimension requires memory, whereas the Kronecker-structured sketch stores only and , i.e., memory, for a compressed dimension . This dimension may not be optimal, but the savings in memory and implementation cost are essential for large-scale models. The same idea extends to higher-order tensors.
Theorem 3 (Kronecker-structured JL transform)
Let , where are independent Gaussian or Rademacher JL matrices, and suppose that . Then, for every fixed tensor , with defined by ,
As for per-layer sketches, their use in the high-probability convergence proof requires the theoretical justifying specified in Appendix D. Overall, dense Gaussian and Rademacher projections are useful for theory and small-scale experiments, whereas structured, sparse, per-layer, and Kronecker-based sketches reduce the cost of applying and storing the compression operator.
4 Experiments
4.1 Comparison of Compressors
In this section we compare several compressors along two axes: the time and memory required to compress and decompress the transmitted parameters and the extent to which they satisfy the JL-properties required by our Algorithm 1.
Table 1 reports the cost of applying each compressor to the parameters of a ResNet18 model. For RANDK we treat all parameters as a single flattened vector, whereas for the JL-based compressors and POWERSGD we compress each layer separately. For SRFT and SRHT we consider both scenarios, since these methods can operate in either one without incurring a significant memory or time overhead compared to the remaining JL compressors. CountSketch is omitted from the experiments, as it is not readily supported by standard PyTorch tensor operations. Stored denotes the additional memory required to keep the compressor's internal state (e.g. the JL matrix). All measurements are taken at a compression rate of 50%.
As the table shows, our JL variant is the fastest among all JL-based methods, and is outperformed only by RANDK on GPU, which is unsurprising since that method merely selects a subset of coordinates. At the same time, in terms of peak memory and CPU time our method outperforms every compressor considered. Applying SRHT and SRFT to the full parameter vector offers no practical advantage over layer-wise application. The effect on running time is marginal (a minor speedup on GPU and a 5–30% slowdown on CPU), whereas peak memory consumption increases by a factor of 3.3–3.6.
Table 2 compares several quantities that measure how well the JL properties are preserved by the different compression methods. Here and denote the quantities
Table 1: Cost of applying each compressor to ResNet-18 parameters at : compression and decompression time, peak memory, memory for the compressor state (Stored) and per-client uplink message size. JL compressors and PowerSGD are applied layer-wise, Rand- to the flattened parameter vector; applied to the flattened parameter vector.
| Compressor | GPU, ms | CPU, ms | Peak, MB | Stored, MB | Uplink, MB |
|---|---|---|---|---|---|
| Gaussian JL, Kronecker (ours) | 6.5 | 155 | 92.5 | 69.9 | 21.3 |
| Rademacher JL, Kronecker (ours) | 8.1 | 160 | 92.5 | 69.9 | 21.3 |
| SRHT | 55.0 | 718 | 181.2 | 117.9 | 21.3 |
| SRFT | 12.7 | 659 | 131.1 | 63.9 | 21.3 |
| SRHT, whole vector | 30.6 | 927 | 644.3 | 106.6 | 21.3 |
| SRFT, whole vector | 8.8 | 693 | 432.0 | 64.0 | 21.3 |
| Rand- | 3.8 | 374 | 603.4 | 0.0 | 21.3 |
| PowerSGD (rank 230) | 174.6 | 195 | 94.7 | 18.7 | 21.3 |
| Gaussian JL, dense | - | - |
measures the deviation of the inner product of the compressed and uncompressed vectors, whereas the measures the distortion of the angle between the vectors caused by compression.
Table 2: Distortion of inner products () and angles () under compression, mean std. (a) Random ; (b) stochastic ResNet-18 gradient vs. trust-set gradient. All compressors use ; for Adaptive JL, is set implicitly by the target from equation 12.
| Compressor | Variant | (a) random matrix 20 draws of , mean std | (b) real ResNet-18 gradients100 pairs, mean std | ||||
|---|---|---|---|---|---|---|---|
| Kronecker JL (ours) | Rad. | 0.500 | 0.500 | ||||
| Gauss. | 0.500 | 0.500 | |||||
| SRHT | layer | 0.500 | 0.500 | ||||
| whole | - | - | - | 0.500 | |||
| SRFT | layer | 0.500 | 0.500 | ||||
| whole | - | - | - | 0.500 | |||
| Rand- | 0.500 | 0.500 | |||||
| Adaptive JL | target | 1.00 | 1.00 | ||||
| target | 0.841 | 1.00 | |||||
| target | 0.0610 | 0.605 | |||||
| target | 0.0141 | 0.240 | |||||
The table reports results for two setups: setup (a) is the compression of two matrices, and setup (b) is the compression of an actual stochastic gradient of a ResNet18 model and its comparison against the gradient computed on the trust set, as used in Algorithm 1. For all compressors except AdaptiveJL the compression rate is fixed at 50%. For AdaptiveJL the compression rate is determined implicitly by the parameter . We therefore report results for several values of . A comparison of the compressors at other compression rates is provided in Appendix A.
As the table shows, RANDK performs reasonably well in the first setup, which can be attributed to the random construction of the matrices and to the unbiasedness of the compressor. However, on real gradients the method distorts both the inner product and the angle quite severely. In contrast, the JL-based methods perform well in both scenarios. We also note separately that SRFT and SRHT applied to the gradient as a single vector yield the worst results among all JL-based methods considered, which together with Table 1, indicates that layer-wise compression is preferable.
4.2 Comparison with Byzantine Baselines
This section presents experiments comparing Algorithm 1 against a range of federated learning methods under various Byzantine attack scenarios. All results are reported in the tables below. Every experiment is run in the setting of training a ResNet18 model on the CIFAR-10 dataset. All methods are trained for communication rounds with the data distributed uniformly across clients. To compare methods with different compression levels, we measure communication in full gradient uploads: a compressed message of coordinates counts as of a full gradient, where is the number of model parameters, and uploads are summed over all clients. After rounds this gives
which reduces to for a fixed compression ratio and to without compression. Over the full rounds an uncompressed method thus performs 2000 full-gradient uploads, and a method with performs 1000. Details on the attack scenarios and additional experiments are deferred to Appendix A.
Table 3: FedAvg and Grad-BANT with different compressors: (a) no attack, (b) label flipping with 60% Byzantine clients.
| Method | Compressor | Byz. | Best acc | |||
|---|---|---|---|---|---|---|
| (a) no attack | ||||||
| FedAvg | Gaussian JL | 0.1 | 0 | 23 | 52 | 0.880 |
| FedAvg | Rand- | 0.1 | 0 | 15 | 39 | 0.897 |
| FedAvg | SRHT | 0.1 | 0 | 17 | 42 | 0.895 |
| Grad-BANT | Gaussian JL | 0.1 | 0 | 18 | 53 | 0.896 |
| Grad-BANT | Rand- | 0.1 | 0 | 15 | 41 | 0.891 |
| Grad-BANT | SRHT | 0.1 | 0 | 16 | 42 | 0.893 |
| (b) label flipping | ||||||
| FedAvg | none | 1.0 | 60% | - | - | 0.276 |
| FedAvg | Gaussian JL | 0.1 | 60% | - | - | 0.247 |
| FedAvg | Rand- | 0.1 | 60% | - | - | 0.315 |
| FedAvg | SRHT | 0.1 | 60% | - | - | 0.334 |
| Grad-BANT | Gaussian JL | 0.1 | 60% | 31 | 71 | 0.838 |
| Grad-BANT | Adaptive JL | 0.24 | 60% | 25 | 69 | 0.833 |
| Grad-BANT | SRHT | 0.1 | 60% | 26 | 78 | 0.830 |
| Grad-BANT | Rand- | 0.1 | 60% | - | - | 0.546 |
Table 4: Best test accuracy of Byzantine-robust methods with compression under label flipping (LF) and random gradients (RG) with 40% and 60% Byzantine clients. All methods use the .
| Method | LF 40% | LF 60% | RG 40% | RG 60% |
|---|---|---|---|---|
| RoSDHB | 0.595 | 0.331 | 0.308 | 0.103 |
| Byz-EF21 | 0.430 | 0.294 | 0.441 | 0.123 |
| Byz-EF21-BC | 0.429 | 0.265 | 0.431 | 0.103 |
| Byz-VR-MARINA 2.0 | 0.555 | 0.159 | 0.571 | 0.123 |
| Byz-DASHA-PAGE | 0.565 | 0.152 | 0.455 | 0.115 |
| Grad-BANT + JL (ours) | 0.883 | 0.862 | 0.620 | 0.534 |
Table 3 reports the results of applying different compressors to FedAvg and GradBant, both in the attack-free setting and under the LABEL FLIPPING (LF) attack. For each configuration, the table reports the number of full-gradient transmissions required to reach a given value of the target metric, together with the best test accuracy attained. Columns G→60 and G→80 report from equation 13 at the first round at which the test accuracy reaches 60% and 80%, respectively. For AdaptiveJL, denotes the average over rounds and clients.
In the attack-free setting, all compressors perform similarly for both algorithms. Once the attack is enabled, every compressor in the FedAvg setting fails to learn and shows almost no accuracy improvement throughout training. In contrast, for GradBant the properties of the compressor start to matter. All JL compressors which preserve inner products continue to work, whereas the RandK compressor is likewise compromised by the attack.
Table 4 compares Byzantine-robust methods with compression [46] under two different attacks. Unlike ours, the remaining methods do not use a trust set, and consequently cannot tolerate a Byzantine majority. When the number of Byzantine clients approaches one half, these methods yield results that lag far behind our algorithm.
Table 5: Comparison with Byzantine-robust baselines under different attacks (Byzantine fraction in the header): (a) best test accuracy; (b) full-gradient uploads to reach 60% test accuracy. Baselines are uncompressed; Grad-BANT + JL uses . -: not reached.
| Method | none | LF 60% | SF 60% | RG 40% | ALIE 60% | IPM 70% |
|---|---|---|---|---|---|---|
| (a) best accuracy | ||||||
| FedAvg (Adam) | 0.917 | 0.276 | 0.331 | 0.132 | 0.145 | 0.100 |
| CC | 0.928 | 0.828 | 0.574 | 0.122 | 0.143 | 0.100 |
| CC + bucketing | 0.840 | 0.897 | 0.891 | 0.134 | 0.143 | 0.100 |
| CC + FBM | 0.924 | 0.855 | 0.892 | 0.116 | 0.184 | 0.100 |
| Safeguard | 0.921 | 0.104 | 0.858 | 0.132 | 0.113 | 0.137 |
| FLTrust | 0.767 | 0.704 | 0.594 | 0.100 | 0.100 | 0.101 |
| RECESS | 0.889 | 0.681 | 0.512 | 0.142 | 0.146 | 0.106 |
| Zeno | 0.919 | 0.361 | 0.859 | 0.105 | 0.101 | 0.124 |
| TS-finetuned | 0.920 | 0.884 | 0.877 | 0.889 | 0.903 | 0.630 |
| TS-minimum-grad | 0.922 | 0.887 | 0.861 | 0.901 | 0.882 | 0.677 |
| TS-momentum | 0.868 | 0.863 | 0.860 | 0.857 | 0.865 | 0.700 |
| Grad-BANT + JL (ours), 50% compression | 0.910 | 0.862 | 0.878 | 0.620 | 0.539 | 0.827 |
| (b) full-gradient uploads to 60% | ||||||
| FedAvg (Adam) | 160 | - | 850 | - | - | - |
| CC | 60 | 290 | - | - | - | - |
| CC + bucketing | 460 | 360 | 130 | - | - | - |
| CC + FBM | 60 | 140 | 130 | - | - | - |
| Safeguard | 140 | - | 170 | - | - | - |
| FLTrust | 840 | 1140 | - | - | - | - |
| RECESS | 150 | 610 | - | - | - | - |
| Zeno | 160 | - | 220 | - | - | - |
| TS-finetuned | 130 | 250 | 170 | 280 | 160 | 1160 |
| TS-minimum-grad | 160 | 160 | 200 | 160 | 150 | 570 |
| TS-momentum | 330 | 330 | 360 | 560 | 310 | 570 |
| Grad-BANT + JL (ours), full-gradient uploads | 80 | 120 | 120 | 140 | - | 110 |
Finally, Table 5 compares (a) the best test accuracy and (b) the number of full-gradient uploads required to reach 60% accuracy for Byzantine-robust baselines without compression and for our algorithm with a compression rate of 50% under several attacks. The results show that GRADBANT requires fewer full-gradient transmissions than the remaining baselines to reach 60% accuracy. We note that under the ALIE attack our method does not reach this level of accuracy, plateauing at 53.9%. In terms of best accuracy, our method outperforms all baselines under the IPM attack. In the attack-free scenario and under SIGNFLIP and LABELFLIP our method stays close to the strongest baselines.
4.3 Heterogenous scenario
In this section, we consider a scenario with heterogeneous data distribution across clients. To model heterogeneity, we use a Dirichlet() distribution to partition the dataset samples among clients. This makes the clients heterogeneous both in local dataset size and in the label distribution of their samples. Table 6 reports the training results of our algorithm under four heterogeneity scenarios, both without any attack and under three different attacks.
Table 6: Best test accuracy of Grad-BANT + JL () under heterogeneous data split by a Dirichlet distribution with concentration (smaller means stronger heterogeneity). Byzantine fractions: 60% for label and sign flipping, 70% for IPM.
| Attack | IID | |||
|---|---|---|---|---|
| No attack | 0.910 | 0.896 | 0.872 | 0.842 |
| Label flipping | 0.862 | 0.857 | 0.782 | 0.742 |
| Sign flipping | 0.878 | 0.871 | 0.832 | 0.753 |
| IPM | 0.827 | 0.826 | 0.699 | 0.669 |
All results are reported at a 50% compression rate. As expected, the final model quality degrades as the degree of heterogeneity increases. However, our algorithm remains highly robust to it. In all scenarios, it loses at most 19% accuracy in the worst case and 7% on average relative to the uniform (IID) data distribution.
5 Conclusion
We studied Johnson–Lindenstrauss transforms as communication-efficient compressors for Byzantine-robust distributed optimization. Unlike standard sparsification, JL transforms preserve Euclidean geometry with high probability, which suits methods that weight workers by gradient alignment. For a JL-compressed variant of Grad-BANT, we proved a high-probability convergence guarantee under smoothness, average data similarity, and an explicit accuracy condition on the trusted reference gradient, without convexity or a small relative heterogeneity parameter. We also studied structured, sparse, per-layer, and Kronecker-structured sketches, which reduce the cost of storing and applying dense projections in large models; their moment bounds support the expectation analysis, while the high-probability guarantee additionally requires geometric concentration bounds. The experiments confirm that JL-based compression reduces communication while maintaining Byzantine robustness, suggesting that preserving geometric structure is an important design principle for compression in robust distributed learning.
References
[1] Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Kallista Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. Foundations and trends® in machine learning, 14(1–2):1–210, 2021.
[2] Zhenheng Tang, Shaohuai Shi, Wei Wang, Bo Li, and Xiaowen Chu. Communication-efficient distributed deep learning: A comprehensive survey. arXiv preprint arXiv:2003.06307, 2020.
[3] Xiang Li, Kaixuan Huang, Wenhao Yang, Shusen Wang, and Zhihua Zhang. On the convergence of fedavg on non-iid data. arXiv preprint arXiv:1907.02189, 2019.
[4] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, pages 1273–1282. PMLR, 2017.
[5] Dan Alistarh, Demjan Grubic, Jerry Li, Ryota Tomioka, and Milan Vojnovic. Qsgd: Communication-efficient sgd via gradient quantization and encoding. Advances in neural information processing systems, 30, 2017.
[6] Yue Yu, Jiaxiang Wu, and Longbo Huang. Double quantization for communication-efficient distributed optimization. Advances in neural information processing systems, 32, 2019.
[7] Jianqiao Wangni, Jialei Wang, Ji Liu, and Tong Zhang. Gradient sparsification for communication-efficient distributed optimization. Advances in Neural Information Processing Systems, 31, 2018.
[8] Sai Praneeth Karimireddy, Quentin Rebjock, Sebastian Stich, and Martin Jaggi. Error feedback fixes signsgd and other gradient compression schemes. In International Conference on Machine Learning, pages 3252–3261. PMLR, 2019.
[9] Peter Richtárik, Igor Sokolov, and Ilyas Fatkhullin. Ef21: A new, simpler, theoretically better, and practically faster error feedback. Advances in Neural Information Processing Systems, 34:4384–4396, 2021.
[10] Konstantin Mishchenko, Eduard Gorbunov, Martin Takáč, and Peter Richtárik. Distributed learning with compressed gradient differences. Optimization Methods and Software, pages 1–16, 2024.
[11] Sai Praneeth Karimireddy, Lie He, and Martin Jaggi. Learning from history for byzantine robust optimization. In International conference on machine learning, pages 5311–5319. PMLR, 2021.
[12] Xiaoyu Cao, Minghong Fang, Jia Liu, and Neil Zhenqiang Gong. Fltrust: Byzantine-robust federated learning via trust bootstrapping. arXiv preprint arXiv:2012.13995, 2020.
[13] Haonan Yan, Wenjing Zhang, Qian Chen, Xiaoguang Li, Wenhai Sun, Hui Li, and Xiaodong Lin. Recess vaccine for federated learning: Proactive defense against model poisoning attacks. Advances in Neural Information Processing Systems, 36:8702–8713, 2023.
[14] Gleb Molodtsov, Daniil Medyakov, Sergey Skorik, Nikolas Khachaturov, Shahane Tigranyan, Vladimir Aletov, Aram Avetisyan, Martin Takáč, and Aleksandr Beznosikov. Trial and trust: Addressing byzantine attacks with comprehensive defense strategy. arXiv preprint arXiv:2505.07614, 2025.
[15] William B Johnson, Joram Lindenstrauss, et al. Extensions of lipschitz mappings into a hilbert space. Contemporary mathematics, 26(189-206):1, 1984.
[16] Eyal Kushilevitz, Rafail Ostrovsky, and Yuval Rabani. Efficient search for approximate nearest neighbor in high dimensional spaces. In Proceedings of the thirtieth annual ACM symposium on Theory of computing, pages 614–623, 1998.
[17] Alexandr Andoni, Piotr Indyk, Thijs Laarhoven, Ilya Razenshteyn, and Ludwig Schmidt. Practical and optimal lsh for angular distance. Advances in neural information processing systems, 28, 2015.
[18] Jon M Kleinberg. Two algorithms for nearest-neighbor search in high dimensions. In Proceedings of the twenty-ninth annual ACM symposium on Theory of computing, pages 599–608, 1997.
[19] Christina Heinze, Brian McWilliams, and Nicolai Meinshausen. Dual-loco: Distributing statistical estimation using random projections. In Artificial intelligence and statistics, pages 875–883. PMLR, 2016.
[20] Gian-Andrea Thanei, Christina Heinze, and Nicolai Meinshausen. Random projections for large-scale regression. Big and Complex Data Analysis: Methodologies and Applications, pages 51–68, 2017.
[21] Bin Tang, Michael Shepherd, Malcolm I Heywood, and Xiao Luo. Comparing dimension reduction techniques for document clustering. In Advances in Artificial Intelligence: 18th Conference of the Canadian Society for Computational Studies of Intelligence, Canadian AI 2005, Victoria, Canada, May 9-11, 2005. Proceedings 18, pages 292–296. Springer, 2005.
[22] Christos Boutsidis, Anastasios Zouzias, and Petros Drineas. Random projections for k-means clustering. Advances in neural information processing systems, 23, 2010.
[23] Sanjoy Dasgupta. Learning mixtures of gaussians. In 40th Annual Symposium on Foundations of Computer Science (Cat. No. 99CB37039), pages 634–644. IEEE, 1999.
[24] Thierry Urruty, Chabane Djeraba, and Dan A Simovici. Clustering by random projections. In Advances in Data Mining. Theoretical Aspects and Applications: 7th Industrial Conference, ICDM 2007, Leipzig, Germany, July 14-18, 2007. Proceedings 7, pages 107–119. Springer, 2007.
[25] Reinhard Heckel, Michael Tschannen, and Helmut Bölcskei. Dimensionality-reduced subspace clustering. Information and Inference: A Journal of the IMA, 6(3):246–283, 2017.
[26] Xiao Guo, Yixuan Qiu, Hai Zhang, and Xiangyu Chang. Randomized spectral co-clustering for large-scale directed networks. arXiv preprint arXiv:2004.12164, 2020.
[27] Jalaj Upadhyay. Randomness efficient fast-johnson-lindenstrauss transform with applications in differential privacy and compressed sensing. arXiv preprint arXiv:1410.2470, 2014.
[28] Or Sheffet. Differentially private ordinary least squares. In International Conference on Machine Learning, pages 3105–3114. PMLR, 2017.
[29] David P Woodruff et al. Sketching as a tool for numerical linear algebra. Foundations and Trends® in Theoretical Computer Science, 10(1–2):1–157, 2014.
[30] Cameron Musco and Christopher Musco. Projection-cost-preserving sketches: Proof strategies and constructions. arXiv preprint arXiv:2004.08434, 2020.
[31] Tamas Sarlos. Improved approximation algorithms for large matrices via random projections. In 2006 47th annual IEEE symposium on foundations of computer science (FOCS'06), pages 143–152. IEEE, 2006.
[32] Zhao Song, Zheng Yu, and Lichen Zhang. Iterative sketching and its application to federated learning. 2021.
[33] Mayank Shrivastava, Berivan Isik, Qiaobo Li, Sanmi Koyejo, and Arindam Banerjee. Sketching for distributed deep learning: A sharper analysis. Advances in Neural Information Processing Systems, 37:6417–6447, 2024.
[34] Xinyan Dai, Xiao Yan, Kaiwen Zhou, Han Yang, Kelvin KW Ng, James Cheng, and Yu Fan. Hyper-sphere quantization: Communication-efficient sgd for federated learning. arXiv preprint arXiv:1911.04655, 2019.
[35] Jayadev Acharya, Chris De Sa, Dylan Foster, and Karthik Sridharan. Distributed learning with sublinear communication. In International Conference on Machine Learning, pages 40–50. PMLR, 2019.
[36] Sanjoy Dasgupta and Anupam Gupta. An elementary proof of a theorem of johnson and lindenstrauss. Random Structures & Algorithms, 22(1):60–65, 2003.
[37] Dimitris Achlioptas. Database-friendly random projections: Johnson-lindenstrauss with binary coins. Journal of computer and System Sciences, 66(4):671–687, 2003.
[38] Aleksandr Beznosikov, Samuel Horváth, Peter Richtárik, and Mher Safaryan. On biased compression for distributed learning. Journal of Machine Learning Research, 24(276):1–50, 2023.
[39] Roman Vershynin. High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge University Press, Cambridge, 2 edition, 2026.
[40] Nir Ailon and Bernard Chazelle. Approximate nearest neighbors and the fast johnson-lindenstrauss transform. In Proceedings of the Thirty-Eighth Annual ACM Symposium on Theory of Computing, pages 557–563, 2006.
[41] Joel A Tropp. Improved analysis of the subsampled randomized hadamard transform. Advances in Adaptive Data Analysis, 3(01n02):115–126, 2011.
[42] Nir Ailon and Edo Liberty. An almost optimal unrestricted fast johnson-lindenstrauss transform. ACM Transactions on Algorithms, 9(3):1–12, 2013.
[43] Moses Charikar, Kevin Chen, and Martin Farach-Colton. Finding frequent items in data streams. In International Colloquium on Automata, Languages, and Programming, pages 693–703. Springer, 2002.
[44] Kenneth L Clarkson and David P Woodruff. Low rank approximation and regression in input sparsity time. In Proceedings of the Forty-Fifth Annual ACM Symposium on Theory of Computing, pages 81–90, 2013.
[45] Daniel M Kane and Jelani Nelson. Sparser johnson-lindenstrauss transforms. Journal of the ACM, 61(1):1–23, 2014.
[46] Ahmad Rammal, Kaja Gruntkowska, Nikita Fedin, Eduard Gorbunov, and Peter Richtárik. Communication compression for byzantine robust learning: New efficient algorithms and improved rates. In International Conference on Artificial Intelligence and Statistics, pages 1207–1215. PMLR, 2024.
Appendix
Supplementary Materials for On Johnson-Lindenstrauss Transforms for Byzantine-Robust Optimization
A Experimental Details
A.1 Protocol
Hardware. All experiments were conducted on a single NVIDIA A100 GPU with 80 GB of memory. Running all experiments required approximately 200 GPU-hours in total.
Hyperparameters. The hyperparameters of each method were tuned via grid search. For each method, all tables report the results obtained with the configuration that achieved the highest validation accuracy.
Table 7: Byzantine attacks used in the experiments. Here denotes the stochastic gradient that an honest client would send, and denote the coordinate-wise mean and standard deviation of the honest clients' gradients, and is the number of classes.
| Attack | Byzantine behavior | Byz. fraction |
|---|---|---|
| Label flipping (LF) | Data poisoning: Byzantine clients compute gradients on their local data with each label replaced by . | 40%, 60% |
| Sign flipping (SF) | Byzantine clients send the negated honest gradient . | 60% |
| Random gradients (RG) | Byzantine clients send random vectors with i.i.d. Gaussian entries, . | 40%, 60% |
| 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. | 60% |
| IPM | Omniscient attack: Byzantine clients send with , so that the inner product between the aggregated update and the true gradient becomes negative. | 70% |
A.2 Trial ablation
In this section, we study how the size and distribution of the trust set affect the performance of Algorithm 1. All experiments use , label flipping with 60% Byzantine clients, IID data, and 100 training rounds. The results are summarized in Table 8.
Trust set size. Table 8 (a) shows that the size of the trust set has little effect on either the best test accuracy or the convergence speed. As the size increases from 100 to 2000 images, the best accuracy varies only between 0.838 and 0.844, and the number of rounds needed to reach 60% and 80% accuracy changes by at most 6 and 5 rounds, respectively.
Trust set distribution. Table 8 (b) considers a trust set of 1500 images whose distribution differs from uniform. Shifts in image appearance slow down training but do not prevent convergence. With grayscale images, reaching 60% and 80% accuracy takes 6 and 13 more rounds, respectively, while the best accuracy decreases only slightly, from 0.840 to 0.831. Strong augmentation has a larger effect. Reaching 60% accuracy takes almost three times as many rounds, 80% is never reached, and the best accuracy is 0.761. In both cases, training remains stable, and the final accuracy coincides with the best one. In contrast, class coverage is critical. When the trust set contains only 5 of the 10 classes, the best accuracy remains high (0.828), but training becomes unstable and the final accuracy drops to 0.636. With only 2 classes, the method fails completely: the accuracy never exceeds 0.16, which is close to random guessing.
Table 8: Effect of the trust set on Grad-BANT + JL: (a) size; (b) distribution shift, 1500 images. R→60 and R→80: rounds to reach 60% and 80% test accuracy; Best and Final: best and last-round accuracy; -: not reached. Label flipping, 60% Byzantine clients, , IID data, 100 rounds.
| Trust set | R→60 | R→80 | Best | Final |
|---|---|---|---|---|
| (a) size, all 10 classes | ||||
| 100 | 21 | 61 | 0.844 | 0.683 |
| 500 | 21 | 65 | 0.841 | 0.674 |
| 1000 | 23 | 64 | 0.839 | 0.622 |
| 1500 | 22 | 65 | 0.840 | 0.835 |
| 2000 | 27 | 66 | 0.838 | 0.838 |
| (b) shift, 1500 images | ||||
| none | 22 | 65 | 0.840 | 0.835 |
| grayscale | 28 | 78 | 0.831 | 0.831 |
| strong augmentation | 63 | - | 0.761 | 0.761 |
| 5 of 10 classes | 23 | 71 | 0.828 | 0.636 |
| 2 of 10 classes | - | - | 0.160 | 0.102 |
Overall, Algorithm 1 is robust to the size of the trust set and to moderate shifts in its appearance. The key requirement is that the trust set covers all classes; its size mainly affects the stability of training in later rounds.
Training on the trust set alone. To check whether federated training is necessary when a trust set is available, we train ResNet-18 centrally on the trust set alone, using the same optimizer (Adam, learning rate 0.003), batch size (64), and augmentation as the clients. The budget is 12400 optimizer steps, which matches the local computation of one client over 200 rounds. Table 9 shows that this baseline is far behind federated training. With 1500 images, the best accuracy is 0.609, whereas Algorithm 1 with a trust set of the same size reaches 0.913 within 100 rounds, even with 60% Byzantine clients (Table 8). The gap grows as the trust set shrinks: with 100 images, training on the trust set alone reaches at most 0.287, while the federated method still reaches 0.894. Even with 2000 images, the best accuracy is only 0.653. Moreover, the accuracy saturates early: between the 100th and 200th round-equivalents, it changes by less than 0.02 for all sizes, and the final accuracy is below the best one, which suggests overfitting to the small sample.
A.3 Additional experiments
Table 10 extends the comparison of Table 2 to compression rates in the same setting: the distortion is measured between the stochastic ResNet-18 gradient and the trust-set gradient over 100 pairs.
As expected, the inner-product distortion increases monotonically for all compressors as the compression becomes stronger. Reducing from 0.5 to 0.1 increases by a factor of 3.0–5.2 for Kronecker JL and of about 5 for layer-wise SRHT and SRFT.
Kronecker JL remains competitive with layer-wise SRHT and SRFT at all compression rates: at every , one of its variants attains the smallest mean among all compressors, although the differences are within one standard
Table 9: Training ResNet-18 on the trust set alone, without federation. @r: CIFAR-10 test accuracy after 62r optimizer steps, i.e., the computation of one client over rounds. Epochs: passes over the trust set. Mean std over 3 seeds; each seed samples a different trust set. Federated training with the same trust set sizes reaches 0.89–0.92 (Table 8 (a)).
| Trust set | Epochs | @20 | @50 | @100 | @200 | Best |
|---|---|---|---|---|---|---|
| 100 | 7936 | |||||
| 500 | 1587 | |||||
| 1000 | 794 | |||||
| 1500 | 529 | |||||
| 2000 | 397 |
deviation. The angle errors of all JL-type methods are of the same order, ranging from at to at .
Applying SRHT and SRFT to the whole parameter vector does not reduce the distortion. At , it increases by a factor of 2.9 for SRHT and 3.9 for SRFT; at smaller , the whole-vector variants are comparable to the layer-wise ones or worse by up to a factor of 1.5.
Rand- yields the largest at every compression rate, 4–38 times larger than that of the other compressors, and its distortion grows the fastest as decreases. At the same time, its angle error remains comparable to that of the other methods.
Finally, Adaptive JL with target selects and attains comparable to that of Gaussian Kronecker JL at (96 vs. ), i.e., with less than half the message size.
Table 11 shows that stronger compression substantially reduces the communication required to reach test accuracy. Moderate compression does not slow down training: in all settings, the number of rounds needed to reach is smallest at . At , more rounds are required, but each round is much cheaper, so the total traffic decreases by a factor of 2.8–4.0 compared to and by a factor of 6.7–10.6 compared to . At the same time, the best accuracy at is at most 0.018 lower than at .
Table 10: Distortion of inner products () and angles () under compression at different compression rates: stochastic ResNet-18 gradient vs. trust-set gradient, 100 pairs, mean std. The rows for and for Adaptive JL are repeated from Table 2. For Adaptive JL, is set implicitly by the target from equation 12.
| Compressor | Variant | , deg | |
|---|---|---|---|
| Kronecker JL (ours) | Rad. | ||
| Gauss. | |||
| SRHT | layer | ||
| whole | |||
| SRFT | layer | ||
| whole | |||
| Rand- | |||
| Kronecker JL (ours) | Rad. | ||
| Gauss. | |||
| SRHT | layer | ||
| whole | |||
| SRFT | layer | ||
| whole | |||
| Rand- | |||
| Kronecker JL (ours) | Rad. | ||
| Gauss. | |||
| SRHT | layer | ||
| whole | |||
| SRFT | layer | ||
| whole | |||
| Rand- | |||
| adaptive | |||
| Adaptive JL | target | ||
Table 11: Communication efficiency of Grad-BANT + JL for different compression rates (IID data, 200 rounds, single seed): (a) rounds and (b) traffic in full-gradient uploads (a round costs units) to reach 80% test accuracy; (c) best test accuracy. Columns 0.9–0.5 use Rademacher JL, columns 0.3–0.1 use Gaussian JL.
| 0.9 | 0.7 | 0.5 | 0.3 | 0.1 | |
|---|---|---|---|---|---|
| (a) rounds to 80% | |||||
| No attack | 54 | 45 | 41 | 45 | 73 |
| Label flipping 60% | 71 | 62 | 57 | 60 | 71 |
| Sign flipping 60% | 68 | 47 | 46 | 61 | 58 |
| IPM 70% | 68 | 56 | 48 | 51 | 68 |
| (b) traffic to 80%, full-gradient uploads | |||||
| No attack | 48.6 | 31.5 | 20.5 | 13.5 | 7.3 |
| Label flipping 60% | 63.9 | 43.4 | 28.5 | 18.0 | 7.1 |
| Sign flipping 60% | 61.2 | 32.9 | 23.0 | 18.3 | 5.8 |
| IPM 70% | 61.2 | 39.2 | 24.0 | 15.3 | 6.8 |
| (c) best accuracy in 200 rounds | |||||
| No attack | 0.900 | 0.906 | 0.910 | 0.906 | 0.893 |
| Label flipping 60% | 0.853 | 0.868 | 0.862 | 0.865 | 0.857 |
| Sign flipping 60% | 0.857 | 0.875 | 0.878 | 0.868 | 0.860 |
| IPM 70% | 0.854 | 0.875 | 0.827 | 0.870 | 0.861 |
B Technical Statements
Statement below is crucial for deriving high-probability convergence of proposed methods
Lemma 5
Suppose we have events that holds with following probabilities:
Then,
Proof.
Next lemma will be useful throughout some theorems, allowing us to deal with norms:
Lemma 6 (Young's inequality)
Let . Then, for any we have
C JL Statements
We start with the properties of a single sketch: inner-product preservation, moments of the lifted vector, and high-probability norm bounds. We then show how these properties extend to structured matrices, separate layers, and tensor modes. Throughout, is the compressed vector and is the lifted vector used in the update. We write for the Euclidean norm of a vector or the operator norm of a matrix, and for the Frobenius norm of a matrix or tensor.
C.1 From norm preservation to inner products
Lemma 7 (Preservation of scalar product)
Let be a linear JL transform with distortion and one-vector failure probability . For every fixed ,
Proof. The claim is immediate if either vector is zero. By linearity, it is enough to prove it for unit vectors. Apply the JL property to and . With probability at least , both squared norms are preserved within relative error . On this event, polarization and the parallelogram identity give
For general nonzero vectors, apply this bound to and , and multiply by .
Lemma 8 (Simultaneous upper JL bound)
Let be a linear JL transform with distortion and one-vector failure probability . For fixed vectors ,
Proof. Each upper bound fails with probability at most . Take the union bound over the vectors.
C.2 Dense sketches: moments and operator norms
The next identity gives the moments of both dense sketches and the sparse Gaussian construction below. It also allows an independent orthogonal transformation before sketching.
Lemma 9 (Moments of a normalized i.i.d. matrix)
Let have i.i.d. entries with
Let be orthogonal and independent of ; may be deterministic or random. For ,
The second identity holds for every fixed .
Proof. First take , and write the rows of as column vectors . Since ,
For the second moment, expand
If , conditioning on shows that the corresponding expectation is . For a diagonal term, independence and centering of the entries remove all mixed terms, giving
There are off-diagonal terms and diagonal terms. Dividing their sum by yields
For general , condition on . Orthogonality reduces the calculation to the case just proved with replaced by , whose norm equals . Averaging over proves both identities.
Lemma 10 (Gaussian and Rademacher moments)
Let have independent entries, either or with equal probabilities. In both cases , and for every fixed ,
Proof. Apply Lemma 9 with . The fourth moment of a standard Gaussian entry is 3, and that of a Rademacher entry is 1.
We next bound the operator norm. Every such bound also controls the reconstructed vector, since for every matrix S and every x,
The following standard estimate will be used for the Rademacher and sparse Gaussian constructions. Its subgaussian norm is defined, for a scalar X and a random vector Z, by
Lemma 11 (Subgaussian operator-norm estimate [39])
Let have independent, mean-zero, isotropic, subgaussian rows , with for all . There is a universal constant such that, for every ,
Lemma 12 (Gaussian and Rademacher operator norms)
There is a universal constant such that, for a Gaussian or a Rademacher JL matrix and every , with probability at least ,
Squaring the right-hand side bounds ; its fourth power times bounds simultaneously for all .
Proof. In the Gaussian case, write with standard Gaussian entries in . By Vershynin [39, Corollary 7.3.2], there is a universal constant such that, for every ,
Taking and dividing by gives, with probability at least ,
which is the stated bound for any .
In the Rademacher case, write again . Its independent rows are mean-zero and isotropic. For each unit vector , Hoeffding's lemma gives
so their subgaussian norms are bounded by a universal constant. Apply Lemma 11 with and , and divide by . Enlarging if necessary, one constant serves both constructions. The remaining claims follow from and .
C.3 Preserving the total squared norm of several vectors
The convergence proof needs a bound on the sum of the squared norms of the compressed honest gradients. Applying a separate JL guarantee to every gradient would introduce a failure-probability factor equal to the number of honest workers. For Gaussian and Rademacher sketches, we can instead control this sum directly.
Place the vectors in the columns of a fixed matrix . Then is their total squared norm and is the corresponding quantity after compression. We first give an elementary concentration bound used in the Gaussian case.
Lemma 13 (Weighted chi-square concentration)
Let and let be independent random variables. For every ,
Proof. The claim is immediate if all weights vanish. Otherwise, divide the weights by their sum, so that . For a single collection of independent standard Gaussian variables , the Gaussian moment-generating function gives, for ,
The second bound also holds for every . Write each as the sum of independent squared standard Gaussian variables. Independence across these repetitions and the exponential Markov inequality give upper and lower tail bounds
respectively. Taking in the first bound and in the second proves the result.
Lemma 14 (Preservation of a fixed Frobenius norm)
Let be a Gaussian or Rademacher JL matrix. There is a universal constant such that, for every fixed matrix and every ,
In particular, the bound does not depend on the number of columns N.
Proof. The case V = 0 is immediate.
Gaussian sketches. Take a compact singular value decomposition of V, with nonzero singular values . Gaussian rotational invariance gives
where the are independent variables. Apply Lemma 13 with weights .
Rademacher sketches. Let be the rows of , viewed as column vectors, and set . Then
Apply the Hanson–Wright inequality to the concatenated vector of all kn independent signs and the block-diagonal matrix with k copies of B. For every s > 0, this gives
Since is positive semidefinite, both and are at most . With and , the minimum is at least . Choosing a common constant for the two constructions completes the proof.
This estimate concerns one fixed matrix , rather than all matrices simultaneously. It also applies conditionally when is determined by the past and is sampled independently afterwards. Together with an operator-norm bound, it controls the lifted vectors through
The same Frobenius-norm estimate will allow us to compress a tensor one mode at a time below.
C.4 Structured sketches
The following results give the same moment and operator-norm information for SRHT, the FJLT with a sparse Gaussian core, and CountSketch.
Lemma 15 (SRHT)
Assume that is a power of two and . Let be the normalized Walsh–Hadamard matrix, let have independent Rademacher entries on its diagonal, and let be a uniformly random -element subset independent of . If restricts a vector to its coordinates in , define
Then
The second identity holds for every fixed . Moreover, almost surely.
Proof. The matrix is the coordinate projector onto . Each coordinate is selected with probability , so
Since is orthogonal, conditioning on gives
Also, implies
The first identity gives . The second and unbiasedness give
Lemma 16 (FJLT with a sparse Gaussian core)
Assume that is a power of two. Let be the normalized Walsh–Hadamard matrix, let be a diagonal Rademacher matrix, and let have independent entries
Assume that all random choices are independent, and define . Then
Moreover, for every , with probability at least ,
where is universal.
Proof. The entries of satisfy
The moment identities follow from Lemma 9 with and the independent orthogonal matrix . To bound the operator norm, observe that
By independence, for a row of and a unit vector ,
Thus the rows are mean-zero and isotropic, with subgaussian norms at most . Lemma 11, with , gives
with the claimed probability, after changing the universal constant. Finally, orthogonality of gives .
Lemma 17 (CountSketch)
Let be independent and uniform on , and let be independent Rademacher signs, independent of . Define by
Then
If is the number of coordinates assigned to row , then
Consequently, for every , with probability at least ,
Proof. Every column contains one nonzero entry of magnitude one. Hence , while for ,
Independent centered signs make the off-diagonal expectations zero, proving unbiasedness. To compute the second moment, write
After squaring, the mixed terms vanish in expectation. Since each pair of coordinates collides with probability 1/k,
Unbiasedness now gives the claimed second moment.
Distinct rows of have disjoint supports, and the squared norm of row is . This proves the formula for and its operator norm. For each , the count is binomial with mean . Bernstein's inequality gives, for every ,
Take and apply the union bound over the rows.
C.5 Per-layer sketching
We now combine the one-layer guaranties using the block-diagonal structure of the sketch. Write
where . The key identities are
As in the main text, for we use the energy fractions
Thus, squared-norm bounds combine as energy-weighted averages, whereas operator-norm bounds combine by taking the largest layer bound.
Theorem 4 (Per-layer JL properties)
Suppose that, for each , there are and such that, for every fixed ,
Then, for every fixed ,
In particular, if , then satisfies the distributional JL property. If the blocks are independent, both failure bounds can be replaced by .
Proof. Fix . With probability at least , every layer satisfies . On this event,
The weighted distortion is at most , since the weights sum to one. For independent blocks, the layer success events are independent, so their intersection has probability at least .
The same block identities give the properties of the lifted map needed in the optimization analysis. None of the next three results requires independence between layers.
Lemma 18 (Per-layer unbiasedness)
If for every layer, then
Proof. Take expectations in the block-diagonal identity for .
Lemma 19 (Per-layer second moment)
Suppose, for each layer, there is such that
Then, for every ,
Proof. Using the sum of squared block norms and linearity of expectation gives
Divide by and use .
Lemma 20 (Per-layer high-probability norm bound)
Suppose for every layer. Then, with probability at least ,
and, on the same event, for every ,
Proof. A union bound ensures that all inequalities hold on an event of the stated probability. On this event, block diagonality gives
For any x, summing the layer bounds gives
Substituting proves the claim.
Allocating the sketch dimensions. Theorem 4 shows that a layer containing little of a vector's energy can tolerate a larger relative distortion. For Gaussian and Rademacher sketches, this allows a smaller sketch dimension, since scales as . The following allocation uses this weighted distortion budget for a fixed vector.
Corollary 2 (Energy-aware allocation)
Fix and . For every layer with , choose a Gaussian or Rademacher sketch with
where is a sufficiently large universal constant. Assume that and for all such layers. Layers with are omitted, with .
Then, for this fixed vector,
and the total number of transmitted coordinates satisfies
Proof. The one-layer JL guarantees and a union bound give simultaneous success on all nonzero layers with probability at least . Zero layers contribute no error for the fixed vector x. The total relative distortion on this event is at most
as in Theorem 4.
To count coordinates, substitute the chosen distortions:
Since and , rounding each nonzero layer's dimension changes it by at most a universal constant factor. Multiplying the last identity by therefore gives the stated total dimension.
The allocation depends on the energy profile of : its guarantee is for that fixed vector, with these dimensions chosen before the sketches are drawn. It applies only in the stated feasible regime and .
C.6 Kronecker sketches: compressing one tensor mode at a time
Per-layer sketches act on separate blocks. A Kronecker sketch instead applies several smaller matrices to different modes of the same tensor. We use the notation from the main text: for and , define
Here means multiplication along the th mode. More explicitly, if is the matrix formed by arranging the mode- fibers of as columns, then
Both unfolding and vectorization preserve the Frobenius norm. Thus a single mode multiplication can be analyzed using a matrix Frobenius-norm bound. We prove this composition step once, then apply it to dense sketches and to general JL factors.
Theorem 5 (Combining independent Frobenius-norm guarantees)
Let be a fixed tensor and let be independent random matrices. Fix and . Suppose that, for each and every fixed matrix with rows,
Then
Proof. Let and denote the tensor after the first multiplications. Conditional on , the tensor is fixed and remains independent. The assumption applied to therefore gives
Taking expectations and a union bound, all steps satisfy their bounds with probability at least . On this event,
For , Bernoulli's inequality and give
This proves the claim. The proof also shows that it is enough to bound the conditional failure probability at each step; a simultaneous guarantee over all possible intermediate tensors is not required.
Theorem 6 (Gaussian and Rademacher Kronecker sketches)
Let the factors be independent Gaussian or Rademacher JL matrices. There is a universal constant such that, for every fixed tensor and every ,
Consequently, failure probability at most is ensured by
where is a sufficiently large universal constant. The same bounds hold for with .
Proof. Lemma 14, with distortion , bounds the failure probability at step by . Apply the conditioning argument of Theorem 5 and set . The dimension bound follows by requiring each of the terms to be at most . Vectorization gives the final assertion.
When only a fixed-vector JL guarantee is available. The preceding dense-sketch result uses the Frobenius-norm estimate of Lemma 14, whose failure probability is independent of the matrix rank. For another construction, we can obtain a Frobenius-norm guarantee from fixed-vector bounds, at the cost of a rank factor.
Lemma 21 (From fixed vectors to a fixed matrix)
Fix and . Let be a random matrix such that, for every fixed vector ,
Then, for every fixed matrix with rows,
Proof. The assertion is immediate for . Otherwise, let be its left singular vectors and its nonzero singular values. Then
There are unit vectors . A union bound ensures that all their squared norms are preserved within with failure probability at most . Multiplying their bounds by and summing proves the claim.
Theorem 7 (Kronecker sketches from fixed-vector guarantees)
Fix and . Let be fixed and let be independent. Suppose that, for each and every fixed ,
Then
\mathbb{P}\left[\|\mathcal{S}(X)\|_F^2-\|X\|_F^2\right]>\varepsilon\|X\|_F^2\right]\leq\sum_{j=1}^d\operatorname{rank}\!\left(X_{(j)}\right)\delta_j.Proof. Use the intermediate tensors from Theorem 5. The first mode multiplications only form linear combinations of columns in the mode- unfolding. Hence
Conditional on the first factors, Lemma 21 therefore bounds the failure probability of step by . The same union bound and multiplication of stepwise norm bounds complete the proof.
The two composition theorems can be used at any desired distortion : evaluate each factor's available failure bound at and substitute it for . For Gaussian and Rademacher factors, the direct Frobenius bound gives the stronger, rank-independent result above.
The lifted operator. Finally, the algebra of Kronecker products transfers unbiasedness and operator-norm bounds from the factors to the full sketch.
Lemma 22 (Unbiasedness and norm of Kronecker sketches)
For independent factors , let . If for every , then
For every realization,
In particular, whenever for all ,
Proof. The mixed-product identity gives
Independence lets us take expectations factor by factor, proving unbiasedness. The singular values of a Kronecker product are products of the singular values of its factors, which proves the operator-norm identity. The remaining bounds follow from and .
These results separate the ingredients needed later: norm and inner-product preservation control geometry in the compressed space, while moments and operator norms control the lifted update. A structured construction can be used in the high-probability convergence theorem once its parameters provide all three sketch events specified in Appendix D.
D Byzantine-robust Analysis
We prove convergence for fixed realized local and trusted objectives satisfying Assumptions 1, 2, and 3. The constants in these assumptions describe the optimization instance directly; no statistical model for the trusted dataset is imposed.
D.1 Descent and convergence
Let denote the history before sampling , including the fixed objectives, the current iterate, and all previous randomness and messages, and write . The gradients , , and for are -measurable. The sketch is independent of , while Byzantine messages may depend on the current sketch and honest messages. No worker has access to future sketch randomness. All probabilities and expectations below keep the objectives and the initial iterate fixed.
We first derive an estimate for the scalar product that appears in both convergence proofs.
Lemma 23
Let satisfy the reference-accuracy inequality in Assumption 3. Then, for every ,
Proof. Let and . By completing the square,
where the last inequality follows from Assumption 3.
□
Further, we establish the descent lemma used for convergence both in expectation and with high probability.
Lemma 24
Let have an -Lipschitz gradient. Then every iteration of Algorithm 1 satisfies and
where . For honest workers, .
Proof. The initial weights are non-negative and sum to one, and both branches of the weight update preserve these properties. Set
Applying convexity of the squared norm to the vectors with weights gives
Applying smoothness to the actual aggregated update, we obtain
If , the weight update gives
The first inequality drops a non-negative term. The second follows from , and the last uses . If , then and . Thus, in both cases,
Substituting proves the claimed bound. The argument uses smoothness of and convexity of the squared norm, without assuming convexity of .
We are now ready to present the convergence results. First, we derive convergence in expectation. To cover the different sketches mentioned above, we introduce two assumptions.
Assumption 4 (Unbiasedness)
The lifted operator is conditionally unbiased if, for every -measurable vector ,
Assumption 5 (Second moment boundedness in expectation)
There exists such that, for every -measurable vector ,
Theorem 8
Suppose that Assumptions 1, 2, 3, 4, and 5 hold. Let be an integer, , , and choose such that
Then, after iterations of Algorithm 1,
In particular, if , then
Proof. Taking conditional expectation in Lemma 24 and using , we obtain
Here, the second inequality uses Lemma 23 with and equation 7: Assumption 3 controls alignment, while Assumption 2 bounds the honest squared norms. Taking full expectation, summing over , and using gives equation 15. Under the displayed stepsize restriction, , which proves the last bound.
For fresh Gaussian and Rademacher matrices, Lemmas 2 and 3 give and , respectively. The expectation is over the subsequent algorithmic randomness for fixed objectives satisfying the stated assumptions.
We now derive convergence with high probability. The proof needs three events for each fresh sketch: preservation of one inner product, control of the total compressed honest energy, and an operator-norm bound.
Theorem 9 (Theorem 1 from the main part)
Under the assumptions and notation of Theorem 1, except for its stepsize restriction, define
More generally, for every with , we have
with probability at least . The stepsize in Theorem 1 gives equation 11.
Proof. Set and let be the matrix whose columns are the honest gradients . Conditional on , both and the pair are fixed. Lemma 14 gives
when for a sufficiently large universal constant . The same lemma for a single column gives the fixed-vector JL bound with failure probability at most . Applying Lemma 7 then gives
with conditional failure probability at most 2q. Finally, Lemma 4 gives with conditional failure probability at most . Thus, with conditional probability at least , all three events hold.
On their intersection, Lemma 23 implies
Moreover, using the operator norm and the Frobenius norm in this order,
Substituting these two estimates into Lemma 24 yields
Let be the intersection of the three sketch events at iteration . Although the iterates are adaptive, their conditional failure probabilities are bounded for every history. Therefore,
On , summing the descent inequality and using gives
Dividing by proves equation 17. Finally, the stepsize in Theorem 1 gives , which proves equation 11.
The probability estimates involve only honest gradients and the trusted reference, all fixed before the fresh sketch is sampled. No geometric preservation event is imposed on Byzantine messages. The same proof applies to another sketch construction if it provides the three conditional events above with the stated failure probabilities and a suitable value of ; the required dimension must then be established for that construction.