Manuscript Offprint
arXiv:2611.07490Statistical and Privacy Guarantees for Deep M-Regression via Stochastic Gradient Langevin Dynamics
Abstract
In this article, we study deep nonparametric regression trained via stochastic gradient Langevin dynamics (SGLD), a variant of stochastic gradient descent that injects carefully calibrated Gaussian noise during optimization. Using a PAC-Bayesian analysis tailored to deep ReLU networks, we establish an excess-risk bound that simultaneously accounts for network approximation error, statistical complexity, and the algorithmic cost accumulated along the SGLD trajectory. Under a Bernstein condition and within a stable SGLD regime, the excess-risk bound contains a stochastic term whose coefficient is inversely proportional to the variance of injected noise, while the estimator retains the optimal rate for nonparametric regression under the Hölder smoothness condition up to logarithmic factors. This result provides an approximation-error-aware, rate-optimal statistical perspective on the widely observed generalization benefits of moderate SGLD noise. For per-sample clipped SGLD, we further establish an exact f-DP guarantee and the corresponding asymptotic -GDP guarantee for the proposed estimator. We establish statistical convergence rates and differential privacy guarantees for DNN estimators trained using SGLD, while explicitly accounting for both network approximation error and the effect of injected noise in the excess-risk bound. Extensive simulation studies and analyses of two real datasets examine the finite-sample predictive performance and privacy-utility behavior of the proposed procedure.
Keywords: Deep neural network; Differential privacy; PAC-Bayesian theory; Stochastic gradient Langevin dynamics.
*Corresponding author: Jian Huang, Department of Data Science and Artificial Intelligence, The Hong Kong Polytechnic University, Hung Hom, Kowloon, Hong Kong, China. Email: j.huang@polyu.edu.hk.
1 Introduction
Classical statistical analysis typically treats noise as a nuisance: additional randomness increases variability and can degrade estimation accuracy. Deep learning presents a different perspective. Deep neural networks are trained over high-dimensional and highly non-convex loss surfaces, where the optimization path can directly affect the fitted model. Carefully injected noise can reshape this path, encourage exploration of low-risk regions, and lead to favorable stability and generalization behavior (Mou et al. 2018; Li et al. 2020; Zhu et al. 2023). Stochastic Gradient Langevin Dynamics (SGLD) is a canonical example. It augments each mini-batch stochastic-gradient update with isotropic Gaussian noise. The method retains the scalability of stochastic gradient descent and induces a distribution over network parameters, which is closely connected to approximate Bayesian posterior sampling (Welling and Teh 2011; Teh et al. 2016; Li et al. 2016). These features make SGLD attractive for deep regression and raise a fundamental statistical question: how does the injected Gaussian noise affect the generalization performance of the resulting estimator?
Answering this question is theoretically challenging. Existing statistical analyses of deep learning largely rely on uniform convergence tools, such as VC-dimension and Rademacher complexity bounds, which characterize the complexity of the entire function class without reference to the optimization path (Schmidt-Hieber 2020; Anthony and Bartlett 2009). Such algorithm-agnostic bounds do not describe how injected noise shapes the trajectory of SGLD. PAC-Bayesian analysis offers a natural alternative. By adopting a Bayesian prior-posterior formulation, it provides generalization guarantees for randomized estimators in terms of their data-dependent parameter distributions, rather than the complexity of the entire function class. Mou et al. (2018) and Li et al. (2020) applied PAC-Bayesian theory to noisy gradient methods in generic non-convex settings and derived data-dependent bounds through the Kullback-Leibler divergence between the algorithmic posterior and a reference prior; see also Zhu et al. (2023) and Dadi and Cevher (2025) for related developments. Alquier and Kengne (2025) developed PAC-Bayesian treatments of neural-network estimators for dependent data.
What remains missing is a unified analysis that combines approximation error and a fast-rate statistical bound with an explicit characterization of the noise-level contribution for deep nonparametric regression.
Beyond its statistical role, Gaussian noise offers an important privacy benefit. Combined with per-sample gradient clipping and randomized mini-batch sampling, it can provide rigorous differential privacy (Abadi et al. 2016; Du et al. 2021; Dong et al. 2022). For convex losses, Chaudhuri et al. (2011) formulated differentially private empirical risk minimization, Bassily et al. (2014) established tight error bounds and efficient algorithms for private convex optimization, and Cai et al. (2021) derived minimax-optimal rates for private estimation in high-dimensional linear models. Privacy-utility trade-offs have further been studied in kernel learning, inference on regression coefficients, multiple testing, and conformal inference (Jain and Thakurta 2013; Xia et al. 2025; Xia and Cai 2023; Zhang et al. 2025). These studies provide a foundation for private statistical learning. For deep neural networks, however, existing algorithm-agnostic learning theory does not directly link the statistical risk of SGLD-trained estimators to the privacy guarantees induced by clipping, subsampling, and Gaussian perturbation. A unified theory is needed wherein privacy-preserving deep learning can be formally understood from the perspectives of statistical risk and privacy protection.
To address the above issues, we study deep nonparametric M-estimation trained by SGLD and establish an excess-risk bound involving the approximation error, stochastic error, and the Kullback–Leibler divergence between the algorithmic posterior of network weights and a data-independent reference prior. Our contributions are summarized as follows.
-
First, we derive a PAC-Bayes oracle inequality for the SGLD posterior. The result is based on the Bernstein condition and leads to the fast statistical rate up to logarithmic factors. It explicitly involves the variance of injected Gaussian noise in the stochastic error term, helping to explain the generalization benefits of moderate SGLD noise.
-
Second, by combining this oracle inequality with ReLU approximation results for Hölder classes, we show that, under the stated conditions, the estimator based on the SGLD
posterior attains the optimal nonparametric regression rate up to logarithmic factors.
-
Third, for per-sample clipped SGLD with randomized mini-batches and heterogeneous step sizes, we obtain an exact finite-sample -DP guarantee and the corresponding asymptotic -GDP guarantee.
-
Last, we conduct simulation studies and real-data analyses to examine the finite-sample prediction and privacy–utility performance of the proposed procedure.
The remainder of the article is organized as follows. Section 2 introduces deep M-estimation, SGLD, and gradient clipping. Section 3 establishes the excess-risk and privacy guarantees. Section 4 presents the simulation studies, and Section 5 presents real-data applications. Section 6 concludes with a discussion of the main implications and limitations.
2.1 Deep M-estimation Problems
Suppose a random pair is drawn from an unknown joint distribution , with and . For a loss function , write . In statistical learning, the target function is often defined as a population-risk minimizer:
where denotes the candidate function class. The choice of the loss function in (1) depends on the specific learning task at hand. The framework includes the following familiar examples when contains the corresponding population target:
-
Under the least-squares loss , the minimizer corresponds to the conditional expectation , recovering classical nonparametric regression.
-
For binary classification with , the logistic loss yields the log-odds target
Since the target function is unknown in practice, we employ a flexible function class to approximate it within the M-estimation framework. Deep neural networks, with their established approximation capabilities, provide a natural nonparametric device for this purpose. Throughout, we focus on neural networks with the ReLU activation function (Yarotsky 2017; Schmidt-Hieber 2020). To be specific, consider a feedforward network with hidden layers and parameter vector , and let denote the number of trainable parameters. We obtain , where is the affine map at layer , for , and is the ReLU activation function applied componentwise. The vector collects all the layer parameters .
Subsequently, let denote the resulting ReLU network class. We define the population network oracle as
which is indexed by the oracle parameter .
2.2 Stochastic Gradient Langevin Dynamics
In practice, we observe an i.i.d. sample , where are drawn from the population . Initialize , where and is the identity matrix of dimension . At iteration , the SGLD update for the parameter vector is
Here, is a positive decaying step-size sequence. A canonical choice considered below is the polynomially decaying schedule , where and . The inverse-temperature parameter is proportional to the inverse of the noise variance. Smaller corresponds to stronger injected noise (Welling and Teh 2011). is the set of sample indices in the th mini-batch, sampled uniformly from all subsets of of size , and denotes the mini-batch empirical risk. When , we have and , so (2) reduces to the full-gradient Langevin update. When , it reduces to the single-observation SGLD update. At non-differentiable points, denotes a fixed measurable choice of subgradient.
To interpret the Gaussian perturbation in (2), consider the continuous-time Langevin diffusion associated with this mean drift:
where is a standard -dimensional Brownian motion. Applying the Euler–Maruyama discretization to (3) and replacing the full gradient by its mini-batch estimate yields (2). Welling and Teh (2011) used this connection to introduce SGLD as a scalable method for approximate Bayesian posterior sampling. Subsequent generalization analyses include Mou et al. (2018), Li et al. (2020), Zhu et al. (2023), and Dadi and Cevher (2025).
In the context of deep learning, the loss landscape has many local minima of vastly differing generalization properties. The moderate Gaussian perturbations help the iterates to persist in a broad low-risk neighborhood, rather than remaining in a narrow local minimum. Consequently, noisy training may favor locally stable solutions with better generalization ability.
2.3 Gradient Clipping
In addition to the potential optimization benefit described above, Gaussian perturbation can be calibrated to provide differential privacy once the sensitivity of each update is bounded. We therefore replace the raw mini-batch gradient in (2) by an average of per-sample clipped gradients. For a clipping threshold , define
By construction, and . The resulting clipped SGLD update is
Algorithm 1 summarizes the resulting clipped SGLD procedure with randomized mini-batch sampling and Gaussian perturbation. The resulting privacy guarantees are established in Section 3.2.
Gradient clipping changes the update drift and hence the distribution of the optimization trajectory, but the resulting output law remains amenable to PAC-Bayesian analysis under the stated loss assumptions. PAC-Bayesian analysis allows general gradient estimators and controls their contribution through their norms (London 2017; Mou et al. 2018). In our setting, the change-of-measure argument therefore uses the actual clipped updates; it does not require them to be unbiased estimates of the raw gradient.
This formulation provides flexibility beyond analyses tailored to linear models with specific tail conditions. For example, Cai et al. (2021) study private linear regression with Gaussian errors and bounded-design assumptions, using Gaussian tail control to calibrate response truncation. A similar sub-Gaussian condition is considered by Xia et al. (2025). The path-KL bound used below instead requires no sub-Gaussian tail assumption on the raw stochastic gradients and applies equally to nonlinear, non-convex network models.
Algorithm 1 Clipped SGLD
Input: data , loss , initial variance , step sizes , inverse-noise parameter , clipping threshold , and batch size .
1: Draw . 2: for do 3: Draw independently of previous draws. 4: for do 5: Compute as in (4). 6: end for 7: Set . 8: Draw independently. 9: Update as in (5). 10: end for
Output: The learned network weights .
3 Theoretical Results
We now develop statistical theory for the SGLD estimator within the deep -estimation framework. We first introduce the notation used below. For two non-negative sequences and , we write if there exists a constant such that for all sufficiently large , and if for some constant . For a sequence of random variables , we write if is bounded in probability, and if for some constant . We write if . We use for expectation, for the real line, KL for Kullback–Leibler divergence, and the parameter space is denoted by .
3.1 Excess Risk Bound
Recall that represents the training sample, where are independent copies of . For a network parameter , let be the ReLU network and define and as the population and empirical risks, respectively. The population and empirical excess risks are
For a probability measure on the parameter space, we use the shorthand
For , let denote the conditional law of the SGLD iterate . The algorithm-averaged excess risk is
Equivalently, , where the expectation is over all randomness used by SGLD. Before establishing the formal results, we first state the regularity conditions used in the analysis.
Assumption 1 (Bernstein condition). For every , define . There exist constants , independent of , and , such that, for every integer ,
A Gaussian reference law on is compatible with Assumption 1, which controls loss fluctuations at each fixed parameter. Uniformly bounded predictors can be obtained through output truncation or a bounded output map, such as or , where the truncation map is defined by for . These constructions constrain the predictions while allowing the parameters to range over . When applied as post-processing, they leave the SGLD recursion and the Gaussian reference law unchanged. In Section A.3 of the Supplementary Material, we verify the Bernstein condition for squared, quantile, and Huber losses and provide sufficient conditions under which it holds.
Then we give the definition of the Hölder class.
Definition 1 (-Hölder class). Let and write , where, when is an integer, we adopt the convention and . For , the -Hölder class consists of all functions satisfying and . Here, is a multi-index, , and .
Assumption 2 (Network approximation). Suppose the target function belongs to the Hölder space . Let denote the class of ReLU networks with depth at most , width at most , at most trainable coordinates, and parameter magnitudes bounded by . There exists a sequence such that, for all sufficiently large , the class contains a network satisfying
The network structure satisfies , , , and , where and are positive constants depending only on , and .
Assumption 1 imposes a Bernstein moment bound on the centered loss and links its variance to the excess risk. Closely related Bernstein conditions are standard in fast-rate PAC-Bayesian analysis; see Mhammedi et al. (2019) and Grünwald et al. (2021).
Assumption 2 requires the ReLU class to approximate the Hölder target at rate in the uniform norm. For squared loss, the excess-risk bound follows from the uniform approximation bound, whereas other losses require an appropriate curvature, margin, or calibration condition.
Similar ReLU approximation conditions are standard in deep nonparametric regression; see Yarotsky (2017) and Schmidt-Hieber (2020). The parameter bound is imposed only on a deterministic approximating network. It does not restrict the Gaussian reference law or the SGLD iterates, which are defined on . When is bounded, output truncation preserves the uniform approximation error and can be implemented by a fixed ReLU module of constant size.
To relate the empirical and population excess risks of the data-dependent SGLD output, we use a PAC-Bayesian inequality (Catoni 2007). Under Assumption 1, for any data-independent reference measure , with probability at least , simultaneously for all with finite ,
This uniform guarantee is also applicable to the data-dependent output law .
To connect the KL term to the SGLD trajectory, we choose the terminal law of a data-independent reference process with the same initialization and Gaussian noise as SGLD but no gradient drift:
where the are independent standard Gaussian vectors, independent of and the training sample. For the prescribed step sizes and noise parameter, this gives
The reference therefore provides a baseline for measuring how the accumulated gradient updates change the output distribution. This construction isolates the contribution of the gradient drift to the KL complexity, following the trajectory-based analyses of Mou et al. (2018); Li et al. (2020).
Combining the PAC-Bayesian bound with the network approximation condition and the empirical optimization gap yields the following oracle inequality.
Lemma 1 (Oracle inequality for the SGLD posterior). Suppose Assumptions 1 and 2 hold. Then, for every , with probability at least ,
where is the nonnegative empirical optimization gap for the predictors.
Lemma 1 gives a fast-rate oracle inequality, with a statistical complexity term of order . This fast-rate scaling relies on the Bernstein condition in Assumption 1. The KL divergence in (6) arises from the PAC–Bayes change of measure from the data-independent reference law to the data-dependent SGLD output law . It serves as a statistical complexity term when converting empirical excess risk into population excess risk.
We next bound the KL term in Lemma 1. Conditional on , let and be the SGLD and reference path laws. For the reference process constructed above, the KL chain rule expresses the path KL as a sum of expected KL divergences between the parameter transitions. Given the same current iterate and mini-batch, the SGLD and reference transitions, denoted by and , are Gaussian with the same covariance and means differing by the gradient update. The terminal parameter contains no more information for distinguishing the two processes than the full path. Thus, by the data-processing inequality, its KL is no greater than the path KL. Combining these steps gives
where and
Thus the KL penalty is bounded by a term of order . We next control the network approximation error and the statistical complexity.
In the following analysis, we focus exclusively on the statistical error and the network approximation error . Controlling the optimization error is beyond the scope of this paper and is not pursued here.
Remark 1. In this paper, we do not analyze the optimization error and assume that it is sufficiently small not to affect the optimal convergence rate. Specifically, if , the target approximation and stochastic errors are the leading terms for excess risk. In practical implementations under the training schedules considered here, SGLD is run until the empirical objective has stabilized, and the terminal iterates typically remain close in empirical risk to the minimizer (Raginsky et al. 2017; Teh et al. 2016). The sampled-estimator results reported in Section C.2 of the Supplementary Materials provide additional empirical support for stability across the terminal output distribution. Intuitively, the injected noise can help SGLD escape narrow minima and explore wider valleys of low empirical risk. This interpretation is related to the wide-valley geometry studied by Chaudhari et al. (2017) and Keskar et al. (2017).
Theorem 1 (Conditional optimal rate for Hölder regression). Suppose Assumptions 1 and 2 hold and the optimization error is of the same order as, or smaller than, the statistical and approximation errors and therefore does not change the convergence rate. Let . Choose , , and a ReLU architecture satisfying Assumption 2. Then
If for some , we have
The first term, , is the cost of approximating a -Hölder regression function with ReLU neural networks (Yarotsky 2017; Schmidt-Hieber 2020). The second term is the algorithm-dependent stochastic error. Since the injected-noise variance is proportional to , increasing the Gaussian perturbation corresponds to possibly reducing this stochastic error term. Theorem 1 requires for some to obtain the stated rate. Theorem 1 clarifies how injected noise enters the excess-risk bound: stronger noise reduces the explicit factor in the stochastic term, while also shaping and through the SGLD trajectory. When these trajectory-dependent quantities remain controlled, this result is consistent with the observed generalization benefits of moderate noise in SGLD, while preserving the optimal statistical rate under the stated conditions.
Furthermore, we consider the realized estimator , where is the terminal iterate with conditional law , and give the following high-probability result.
Corollary 1 (Statistical guarantee for the realized terminal predictor). Under the assumptions of Lemma 1, let denote the terminal iterate generated by SGLD, so that . Then, for any , with probability at least over the sample and algorithmic randomness,
Hence, under the conditions of Theorem 1, the realized terminal network also satisfies
In particular, for any fixed , the realized terminal iterate has the same statistical order as the algorithm-averaged bound.
Remark 2 (From the output distribution to the realized iterate). Conditional on the training sample, . Since the excess risk is non-negative, Markov’s inequality implies . Corollary 1 therefore converts the algorithm-averaged PAC-Bayes guarantee into a tail bound for the terminal network actually produced by SGLD. A smaller provides a stronger probability guarantee at the cost of the factor . For any fixed , this factor does not alter the asymptotic order.
Corollary 2 (Statistical guarantee for clipped SGLD). Let denote the terminal iterate generated by the clipped SGLD in Algorithm 1, and define . Let denote the clipped mini-batch gradient defined in (4), and let . Define the empirical optimization gap by
We assume that this optimization error satisfies the corresponding condition in Theorem 1. Suppose Assumption 1 and the corresponding conditions of Theorem 1 hold, with replaced by . Then
Thus, clipped SGLD has the same statistical order as the unclipped algorithm-averaged bound whenever its cumulative-gradient quantity and empirical optimization gap satisfy the corresponding conditions.
Remark 3 (Effect of adding an regularizer). For the regularized objective , the SGLD recursion becomes . Adding the penalty introduces the shrinkage factor into the SGLD update. This motivates an exponentially weighted analogue of , schematically written as
where and ; see Mou et al. (2018) and Li et al. (2020). By discounting earlier gradient contributions, this weighting offers a mechanism for controlling the trajectory-dependent complexity. For bounded , a corresponding trajectory term of at most polylogarithmic order preserves the optimal statistical rate up to logarithmic factors, provided the optimization error remains controlled.
3.2 Differential Privacy Guarantee
We next establish the privacy guarantee for the proposed SGLD algorithm with gradient clipping in Algorithm 1. The statistical and privacy results apply to the same clipped SGLD algorithm and therefore provide simultaneous guarantees under their combined assumptions; see Corollary 4. The privacy guarantee itself does not require the cumulative-gradient or optimization-gap conditions. The statistical rate remains conditional on these additional conditions, which are not shown to follow automatically from the privacy calibration.
Definition 2 (f-DP and GDP, Dong et al. (2022)). (i) Under replacement adjacency, two datasets and , each of size , are adjacent if one record in is replaced to obtain . (ii) For two probability laws and on the same measurable space, their trade-off function is
where the infimum is taken over all measurable tests. (iii) A mechanism is -DP if for every adjacent pair . (iv) Let denote the standard normal distribution function and define for . A mechanism is -Gaussian differentially private, or -GDP, if it is -DP.
Definition 3 (Asymptotic GDP). A sequence of mechanisms is said to admit an asymptotic -GDP guarantee if there exist symmetric trade-off functions such that is -DP for every and , where the norm is the supremum norm on .
For a trade-off function , let and . When a fixed-size mini-batch is sampled at rate and the selected indices are not released, the -DP subsampling operator is for , where denotes the greatest convex lower bound of . For trade-off functions and
, define their tensor product by , where denotes the product probability measure for , and denotes its repeated application. Throughout the asymptotic analysis below, the number of iterations , the batch size , the clipping threshold , the noise parameter , and the step-size schedule may depend on . We impose the following assumption.
Assumption 3. Assume that and , where is the batch size and is the clipping threshold.
Assumption 3 requires the mini-batch sampling fraction to vanish and the iteration-specific Gaussian privacy parameters to remain uniformly bounded; a closely related asymptotic regime is considered in Dong et al. (2022). The following theorem first establishes the exact finite-sample -DP composition and then, under this assumption, derives its asymptotic GDP limit.
Theorem 2 (Privacy guarantee). (i) Algorithm 1 satisfies -DP with
(ii) Furthermore, under Assumption 3, suppose that for some , where for . Then Algorithm 1 admits an asymptotic -GDP guarantee in the sense of Definition 3.
We next specialize the general condition to two commonly used step-size schedules: polynomial decay and terminal decay, and provide directly verifiable sufficient conditions in Corollary 3.
Corollary 3. Suppose Assumption 3 holds.
(i) Suppose , where , , and . If for some , then Algorithm 1 admits an asymptotic -GDP guarantee.
(ii) Suppose , where and . If for some and , then Algorithm 1 admits an asymptotic -GDP guarantee.
More generally, for arbitrary positive step sizes , the same conclusion holds if
Remark 4. The preceding asymptotic GDP guarantees can also be interpreted on the more familiar -DP scale through the standard conversion below. By Dong et al. (2022, Corollary 1), -DP is equivalent to -DP for every , with
Remark 5 (Comparison with conventional DP-SGD). Compared with equation (2), conventional DP-SGD (Dong et al. 2022) can be written as
In conventional DP-SGD, the standard deviation of the Gaussian perturbation is proportional to , whereas in SGLD it is proportional to . Thus the privacy accounting analysis above for SGLD is different from that in the conventional DP-SGD algorithm. To be specific, the composition result of Dong et al. (2022) therefore gives when . For clipped SGLD, Corollary 3 gives . Thus, conventional DP-SGD accumulates privacy loss according to the raw iteration count , whereas SGLD is governed by the cumulative step size . For example, let with , so that . If , , then , and maintaining the same fixed nonzero asymptotic GDP level gives
Therefore, under these calibrations, the privacy constraint permits substantially more SGLD iterations than conventional DP-SGD at the same asymptotic GDP level.
Building on the preceding analysis, we obtain the following joint statistical and privacy guarantees.
Corollary 4 (Joint statistical and privacy guarantees). Consider the clipped SGLD algorithm in Algorithm 1. Suppose Assumptions 1 and 2 hold, with the architecture chosen as in Theorem 1. Assume further that so that the optimization error is of the same order as the target statistical rate or smaller. If
for some fixed , then
The same algorithm simultaneously satisfies the finite-sample f-DP guarantee in Theorem 2(i). If, additionally, the conditions of Theorem 2(ii) hold, it admits the stated asymptotic -GDP guarantee.
A comparison of the scope of our theoretical results with related studies is provided in Table S1 of the Supplementary Material.
4 Simulation
In this section, we examine the finite-sample performance of SGLD. We first present a toy example to illustrate how moderate Gaussian perturbation may be helpful for out-of-sample prediction. We then conduct more systematic experiments for deep -regression and clipped SGLD, focusing respectively on generalization across noise levels and the resulting privacy–utility trade-off. Further implementation details are provided in Section C of the Supplementary Materials. The test losses summarize predictive risk across the reported configurations. Throughout this section, denotes the injected-noise scale, with parameter-noise covariance at update . The baseline removes this Gaussian perturbation while retaining mini-batch sampling.
4.1 Illustrative Example
Example 1: Sparse Linear Regression with LASSO and SCAD. We first consider a sparse linear model. The linear class contains the regression function, so its approximation error is zero. This example illustrates how prediction and estimation errors vary with injected noise in the presence of penalty bias, finite-time optimization error, and sampling variability.
The data are generated from
with , where is the covariate dimension. The covariates are Gaussian with an AR(1) covariance matrix , where for . The coefficient vector has two active pairs, , and all remaining coordinates are zero. The regularized mini-batch gradient is computed using mini-batch and the corresponding objective function is
where is either the convex LASSO penalty or the non-convex SCAD penalty.
Figure 1 shows a clear difference between the SCAD and LASSO settings. For the

Figure 1: Sparse linear regression with SCAD and LASSO penalties. The left panel reports the tail-averaged parameter MSE, and the right panel reports the tail-averaged test MSE, across the injected-noise levels .
non-convex SCAD penalty, both the parameter MSE and test MSE attain their smallest values at , and both are lower than their noise-free counterparts. At this tested noise level, the displayed estimation and prediction errors are lower than those of the baseline. For the convex LASSO penalty, both errors are minimized at , and the positive noise levels tested yield larger errors.
Figure 2 illustrates the associated training dynamics. Under SCAD, the noise-free trajectory remains in a region with relatively large parameter error. The active-coordinate norm remains near 6, well below the true value 10, and the parameter MSE remains relatively large. With moderate Gaussian perturbation, the trajectory leaves this region, moves toward the correct active-coordinate scale, and reaches a solution with lower parameter error. In contrast, the LASSO objective is convex and has no suboptimal local minima. Its noise-free trajectory already reaches a stable solution, while additional noise increases both the objective value and the parameter error. The displayed SCAD trajectories are consistent with a potential optimization benefit of moderate perturbation.

Figure 2: Optimization trajectories under the SCAD (upper panel) and LASSO (lower panel) penalties. From left to right, each row displays the current loss value, current parameter MSE, and the norm of the active coordinates. The true active-coordinate norm is 10.
4.2 Generalization Performance in Multivariate Deep Regression
We next conduct a more systematic study of the generalization performance of SGLD in multivariate deep regression. We vary the sample size, input dimension, and injected-noise level, and evaluate out-of-sample performance over 100 independent replications. Section C of the Supplementary Materials contains the implementation details and simulation results for additional quantile levels and the Huber loss.
The experiments use a fully connected network with two hidden layers of width 32. The network is trained for 800 epochs using mini-batches of size 50. The predictions are averaged over the checkpoints from the final 10% of training. Writing for the retained checkpoints, the predictor is , and test losses are evaluated using . The reported means and standard deviations summarize variation across replications; the comparisons below describe these observed patterns.
Example 2: Quantile regression. Let , where , and define . We consider the heteroscedastic location-scale model
where
The conditional quantile is therefore . We estimate the conditional quantile at using the check loss.
Quantile Loss vs. Noise Level (Quantile q=0.2)

Noise level
Figure 3: Test quantile loss for quantile regression at q = 0.2 under different noise levels. Points and error bars report the mean and standard deviation, respectively, on an independent test set of size 10,000 over 100 independent replications.
Figure 3 shows a quantitatively consistent pattern across all six combinations of sample size and input dimension . At small and moderate noise levels, the mean test quantile losses are comparable to, and in several settings slightly lower than, their noise-free counterparts. When the injected-noise level increases to , the test quantile loss exceeds the noise-free value in all six settings. The mean losses vary relatively little across the smaller-noise settings, with some below the baseline; the largest tested noise level gives higher mean losses in every panel. Results for and are presented in Section C of the Supplementary Materials and show a similar pattern. Together, these results illustrate how the observed prediction errors vary across the tested noise levels.
We also present results for the sampled estimator at quantile level in Section C.2 of the Supplementary Materials. In this example, the sampled estimator has empirical test losses similar to those of the checkpoint-averaged predictor reported in the main text.
4.3 Privacy–Utility Performance of Clipped SGLD
We finally examine the privacy–utility performance of clipped SGLD in a multivariate least-squares regression setting.
Example 3: Least-squares regression. Let , where for , and define . The response is generated from
where . The covariate distribution and network architecture are the same as those in Example 2. We set and consider . Training uses mini-batches of size and parameter updates. At each update, the per-sample gradients are clipped as in (4), with threshold . We consider . SGLD models from the final 10% of the training updates are averaged for prediction. For each positive noise level, we report the asymptotic GDP parameter in Theorem 2(ii).
Test RMSE and GDP- vs. Noise Level


Noise level
Figure 4: Prediction and privacy performance of least-squares regression with per-sample gradient clipping. The upper panels report the mean test RMSE, with error bars showing the mean one standard deviation over 100 independent replications.
Figure 4 shows a similar privacy–utility pattern across the three sample sizes. At , the mean test RMSE is 1.838, 1.596, and 1.500 for , 4000, and 5000, respectively. Increasing the noise level to reduces , but raises the mean test RMSE above 2.2 in all three settings. The mean test RMSE changes less over the smaller-noise settings and is higher at the largest tested noise level, alongside a decrease in the reported asymptotic GDP parameter.
5 Real Data Analysis
In this section, we apply the proposed method to the publicly available ACTG-175 and MNIST datasets, which represent regression and classification tasks, respectively. Both analyses use the clipped update in Algorithm 1. For both datasets, we report the asymptotic GDP parameter corresponding to Theorem 2(ii). We compare the reported mean test metrics across noise levels to describe the accompanying changes in predictive performance and the asymptotic privacy parameter.
5.1 The ACTG-175 Dataset
We first consider the AIDS Clinical Trials Group Study 175 (ACTG-175) dataset from Hammer et al. (1996), available through the R package speff2trial.¹ The original study was a randomized, double-blind clinical trial that compared four antiretroviral treatment regimens for adults infected with human immunodeficiency virus type 1. The dataset contains records from 2,139 patients and 27 variables. These variables describe demographic characteristics, treatment history, baseline immunologic measurements, randomized treatment assignments, and follow-up outcomes. The patient-level clinical records provide a natural setting for privacy-preserving prediction (Suriyakumar et al. 2021).
We use the CD4 T-cell count measured at approximately 20 weeks as the response, denoted by Y. The predictors include five continuous variables: age, body weight, Karnofsky score, baseline CD4 count, and baseline CD8 count. We also include seven binary baseline indicators for hemophilia, homosexual activity, intravenous drug use, race, gender, treatment-history stratum, and symptomatic status, together with three indicators for randomized treatment assignment. The resulting input dimension is 15. In each replication, 90% of the observations are randomly assigned to the training set and the remaining 10% to the test set. The split is stratified by treatment arm, giving 1,925 training observations and 214 test observations.
We fit a one-hidden-layer ReLU network with width 32 and 545 trainable parameters.
¹https://search.r-project.org/CRAN/refmans/speff2trial/html/ACTG175.html
Training uses mini-batches of size 64, and each per-sample gradient is clipped at . We set . Final predictions are obtained by averaging the predictions from network states collected during the last 20% of the training trajectory. We compute
where is the mean squared residual of the tail-averaged predictor on the corresponding training set. The NLL is used solely for internal evaluation and does not enter the training objective or the SGLD updates. Neither the NLL nor the residual variance is included in the private release, so this internal evaluation incurs no additional privacy cost. We also report test RMSE. The experiment is repeated independently 20 times.


Figure 5: Prediction results for the ACTG-175 data across different noise levels . The left, middle, and right panels report test negative log-likelihood (NLL), test root mean squared error (RMSE), and the asymptotic GDP parameter corresponding to Theorem 2(ii), respectively. The noise-free setting is the matched clipped-SGD baseline and is omitted from the privacy panel.
Figure 5 shows similar mean predictive metrics across the reported moderate-noise settings. The baseline with has mean NLL 1.1329 and mean RMSE 0.7491. At and , the mean RMSE values are 0.7464 and 0.7466, respectively. These mean RMSE values are slightly below the baseline, alongside a lower reported asymptotic GDP parameter .
5.2 The MNIST Dataset
We next consider the MNIST handwritten-digit dataset of LeCun et al. (1998). The dataset contains 70,000 grayscale images of handwritten digits from 0 to 9. Each image consists of pixels. The standard split contains 60,000 training images and 10,000 test images. MNIST is widely used to evaluate privacy-preserving neural-network training (Abadi et al. 2016). In this experiment, we draw a class-stratified sample of 3,000 images from the standard training set and retain all 10,000 test images for evaluation. The sampling scheme preserves the original class proportions and gives approximately 300 training images for each digit. Pixel intensities are rescaled to [0, 1]. The reported privacy calculation concerns the selected 3,000-image training dataset.
We use the convolutional neural-network architecture considered by Li et al. (2016). The network contains two convolution-max-pooling blocks with 32 and 64 filters of size . These are followed by two fully connected ReLU layers of width 200 and a 10-class output layer. The resulting network contains 299,306 trainable parameters. Training uses mini-batches of size 64 and a per-sample gradient-clipping threshold of . We again use the terminal-decay schedule, . For each test image, we average the predicted class probabilities over the network states collected during the last 20% of the training trajectory. Performance is evaluated using test negative log-likelihood and test classification accuracy. The experiment is repeated independently 20 times.
Figure 6 shows mean test accuracies above 97% across the displayed noise levels. The baseline with has mean NLL 0.1530 and mean accuracy 97.518%. At and , the mean accuracies are 97.303% and 97.123%, respectively. At these two noise levels, mean accuracy is approximately 0.22 and 0.40 percentage points below the baseline, respectively, alongside lower reported asymptotic GDP parameters. Across the displayed moderate-noise settings, the two applications show modest changes in mean predictive metrics alongside decreasing asymptotic GDP parameters.
https://yann.lecun.org/exdb/mnist/



Figure 6: Prediction results for MNIST across different noise levels . The left, middle, and right panels report test negative log-likelihood (NLL), test classification accuracy, and the asymptotic GDP parameter corresponding to Theorem 2(ii), respectively. The noise-free setting is the matched clipped-SGD baseline and is omitted from the privacy panel.
6 Conclusion
This paper develops a finite-time analysis of SGLD for deep nonparametric M-estimation, with guarantees for both statistical risk and differential privacy. By treating the final-iterate law as an algorithm-dependent PAC-Bayes posterior, the analysis separates network approximation, the pathwise KL cost, and the finite-time empirical optimization error. Under the stated conditions, the SGLD output based on a suitably chosen ReLU architecture attains the optimal rate for Hölder-smooth target functions in M-regression up to logarithmic factors. For clipped SGLD, we establish an exact finite-sample f-DP guarantee and an asymptotic GDP characterization under heterogeneous step-size schedules. Extensive numerical studies demonstrate the satisfactory empirical performance of SGLD across different noise levels, while the real-data analyses illustrate the trade-off between privacy and utility for clipped SGLD at the reported asymptotic GDP levels.
An important direction for future research is to extend SGLD to settings with group structure or distributional heterogeneity. Different populations may share common components while differing in smoothness, noise level, sample size, or privacy requirements. Recent studies on federated SGLD and federated averaging Langevin dynamics show that such heterogeneity can affect gradient accuracy and convergence (el Mekkaoui et al. 2021; Deng et al. 2024). Building on these results, one could develop hierarchical or multitask SGLD procedures with group-adaptive clipping and noise calibration, together with risk bounds that distinguish shared and group-specific errors.
References
Abadi, M., A. Chu, I. Goodfellow, H. B. McMahan, I. Mironov, K. Talwar, and L. Zhang (2016). Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, pp. 308–318.
Alquier, P. and W. Kengne (2025). Minimax optimality of deep neural networks on dependent data via PAC-Bayes bounds. Electronic Journal of Statistics 19(2), 5895–5924.
Anthony, M. and P. L. Bartlett (2009). Neural Network Learning: Theoretical Foundations. Cambridge University Press.
Bassily, R., A. Smith, and A. Thakurta (2014). Private empirical risk minimization: Efficient algorithms and tight error bounds. In 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, pp. 464–473. IEEE.
Cai, T. T., Y. Wang, and L. Zhang (2021). The cost of privacy: Optimal rates of convergence for parameter estimation with differential privacy. The Annals of Statistics 49(5), 2825–2850.
Catoni, O. (2007). PAC-Bayesian Supervised Classification: The Thermodynamics of Statistical Learning, Volume 56 of Institute of Mathematical Statistics Lecture Notes–Monograph Series. Beachwood, Ohio: Institute of Mathematical Statistics.
Chaudhari, P., A. Choromanska, S. Soatto, Y. LeCun, C. Baldassi, C. Borgs, J. Chayes, L. Sagun, and R. Zecchina (2017). Entropy-SGD: Biasing gradient descent into wide valleys. In International Conference on Learning Representations.
Chaudhuri, K., C. Monteleoni, and A. D. Sarwate (2011). Differentially private empirical risk minimization. Journal of Machine Learning Research 12(29), 1069–1109.
Dadi, L. T. and V. Cevher (2025). Generalization of noisy SGD in unbounded non-convex settings. In Proceedings of the 42nd International Conference on Machine Learning, Volume 267 of Proceedings of Machine Learning Research, pp. 11862–11883. PMLR.
Deng, W., Q. Zhang, Y. Ma, Z. Song, and G. Lin (2024). On convergence of federated averaging Langevin dynamics. In Proceedings of the Fortieth Conference on Uncertainty in Artificial Intelligence, Volume 244 of Proceedings of Machine Learning Research, pp. 1022–1054. PMLR.
Dong, J., A. Roth, and W. J. Su (2022). Gaussian differential privacy. Journal of the Royal Statistical Society Series B: Statistical Methodology 84(1), 3–37.
Du, J., S. Li, X. Chen, S. Chen, and M. Hong (2021). Dynamic differential-privacy preserving SGD. arXiv:2111.00173.
el Mekkaoui, K., D. Mesquita, P. Blomstedt, and S. Kaski (2021). Federated stochastic gradient Langevin dynamics. In Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence, Volume 161 of Proceedings of Machine Learning Research, pp. 1703–1712. PMLR.
Grünwald, P., T. Steinke, and L. Zakynthinou (2021). PAC-Bayes, MAC-Bayes and conditional mutual information: Fast rate bounds that handle general VC classes. In M. Belkin and S. Kpotufe (Eds.), Proceedings of the Thirty-Fourth Conference on Learning Theory, Volume 134 of Proceedings of Machine Learning Research, pp. 2217–2247. PMLR.
Hammer, S. M., D. A. Katzenstein, M. D. Hughes, H. Gundacker, R. T. Schooley, R. H. Haubrich, W. K. Henry, M. M. Lederman, J. P. Phair, M. Niu, M. S. Hirsch, and T. C. Merigan (1996). A trial comparing nucleoside monotherapy with combination therapy in HIV-infected adults with CD4 cell counts from 200 to 500 per cubic millimeter. New England Journal of Medicine 335(15), 1081–1090.
Jain, P. and A. Thakurta (2013). Differentially private learning with kernels. In Proceedings of the 30th International Conference on Machine Learning, Volume 28 of Proceedings of
Machine Learning Research, pp. 118–126. PMLR. Part 3.
Keskar, N. S., D. Mudigere, J. Nocedal, M. Smelyanskiy, and P. T. P. Tang (2017). On large-batch training for deep learning: Generalization gap and sharp minima. In International Conference on Learning Representations.
LeCun, Y., L. Bottou, Y. Bengio, and P. Haffner (1998). Gradient-based learning applied to document recognition. Proceedings of the IEEE 86(11), 2278–2324.
Li, C., C. Chen, D. Carlson, and L. Carin (2016). Preconditioned stochastic gradient Langevin dynamics for deep neural networks. Proceedings of the AAAI Conference on Artificial Intelligence 30(1), 1788–1794.
Li, J., X. Luo, and M. Qiao (2020). On generalization error bounds of noisy gradient methods for non-convex learning. In International Conference on Learning Representations.
London, B. (2017). A PAC-Bayesian analysis of randomized learning with application to stochastic gradient descent. In I. Guyon, U. von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Eds.), Advances in Neural Information Processing Systems, Volume 30, pp. 2931–2940. Curran Associates, Inc.
Mhammedi, Z., P. D. Grünwald, and B. Guedj (2019). PAC-Bayes un-expected Bernstein inequality. In Advances in Neural Information Processing Systems, Volume 32, pp. 12202–12213.
Mou, W., L. Wang, X. Zhai, and K. Zheng (2018). Generalization bounds of SGLD for non-convex learning: Two theoretical viewpoints. In Proceedings of the 31st Conference on Learning Theory, Volume 75 of Proceedings of Machine Learning Research, pp. 605–638. PMLR.
Raginsky, M., A. Rakhlin, and M. Telgarsky (2017). Non-convex learning via stochastic gradient Langevin dynamics: A nonasymptotic analysis. In Proceedings of the 2017 Conference on Learning Theory, Volume 65 of Proceedings of Machine Learning Research, pp. 1674–1703. PMLR.
Schmidt-Hieber, J. (2020). Nonparametric regression using deep neural networks with ReLU activation function. The Annals of Statistics 48(4), 1875–1897.
Suriyakumar, V. M., N. Papernot, A. Goldenberg, and M. Ghassemi (2021). Chasing your long tails: Differentially private prediction in health care settings. In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, pp. 723–734.
Teh, Y. W., A. H. Thiéry, and S. J. Vollmer (2016). Consistency and fluctuations for stochastic gradient Langevin dynamics. Journal of Machine Learning Research 17(7), 1–33.
Welling, M. and Y. W. Teh (2011). Bayesian learning via stochastic gradient Langevin dynamics. In Proceedings of the 28th International Conference on Machine Learning, pp. 681–688.
Xia, X. and Z. Cai (2023). Adaptive false discovery rate control with privacy guarantee. Journal of Machine Learning Research 24(252), 1–35.
Xia, X., L. Zhang, and Z. Cai (2025). Statistical inference for differentially private stochastic gradient descent. arXiv:2507.20560.
Yarotsky, D. (2017). Error bounds for approximations with deep ReLU networks. Neural Networks 94, 103–114.
Zhang, Q., T. Li, X. Feng, X. Yan, and J. Xie (2025). Online differentially private conformal prediction for uncertainty quantification. In Proceedings of the 42nd International Conference on Machine Learning, Volume 267 of Proceedings of Machine Learning Research, pp. 75329–75368. PMLR.
Zhu, L., M. Gürbüzbalaban, A. Raj, and U. Şimşekli (2023). Uniform-in-time Wasserstein stability bounds for (noisy) stochastic gradient descent. In Advances in Neural Information Processing Systems, Volume 36, pp. 1794–1832.