DOPPLER: Differentially Private Optimizers with Low-pass Filter for Privacy Noise Reduction

Privacy is a growing concern in modern deep-learning systems and applications. Differentially private (DP) training prevents the leakage of sensitive information in the collected training data from the trained machine learning models. DP optimizers, including DP stochastic gradient descent (DPSGD) and its variants, privatize the training procedure by gradient clipping and DP noise injection. However, in practice, DP models trained using DPSGD and its variants often suffer from significant model performance degradation. Such degradation prevents the application of DP optimization in many key tasks, such as foundation model pretraining. In this paper, we provide a novel signal processing perspective to the design and analysis of DP optimizers. We show that a ``frequency domain'' operation called low-pass filtering can be used to effectively reduce the impact of DP noise. More specifically, by defining the ``frequency domain'' for both the gradient and differential privacy (DP) noise, we have developed a new component, called DOPPLER. This component is designed for DP algorithms and works by effectively amplifying the gradient while suppressing DP noise within this frequency domain. As a result, it maintains privacy guarantees and enhances the quality of the DP-protected model. Our experiments show that the proposed DP optimizers with a low-pass filter outperform their counterparts without the filter by 3%-10% in test accuracy on various models and datasets. Both theoretical and practical evidence suggest that the DOPPLER is effective in closing the gap between DP and non-DP training.

Paper

Similar papers

Peer review

Reviewer WMCW7/10 · confidence 3/52024-06-20

Summary

The paper looks at the sequence of DP-SGD noisy gradients through a signal processing perspective, and argues that the exact gradients are likely a low-frequency signal, while the noise has higher frequencies. As a result, the paper proposes filtering the high-frequencies with a low-pass filter to improve the signal-to-noise ratio. The filter is a post-processing of the noisy gradients, so there is not extra privacy cost. The paper then studies the convergence rate of DP-SGD with the filter under standard assumptions, and finds that the filter can improve the constants of the convergence rate if the hyperparameters of the filter are chosen well. The paper also contains experiments comparing several DP first-order optimiser with and without the filter on several datasets and models. The filtered variant consistently outperforms the unfiltered one.

Strengths

Investigating the behaviour of DP-SGD in the frequency domain is interesting, and to my knowledge novel. The proposed low-pass filter is justified theoretically and consistently improves performance across several models, datasets and optimisers. Since the filter is just a post-processing of the noisy gradients, the privacy analysis does not change, and the filter should be easy to implement with different variants of DP-SGD.

Weaknesses

Many of the signal processing concepts are introduced too briefly, considering the audience, which makes fully understanding the theory difficult. Adding a section to the appendix explaining them clearly would make the theory much easier to understand for people not familiar with signal processing. The method used to compute the privacy bounds and the subsampling method in the experiments are not mentioned clearly in the paper. "Uniformly draw minibatch" or "randomly draw minibatch" from the algorithm listings is ambiguous, and could mean any of Poisson, with replacement or without replacement subsampling. Minor points: - Line 43: 250K steps for LLAMA training sounds like a typo. - It would be good to mention that there are multiple ways to interpret "neighbourhood" (substitute or add/remove), and that the paper's results do not depend on the precise definition. - As far as I know, the Gaussian mechanism bound in Definition 2 has only been proven for $\epsilon \leq 1$. - It is not clear how Algorithm 3 should be read for DPAdam or LP-DPAdam. The update on line 17 uses $\mathbf{d}_t$, but the Adam lines only compute $\tilde{\mathbf{d}}_t$.

Questions

- Do the adaptively selected filter coefficients from Section 5.3 have the same convergence guarantee? - Did you experiment with adaptively selected filter coefficients from Section 5.3? - Why does the performance of LP-DPSGD drop with larger epsilons when fine-tuning on CIFAR-10 in Figure 10?

Rating

7

Confidence

3

Soundness

4

Presentation

3

Contribution

4

Limitations

The paper clearly mentions the most important limitations of the work.

Authorsrebuttal2024-08-09

Further response to Reviewer WMCW

Thank you for your kind response and for providing additional feedback. We apologize that we misunderstood your question on $\epsilon <1$ for DP guarantee. Our original response was on Thm.1, which is correct and used in the later proof of our paper. You are correct on Def. 2 of the Gaussian mechanism that requires $\epsilon <1$. A refined analysis of the Gaussian mechanism is given in Thm. 2, [R1], which states that $\sigma = \frac{\Delta}{\epsilon}\cdot \frac{\sqrt{2}(a+\sqrt{a^2+\epsilon})}{2},$ with $\mathrm{erfc}(a) - e^\epsilon \mathrm{erfc}(a^2+\epsilon) = 2 \delta.$ This bound works for all $\epsilon>0 , \delta <1.$ We will follow your comment and fix the error in our Def. 2. We would like to point out that we did not use this result in our experiments or proofs in the paper. We just used this definition to introduce the Gaussian mechanism. So we can easily fix this issue and cite proper references. Please also let us know if other references should be included for such a revision. [R1] Zhao, J., Wang, T., Bai, T., Lam, K. Y., Xu, Z., Shi, S., ... & Yu, H. (2019). Reviewing and improving the Gaussian mechanism for differential privacy. arXiv preprint arXiv:1911.12060. Again, thank you for pointing out this issue.

Reviewer vvxz6/10 · confidence 4/52024-06-26

Summary

This paper augments DP-SGD with a low-pass filter-based postprocessing on the iterates of DP-SGD. This design is based on the intuition that the noise contributes more to the high frequencies, while the gradients (assuming sufficient smoothness of the objective) contribute more to the lower frequencies. The paper gives a theoretical convergence analysis, showing an improvement corresponding to a signal-to-noise ratio factor depending on the gradient auto-correlation. Importantly, precise knowledge of the gradient autocorrelation is not needed to run the algorithm, but it helps design better filters. The paper also shows broad empirical improvements from the proposed techniques in the vision setting.

Strengths

- A strength of the proposed method is its simplicity: it gives a simple add-on to the iterates of DP-SGD. It includes momentum as a special case but allows for more sophisticated running averages of the gradients. - The paper is well-written: the main idea comes across easily (although clarity can be improved; suggestions to follow). - The theoretical analysis looks sound. - I think the presented results are significant: The experiments demonstrate a clear win from the proposed approach. They also nicely corroborate the intuition behind the auto-correlation of the gradients vs. noise. - The first-order filters that work quite well empirically only need a modest additional storage cost (two extra buffers) over DP-SGD.

Weaknesses

While I really like this paper, my opinion is that it is currently lacking in some aspects. Given below are some suggestions to improve the paper along these dimensions. 1. Error bars: DP is a noisy process, so it would be good to see error bars across multiple repetitions of the experiments. This is especially important since the gaps appear to be small. Further, it would be good to see the final accuracies for the vision experiments in a table as it is hard to judge how much the gap between the proposed method and baseline is. 1. Autocorrelation assumption: The general form of Assumption A4 is quite natural given the intuition developed in the preceding sections. However, it is not clear why $c_\tau$ is unconstrained while $c_{-\tau}$ is required to be non-negative. This looks like a trick for the proof to go through but further justification and empirical evidence (potentially in toy problems) are necessary. 1. Clarity: There is much scope for improvement to make the paper more reader-friendly (especially for those unfamiliar with signal processing). Examples: - A review section in the appendix recapping the basic ideas of the signal processing tools used (in the appendix) - Example coefficients used in typical low pass filters on page 5, and the kinds of weighted averages (the $\kappa_\tau$ coefficients) they would lead to. Also, a few figures to visualize the types of filters that work well with different types of auto-correlations could be helpful. - Theorem 2 could be restructured to make it easier to parse. A lot of quantities are used before their definitions. - The partial fraction decomposition of eq (7) is not guaranteed to be real. It would be worth clarifying that complex coefficients are allowed. Also, how are the $\kappa_\tau$ coefficients are real? - What constraints are necessary on the filter coefficients so that the $\kappa_\tau$ coefficients define a proper weighted average (i.e. non-negative and sum to one)? 1. Parameter tuning: How are the filter coefficients tuned? It is only mentioned that the choices are ``empirical'' in Line 298. Ideally, for momentum SGD, we would tune the momentum and learning rate together; I would expect that tuning the filter coefficients and learning rate together would help. 1. Originality: the proposed approach is a straightforward application of classical ideas from signal processing to private optimization. While this can be viewed as a strength, I would have liked to see a more detailed investigation into the use of low-pass filters. For example: - An empirical investigation of the proposed adaptive filter. - A detailed empirical study on the choice of the filter coefficients. Only 3 different choices are explored (apart from DP-SGD and momentum), but it would be good to see the effect of changing filter coefficients for a first-order filter. - A plot of the performance vs. the order of the filter. - Some investigation on observed auto-correlation vs. choice of filter coefficients. 1. Minor comments and Potential typos: - what is $t$ in lines 263 and 265? - Top of page 13, in equation (c): should $\kappa_\tau \| \nabla F(x_{t-\tau})\|^2$ be $\kappa_\tau^2$ instead? - Top of page 13, eq 10: Extra $+$ sign between $\frac{L\eta^2}{2}$ and what follows.

Questions

1. It would be nice to have a more detailed comparison to correlated noise approaches for DP optimization e.g. [KMST+](https://arxiv.org/abs/2103.00039) or [DMRST](https://arxiv.org/abs/2202.08312). For instance, can those approaches be interpreted as some filtering of the noise? Also [CDPG+ (Fig. 1 right)](https://arxiv.org/abs/2310.06771) appear to use a high-pass filter on the noise for DP optimization. This seems to be similar in spirit to the proposed low-pass filter approach and a detailed comparison would be nice. 1. There is no batch size factor in the privacy-utility tradeoff of Theorem 3. How? 1. How does the low-pass filter work on the iterates of DP-SGD instead of the gradients? For instance, it is common to obtain a sequence $x_1, x_2, ...$ from SGD but use the average $\frac{x_1 + \cdots + x_t}{t}$ for inference. I wonder if a sophisticated average from the low-pass filter can help for inference alone (without using it for training).

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

Yes, but a more detailed empirical investigation would be good, as detailed above.

Authorsrebuttal2024-08-09

Further response to Reviewer vvxz

Thank you for your timely response and for increasing your score! We sincerely appreciate the time you spent reading our response and providing additional feedback. We apologize for not elaborating further on our original response. We mistakenly assumed that you are asking about the power spectral density (PSD) plots, which are related to the auto-correlation coefficients and show the low-frequency property of the stochastic gradients in the frequency domain (as shown in Fig. 2 in the original manuscript and Fig. 4 in the PDF response). This was the reason we added Fig.4 in our rebuttal. The PSD plots are obtained by applying FFT to the auto-correlation coefficients. So, they are directly related to the auto-correlation plots. Having said that, it seems, unfortunately, we are unable to include more figures in the response, but by applying inverse FFT (iFFT) to the PSD, we can easily obtain the auto-correlation coefficients, and $c_\tau, c_{-\tau}.$ We will follow your suggestion and put the original auto-correlation coefficients directly showing $c_\tau$ and $c_{-\tau}$ in our revised paper. Regarding your comment on the investigation of the auto-correlation vs filter coefficients, a frequency-domain illustration is given in Fig. 2(b) in the original paper, which plots the auto-correlation of the stochastic gradients after applying the filter. By an inverse FFT on it, we can observe the relation between the coefficients of the low-pass filter and the resulting auto-correlation coefficients. To further address your question, we copy the first 10 coefficients of the auto-correlation of the stochastic gradients, and $\kappa_\tau$ of the filter: | Auto-correlation | 0.0436| 0.0273| 0.0194| 0.0151| 0.0131| 0.0058| 0.0026| 0.0021| 0.0005| 0.0004| | - | - | - | - | - | - | - | - | - | - | - | | Filter coefficients $\kappa_\tau$ | 0.0909| 0.1652| 0.1352| 0.1106| 0.0905| 0.0740| 0.0606| 0.0495| 0.0405| 0.0331| It can be observed that the auto-correlation and the filter coefficients are all gradually decreasing as $\tau$ increases. We would include these discussions in our revision. Please let us know if our response answers your question. Thank you again for your invaluable feedback.

Reviewer vvxz2024-08-14

Response

Thank you for the response and the additional details. I'm in favor of acceptance: I will maintain my score as I feel that it is a fair assessment of the paper. Some additional suggestions: Further justification of the autocorrelation assumption would be nice. Why is it always possible to choose $c_{-\tau}$ to be positive? I would have expected some sort of symmetry in $c_{\tau}$ and $c_{-\tau}$. Further details about this, and exploration for toy examples (e.g. simple quadratic functions or logistic regression for a slightly harder problem) would be quite helpful for a reader.

Reviewer ahhw5/10 · confidence 4/52024-07-07

Summary

This paper suggests the effects of a low-pass filter for private training with DP-SGD. After investigating the noise and true gradients during training, the authors propose using previous gradients and momentum to distinguish effective gradients from random noise. They empirically prove their idea across various settings, including different optimizers and datasets.

Strengths

• The paper presents a very simple and effective theory based on the optimization of DP-SGD and the similarities between gradients $\nabla F(x_t)$. • The authors investigate the optimization dynamics in terms of the frequency domain rather than the time domain. • The paper conducts experiments on various datasets and existing well-known optimizers, demonstrating the effectiveness of the frequency-aware optimization. • The authors establish an interesting relationship between SNR and frequency domain approaches.

Weaknesses

Please refer to the Questions section.

Questions

I will happily increase the score if the authors can address the following questions: • The authors use assumptions of bounded variance and gradient norm. However, these assumptions might not be true in real DP-SGD situations. The strong underlying assumption of the authors is that the whole-batch gradient directions are similar between timestamps $\nabla F(x_t)$ and $\nabla F(x_{t-\tau})$. This is widely known in GD settings, but it may not be obvious in SGD (and DP-SGD) settings. Can the authors provide evidence with mini-batch gradients $\nabla f(x_{t})$? [1,2,3] • Using a low-frequency signal typically requires the use of FFT and iFFT to distinguish patterns in the frequency domain. While I understand that the authors try to investigate the auto-correlation and PSD of gradients (as shown in Figure 1), I cannot agree that this approach is orthogonal to conventional approaches depending on timestamps. As the authors mentioned momentum, this approach seems somewhat similar to the learning dynamics of DP-SGD, rather than the frequency domain. The authors should clarify this issue. • There are some existing papers that investigated the use of previous gradients in DP-SGD that are missing from the discussion. [1] investigated the use of previous gradients and their momentum approaches for sharpness-aware training. They explored the correlation between previous private gradients and the current gradient during optimization. • For the momentum approaches, why don’t you use $\alpha$ and $1-\alpha$ for the popular setup in EMA? In the appendix, I saw that tuning both $\alpha$ and $\beta$ requires quite a large search space. I wonder if the effectiveness of your methods comes from the enlarged search space. Could you provide an ablation study for this search space? • The authors try to make a theoretical analysis (line 233), however, it may not be true in the real application. The learning rate of private training is much larger than standard training, where it cannot be lower than $O(\sqrt{1/\tau})$ as far as I know. [1] Explicit loss asymptotics in the gradient descent training of neural networks, NeurIPS 21 [2] Measurements of Three-Level Hierarchical Structure in the Outliers in the Spectrum of Deepnet Hessians, ICML 18 [3] Implicit Jacobian regularization weighted with impurity of probability output, ICML 23 [4] Differentially Private Sharpness-Aware Training, ICML 23

Rating

5

Confidence

4

Soundness

2

Presentation

4

Contribution

3

Limitations

The authors clarify the limitations.

Reviewer kR6J5/10 · confidence 3/52024-07-13

Summary

This paper proposes DOPPLER mechanism to post-process DP gradients and reduce noise in them, before updating the model. The work makes an observation that, in frequency domain, there is a clear distinction between distribution of SGD gradients and DP noise; the earlier lies in a small window of lower frequencies while the latter is distributed uniformly over all frequencies. Based on this observation, the DOPPLER mechanism uses a low-pass frequency filters that filters all high frequency signals, and hence, most noise is filtered while only some of the useful gradient is filtered thereby increasing overall SNR. Paper presents theoretical connection between SGD gradients and DP noise in the time and frequency domains, privacy analysis and empirical evaluation on standard benchmarks to showcase efficacy of DOPPLER.

Strengths

- Interesting signal processing perspective for DP optimization problem and observation about gradients and noise in frequency domain - DOPPLER is a post-processing method, hence can be used with SOTA DP methods - Experimental results show that in training-from-scratch settings DOPPLER is useful

Weaknesses

- Connection between time/frequency domains is difficult to understand; adding some background might be useful - Motivation of the paper is to enable DP training for large, foundation models, but experiments are performed on relatively small models - DOPPLER can be combined with any SOTA DP training, but results with such SOTA methods are missing

Questions

Section 3: - Can you provide some intuition about what does it mean to convert a series of gradients from time to frequency domain? It might be useful to have this somewhere (even if it’s in appendix) to help readers understand the approach better. - Line 167-168: In Figure 1a, auto-correlation coefficient first increases and then decreases with time, but description seems to state something else. Can you clarify? - Line 168-169: How do you compute PSD? How do you go from the first equation in Section 3 to drawing Figure 1b, 1c? - Line 187-188: Why can a linear low pass filter be written as in the first equation of section 3.1? Section 6: - What are the sizes of the models used? - Why do you not compare with SOTA methods, e.g., De et al. 2022 or Shejwalkar et al. 2022? Shejwalkar et al., Recycling Scraps: Improving Private Learning by Leveraging Intermediate Checkpoints, arXiv 2022

Rating

5

Confidence

3

Soundness

3

Presentation

2

Contribution

2

Limitations

- Proposed method, although motivated from enabling DP for large models, cannot be used for large models due to computation inefficiency. - Current set of results lacks depth and should be improved. - Paper writing/clarity can be improved (see questions/weaknesses). - Equations are not properly numbered.

Authorsrebuttal2024-08-07

Additional comment to Reviewer vvxz

> Detailed comparison to correlated noise approaches for DP optimization We would like to provide a detailed discussion between our method and the correlated noise method (KMST+, DMRST, and CDPG+) in this comment. As discussed in the above response, the update of correlated noise method can be written as $B(CG_{0:t}+W_{0:t}) = AG_{0:t}+BW_{0:t},$ where $B$ is a high-pass filter and our method is $AM(G_{0:t}+W_{0:t})$, where $M$ is a low-pass filter. **Connection:** The correlated noise methods and our proposed method can all be viewed as processing the signal in the frequency domain to "separate" the noise and the gradient. **Differences:** The existing correlated noise methods 1) pre-process the gradient/noise to separate the gradient and the DP noise in the frequency domain, and therefore require careful design of the matrices $B, C$ for each problem and optimizer, 2) require extra memory ($O(d\log(t))$ to $O(dt)$), which is unrealistic for large scale training, and 3) only work for SGD update, since Adam cannot be written as such a prefix sum of privatized gradient. In contrast, our method 1) post-processes the noisy signal to extract the gradient from the noise from the frequency domain, 2) only requires $O(d)$ extra memory, which is *independent* of $t$, and 3) is compatible with any first-order optimizer since it just post-processes the gradient.

Reviewer vvxz2024-08-09

Thanks for the response

Thank you for the detailed response! I have updated my score. I would still like to see empirical evidence for the autocorrelation assumption, potentially in toy problems. Right now, it looks too much like a trick for the math to go through without enough practical justification of the details. Some investigation on observed auto-correlation vs. choice of filter coefficients for real data would also be valuable.

Reviewer WMCW2024-08-09

Thank you for the response. You have addressed most of my concerns. I especially appreciate the background to signal processing you have in the general response. > While the refined proof for general $\epsilon > 0$ and improved bounds are given by Abadi et al., 2016, and Mironov et al., 2019. We will update the citations in the revised version. Can you point you which of their results you mean? I looked through them quickly and did not find a result which has the same constants as your Definition 2. I'm assuming that by Mironov et al. (2019) you are referring to "Rényi Differential Privacy of the Sampled Gaussian Mechanism", since there is no Mironov et al. (2019) your bibliography.

Reviewer ahhw2024-08-11

Thanks for the response

I carefully read the rebuttal of the authors, including the general response and answers to my questions and those of the other reviewers. Although I thought some of the mathematical support was still limited, I understand the authors' novelty points and the experimental results of the proposed method. Personally, the authors effectively addressed the questions, including mine and those of the other reviewers. Thus, I have raised the score.

Authorsrebuttal2024-08-12

Thank you for your kind response and for increasing your score! We sincerely appreciate the time you spent reading our response. Please let us know if you have any further comments and suggestions, and we would be more than happy to include them in our revised manuscript.

Authorsrebuttal2024-08-14

Dear reviewer, We would like to thank you again and kindly remind you that the discussion period will end soon. We hope our response has addressed your concerns. Thank you very much for the time you spent reviewing our work and providing constructive feedback to us.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC