The Denoising Wrapper: A Modular Post-Processing Framework for Noisy First-Order Optimizers

Meisam Razaviyayn, Weiwei Kong, Grigoris Velegkas, Vahab MirrokniNeurIPS 2026

TL;DR

Training machine learning models often feels like navigating in the dark with a shaky compass—noisy gradients slow down convergence and limit final accuracy, especially when noise is intentionally injected for Differential Privacy. This paper introduces a "Denoising Wrapper": a plug-and-play module that uses local geometry to clean up noisy gradients before handing them to any off-the-shelf optimizer like SGD or Adam. No surgery on your favorite optimizer required—just cleaner signals, faster convergence, and better model utility.

What Problem Does This Paper Address?

First-order optimizers rely on gradient estimates to navigate loss landscapes. In practice, these gradients are almost always noisy, whether from mini-batch sampling, communication quantization, or the calibrated Gaussian noise deliberately added in Differentially Private (DP) training to protect sensitive data.

While existing variance-reduction techniques help tame this noise, they are usually "algorithm-intrinsic"—tightly woven into a specific optimizer's update rule. If you switch from SGD to Adam or Shampoo, you often have to redesign the variance reduction and re-prove convergence from scratch. Meanwhile, recent post-processing filters treat gradients like generic 1D time-series signals, ignoring the underlying math of the loss landscape. The authors ask: can we build an optimizer-agnostic wrapper that uses the actual geometry of the optimization path to strip away noise before the black-box optimizer ever sees it?

Methods

Instead of simply smoothing past gradients like standard momentum, the authors exploit local Taylor approximations. They build their framework progressively from simple landscapes to complex ones:

  1. MLE Denoising (Quadratics): Treating past noisy gradients as statistical observations to jointly estimate the true current gradient and the Hessian (curvature). While optimal, storing and inverting matrices requires $O(d^2)$ memory—a non-starter for modern deep networks with $d$ parameters.
  2. Extrapolate-and-Interpolate (Quadratics): Instead of querying the noisy gradient oracle right at the current parameter state $v_t$, the wrapper queries an extrapolated point $w_t$ along the optimization trajectory and averages all historical noisy queries. Because linear curvature terms cancel out on a quadratic bowl, this yields an unbiased gradient estimate with shrinking variance ($\sigma^2/(t+1)$) at $O(d)$ memory cost.
  3. Recursive Denoising (General Nonconvex): Global extrapolation breaks down when curvature changes locally. For general smooth nonconvex functions (like neural networks), Algorithm 3 recursively blends the previous denoised gradient with two new noisy oracle queries evaluated at local extrapolations between the current and previous iterates. The extrapolation weights are tuned to mathematically cancel out low-order Taylor drift terms, achieving $O(d)$ memory scaling.

To prevent those two queries from doubling the privacy budget in DP-SGD, the authors fuse the two extrapolated evaluations at the per-sample level prior to gradient clipping and noise injection, preserving exact privacy accounting.

Datasets

The authors evaluate their wrapper across four tasks (no new benchmarks are introduced):

  • Synthetic Convex Quadratic: A 20-dimensional quadratic minimization problem (condition number 100) with additive Gaussian gradient noise.
  • Synthetic Classification: 6,000 examples generated via scikit-learn's make_classification with 20 features and label flip noise.
  • UCI Breast Cancer: A standard tabular binary classification dataset.
  • CIFAR-10: A standard image classification benchmark used to train a Wide-ResNet-16-4 under strict differential privacy.

Key Insights and Ideas

  • Don't look where you stand; look ahead to cancel drift: If you simply average past gradients while moving down a curved valley, your estimate lags behind (drift bias). By deliberately overshooting (extrapolating) where you query the gradient, the curvature-induced error leans forward just enough to cancel out the backward lag of historical averaging.
  • Breaking the $O(T^{-1/2})$ speed limit: Standard noisy SGD hits a fundamental convergence barrier of $O(T^{-1/2})$ on smooth nonconvex problems. By exploiting fourth-order smoothness and bounded sixth-order noise moments, the recursive wrapper reaches an asymptotic rate of $O(T^{-12/19}) \approx O(T^{-0.63})$. Even though it makes two gradient queries per step, the faster convergence wins out in total oracle complexity.
  • True modularity: Because the denoiser acts purely on the gradient stream, it pairs seamlessly with adaptive preconditioners—proven theoretically for AMSGrad and shown empirically with Adam.

Key Results

  • Exact convergence with constant step sizes: On the synthetic quadratic task with constant learning rate, baseline Noisy GD quickly hits a noise floor and stagnates, whereas the interpolation wrapper (Algorithm 2) drives optimization error continuously down at an optimal $O(1/t)$ rate.
Figure 1: Comparison of Denoising Algorithms on a Convex Quadratic Problem.
  • Stabilizing SGD and Adam: On noisy logistic regression (Synthetic and Breast Cancer datasets), wrapping SGD and Adam noticeably dampens loss oscillations and speeds up convergence, with Denoised Adam achieving the lowest test loss and highest accuracy.
Figure 2: Effectiveness of denoising on a logis- tic regression synthetic data classification task. Denoising is performed via Algorithm 3.
  • Boosted Differential Privacy utility: Under a strict privacy budget of $(\epsilon = 1, \delta = 10^{-5})$ on CIFAR-10, wrapping DP-SGD pushes Wide-ResNet-16-4 test accuracy from $<52\%$ up to $53.5\%$ at the exact same privacy cost.

Limitations and Future Work

  • Double per-step compute: Recursive denoising queries the gradient oracle twice per iteration, doubling per-step gradient computation cost (though offset asymptotically by fewer required steps).
  • Strong theoretical assumptions & tuning: Breaking the $O(T^{-1/2})$ barrier relies on fourth-order smoothness and bounded sixth-order noise moments. Furthermore, aggressive denoising (small smoothing parameter $\kappa$) forces larger extrapolation steps, which can cause instability if local smoothness breaks down.
  • Clipping bias remains: In DP-SGD, per-sample gradient clipping introduces directional bias ($\mathbb{E}[g] \neq \nabla f$). The wrapper denoises the zero-mean Gaussian noise effectively, bit it cannot undo clipping bias. Future work aims to explicitly correct clipping bias and auto-tune the wrapper's hyperparameters.

Summary updated

Abstract

Noisy gradient estimates are ubiquitous in machine learning, arising from stochastic sampling, distributed computations, or privacy- preserving mechanisms like Differential Privacy (DP). This paper introduces a general, optimizer-agnostic framework for denoising these estimates. Our approach operates as a modular wrapper that intercepts noisy gradient observations and provides denoised estimates to the optimizer, requiring no internal modifications to algorithms like SGD or Adam. We start by studying the problem of optimal denoising gradients in quadratic and cubic optimization problems. We develop maximum likelihood estimation of gradient and Hessian of the objective. We also develop other computationally-efficient order optimal algorithms for denoising gradients in such a setting. Finally, we utilize the developments for the cubic and quadratic setting to develop a more general denoising mechanisms for general smooth nonconvex optimization problems. Theoretically, by leveraging higher-order smoothness, we establish an improved convergence rate of $O(T^{-12/19})$ for smooth non-convex optimization. While our recursive algorithm requires two gradient queries per iteration, we show that the improved convergence rate yields a lower total oracle complexity than the standard $O(T^{-1/2})$ rate of SGD. This implies the gain in convergence speed asymptotically outweighs the additional computational cost. We apply our algorithm to various denoising problems, particularly nonconvex DP-training. Our experiments, including training private classifiers on CIFAR-10, demonstrate significant improvements over baselines.
BibTeX
@inproceedings{razaviyayn2026denoising,
  author = {Meisam Razaviyayn and Weiwei Kong and Grigoris Velegkas and Vahab Mirrokni},
  title = {{The Denoising Wrapper: A Modular Post-Processing Framework for Noisy First-Order Optimizers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1UGggkyD1E},
}
Figure