计算机科学 > 机器学习
[提交于 2022年10月15日 (v1),最后修订于 2026年11月25日 (此版本, v3)]
标题:Sketching for First Order Method: Efficient Algorithm for Low-Bandwidth Channel and Vulnerability
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Sketching, which randomly compresses a large problem into lower dimensions to save runtime and memory, is a fundamental tool in large-scale machine learning. We propose a sketching scheme for first order methods in distributed learning that reduces the communication cost per round between agents, keeps our bound on the total communication no larger than for uncompressed distributed gradient descent, and still guarantees convergence. An agent compresses a gradient of high dimension $d$ with a sketching matrix $R\in\mathbb{R}^{s\times d}$, $s\ll d$, and the receiver maps it back to dimension $d$ with the de-sketching matrix $R^\top$. Using this framework, we develop federated learning algorithms with lower per-round communication. However, such random sketching alone gives no formal privacy guarantee for the local data. We present a gradient-matching attack and prove that, under smoothness and non-degeneracy assumptions on the model, gradient descent on the data finds an input whose sketched gradient matches the observed one, at a linear rate. This input need not be the data, but an attacker that follows a client over several rounds with fresh sketches recovers the data with the same attack, under smoothness and non-degeneracy conditions, and no attack does so from the first $T<m/s$ rounds, where $m$ is the data dimension. As a remedy, we prove that adding Gaussian noise to the gradients makes the algorithm differentially private. This noisy variant still sends only $s$ numbers per client in each round, and for convex and strongly convex objectives it converges at the rates of the noise-free algorithm, up to an additive error term that depends on the privacy level and, in our bounds, grows as $s$ decreases. Our total communication guarantees are proved for the noise-free algorithm. We expect our sketching scheme to extend to other learning settings, and it may be of independent interest.