Shape Matters: Understanding the Implicit Bias of the Noise Covariance

Jeff Z. HaoChen, Colin Wei, Jason D. Lee, Tengyu Ma

Introduction

One central mystery of deep artificial neural networks is their capability to generalize when having far more learnable parameters than training examples Zhang et al. (2016). To add to the mystery, deep nets can also obtain reasonable performance in the absence of any explicit regularization. This has motivated recent work to study the regularization effect due to the optimization (rather than objective function), also known as implicit bias or implicit regularization Gunasekar et al. (2017, 2018a, 2018b), Soudry et al. (2018), Arora et al. (2019a). The implicit bias is induced by and depends on many factors, such as learning rate and batch size (Smith et al., 2017, Goyal et al., 2017, Keskar et al., 2016, Li et al., 2019b, Hoffer et al., 2017), initialization and momentum (Sutskever et al., 2013), adaptive stepsize (Kingma and Ba, 2014, Neyshabur et al., 2015, Wilson et al., 2017), batch normalization Ioffe and Szegedy (2015), Hoffer et al. (2018), Arora et al. (2018) and dropout Srivastava et al. (2014), Wei et al. (2020).

Among these sources of implicit regularization, the SGD noise is believed to be a vital one (LeCun et al., 2012, Keskar et al., 2016). Previous theoretical works (e.g., Li et al. (2019b)) have studied the implicit regularization effect from the scale of the noise, which is directly influenced by learning rate and batch size. However, people have empirically observed that the shape of the noise also has a strong (if not stronger) implicit bias. For example, prior works show that mini-batch noise or label noise (label smoothing) – noise in the parameter updates from the perturbation of labels in training – is far more effective than adding spherical Gaussian noise (e.g., see (Shallue et al., 2018, Section 4.6) and Szegedy et al. (2016), Wen et al. (2019)). We also confirm this phenomenon in Figure 1 (left). Thus, understanding the implicit bias of the noise shape is crucial. Such an understanding may also be applicable to distributed training because synthetically adding noise may help generalization if parallelism reduces the amount of mini-batch noise (Shallue et al., 2018).

In this paper, we theoretically study the effect of the shape of the noise, demonstrating that it can provably determine generalization performance at convergence. Our analysis is based on a nonlinear quadratically-parameterized model introduced by (Woodworth et al., 2020, Vaskevicius et al., 2019), which is rich enough to exhibit similar empirical phenomena as deep networks. Indeed, Figure 1 (right) empirically shows that SGD with mini-batch noise or label noise can generalize with arbitrary initialization without explicit regularization, whereas GD or SGD with Gaussian noise cannot. We aim to analyze the implicit bias of label noise and Gaussian noise in the quadratically-parametrized model and explain these empirical observations.

We choose to study label noise because it can replicate the regularization effects of minibatch noise in both real and synthetic data (Figure 1), and has been used to regularize large-batch parallel training (Shallue et al., 2018). Moreover, label noise is less sensitive to the initialization and the optimization history than mini-batch noise, which makes it more amenable to theoretical analysis. For example, in an extreme case, if we happen to reach or initialize at a solution that overfits the data exactly, then mini-batch SGD will stay there forever because both the gradient and the noise vanish (Vaswani et al., 2019). In contrast, label noise will not accidentally vanish, so analysis is more tractable. Understanding label noise may lead to understanding mini-batch noise or replacing it with other more robust choices.

In our setting, we prove that with a proper learning rate schedule, SGD with label noise recovers a sparse ground-truth classifier and generalizes well, whereas SGD with spherical Gaussian noise generalizes poorly. Concretely, SGD with label noise biases the parameter towards sparse solutions and exactly recovers the sparse ground-truth, even when the initialization is arbitrarily large (Theorem 2.1). In this same regime, noise-free gradient descent quickly overfits because it trains in the NTK regime (Jacot et al., 2018, Chizat and Bach, 2018, Oymak and Soltanolkotabi, 2020, Du et al., 2018b, Arora et al., 2019b). Adding Gaussian noise is insufficient to fix this, as this algorithm would end up sampling from a Gibbs distribution with infinite partition function and fail to converge to the ground-truth (Theorem 2.2). In summary, with not too small learning rate or noise level, label noise suffices to bias the parameter towards sparse solutions without relying on a small initialization, whereas Gaussian noise cannot.

Our analysis suggests that the fundamental difference between label or mini-batch noise and Gaussian noise is that the former is parameter-dependent, and therefore introduces stronger biases than the latter. The conceptual message highlighted by our analysis is that there are two possible implicit biases induced by the noise: 1. prior work (Keskar et al., 2016) shows that by escaping sharp local minima, noisy gradient descent biases the parameter towards solutions which are more robust (i.e, solutions with low curvature, or “flat” minima), and 2. when the noise covariance varies across the parameter space, there is another (potentially stronger) implicit bias effect toward parameters where the noise covariance is smaller. Label or mini-batch noise benefit from both biases, whereas Gaussian noise is independent of the parameter, so it benefits from the first bias but not the second. For the quadratically-parameterized model, this first bias is not sufficient for finding solutions with good generalization because there is a large set of overfitting global minima of the training loss with reasonable curvature. In contrast, the covariance of label noise is proportional to the scale of the parameter, inducing a much stronger bias towards low norm solutions which generalize well.

There has been a line of work empirically studying how noise influences generalization. Keskar et al. (2016) argued that large batch training will converge to “sharp” local minima which do not generalize well. Hoffer et al. (2017) argued that large batch size doesn’t hurt generalization much if training goes on long enough and additional noise is added with a larger learning rate. Goyal et al. (2017) and Shallue et al. (2018) showed large batch training with proper learning rate and additional label noise can achieve similar generalization as small batch. Agarwal et al. (2020) disentangled the effects of update direction and scale for a variety of optimizers. Wei and Schwab (2019), Chaudhari and Soatto (2018), Yaida (2018) (heuristically) suggested that SGD may encourage solutions with smaller noise covariance. Martin and Mahoney (2018) used random matrix theory to analyze implicit regularization effects of noises. The noise induced by dropout has been shown to change the expected training objective, hence provides a regularization effect (Mianjy et al., 2018, Mianjy and Arora, 2019, Wei et al., 2020, Arora et al., 2020). Wei et al. (2020) showed that there also exisits an implicit bias induced by dropout noise.

Blanc et al. (2019) and Zhu et al. (2019) also studied implicit regularization effects which arise due to shape, rather than scale, of the noise, but only considered the local effect of the noise near some local minimum of the loss. In contrast, our work analyzes the global effect of noise. For a more detailed comparison with (Blanc et al., 2019), see Section 2.2.

Langevin dynamics or the closely-related stochastic gradient descent with Gaussian noise, has been studied in previous works Welling and Teh (2011), Teh et al. (2016), Raginsky et al. (2017), Zhang et al. (2017), Mou et al. (2017), Roberts et al. (1996), Ge et al. (2015), Negrea et al. (2019), Neelakantan et al. (2015). In particular, Raginsky et al. (2017) and Li et al. (2019a) provided generalization bounds for SGLD using algorithmic stability.

A number of works have theoretically analyzed implicit regularization in simplified settings (Soudry et al., 2018, Gunasekar et al., 2018b, Ji and Telgarsky, 2018a). Gunasekar et al. (2017) and Li et al. (2017) showed that gradient descent finds low rank solutions in matrix completion. Gradient descent also been shown to maximize the margin in linear and homogeneous models (Soudry et al., 2018, Ji and Telgarsky, 2018b, Nacson et al., 2018, Lyu and Li, 2019, Gunasekar et al., 2018a, Nacson et al., 2019, Poggio et al., 2017). Du et al. (2018a) showed that gradient descent implicitly balances the layers of deep homogeneous models. Other works showed that it may not be always possible to characterize implicit biases in terms of some norm (Arora et al., 2019a, Razin and Cohen, 2020). Gissin et al. (2019) showed that gradient descent dynamics exhibit different implicit biases based on depth. Hardt et al. (2015) derived stability-based generalization bounds for SGD based on training speed.

Woodworth et al. (2020), Vaskevicius et al. (2019) analyze the effect of initialization for the same model that we study, showing that a large initialization trains in the NTK regime (shown to generalize poorly (Wei et al., 2019, Ghorbani et al., 2019)) whereas small initialization does not. We show that when the initialization is large, adding noise helps avoid the NTK regime (Li and Liang, 2018, Jacot et al., 2018, Du et al., 2018b, Woodworth et al., 2020) without explicit regularization.

Recent works also suggest that explicit regularization may mitigate the lack of implicit regularization, especially in noisy or imbalanced settings. For example, Wei and Ma (2019) show that Lipschitz-ness regularization improves the performance in clean or noisy label setting when the learning rate is sub-optimal. Cao et al. (2019) show that additional regularization improves the generalization performance of rare classes. Nakkiran et al. (2020) show that explicit regularization can mitigate the double descent phenomenon in linear regression, which is caused by the fact that the implicit regularization of gradient descent with zero initialization is insufficient for the regime when the number of parameters is close to the number of datapoints.

Setup and Main Results

We remark that we can recover v⋆v^{\star} by re-parameterizing u=v⊙2u=v^{\odot 2} and applying LASSO (Tibshirani, 1996) in the uu-space when n≥O~(r)n\geq\widetilde{O}(r), which is minimax optimal (Raskutti et al., 2012). However, the main goal of the paper, similar to several prior works (Woodworth et al., 2020, Vaskevicius et al., 2019, Li et al., 2017), is to prove that the implicit biases of non-convex optimization can recover the ground truth without explicit regularization in the over-parameterized regime when n=poly(r)≪dn=\textup{poly}(r)\ll d.We also remark that it’s common to obtain only sub-optimal sample complexity guarantees in the sparsity parameters with non-convex optimization methods (Li et al., 2017, Ge et al., 2016, Vaskevicius et al., 2019, Chi et al., 2019) due to technical limitations. We also assume throughout the paper that n,dn,d are larger than some sufficiently large universal constant.

Initialization. We use a large initialization of the form v[0]=τ⋅\mathds1v^{[{0}]}=\tau\cdot\mathds{1} where \mathds1\mathds{1} denotes the all 1’s vector, where we allow τ\tau to be arbitrarily large (but polynomial in dd).

SGD with label noise. We study SGD with label noise as shown in Algorithm 1. We sample an example, add label noise sampled from {±δ}\{\pm\delta\} to the label, and apply the gradient update. Computing the gradient, we obtain the update rule written explicitly as:

Langevin dynamics/diffusion. We compare SGD with label noise to Langevin dynamics, which adds spherical Gaussian noise to gradient descent (Neal et al., 2011):

where the noise ξ∼N(0,Id×d)\xi\sim\mathcal{N}(0,\mathcal{I}_{d\times d}) and λ>0\lambda>0 controls the scale of noise. Langevin dynamics (LD) or its more computationally-efficient variant, stochastic gradient Langevin dynamics (SGLD), is known to converge to the Gibbs distribution μ(v)∝e−λL(v)\mu(v)\propto e^{-\lambda\mathcal{L}({v})} under various settings with sufficiently small learning rate (Roberts et al., 1996, Dalalyan, 2017, Bubeck et al., 2018, Raginsky et al., 2017). In our negative result about Langevin dynamics/diffusion, we directly analyze the Gibbs distribution in order to disentangle the convergence and the generalization.

This paper equates discrete time Langevin dynamics (equation (2)) with gradient descent with Gaussian noise, because LD with learning rate η\eta and temperature parameter λ\lambda is exactly equivalent to gradient descent with learning rate η\eta and spherical Gaussian noise with standard deviation σ=2/(λη)\sigma=\sqrt{2/(\lambda\eta)}. Thus technically the negative result for the Gibbs distribution (Theorem 2.2) applies to gradient descent with σ\sigma-Gaussian noise when keeping ησ2\eta\sigma^{2} fixed (to be any number) and letting η\eta be sufficiently small.We also note that when ησ2\eta\sigma^{2} also tends to zero, the effect of the noise will vanish and very likely gradient descent with Gaussian noise perform similarly to gradient descent.

Notations. Unless otherwise specified, we use O(⋅),Ω(⋅),Θ(⋅)O(\cdot),\Omega(\cdot),\Theta(\cdot) to hide absolute multiplicative factors and O~(⋅),Θ~(⋅),Ω~(⋅)\widetilde{O}(\cdot),\widetilde{\Theta}(\cdot),\widetilde{\Omega}(\cdot) to hide poly-logarithmic factors in problem parameters such as dd and τ\tau. For example, every occurrence of O~(x)\widetilde{O}(x) is a placeholder for a quantity f(x)f(x) that satisfies that for some absolute constants c1,c2>0c_{1},c_{2}>0, ∀x\forall x, ∣f(x)∣≤c1∣x∣⋅log⁡c2(dτ)|f(x)|\leq c_{1}|x|\cdot\log^{c_{2}}(d\tau).

2 Main Results

Our main result can be summarized by the following theorem, which suggests that stochastic gradient descent with label noise can converge to the ground truth despite a potentially large initialization.

In the setting of Section 2.1, given a target error ϵ>0\epsilon>0. Suppose we have n≥Θ~(r2)n\geq\widetilde{\Theta}(r^{2}) samples. For any label noise level δ≥Θ~(τ2d2)\delta\geq\widetilde{\Theta}(\tau^{2}d^{2}), we run SGD with label noise (Algorithm 1) with the following learning rate schedule:

learning rate η0=Θ~(1/δ)\eta_{0}=\widetilde{\Theta}(1/\delta) for T0=Θ~(1)T_{0}=\widetilde{\Theta}(1) iterations,

learning rate η1=Θ~(1/δ2)\eta_{1}=\widetilde{\Theta}(1/\delta^{2}) for T1=Θ~(1/η1)T_{1}=\widetilde{\Theta}(1/\eta_{1}) iterations,

learning rate η2=Θ~(ϵ2/δ2)\eta_{2}=\widetilde{\Theta}(\epsilon^{2}/\delta^{2}) for T2=Θ~(1/η2)T_{2}=\widetilde{\Theta}(1/\eta_{2}) iterations.

Then, with probability at least 0.90.9, the final iterate v[T]v^{[{T}]} at time T=T0+T1+T2T=T_{0}+T_{1}+T_{2} satisfies

Here Θ~(⋅)\widetilde{\Theta}(\cdot) omits poly-logarithmic dependencies on 1/ϵ1/\epsilon, dd and τ\tau.

In other words, with arbitrarily large initialization scale τ\tau, we can choose large label noise level and the learning rate schedule so that SGD with label noise succeeds in recovering the ground truth. In contrast, when τ\tau is large, gradient flow without noise trains in the “kernel” regime as shown by (Woodworth et al., 2020, Chizat and Bach, 2018). The solution in this kernel regime minimizes the RKHS distance to initialization, and in our setting equates to finding a zero-error solution with minimum ∥v⊙2−v⊙2∥2\|v^{\odot 2}-v^{\odot 2}\|_{2}. Such a solution could be arbitrarily far away when initialization scale τ\tau is large and therefore have poor generalization. Figure 1 (right) confirms GD performs poorly with large initialization whereas SGD with minibatch or label noise works. We outline the analysis of Theorem 2.1 in Section 3.

On the other hand, the following negative result for Langevin dynamics demonstrates that adding Gaussian noise fails to recover the ground truth even when v⋆=0v^{\star}=0. This suggests that spherical Gaussian noise does not induce a strong enough implicit bias towards low-norm solutions.

Assume in addition to the setting in Section 2.1 that the ground truth v⋆=0v^{\star}=0. When n≤d/3n\leq d/3, with probability at least 0.90.9 over the randomness of the data, for any λ>0\lambda>0, the Gibbs distribution is not well-defined because the partition function explodes:

As a consequence, Langevin diffusion does not converge to a proper stationary distribution.

Theorem 2.2 helps explain the behavior in Figure 1, where adding Gaussian noise generalizes poorly for both synthetic and real data. In particular, in Figure 1 (right) adding Gaussian noise causes the parameter to diverge for synthetic data, and Theorem 2.2 explains this observation. A priori, the intuition regarding Langevin dynamics is as follows: as λ→+∞\lambda\rightarrow+\infty, the Gibbs distribution (if it exists) should concentrate on the manifold of global minima with zero loss. The measure on the manifold of global minima should be decided by the geometry of L(⋅)\mathcal{L}({\cdot}), and in particular, the curvature around the global minimum. As λ→+∞\lambda\rightarrow+\infty, the mass should likely concentrate at the flattest global minimum (according to some measure of flatness), which intuitively is v⋆=0v^{\star}=0 in this case.

However, our main intuition is that when n<dn<d, even though the global minimum at v⋆v^{\star} is the flattest, there are also many bad global minima with only slightly sharper curvatures. The vast volume of bad global minima dominate the flatness of the global minimum at v⋆=0v^{\star}=0 for any λ\lambda,In fact, one can show that if this phenomenon happens for some λ>0\lambda>0, then it happens for all other λ\lambda. and hence the partition function blows up and the Gibbs distribution doesn’t exist. More details in Section 4.

Analysis Overview of SGD with Label Noise (Theorem 2.1)

Towards building intuition and tools for analyzing the parameter-dependent noise, in this subsection we start by studying an extremely simplified random walk in one dimensional space. The random walk is purely driven by mean-zero noisy updates and does not involve any gradient updates:

Indeed, attentive readers can verify that when dimension d=1d=1, sample size n=1n=1, and v⋆=0v^{\star}=0, equation (2) degenerates to the above random walk if we omit the gradient update term (second to last term in equation (2)). We compare it with the standard Brownian motion (which is the analog of gradient descent with spherical Gaussian noise under this extreme simplification)

However, the parameter-dependent random walk (5) has dramatically different behavior when η<1\eta<1: the random variable vv will eventually converge to v=0v=0 with high probability (though the variance grows and the mean remains at 1.). This is because the variance of the noise depends on the scale of vv. The smaller vv is, the smaller the noise variance is, and so the random walk tends to get “trapped” around . In fact, this claim has the following informal but simple proof that does not strongly rely on the exact form of the noise and can be extended to more general high-dimensional cases.

From the 1-D case to the high-dimensional case. In one dimension, it may appear that the varying scale of noise or norm of the covariance introduces the bias. However, in the high dimensional case, the shape of the covariance also matters. For example, if we generalize the random walk (5) to high-dimensions by running dd of the random walks in parallel, then we will observe the same phenomenon, but the noise variances in different dimensions are not identical — they depend on the current scales of the coordinates. (Precisely, the noise variance for dimension kk is η2vk2\eta^{2}v_{k}^{2}.) However, suppose we instead add noise of the same variance to all dimensions. Even if this variance depends on the norm of vv (say, η2∥v∥22\eta^{2}\|v\|_{2}^{2}), the implicit bias will be diminished, as the smaller coordinates will have relatively outsized noise and the larger coordinates will have relatively insufficient noise.

Outline of the rest of the subsections. We will give a proof sketch of Theorem 2.1 that consists of three stages. We first show in the initial stage of the training that label noise effectively decreases the parameter on all dimensions, bringing the training from large initialization to a small initialization regime, where better generalization is possible (Section 3.2). Then, we show in Section 3.3 that when the parameter is decently small, with label noise and a decayed learning rate, the algorithm will increase the magnitude of those dimensions in support set of v⋆v^{\star}, while keep decreasing the norm of the rest of dimensions. Finally, with one more decay, the algorithm can recover the ground truth.

2 Stage 0: Label Noise with Large Learning Rate Reduces the Parameter Norm

We first analyze the initial phase where we use a relatively large learning rate. When the initialization is of a decent size, GD quickly overfits to a bad global minimum nearest to the initialization. In contrast, we prove that SGD with label noise biases towards the small norm region, for a similar reason as the random walk example with parameter-dependent noise in Section 3.1.

In the setting of Theorem 2.1, recall that we initialize with v[0]=τ⋅\mathds1v^{[{0}]}=\tau\cdot\mathds{1}. Assume n≥Θ(log⁡d)n\geq\Theta(\log d). Suppose we run SGD with label noise with noise level δ≥Θ~(τ2d2)\delta\geq\widetilde{\Theta}(\tau^{2}d^{2}) and learning rate η0∈[Θ~(τ2d2/δ2),Θ~(1/δ)]\eta_{0}\in[\widetilde{\Theta}(\tau^{2}d^{2}/\delta^{2}),\widetilde{\Theta}(1/\delta)] for T0=Θ~(1/(η2δ2))T_{0}=\widetilde{\Theta}(1/(\eta^{2}\delta^{2})) iterations. Then, with probability at least 0.990.99 over the randomness of the algorithm,

Moreover, the minimum entry of v[T]v^{[{T}]} is bounded below by exp⁡(−O~((ηδ)−1))\exp(-\widetilde{O}((\eta\delta)^{-1})).

We remark that our requirement of η\eta being large is consistent with the empirical observation that large initial learning rate helps generalization Goyal et al. (2017), Li et al. (2019b). We provide intuitions and a proof sketch of the theorem in the rest of the subsection and defer the full proof to Section B . Our proof is based on the construction of a concave potential function Φ\Phi similar to Section 3.1. We will show that, at every step, the noise has a second order effect on the potential function and decrease the potential function by a quantity on the order of η2δ2\eta^{2}\delta^{2} (omitting the dd dependency).In general, any mean-zero noise has a second order effect on any potential function. Therefore, when the noise level is fixed, as η→0\eta\rightarrow 0, the effect of the noise diminishes. This is why a lower bound on the learning rate is necessary for the noise to play a role. On the other hand, the gradient step may increase the potential by a quantity at most on the order of η\eta (omitting dd dependency again). Therefore, when η2δ2≳η\eta^{2}\delta^{2}\gtrsim\eta, we expect the algorithm to decrease the potential and the parameter norm.

In particular, we define Φ(v)≜∑k=1dϕ(vk)=∑k=1dvk\Phi(v)\triangleq\sum_{k=1}^{d}\phi(v_{k})=\sum_{k=1}^{d}\sqrt{v_{k}}.In the formal proof we will use a slightly different version of potential function (see Definition B.1). By the update rule (1), the update for a coordinate k∈[d]k\in[d] can be written as

where sts_{t} is sampled from {−δ,δ}\{-\delta,\delta\} and iti_{t} is sampled from [n][n]. Let gk(it)≜((v[t]⊙2−v⋆⊙2)⊤x(it))xk(it)g_{k}^{(i_{t})}\triangleq(({v^{[{t}]}}^{\odot 2}-{v^{\star}}^{\odot 2})^{\top}x^{({i_{t}})})x^{({i_{t}})}_{k} be the component coming from the stochastic gradient. Using the fact that ϕ(ab)=ϕ(a)ϕ(b)\phi(ab)=\phi(a)\phi(b) for any a,b>0a,b>0, we can evaluate the potential function at time t+1t+1,

Here the expectation is over sts_{t} and iti_{t}. We perform Taylor-expansion on the term ϕ(1−ηstxk(it)−ηgk(it))\phi(1-\eta s_{t}x^{({i_{t}})}_{k}-\eta g_{k}^{(i_{t})}) to deal with the non-linearity and use the fact that ηstxk(it)\eta s_{t}x^{({i_{t}})}_{k} is mean-zero:

In the setting of Theorem 3.1, for some failure probability ρ>0\rho>0, let b0≜6τd/ρb_{0}\triangleq 6\tau d/\rho. Then, with probability at least 1−ρ/31-\rho/3, we have that ∥v[t]∥2≤b0\|v^{[{t}]}\|_{2}\leq b_{0} for any t≤T0t\leq T_{0}.

By Lemma 3.2 and the bound on ∣gkit∣|g^{i_{t}}_{k}| in terms of ∥v[t]∥2\|v^{[{t}]}\|_{2}, we have ∣gkit∣≤(b02+r)∥x(it)∥∞2≤O~(b02+r)|g^{i_{t}}_{k}|\leq(b_{0}^{2}+r)\|x^{({i_{t}})}\|_{\infty}^{2}\leq\widetilde{O}(b_{0}^{2}+r) with b0b_{0} defined in Lemma 3.2 (up to logarithmic factors). Here we use again that each entry of the data is from N(0,1)\mathcal{N}(0,1). Plugging these into equation (10) we obtain

In the setting of Section 2.1, given a target error bound ϵ1>0\epsilon_{1}>0, we assume that n≥Θ~(r2log⁡2(1/ϵ1))n\geq\widetilde{\Theta}(r^{2}\log^{2}(1/\epsilon_{1})). We run SGD with label noise (Algorithm 1) with an initialization v[0]v^{[{0}]} whose entries are all in [ϵmin,1/d][\epsilon_{\textup{min}},1/d], where ϵmin≥exp⁡(−O~(1))\epsilon_{\textup{min}}\geq\exp(-\widetilde{O}(1)). Let noise level δ≥Θ~(log⁡(1/ϵ1))\delta\geq\widetilde{\Theta}(\log(1/\epsilon_{1})) and learning rate η=Θ~(1/δ2)\eta=\widetilde{\Theta}({1}/{\delta^{2}}), and number of iterations T=Θ~(log⁡(1/ϵ1)/η)T=\widetilde{\Theta}(\log(1/\epsilon_{1})/\eta). Then, with probability at least 0.990.99, after TT iterations, we have

The proof of this theorem balances the contribution of the gradient against that of the noise on SS and Sˉ\bar{S}. On SS, the gradient provides a stronger signal than label noise, whereas on Sˉ\bar{S}, the implicit bias of the noise, similarly to the effect in Section 3.2, outweighs the gradient and reduces the entries to zero. The analysis is more involved than that of Theorem 3.1, and we defer the full proof to Section C.

The conclusion of Theorem 3.3 still allows constant error in the support, namely, ∥vS−vS⋆∥∞≤0.1\left\lVert v_{S}-v^{\star}_{S}\right\rVert_{\infty}\leq 0.1. The following theorem shows that further annealing the learning rate will let the algorithm fully converge to v⋆v^{\star} with any target error ϵ\epsilon.

[informal version of Theorem D.1] Assume initialization v[0]v^{[{0}]} satisfies ∥vS[0]−vS⋆∥∞≤0.1\|v^{[{0}]}_{S}-v^{\star}_{S}\|_{\infty}\leq 0.1. Suppose we run SGD with label noise with any noise level δ≥0\delta\geq 0 and small enough learning rate η\eta for T=Θ(1/η)T=\Theta(1/\eta) iterations. Then, with high probability over the randomness of the algorithm and data, there is ∥vS[T]−vS⋆∥∞≤∥vS[0]−vS⋆∥∞/10.\|v^{[{T}]}_{S}-v^{\star}_{S}\|_{\infty}\leq\|v^{[{0}]}_{S}-v^{\star}_{S}\|_{\infty}/10.

The formal version of Theorem 3.4 and its proof can be found in Section D.

Proof of Theorem 2.1. In Section E of Appendix, we combine Theorem 3.1, Theorem 3.3, and Theorem D.1 to prove our main Theorem 2.1.

Analysis Overview of Langevin Dynamics (Theorem 2.2)

Conclusion

In this work, we study the implicit bias effect induced by noise. For a quadratically-parameterized model, we theoretically show that the parameter-dependent noise has a strong implicit bias, which can help recover the sparse ground-truth from limited data. In comparison, our negative result shows that such a bias cannot be induced by spherical Gaussian noise. Our result provides an explanation for the empirical observation that replacing mini-batch noise or label noise with Gaussian noise usually leads to degradation in the generalization performance of deep models.

Acknowledgements

JZH acknowledges support from the Enlight Foundation Graduate Fellowship. CW acknowledges support from an NSF Graduate Research Fellowship. JDL acknowledges support of the ARO under MURI Award W911NF-11-1-0303, the Sloan Research Fellowship, and NSF CCF 2002272. TM acknowledges support of Google Faculty Award. The work is also partially supported by SDSI and SAIL at Stanford.

References

Appendix A Experimental Details

A.2 Experimental Details for Deep Neural Networks on CIFAR100

We train a VGG19 model (Simonyan and Zisserman, 2014) on CIFAR100, using a small and large batch baseline. We also experiment with adding Gaussian noise to the parameters after every gradient update as well as adding label noise in the following manner: with some probability that depends on the current iteration count, we replace the original label with a randomly chosen one.

To add spherical Gaussian noise to the parameter every update, we simply set W←W+σzW\leftarrow W+\sigma z after every gradient update, where zz is a mean-zero Gaussian whose coordinates are drawn independently from N(0,1)\mathcal{N}(0,1). We tune this σ\sigma over the values shown in Figure 1.

We turn off weight decay and BatchNorm to isolate the regularization effects of just the noise alone. Standard data augmentation is still present in our runs. Our small batch baseline uses a batch size of 26, and our large batch baseline uses a batch size of 256. In runs where we add noise, the batch size is always 256. For all runs, we use an initial learning rate of 0.004. We train for 410550 iterations (i.e., minibatches), annealing the learning rate by a factor of 0.1 at the 175950-th and 293250-th iteration. Our models take around 20 hours to train on a single NVIDIA TitanXp GPU when the batch size is 256. The final performance gap between label noise or small minibatch training v.s. large batch or Gaussian noise is around 13% accuracy.

Appendix B Proof of Stage 0 (Theorem 3.1)

In this section, we will first prove several lemmas on which the proof of Theorem 3.1 is built upon. Then we will provide a proof of Theorem 3.1.

Since the gradient descent with label noise algorithm will blow up with some very small chance, we first define a coupled version of each optimization trajectory such that it is bounded and behaves similarly to the original trajectory.

Recall the update at tt-th iteration is:

where the first inequality is Markov Inequality, the second is by the previous equation, and the third is by assumption of η\eta and the definition of b0b_{0}. ∎

We also define the following potential function which is similar to the one introduced in Section 3.2 but is only non-zero in a bounded area.

(bb-bounded potential function) For a vector vv that is positive on each dimension, we define the bb-bounded potential function Φ(v)\Phi(v) as follows: if ∥v∥1≤b\left\lVert v\right\rVert_{1}\leq b, we let Φ(v)≜∑k=1dvk\Phi(v)\triangleq\sum_{k=1}^{d}\sqrt{v_{k}}; otherwise Φ(v)≜0\Phi(v)\triangleq 0.

Next, we prove that this potential function decreases to less than ϵ0\sqrt{\epsilon_{0}} with high probability after some number of iterations.

where MM is upper bound on ∣g′′′(1+x′)∣|g^{\prime\prime\prime}(1+x^{\prime})| for x′x^{\prime} in to xx, which is less than 33 if ∣x∣≤12|x|\leq\frac{1}{2}. So in our theorem if Δ≜ηstxk(it)+η(b02+r)bx2∈[−12,12]\Delta\triangleq\eta s_{t}x^{({i_{t}})}_{k}+\eta(b_{0}^{2}+r)b_{x}^{2}\in[-\frac{1}{2},\frac{1}{2}], we have

where the first inequality if by Markov Inequaltiy, the second inequality is by the previous inequality, and the last inequality is because T=⌈32η2δ2log⁡(3dτρϵ0)⌉T=\lceil\frac{32}{\eta^{2}\delta^{2}}\log(\frac{3d\sqrt{\tau}}{\rho\sqrt{\epsilon_{0}}})\rceil. ∎

Now we are ready to prove Theorem 3.1 by combining the lemmas above.

Assume δ≥6×322bx3(b02+r)ρlog⁡(3dτρϵ0)\delta\geq 6\times 32^{2}b_{x}^{3}\frac{(b_{0}^{2}+r)}{\rho}\log(\frac{3d\sqrt{\tau}}{\rho\sqrt{\epsilon_{0}}}), then we only need η∈[6×32bx2ρδ2(b02+r)log⁡(3dτρϵ0),132δbx]\eta\in\left[\frac{6\times 32b_{x}^{2}}{\rho\delta^{2}}(b_{0}^{2}+r)\log(\frac{3d\sqrt{\tau}}{\rho\sqrt{\epsilon_{0}}}),\frac{1}{32\delta b_{x}}\right], and then all the above assumptions are satisfied.

where the first inequality is by update rule and the second is because δ>(b02+r)\delta>(b_{0}^{2}+r). Putting in the value of TT, we have

Appendix C Proof of Stage 1 (Theorem 3.3)

In this section, we will first prove several lemmas on which the proof of Theorem 3.3 is built upon. Then we will provide a proof of Theorem 3.3.

Similar to Section B, we first define a coupled version of each optimization trajectory such that it is bounded and behaves similarly to the original trajectory. The difference here is that since those dimensions in SS are expected to grow to larger than those dimensions not in SS, we use different boundaries for these two type of dimensions.

We first show that dimensions in SS don’t become much larger than the ground truth (which is 11 for these dimensions).

where the first inequality is by Lemma G.3, the second inequality is by taking the sum of denominator.

where the last inequality is by assumption. ∎

Then, we prove that those dimensions not in SS don’t become much larger than ground truth (which is for these dimensions).

Next, we prove that suppose all the dimensions (in SS or not) are never much larger than the ground truth, for each dimension in SS, there is some time such that this dimension is very close to the ground truth.

Next, we prove that for each dimension in SS, whenever it gets close to ground truth, it never becomes much smaller than the ground truth.

where the first inequality is by Lemma G.3, the second inequality is by taking the sum of denominator.

Similar to Section B, we define a potential function in a bounded area. Since now we only want those dimensions not in SS to decrease, the potential function is only defined on these dimensions.

Then we prove that the this potential function decreases to less than ϵ1\sqrt{\epsilon_{1}} after proper number of iterations.

Now we are ready to prove Theorem 3.3 by combining the lemmas above.

We show the assumptions in the previous lemmas are all satisfied. The assumption c128ηδ2bx2≥log⁡6rT2ρ\frac{c_{1}^{2}}{8\eta\delta^{2}b_{x}^{2}}\geq\log\frac{6rT^{2}}{\rho} in Lemma C.2 is satisfied by

where the first is by T≤1η2T\leq\frac{1}{\eta^{2}}, the second is by log⁡6rρ+4log⁡1η≤4log⁡6rρlog⁡1η\log\frac{6r}{\rho}+4\log\frac{1}{\eta}\leq 4\log\frac{6r}{\rho}\log\frac{1}{\eta}, and the last line is true because

The assumption Tδ2≥29c12log⁡6rρ\frac{T}{\delta^{2}}\geq\frac{2^{9}}{c_{1}^{2}}\log\frac{6r}{\rho} in Lemma C.4 is satisfied by

Appendix D Proof of Stage 2 (Theorem 3.4)

The conclusion of Theorem 3.3 still allows constant error in the support, namely, ∥vS−vS⋆∥∞≤0.1\left\lVert v_{S}-v^{\star}_{S}\right\rVert_{\infty}\leq 0.1. To prove that further annealing the learning rate will let the algorithm fully converge to v⋆v^{\star}, we leverage a “bootstrapping” type of proof, where we first prove that whenever the support dimensions of the iterate is already somewhat close to v⋆v^{\star}, it can always become even closer (by a factor of 1010) to ground truth, while at the same time the other dimensions don’t increase by too much. By repeatedly using this analysis, we can prove that eventually the iterates will be arbitrarily close to the ground truth. Formally, we index the number of rounds that we use this analysis to be s=2,3,⋯s=2,3,\cdots, and assume initially the iterate’s distance to v⋆v^{\star} at the end of Theorem 3.3 is ∥vS−vS⋆∥∞≤c1≜0.1\|v_{S}-v^{\star}_{S}\|_{\infty}\leq c_{1}\triangleq 0.1 and ∥vSˉ−vSˉ⋆∥1≤ϵ1\|v_{\bar{S}}-v^{\star}_{\bar{S}}\|_{1}\leq\epsilon_{1}. We prove the following theorem:

Let s≥2s\geq 2 be the index of the current round of bootstrapping. Let constant c0=1/10c_{0}=1/10. In the setting of Section 2.1, assume v[0]v^{[{0}]} is an initial parameter satisfying ∥vS[0]−vS⋆∥∞≤cs−1\|v^{[{0}]}_{S}-v^{\star}_{S}\|_{\infty}\leq c_{s-1} and ∥vSˉ[0]−vSˉ⋆∥1≤ϵs−1\|v^{[{0}]}_{\bar{S}}-v^{\star}_{\bar{S}}\|_{1}\leq\epsilon_{s-1}, where 0<ϵs−1≤cs−1≤c00<\epsilon_{s-1}\leq c_{s-1}\leq c_{0}. Given a failure rate ρ>0\rho>0. Assume n≥Θ~(r2)n\geq\widetilde{\Theta}(r^{2}). Suppose we run SGD with label noise with noise level δ≥0\delta\geq 0 and learning rate η≤Θ~(cs2/(δ2+r2))\eta\leq\widetilde{\Theta}({c_{s}^{2}}/{(\delta^{2}+r^{2})}) for T=log⁡(4/c0)/ηT=\log(4/c_{0})/\eta iterations. Then, with probability at least 1−ρ1-\rho over the randomness of the algorithm and data, there is ∥vS[T]−vS⋆∥∞≤cs≜cs−1c0\|v^{[{T}]}_{S}-v^{\star}_{S}\|_{\infty}\leq c_{s}\triangleq c_{s-1}c_{0} and ∥vSˉ[T]−vSˉ⋆∥1≤ϵs≜(4/c0)2cs−1ϵs−1.\|v^{[{T}]}_{\bar{S}}-v^{\star}_{\bar{S}}\|_{1}\leq\epsilon_{s}\triangleq(4/c_{0})^{2c_{s-1}}\epsilon_{s-1}. Here Θ~(⋅)\widetilde{\Theta}(\cdot) omits poly logarithmic dependency on ρ\rho.

In the rest of this section, we will first prove several lemmas on which the proof of Theorem D.1 is built upon. Then we will provide a proof of Theorem D.1.

To begin with, we define the following coupled version of trajectories that are bounded to a region close to the ground truth.

First, we show that with high probability, those dimensions in SS don’t get too far away from ground truth (which is 11 for these dimensions).

where the first inequality is by Lemma G.3, the second inequality is by taking the sum of denominator.

where the first inequality is by Lemma G.3, the second inequality is by taking the sum of denominator.

where the first inequality is by union bound, the second inequality is by previous results, the third inequality is by assumption of this lemma. ∎

The next step is to show that those dimensions not in SS remain close to ground truth .

here we are using ϵs>(1+ηcs−1)Tϵs−1\epsilon_{s}>(1+\eta c_{s-1})^{T}\epsilon_{s-1} by assumption and the last step is by assumption. ∎

Then we prove that when every dimension (in SS or not) remains close to the ground truth, each dimension in SS will become even closer (cs/2c_{s}/2-close) to ground truth at some time.

Here the first inequality is by assumption, the second inequality is because (ϵs2+4cs−1r)Cxbx2≤110cs(\epsilon_{s}^{2}+4c_{s-1}r)C_{x}b_{x}^{2}\leq\frac{1}{10}c_{s} and cs−1≤110c_{s-1}\leq\frac{1}{10}.

where the second inequality is because of assumption.

Next we show that once one dimension in SS become cs/2c_{s}/2-close to the ground truth (which is 11), this dimension’s distance to ground truth will never become larger than csc_{s} any more.

where the first inequality is by Lemma G.3, the second inequality is by taking the sum of denominator.

Finally, we finish the proof with a union bound:

where the first inequality is by union bound, the second inequality is by previous results, the third inequality is by assumption of this lemma. ∎

Now we are ready to combine these lemmas to prove Theorem D.1.

Set η\eta small enough such that cs28ηbx2(δ2+bx2(ϵs2+r)2)≥log⁡10rT2ρ\frac{c_{s}^{2}}{8\eta b_{x}^{2}(\delta^{2}+b_{x}^{2}(\epsilon_{s}^{2}+r)^{2})}\geq\log\frac{10rT^{2}}{\rho}. Obviously we only need η≤Θ~(cs2δ2+r2)\eta\leq\widetilde{\Theta}(\frac{c_{s}^{2}}{\delta^{2}+r^{2}}), where Θ~(⋅)\widetilde{\Theta}(\cdot) omits poly logarithmic dependency on dd and ρ\rho. Assume (ϵs2+4cs−1r)Cxbx2≤cs10(\epsilon_{s}^{2}+4c_{s-1}r)C_{x}b_{x}^{2}\leq\frac{c_{s}}{10}, which can be represented as Cx≤Θ~(1r)C_{x}\leq\widetilde{\Theta}(\frac{1}{r}). Recall T=1ηlog⁡4c0T=\frac{1}{\eta}\log\frac{4}{c_{0}}, ϵs=e2cs−1log⁡4c0ϵs−1\epsilon_{s}=e^{2c_{s-1}\log\frac{4}{c_{0}}}\epsilon_{s-1}.

We first show that the additional assumptions in the previous lemmas are satisfied. There is

The assumption ϵs>(1+ηcs−1)Tϵs−1\epsilon_{s}>(1+\eta c_{s-1})^{T}\epsilon_{s-1} in Lemma D.4 is therefore satisfied by definition of ϵs\epsilon_{s}. The assumption ((1+ηcs−1)−Tϵs−ϵs−1)22Tη2bx2(δ2+bx2(ϵs2+r)2)ϵs2≥log⁡5ρ\frac{((1+\eta c_{s-1})^{-T}\epsilon_{s}-\epsilon_{s-1})^{2}}{2T\eta^{2}b_{x}^{2}(\delta^{2}+b_{x}^{2}(\epsilon_{s}^{2}+r)^{2})\epsilon_{s}^{2}}\geq\log\frac{5}{\rho} in Lemma D.4 is satisfied because:

which is larger than log⁡5ρ\log\frac{5}{\rho} by the definition of η\eta. The assumption (1−η)T2cs−1≤cs2(1-\eta)^{T}2c_{s-1}\leq\frac{c_{s}}{2} in Lemma D.5 is satisfied because (1−η)T2cs−1≤(1e)log⁡4c02cs−1=cs2(1-\eta)^{T}2c_{s-1}\leq(\frac{1}{e})^{\log\frac{4}{c_{0}}}2c_{s-1}=\frac{c_{s}}{2}. All the other assumptions in Lemma D.3, Lemma D.4, Lemma D.5and Lemma D.6 naturally follows from the definition of η\eta and the requirement of CxC_{x}.

Appendix E Proof of Theorem 2.1

Starting from initialization τ⋅\mathds1\tau\cdot\mathds{1}, by Theorem 3.1, running SGD with label noise with noise level δ>O~(τ2d2ρ3)\delta>\widetilde{O}(\frac{\tau^{2}d^{2}}{\rho^{3}}) and η0=Θ~(1δ)\eta_{0}=\widetilde{\Theta}(\frac{1}{\delta}) for T0=Θ~(1)T_{0}=\widetilde{\Theta}(1) iterations gives us that with probability at least 0.990.99, ϵmin≤vk[T0]≤1d\epsilon_{min}\leq v^{[{T_{0}}]}_{k}\leq\frac{1}{d} where ϵmin=exp(−Θ~(1))\epsilon_{min}=exp(-\widetilde{\Theta}(1)). Now v[T0]v^{[{T_{0}}]} satisfies the initial condition of Theorem 3.3.

Recall the final target precision is ϵ\epsilon, set ϵ1=1403ϵ\epsilon_{1}=\frac{1}{40^{3}}\epsilon. By Theorem 3.3, with n≥Θ~(r2log⁡2(1/ϵ))n\geq\widetilde{\Theta}(r^{2}\log^{2}(1/\epsilon)) data, after running SGD with label noise with learning rate η1=Θ~(1δ2)\eta_{1}=\widetilde{\Theta}(\frac{1}{\delta^{2}}) for T1=Θ~(log⁡(1/ϵ)η1)T_{1}=\widetilde{\Theta}(\frac{\log(1/\epsilon)}{\eta_{1}}) iterations, with probability at least 0.990.99, there is,

So we have v[T0+T1]v^{[{T_{0}+T_{1}}]} satisfies the initial condition of Theorem D.1.

Finally, set ρ=0.01/⌈log⁡10(1/ϵ)⌉\rho=0.01/\lceil\log_{10}(1/\epsilon)\rceil, and apply Theorem D.1 for ns=⌈log⁡10(1/ϵ)⌉=Θ~(1)n_{s}=\lceil\log_{10}(1/\epsilon)\rceil=\widetilde{\Theta}(1) rounds. Since csc_{s} gets smaller by 1/101/10 for each round, the final cnsc_{n_{s}} satisfies 110ϵ≤cns≤ϵ\frac{1}{10}\epsilon\leq c_{n_{s}}\leq\epsilon. Since the requirement of η\eta for round ss is η≤Θ~(cs2δ2+r2)\eta\leq\widetilde{\Theta}(\frac{c_{s}^{2}}{\delta^{2}+r^{2}}), we can set η2≤Θ~(ϵ2δ2)\eta_{2}\leq\widetilde{\Theta}(\frac{\epsilon^{2}}{\delta^{2}}) to satisfy all the rounds at the same time. Set T2T_{2} be the total number of iterations in all of these rounds, obviously T2=Θ~(1η2)T_{2}=\widetilde{\Theta}(\frac{1}{\eta_{2}}). Notice that ϵs≤e∑s=2∞2cs−1log⁡4c0ϵ1≤403ϵ1=ϵ\epsilon_{s}\leq e^{\sum_{s=2}^{\infty}2c_{s-1}\log\frac{4}{c_{0}}}\epsilon_{1}\leq 40^{3}\epsilon_{1}=\epsilon, we have with probability at least 0.990.99,

The total failure rate of above three stages is 0.030.03, so with probability at least 0.970.97, there is ∥v[T0+T1+T2]−v⋆∥∞≤ϵ\left\lVert v^{[{T_{0}+T_{1}+T_{2}}]}-v^{\star}\right\rVert_{\infty}\leq\epsilon, which finishes the proof. ∎

Appendix F Proof of Theorem 2.2

We first prove that with high probability, there is always some element-wise positive vector that is orthogonal to the subspace spanned by data.

By Theorem 1 of Amelunxen et al. (2014), we only need to prove

where δ(⋅)\delta(\cdot) is the statistical dimension of a set. By equation (2.1) of Amelunxen et al. (2014), there is

To calculate δ(C)\delta(C), we use Proposition 2.4 from Amelunxen et al. (2014),

where gg is a standard random vector, ΠC\Pi_{C} is projection of gg to CC, the expectation is over gg. Since CC is the set of all points with element-wise positive coordinate, ΠC(g)\Pi_{C}(g) is simply setting all the negative dimension of gg to and keep the positive ones. Therefore,

Now we use this lemma to prove Theorem 2.2.

Let X⊥X^{\perp} be the subspace that is orthogonal to the subspace XX spanned by data. Since data is random, with probability 11 the random subspace XX is of nn dimension. Therefore, according to the previous lemma, with probability at least 0.9990.999, there is X⊥∩C≠{0}X^{\perp}\cap C\neq\{0\}, where CC is the coordinate-wise positive cone. Let μ∈X⊥\mu\in X^{\perp} be such a vector such that μi>0\mu_{i}>0 for ∀i∈[d]\forall i\in[d], and we scale it such that ∥μ∥2=1\left\lVert\mu\right\rVert_{2}=1. We can construct the following orthonormal matrix

such that span{a1,⋯an}=Xspan\{a^{1},\cdots a^{n}\}=X and an+1=μa^{n+1}=\mu. Consider the following transformation

We can lower bound the partition function with

Here the inequality is because of the definition of cc.

Appendix G Helper Lemmas

Suppose nn random data points are sampled i.i.d: ∀i∈[n],x(i)∼N(0,Id×d)\forall i\in[n],x^{({i})}\sim\mathcal{N}(0,\mathcal{I}_{d\times d}) Then, with probability at least 1−ρ1-\rho, for every i∈[n]i\in[n] there is

By Gaussian tail bound, there is Pr⁡(∣xk(i)∣>bx)≤2e−bx22\Pr\left(|x^{({i})}_{k}|>b_{x}\right)\leq 2e^{-\frac{b_{x}^{2}}{2}}. So by union bound we have Pr⁡(max⁡i,k∣xk(i)∣>bx)≤2nde−bx22\Pr\left(\max_{i,k}|x^{({i})}_{k}|>b_{x}\right)\leq 2nde^{-\frac{b_{x}^{2}}{2}}. Let bx=2log⁡2ndρb_{x}=\sqrt{2\log\frac{2nd}{\rho}} we complete the proof. ∎

Suppose nn random data points are sampled i.i.d: ∀i∈[n],x(i)∼N(0,Id×d)\forall i\in[n],x^{({i})}\sim\mathcal{N}(0,\mathcal{I}_{d\times d}). Then, when n>24log⁡dρn>24\log\frac{d}{\rho}, with probability at least 1−ρ1-\rho, for every k∈[d]k\in[d] there is

Therefore, when n≥24log⁡dρn\geq 24\log\frac{d}{\rho}, by union bound we finish complete the proof. ∎

where A[0:T]∈[c3,c]A^{[{0:T}]}\in\left[\frac{c}{3},c\right] means for any 0≤t<T0\leq t<T, A[t]∈[c3,c]A^{[{t}]}\in\left[\frac{c}{3},c\right].

We only need to consider when A[0]≤c2A^{[{0}]}\leq\frac{c}{2}. Let A^[t]\hat{A}^{[{t}]} be the following coupling of A[t]A^{[{t}]}: starting from A^[0]=A[0]\hat{A}^{[{0}]}=A^{[{0}]}, for each time t<Tt<T, if A[t]=A[t+1]=⋯=A[T]A^{[{t}]}=A^{[{t+1}]}=\cdots=A^{[{T}]} or there is t′≤tt^{\prime}\leq t such that A[t′]∉[c3,c]A^{[{t^{\prime}}]}\notin[\frac{c}{3},c], we let A^[t+1]≜(1−γ)A^[t+1]\hat{A}^{[{t+1}]}\triangleq(1-\gamma)\hat{A}^{[{t+1}]}; otherwise A^[t+1]=A[t+1]\hat{A}^{[{t+1}]}=A^{[{t+1}]}. Intuitively, whenever A[t]A^{[{t}]} stops updating or exceeds proper range, we only times A^[t]\hat{A}^{[{t}]} by 1−γ1-\gamma afterwards, otherwise we let it be the same as A[t]A^{[{t}]}. Notice that if the event in Equation 179 happens, there has to be A^[T]=A[T]\hat{A}^{[{T}]}=A^{[{T}]} (otherwise A[t]A^{[{t}]} stops updating or exceeds range at some time, contradicting the event). So we only need to bound Pr⁡(A^[T]>c)\Pr\left(\hat{A}^{[{T}]}>c\right).

where ¬E[0:T]\neg E_{[0:T]} means for any 0≤t<T0\leq t<T, EtE_{t} doesn’t happen.

Let A^[t]\hat{A}^{[{t}]} be the following coupling of A[t]A^{[{t}]}: starting from A^[0]=A[0]\hat{A}^{[{0}]}=A^{[{0}]}, for each time t<Tt<T, if exists t′≤tt^{\prime}\leq tsuch that Et′E_{t^{\prime}} happens or A[t′]∉[c1,c2]A^{[{t^{\prime}}]}\notin[c_{1},c_{2}], we let A^[t+1]≜(1−γ)A^[t+1]\hat{A}^{[{t+1}]}\triangleq(1-\gamma)\hat{A}^{[{t+1}]}; otherwise A^[t+1]=A[t+1]\hat{A}^{[{t+1}]}=A^{[{t+1}]}. Intuitively, whenever A[t]A^{[{t}]} exceeds proper range, we only times A^[t]\hat{A}^{[{t}]} by 1−γ1-\gamma afterwards, otherwise we let it be the same as A[t]A^{[{t}]}. Notice that if the event in Equation 185 happens, there has to be A^[T]=A[T]\hat{A}^{[{T}]}=A^{[{T}]} (otherwise EtE_{t} happens sometimes or A[t]∉[c1,c2]A^{[{t}]}\notin[c_{1},c_{2}], contradicting the event). So we only need to bound Pr⁡(A^[T]>c1)\Pr\left(\hat{A}^{[{T}]}>c_{1}\right).