Skip to content

Privacy-preserving federated learning with auto-tuned compressionPrivate Federated Learning with Autotuned Compression

arXiv· arXiv:2307.10999· Enayat Ullah, Christopher A. Choquette-Choo, Peter Kairouz, Sewoong OhThe Johns Hopkins University; Google Research, Brain team; Google DeepMind; Google Research; University of WashingtonIndexed by this site · 27 days ago· Originally publishedDefenses

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

The authors propose a tuning-free adaptive compression method for differentially private federated learning, and claim that on three FL benchmarks it achieves compression rates close to Genie without tuning.

Questions
Differentially private federated learning with secure aggregation (SecAgg) incurs high communication overhead, and existing sketch compression methods require the compression rate to be set in advance, whereas the optimal compression rate varies with task, model, and noise multiplier and is difficult to know in advance.
Methods
Replace the mean estimation step of FedAvg with adaptively compressed federated mean estimation: each round, clients send two sketches, one estimating the mean and one privately estimating its norm, based on which the next round's sketch size is set so that the compression error does not exceed the DP error.
Experiments and results
On the three benchmarks F-EMNIST, Shakespeare, and SONWP, the authors claim that Adapt Norm achieves compression rates close to Genie without tuning and with a utility loss within ∆ ≈ 1%; Two Stage performs worse due to its 75-round warm-up; Adapt Tail has too high a compression rate in FL, with accuracy dropping by more than ∆ = 20%.
Limitations and future work
The authors note that the ℓ2 error of mean estimation may correlate poorly with downstream model accuracy (Adapt Tail fails in FL), and improving this proxy metric is a future direction. The experiments cover three FL benchmarks, and the c0 sweep runs each configuration 5 times.
Experimental setupF-EMNIST、Shakespeare et al. · 平均压缩率、验证准确率(∆ = 1% 相对下降约束) et al.
Benchmarks
F-EMNISTShakespeareStack Overflow Next Word Prediction (SONWP)
Metrics
平均压缩率验证准确率(∆ = 1% 相对下降约束)均方误差
AI summaryThe researchers propose an auto-tuned compression technique for privacy-preserving federated learning that reduces training communication without setting or tuning a compression rate. The method adjusts the compression rate in real time during training based on the resulting error, and maintains provable privacy guarantees through secure aggregation and differential privacy. The technique has provable instance optimality for mean estimation, adapts to problem difficulty with minimal interaction, and achieves favorable compression rates on real datasets.

The researchers propose an auto-tuned compression technique for privacy-preserving federated learning that reduces training communication without setting or tuning a compression rate. The method adjusts the compression rate in real time during training based on the resulting error, and maintains provable privacy guarantees through secure aggregation and differential privacy. The technique has provable instance optimality for mean estimation, adapts to problem difficulty with minimal interaction, and achieves favorable compression rates on real datasets.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to automatically tune the compression rate for differentially private federated learning with SecAgg, without setting it in advance.

    Core question: in federated learning with secure aggregation (SecAgg) and differential privacy (DP), how to automatically (adaptively per instance) find a favorable compression rate without setting it in advance or tuning parameters.

    • Setting and motivation: In FL, client data does not leave the device, and combining SecAgg with DP provides a strong trust model, but SecAgg introduces a large communication burden, which may limit the scalability of DP-FL in the large-cohort settings favored by DP (Section 1).
    • Shortcomings of existing methods: Chen et al. [2022a] used a Count Sketch variant to greatly reduce communication, but the authors point out that its flaw is that the sketch size (compression rate) is difficult to set in advance—too small harms utility, too large wastes bandwidth; Figure 1 shows that the optimal compression rate varies greatly with dataset, task, model architecture and noise multiplier (according to the authors).
    • Problems with the naive tuning approach: Grid-search (Genie) requires trying almost all compression rates, and the total communication may be larger; the doubling-trick lacks a principled stopping criterion because the utility of the uncompressed method is unknown (Section 1).
    • Core observation: The core component of first-order optimization methods is the gradient mean estimate at each step; FedAvg computes the mean of client updates each round. The authors place adaptive adjustment of the compression rate at the level of mean estimation, rather than treating the optimization process as a black box.
    • Contributions of the paper: It proposes the count-median-of-means sketch technique and two adaptive federated mean estimation (FME) protocols, Adapt Norm (Algorithm 1) and Adapt Tail (Algorithm 2), and maps them to federated optimization (Algorithms 3, 4); the authors claim their method is instance-optimal for mean estimation and achieves favorable compression rates without tuning on three FL benchmarks.
  2. What related research exists?

    Related work falls into three groups: DP mean estimation, compression in distributed optimization, and linear sketching; this paper is closest to Chen et al. [2022a].

    DP mean estimation

    • Steinke and Ullman [2015], Kamath and Ullman [2020]—DP mean estimation for bounded data points, the same setting adopted in this paper; Karwa and Vadhan [2017] and others study mean estimation under probabilistic assumptions on the data-generating distribution.
    • Chen et al. [2022a]—most relevant to this paper: gives the worst-case optimal communication O(min(d, n²ϵ²)) for SecAgg-compatible distributed DP mean estimation; this paper builds on its count-mean sketch to achieve instance adaptivity.
    • Agarwal et al. [2018, 2021], Kairouz et al. [2021a]—compression under DP FL, but rely on quantization, with per-client communication Ω(d).
    • Feldman and Talwar [2021], Asi et al. [2022] and others—mean estimation under local DP; this paper focuses on SecAgg-compatible (distributed) DP rather than local DP.

    Compression in distributed/federated optimization

    • Alistarh et al. [2017], Wen et al. [2017]—quantization; Aji and Heafield [2017], Stich et al. [2018]—sparsification.
    • Makarenko et al. [2022], Jhunjhunwala et al. [2021], Chen et al. [2018]—adaptive compression that adjusts the compression rate across rounds; the paper points out that the compression techniques of these methods are nonlinear and therefore incompatible with SecAgg.

    Linear sketching and random projections

    • Ivkin et al. [2019], Rothchild et al. [2020], Haddadpour et al. [2020]—linear sketching compression closest to this paper; the paper points out that they do not consider adaptive compression or privacy.
    • Arora et al. [2022, 2023], Bu et al. [2021]—use sketch-like random projections in centralized DP optimization to improve utility or running time.

    Baselines and benchmarks: The experimental baseline is Genie, i.e., the method of Chen et al. [2022a] run on a grid of exponentially increasing compression rates 2^b (b ∈ [0, 13]) and taking the best; the benchmarks are F-EMNIST, Shakespeare, and Stack Overflow Next Word Prediction (Section 5).

    The authors position this paper as: building on the worst-case optimal result of Chen et al. [2022a], providing a compression method that adapts to the instance's "difficulty" (mean norm or tail norm) without needing to know these statistics in advance.

  3. How does the paper address this problem?

    Use a dual-sketch protocol to adaptively set the compression rate at the mean estimation layer so that the compression error does not exceed the DP error.

    Overall approach: replace the mean estimation step of FedAvg with an adaptively compressed federated mean estimation (FME) protocol, with the unified guiding principle of setting the compression rate so that the total compression error does not exceed the DP error.

    Problem Setting and Instance Characterization

    • FME: n clients each hold a vector zi ∈ R^d (‖zi‖ ≤ G, G known), and the server estimates the mean µ under SecAgg and (ϵ, δ)-DP constraints; the optimal error of Chen et al. [2022a] is E[|μ−μ̂|2]=Θ̃(G2(d/(n2ϵ2)+1/n)), and the worst-case optimal communication is Õ(n²ϵ²) (Equation 1).
    • Two fine-grained instances: normalized mean norm M = ‖µ‖/G ∈ [0, 1] (Section 3.1), motivated by the gradient norm decreasing over the course of training; normalized tail norm µn-tail(k), characterizing an approximately sparse mean (Section 3.2).

    count-median-of-means sketch

    • Generalizes the count-mean sketch of Chen et al. [2022a]: concatenate R independent count-mean sketches, take the median of the R estimates when solving the sketch, upgrading the expectation guarantee to a high-probability guarantee and obtaining a tail-norm bound.
    • In the non-private setting P = 1 suffices; this paper sets P > 1 to obtain bounded sensitivity for DP; a Topk operation can be attached when solving the sketch.

    Adapt Norm (Algorithm 1, two rounds)

    • Each client sends two sketches: the first estimates the mean, the second (smaller) estimates a norm statistic.
    • In the first round only the second sketch is aggregated via SecAgg and Laplace noise is added to obtain a private norm estimate n̂₁, which sets the second-round sketch size C₂; in the second round the first sketch is aggregated, Gaussian noise is added, and the sketch is solved to output the mean.
    • Theorem 1: satisfies (ϵ, δ)-DP, the output is unbiased, the error is of the same order as Equation (1), two rounds of communication, total communication per client Õ(min(n²ϵ²/log(1/δ), nd)(M² + 1/(nϵ)²) + 1/n); Corollary 1 gives a matching lower bound, and Theorem 2 proves that at least two rounds of interaction are needed.

    Adapt Tail (Algorithm 2, ⌊log(d)⌋ rounds)

    • Starting from an optimistic initial sketch size, double it each round until the stopping criterion is met; re-sketch the sketch solution with a second sketch S̃ and compare it with the second sketch aggregated by clients to estimate the current error at low communication.
    • Use the AboveThreshold algorithm, adding noise to the error and the threshold separately, for a private stopping decision.
    • Theorem 3: communication complexity Õ(ktail(g(k); µ)) (generalized sparsity), error of the same order as Equation (1); the cost is ⌊log(d)⌋ rounds of interaction instead of two.

    Mapping to Federated Optimization (Section 4)

    • Embed the FME protocol into the mean step of FedAvg; to avoid freezing the model and increasing wall-clock time, use stale statistics from the previous round to set the current round's sketch size (heuristic).
    • Adapt Norm FL (Algorithm 3): the privacy budget is split between the mean and norm estimates by a 9:1 heuristic; R̃ = 1, R = P = P̃ = ⌈log(d)⌉; the constant c0 is set so that the total FME error is at most 1.1 times the DP error.
    • Two Stage (Algorithm 4): first run W rounds of uncompressed warm-up to estimate the norm, then train with a fixed compression rate; assumes the update norm is relatively stable during training.
  4. What experiments did the paper conduct?

    Compared with Genie on three FL benchmarks, the authors claim Adapt Norm approaches Genie's compression rate without tuning.

    Experimental setup

    • Tasks and data: F-EMNIST (62-class image classification, N = 3400 clients, 671,585 training samples), Shakespeare (character prediction, N = 715 clients, 16,068 training samples), Stack Overflow Next Word Prediction (SONWP, N = 342,477 clients, over 10⁸ samples) (Section 5, Appendix F).
    • Model architectures: F-EMNIST uses a 1,018,174-parameter CNN; SONWP uses a 4,050,748-parameter LSTM; Shakespeare uses an 820,522-parameter two-layer LSTM (Appendix F.1, Figure 3–5).
    • Training configuration: total rounds R = 1500; clients per round n ∈ [100, 1000] (100 for F-EMNIST and Shakespeare, 1000 for SONWP); fixed ℓ2 clipping (not adaptive clipping), with the server learning rate tuned for each noise multiplier z; updates with high ℓ1 norm (≥ 100) are zeroed following Choquette-Choo et al. [2022] (Section 5, Appendix F).
    • Privacy: reported as the noise multiplier z (z together with n, N, R, and the clipping threshold determines ε); the authors state that the highest noise multiplier roughly corresponds to ε = {5, 10} on SONWP and F-EMNIST (δ = 1/N, fixed batch sampling) (Appendix G).
    • Baseline and feasible set: the baseline Genie is the optimum of Chen et al. [2022a] over a grid of compression rates 2^b (b ∈ [0, 13]); a feasible algorithm is defined as one whose validation accuracy drop relative to the uncompressed baseline does not exceed ∆, with ∆ = 1% in the main experiments.
    • Metrics: the average compression rate is defined as the relative reduction in average communication bits over T rounds, equivalent to the harmonic mean of the per-round compression rates; the adaptive methods fix c0 = 0.1 (compression error at most 10% of the DP error, chosen heuristically and not tuned).

    Main results

    Figure 2 gives the average compression rate and final validation accuracy for each noise multiplier on the three datasets (with text annotations in the figure). Appendix Table 1–3 give the numerical values of the c0 sweep (mean of 5 runs), where the c0 = 0.1 row used in the main experiments (bold row) is as follows:

    Swipe horizontally to read the table

    DatasetMethodzValidation accuracyCompression rate r
    F-EMNISTGenie0.1 / 0.581.23 / 74.92339 / 2391
    F-EMNISTAdapt Norm (c0=0.1)0.1 / 0.581.34 / 75.3647 / 134
    ShakespeareGenie0.1 / 0.755.41 / 48.68133 / 511
    ShakespeareAdapt Norm (c0=0.1)0.1 / 0.755.77 / 47.8412 / 154
    SONWPGenie0.1 / 0.723.77 / 21.3315 / 48
    SONWPAdapt Norm (c0=0.1)0.1 / 0.724.03 / 21.311 / 10

    (According to Appendix Table 1–3; intermediate noise multipliers omitted, and the Genie row's compression rate is the maximum value satisfying ∆ = 1%.)

    • The authors claim the adaptive method (1-shot, fixed constant 0.1) achieves essentially the same utility as Genie, and although the compression rate is still lower than Genie's, it recovers a considerable portion of it; Genie requires dozens of jobs per noise multiplier, whereas the adaptive method runs only once.
    • The authors claim Adapt Norm performs best, consistently achieving favorable compression rates on the three datasets, e.g., on Shakespeare its compression-privacy curve follows Genie (Figure 2(c)).
    • The authors claim Two Stage is usually much worse, partly because by construction it requires W = 75 rounds of uncompressed warm-up, which lowers the harmonic-mean compression rate.

    Effect of c0 (Appendix A)

    • c0 ∈ {0.25, 0.1, 0.05, 0.01} is swept on the three datasets (mean of 5 runs per configuration, Table 1–3).
    • As c0 increases, the compression rate rises and utility falls, and vice versa; the authors claim c0 characterizes the utility-compression trade-off well, with all values ≤ 0.1 yielding usable models and non-trivial compression rates, and non-trivial compression still present down to c0 = 1%.

    Computational overhead benchmark

    • On F-EMNIST: standard DP-FedAvg 3.63s/round, with non-adaptive sketch 3.63s/round, Adapt Norm 3.69s/round (Section 5).
    • All experiments fix the total number of rounds in advance, so slower convergence shows up as a utility drop.

    Negative result: Adapt Tail fails in FL (Appendix H)

    • The authors report that the FL mapping of Adapt Tail almost always overestimates the achievable compression rate, and the final model's utility is impaired, with accuracy drops often exceeding ∆ = 20%.
    • The authors' explanation: on the FME problem this procedure does achieve high compression rates at the cost of very small ℓ2 error, but these compression rates are too high for the learning task; the authors consider the most likely reason to be that the ℓ2 error of FME is not a good proxy metric for downstream accuracy.
  5. What are some points that can be further explored?

    The authors note that the insufficient correlation between the ℓ2 error proxy and downstream accuracy is a core limitation, and improving the proxy is a future direction.

    Limitations and future directions noted by the authors

    • The authors find that the ℓ2 error of mean estimation, as a proxy for automatically tuning the compression rate in federated learning, may not always correlate well with downstream model accuracy (Section 6 Conclusion and Discussion).
    • Specifically, in FL adaptation, Adapt Tail can achieve high compression rates at the cost of ℓ2 error that is small relative to the DP error, but these compression rates are too high to yield usable model accuracy; the authors propose that designing a better proxy is a natural direction for future work (Section 6).
    • In Appendix H, the authors report that the FL mapping of Adapt Tail almost always overestimates the achievable compression rate, with utility drops often exceeding ∆ = 20%, and consider the most likely reason to be that FME error is not a good proxy metric.
    • In Appendix B.2, when discussing Theorem 3 and Theorem 6, they note that the Top-k operation does not appear to bring clear gains in downstream FL experiments, and a detailed study of the Theorem 6 method is left for future work.
    • Regarding Two Stage, the authors note that a strong prior (e.g., pre-tuning on a similar proxy dataset) might reduce or even eliminate the warm-up rounds W, making the method more competitive (Section 5).

    Scope of experiments

    • The experiments cover three FL benchmarks: F-EMNIST, Shakespeare, and SONWP; the models are a 1M-parameter CNN, an 820K-parameter two-layer LSTM, and a 4M-parameter LSTM (Appendix F.1).
    • The evaluated methods are Adapt Norm and Two Stage; the FL adaptation of Adapt Tail is discussed only in Appendix H, with no main-result numbers given.
    • In the c0 sweep experiments, each configuration is run 5 times and the mean is reported (Appendix Table 1–3); the paper does not state the number of repetitions for the main results (Figure 2).
    • Privacy is reported as the noise multiplier z, with the range of z varying by dataset (e.g., {0.1, 0.2, 0.3, 0.5, 0.7} for F-EMNIST); the paper does not give exact ε values for each z, only that the highest noise multiplier roughly corresponds to ε = {5, 10} (Appendix G).
    • The experimental setup follows Chen et al. [2022a], with the differences being the use of fixed clipping and tuning of the server learning rate (Section 5).
  6. Summarize the main content of the paper

    The authors propose adaptive compression for SecAgg-compatible DP federated learning, theoretically instance-optimal, and experimentally tuning-free and close to Genie.

    A paper on communication efficiency in privacy-preserving federated learning: under SecAgg and (ϵ, δ)-DP constraints, the compression rate is difficult to set in advance (Figure 1 shows the optimal value varies greatly with task and noise multiplier), and the authors propose a tuning-free adaptive compression technique.

    • Method: They propose the count-median-of-means sketch and design two adaptive federated mean estimation protocols—Adapt Norm (two rounds, privately estimating the mean norm M to set the sketch size) and Adapt Tail (⌊log(d)⌋ rounds, doubling plus AboveThreshold private stopping, adapting to the tail norm); the unifying principle is to make the compression error no larger than the DP error. When mapped to FedAvg, stale statistics from the previous round are used (Algorithm 3, 4).
    • Theoretical results: The authors claim both protocols achieve error of the same order as the DP optimum under no compression constraint, with communication Õ(M²n²ϵ²) and Õ(ktail(g(k); µ)) respectively, and give matching lower bounds; Theorem 2 proves that instance optimality requires at least two rounds of interaction.
    • Experimental results: On F-EMNIST, Shakespeare, and SONWP, the authors claim Adapt Norm with 1-shot (fixed c0 = 0.1) achieves compression rates close to Genie, with utility loss within ∆ ≈ 1%, whereas Genie requires dozens of jobs per noise multiplier; Two Stage performs poorly due to W = 75 rounds of uncompressed warm-up.
    • Overhead: On F-EMNIST, Adapt Norm is 3.69s/round, and standard DP-FedAvg is 3.63s/round.
    • Negative result: Adapt Tail overestimates the compression rate in FL, with accuracy drops often exceeding ∆ = 20%; the authors suggest that the ℓ2 error of FME may not be a good proxy for downstream accuracy, and improving this proxy is a future direction.
Read originalarxiv.org