On the Inherent Regularization Effects of Noise Injection During Training
Oussama Dhifallah, Yue M. Lu
I Introduction
A popular approach to improving the generalization performance is to randomly perturb the network during the training process . Such random perturbations are widely used as an implicit regularization to the learning problem. One way that random perturbation has been used as a regularization is by injecting it to the input data before starting the learning process . In this paper, we provide a theoretical analysis of such learning procedure on a random feature model under Gaussian input and perturbation vectors. Our analysis particularly shows that Gaussian noise injection introduces a weighted ridge regularization, asymptotically.
where denotes the regularization parameter. Note that the problem in (3) is a standard feature formulation when . Then, we refer to (3) as the noisy formulation, when and the standard formulation, otherwise.
I-B Performance Measure
Here, the expectation is taken over the distribution of the unobserved test vector and the (random) functions and . We take for regression problems (e.g. is the identity function) and for binary classification problems (e.g. is the sign function). In this paper, we assume that the test data is generated according to the same training model introduced in (1). Furthermore, we measure the performance of the formulation in (3) on the training data via the training error defined as follows
Note that the training error is the optimal cost value of our learning formulation in (3) without regularization.
I-C Contributions
The contribution of this paper can be summarized as follows:
Our first contribution is a correlated Gaussian equivalence conjecture (cGEC). Our conjecture considers Gaussian input and perturbation vectors. It states that the learning formulation in (3) is asymptotically equivalent to a simpler optimization problem that can be formulated by replacing the non–linear vectors
with linear vectors with the following form
where , , and , and are independent standard Gaussian random variables. Specifically, the cGEC states that the performance of the formulation:
is asymptotically equivalent to the performance of the noisy formulation. This conjecture is valid in the asymptotic limit (i.e. , and grow to infinity at finite ratios). More details about this equivalence is provided in Section II. We refer to ((C.1)) as the Gaussian formulation. The cGEC is verified by presenting multiple simulations in different scenarios.
The second contribution is a precise characterization of the training and generalization errors of the noise injection procedure formulated in (3) for Gaussian input and perturbation vectors. Our analysis is based on the cGEC and valid in the high–dimensional setting (i.e. , and grow to infinity at finite ratios). Our predictions show that the asymptotic limit of the training and generalization errors can be precisely predicted after solving a scalar deterministic formulation. The theoretical predictions are obtained using an extended version of the convex Gaussian min-max theorem (CGMT) which we refer to as the multivariate CGMT. The new version of the CGMT accounts for the correlation introduced by injecting Gaussian noise during the learning process. Our asymptotic results hold for a general family of feature matrices, activation functions and generative models satisfying (1).
Finally, we provide a precise asymptotic characterization of the training and generalization errors corresponding to (7). We refer to this formulation as the limiting formulation.
I-D Related Work
There has been significant interest in precisely characterizing the performance of the random feature model in recent literature . The ridge regression formulation, (i.e. is the identity function and in (3)) is precisely analyzed in where the feature matrix is Gaussian. In a subsequent work, uses the CGMT to accurately analyze the maximum-margin linear classifier in the overparametrized regime. The work in precisely characterizes the performance of the standard formulation, i.e. , for general families of feature matrices and convex loss functions. The results presented in are derived using the non–rigorous replica method . The predictions in are rigiourously verified in using the CGMT. All the previous work consider an unperturbed formulation of the random feature model. In this paper, we study the effects of adding random noise during training. Our analysis is based on an extended version of the CGMT referred to as the multivariate CGMT. The CGMT is first used in and further developed in . It extends a Gaussian theorem first introduced in . It relies on (strong) convexity properties to prove an equivalence between two Gaussian processes. It has been successfully applied in the analysis of convex regression and convex classification formulations.
There has been significant interest in studying the effects of random noise injection during training (see e.g. ). In particular, prior literature shows that Gaussian noise injection during training improves the robustness of the network. Moreover, several recent papers show that such perturbation technique introduces some sort of regularization to the loss function. In particular, the work in shows that minimizing the worst–case loss introduces a gradient norm regularization.
Another popular perturbation approach used in regularizing learning models is the dropout method . It consists of perturbing the learning problem by randomly dropping units from the network during the training procedure. In this paper, we precisely analyze the Gaussian noise injection method and we leave the analysis of the dropout technique for future work. Our empirical studies suggest that the dropout method has a better convergence rate as compared to the noisy formulation. Moreover, they suggest that both methods have comparable generalization performance.
I-E Organization
The rest of this paper is organized as follows. Section II provides more details about the cGEC. Section III lay out the technical assumptions under which our results are derived. Section IV provides an asymptotic characterization of the noisy formulation. Our theoretical predictions hold for a general family of feature matrices, activation functions and generative models as in (1). We provide additional simulation examples for special cases of our results in Section V. The detailed proof of our theoretical predictions is provided in Section VI. Section VII concludes the paper. The appendix in Section VIII provides additional technical details.
II Gaussian Equivalence Conjecture with an Intuitive Explanation
In the standard setting, i.e. , the cGEC is equivalent to the uniform Gaussian equivalence theorem (uGET), observed and used in many earlier papers . Recently, the work in provided a rigorous proof of the uGET. Specifically, the work in proves a special case of cGEC when , the feature matrix is Gaussian and the activation functions have bounded first three derivatives. However, similar to previous literature , we conjecture that the cGEC is valid under more general settings. We believe that the analysis in can be extended to prove the cGEC and we leave the full technical details for future work.
III Technical Assumptions
In this paper, we precisely characterize the noisy formulation under the following technical assumptions.
Our theoretical predictions are valid in the high-dimensional setting where , and grow to infinity at finite ratios.
Moreover, we consider the following assumption to ensure that the generalization error defined in (5) concentrates in the high–dimensional limit.
The data generating function introduced in (1) is independent of the input vectors, the noise vectors and the feature matrix. Moreover, the following conditions are satisfied.
For any compact interval , there exists a function such that
In addition to the assumptions in Section II, we consider the following regularity conditions for the activation function.
In addition to the assumptions discussed in Section II, we consider a family of feature matrices that satisfy the following assumption to guarantee that the Gaussian formulation converges to a deterministic problem.
We assume that is a Haar-distributed random unitary matrix.
Based on Assumption 2, we also have the following property as grows to infinity. Our theoretical predictions use the weak convergence in Assumption 5 to fully characterize the noisy formulation.
IV Precise Analysis of the Noisy Formulation
In this section, we asymptotically analyze the noise injection procedure introduced in (3). Specifically, we provide a precise asymptotic characterization of the training and generalization errors corresponding to (3).
Before stating our technical results, we start with few definitions. Define the following two deterministic functions
Furthermore, define the following four-dimensional deterministic optimization problem
Now, we summarize our main theoretical results in the following theorem.
Suppose that the assumptions in Section III are all satisfied and the cGEC introduced in Section II is valid. Then, the training error converges in probability as follows
where is the optimal cost of the deterministic problem in (IV-A). Here, the function is defined as follows
Moreover, the generalization error defined in (5) converges in probability to a deterministic function as follows
where and have a bivariate Gaussian distribution with mean vector and covariance matrix , defined as follows
where the constants , , and are defined as follows
Here, is given in (11), and . Moreover, denotes the optimal solution of the problem defined in (IV-A). Also, we treat , and as constants independent of when we compute the derivative of the function .
IV-B Noise Regularization Effects
Suppose that the assumptions in Theorem 1 are all satisfied. Moreover, define the following formulation
Here, the regularization matrix is defined as follows
and the new activation function satisfies the properties
where , and , and are independent standard Gaussian random variables. Also, define and as the training and generalization errors corresponding to the problem in (14). Then, for any , we have the following convergence results
where and are the training and generalization errors corresponding to the noisy formulation.
Here, the constant satisfies if and otherwise, and is defined in Section IV-A. Moreover, the functions and are defined as follows
Here, the functions and are defined as follows
Suppose that the assumptions in Theorem 1 are all satisfied. Then, the training error corresponding to the limiting formulation in (14) converges in probability as follows
where is the optimal cost of the deterministic problem in (18). Here, the function is defined as follows
Moreover, the generalization error corresponding to the limiting formulation in (14) converges in probability to a deterministic function as follows
where and have a bivariate Gaussian distribution with mean vector and covariance matrix , defined as follows
where the constants , , and are defined as follows
Here, is given in (19). Moreover, denotes the optimal solution of the problem defined in (18). Also, we treat , and as constants independent of when we compute the derivative of the function .
V Simulation Results
In this part, we provide additional simulation examples to verify our asymptotic results stated in Theorem 1, Theorem 2 and Lemma 1. Our predictions stated in Section IV are valid for a general family of feature matrices, activation functions and generative models satisfying (1). We specialize our general results to popular learning models.
In particular, we consider two families of feature matrices. We consider feature matrices that can be expressed as , where: (a) The scalar satisfies and the matrix has independent standard Gaussian components. We refer to this matrix as the Gaussian feature matrix. (b) The scalar satisfies and the matrix has independent uniformly distributed components in . We refer to this matrix as the uniform feature matrix.
Also, we consider two popular regression and classification models. For the regression model, we assume that is the ReLu function and is the identity function. For the classification model, we assume that is the sign function with possible sign flip with probability and is the sign function.
V-B Limiting Performance
Our fourth simulation considers the non–linear regression model. Figure 4 compares the numerical predictions and our predictions stated in Theorem 2 and Lemma 1.
V-C Impact of the Noise Variance
In this simulation example, we study the effects of the noise variance on the generalization error corresponding to the noisy formulation and the limiting formulation. Here, we consider the binary classification model. Figure 5 compares the numerical predictions and our theoretical predictions stated in Theorem 1, Theorem 2 and Lemma 1.
V-D Alternative Formulations
Now, we consider the binary classification model, where . We compare the performance of the noisy formulation given in (3) and the dropout technique. In this paper, we consider the following version of the dropout method
In Figure 6, we compare the performance of the noisy formulation and the dropout formulation for four different activation functions.
V-D2 Convergence Behavior
In the last simulation example, we study the convergence behavior of the noisy and dropout formulations for different activation functions. Figure 7 first shows that our theoretical predictions stated in Theorem 1, Theorem 2 and Lemma 1 match with the actual performance of the noisy formulation and its limiting formulation. This gives another empirical verification of our predictions.
VI Technical Details: Analysis of the Noisy Formulation
In this part, we provide a rigorous proof of the predictions stated in Theorem 1, Theorem 2 and Lemma 1. To this end, we suppose that the assumptions considered in Sections II and III are all satisfied. We derive our theoretical results using an extended version of the CGMT framework which we refer to as the multivariate CGMT.
To derive the asymptotic results stated in Theorem 1, Theorem 2 and Lemma 1, we use an extended version of the CGMT framework introduced in . The CGMT is used to accurately analyze a generally hard primary formulation by introducing an asymptotically equivalent auxiliary optimization problem. In this paper, we consider primary optimization problems of the following form
There exists a constant such that the optimal cost converges in probability to as goes to .
There exists a constant such that the optimal cost converges in probability to as goes to , for any fixed .
There exists a positive constant such that , for any fixed .
Then, the following convergence in probability holds
for any fixed , where and are the optimal cost and the optimal solution of the multivariate PO formulation in (22).
The above theorem allows us to analyze the generally easy multivariate AO formulation given in (23) to infer asymptotic properties of the generally hard multivariate PO formulation in (22). The proof of Theorem 3 follows by showing that the formulation in (23) and the following formulation
Combining this result with the assumptions of Theorem 3 completes the proof. We omit the detailed proof since it is similar to the analysis in and . We refer to Theorem 3 as the multivariate convex Gaussian min-max theorem (multivariate CGMT).
Next, we use the multivariate CGMT to rigorously prove the technical results provided in Theorem 1, Theorem 2 and Lemma 1. Our approach is to reformulate the Gaussian formulation in ((C.1)) in the form of the multivariate PO problem given in (22). Then, use the multivariate CGMT framework to show that the formulation in (3) is asymptotically equivalent to an easier formulation that can be written in the form of the multivariate AO problem given in (23). The next step is to show that the multivariate AO formulation converges in probability to a deterministic problem that can be expressed in the form of the formulation given in (IV-A).
VI-B Asymptotic Analysis of the Noisy Formulation
In this part, we provide the technical steps to obtain the theoretical results stated in Theorem 1. Specifically, we use the multivariate CGMT framework to precisely analyze the noisy formulation introduced in (3). Next, we suppose that the assumptions introduced in Section III are all satisfied.
Based on the cGEC introduced in Section II, it suffices to precisely analyze the Gaussian formulation in the large system limit. Then, it suffices to analyze the following formulation
Note that the formulation in (VI-B1) is strongly convex with a strong convexity parameter equals to . This means that it has a unique optimal solution. Note that the multivariate CGMT framework assumes that the feasibility sets of the multivariate PO formulation in (22) are compact. The following lemma shows that this assumption is satisfied by our formulation.
Assume that is the unique optimal solution of the formulation given in (VI-B1). Then, there exist two positive constants and such that
where the second asymptotic result is valid only when .
Given that the loss function in (VI-B1) is proper and strongly convex, one can use the results in [16, Lemma 1] to prove Lemma 2. This asymptotic result follows using Assumptions 3, 4, and 5 and [34, Theorem 2.1]. Combining this result with the theoretical result stated in [16, Proposition 1], the Gaussian formulation is asymptotically equivalent to the following formulation
Assume that is the unique optimal solution of the formulation given in (28). Then, there exists a positive constants such that
This result can also be proved using similar steps as in [16, Lemma 2]. Specifically, we can use the result in [35, Proposition 11.3] to show the compactness of the optimal dual vector . The results in Lemma 2 and Lemma 3 show that the Gaussian formulation is asymptotically equivalent to the following formulation
Next, we focus on precisely analyzing the formulation in (30). Now, note that the label vector depend on the Gaussian matrix . Then, we decompose as follows
The above results show that it suffices to precisely analyze the formulation given in (33). Moreover, note that (33) can be equivalently formulated as follows
We can notice that the optimization problem formulated in (35) is in the form of the multivariate PO problem given in (22). Therefore, applying the multivariate CGMT, the corresponding multivariate AO problem can be expressed as follows
VI-B2 Simplifying the Multivariate Auxiliary Formulation
Now, we are ready to further simplify the multivariate AO formulation. The first step is to fix and and solve the formulation in (37) over the direction of the independent vectors and . Specifically, based on the result in Lemma 3, the formulation given in (37) can be simplified as follows
Note that the difference between the cost functions of the formulations in (38) and (39) are terms that converge in probability to zero. Before showing the asymptotic equivalence between the formulations in (38) and (39), we provide important convexity properties of the optimization problem in (39) as given in the following lemma.
Define as the cost function of the problem in (39). Then, is strongly convex in the vector where is a strong convexity parameter. Moreover, it is strongly concave in the variables and in the feasibility sets where is a strong concavity parameter.
The strong convexity can be proved by observing that the cost function of (39) is a positive sum of convex and strongly convex functions in terms of for fixed feasible and . Moreover, note that the term can be replaced with without changing the statistics of our formulation, where and are two independent Gaussian vectors. Then, one can see that the cost function of (39) is strongly concave in the variables and where is a strong concavity parameter. ∎
Lemma 4 provides important convexity properties of the optimization problem formulated in (39). These properties are essential to prove the equivalence between (38) and (39) as stated in the following lemma.
Define and as the sets of optimal solutions of the minimization problems in (38) and (39), respectively. Moreover, let and be the optimal objective values of the optimization problems in (38) and (39), respectively. Then, the following convergence in probability holds
The detailed proof of Lemma 5 is deferred to Appendix VIII-A. Lemma 5 particularly shows that the optimization problems in (38) and (39) are asymptotically equivalent. Then, it suffices to precisely analyze the formulation in (39). To solve over the primal vector , we introduce two independent scalar optimization variables and where they both solve optimization problems of the following form
Here, note that the optimal solution of the problem in (41) can be expressed as . Next, we use the identity in (41) to transform the non-smooth square roots in the cost function of the formulation given in (39) to smooth terms. This is an essential step to solve over the primal vector . Specifically, based on the result in Lemma 2, our multivariate AO formulation given in (39) can be expressed as follows
There exist positive constants independent of , , , and , such that the following convergence in probability holds
where and are the optimal solutions of the formulation in (LABEL:ana_fm7).
The detailed proof of Lemma 6 is provided in Appendix VIII-B. Based on Lemmas 4 and 6, the optimization problem given in (LABEL:ana_fm7) is asymptotically equivalent to the following problem
where and are two positive constants selected to satisfy the asymptotic result in Lemma 2. Here, we also drop terms that converge in probability to zero. One way to justify this step is using similar analysis as in Lemma 5. Note that the convexity results in Lemma 4 are still satisfied by the formulation in (LABEL:ana_fm8). Specifically, the cost function in (LABEL:ana_fm8) is jointly strongly convex in the minimization variables and jointly strongly concave in the maximization variables.
where . After computing the derivative of the function and setting it to zero, the optimal solution of the unconstrained version of minimizing the function can be expressed as follows
Similar to the analysis in Lemmas 2, 3 and 6, one can show that the norm of the optimal vector is bounded. This means that is an optimal solution of the formulation in (LABEL:ana_fm8). Then, the optimal loss function can be expressed as follows
Based on the SVD decomposition of the matrix , it can be checked that the last term in the multivariate AO formulation given in (LABEL:ana_fm8) is zero. Then, the formulation given in (LABEL:ana_fm8) can be expressed as follows
where and . Here, denotes the vector of all one with size and the functions , and depend on the optimization variables and are given by
Note that we simplified the multivariate AO formulation given in (36) to a scalar optimization problem as given in (51). Then, it remains to study the asymptotic properties of the scalar formulation in (51). We refer to this problem as the scalar formulation.
VI-B3 Asymptotic Analysis of the Scalar Formulation
In this part, we study the asymptotic properties of the scalar formulation in (51) corresponding to the multivariate AO problem. Based on Assumption 5 and the result in [37, Proposition 3], the random variable converges pointwisely in probability to the scalar defined as follows
where and . Then, using the theoretical results in and based on Assumption 5, the random function converges pointwisely in probability as follows
where the random function is defined as follows
Here, represents the trace. Additionally, the matrix is given as and the matrix has the following expression . Using again [37, Proposition 3] and Assumption 5, we can also see that the random function converges in probability to the function defined as follows
Now, it remains to study the asymptotic properties of the random function . Based on the block matrix inversion lemma, it can be checked that the random function satisfies the following
Here, the random function is defined as follows
Using the matrix inversion lemma, it can be checked that the random function converges in probability to the function defined as follows
where the function is defined in Section IV. Additionally, using the weak law of large numbers (WLLN), we have the following convergence property
is the converging limit of the cost function the scalar formulation in (51), where the function is given by . Before continuing our analysis, we summarize convexity properties of the cost function of (61) in the following lemma.
Define as the cost function of the problem in (61) defined in the feasibility set. Then, is jointly strongly convex in the variables for fixed feasible . Moreover, it is jointly strongly concave in the variables for fixed feasible .
This result can be proved by observing that the strong convexity parameters in Lemma 4 are independent of and that the operations performed after Lemma 4 preserve the convexity properties. Another property of the scalar formulation is that its set of optimal solutions concentrates around the set of optimal solutions of the formulation in (61) as summarized in the following lemma.
Define , , , and as the optimal solutions of the scalar formulation given in (51). Additionally, define , , , and as the optimal solutions of the deterministic optimization problem given in (61). Therefore, the following convergence in probability holds
Moreover, define and as the optimal solutions of the minimization problems of (51) and (61) over in the feasibility set defined in (27). Then, we also have the following convergence in probability
The convergence result in (LABEL:sop_conv) follows using [38, Theorem 2.1]. We can see that all the assumptions in [38, Theorem 2.1] are satisfied by the formulations in (51) and (61). Moreover, the result in (63) follows using [16, Proposition 2]. The detailed proof is omitted since it follows similar ideas as in Proposition and Proposition in . Based on , we can further simplify the formulation in (61) by solving the minimization problem over the variables and . Note that the optimal satisfies if and otherwise. Furthermore, the optimal denoted by can be expressed as follows
Observe that the optimal solutions, and , satisfy the boundedness constraints. Moreover, note that our results are valid for any bounds that satisfy the results in Lemmas 2, 3 and 6. Now that we obtained the asymptotic scalar optimization problem, it remains to study the asymptotic behavior of the training and generalization errors.
VI-B4 Asymptotic Analysis of the Training and Generalization Errors
First, the generalization error is given by
where is an unseen data sample and is the optimal solution of the noisy formulation. Based on the uniform Gaussian equivalence theorem (uGET), observed and proved in many earlier papers , the asymptotic properties of the generalization error are equivalent to the asymptotic properties of defined as follows
Given the optimal solutions and , the random variables and have a bivariate Gaussian distribution with mean vector and covariance matrix given by
Define the random variables , and as follows
where and the vector is defined as . Then, the covariance matrix can be expressed as follows
Hence, to study the asymptotic properties of the generalization error, it suffices to study the asymptotic properties of , , and . The following lemma summarizes the asymptotic properties of our primal formulation given in (27).
The random variables , , and converge in probability as follows
where and are optimal solutions of the deterministic scalar formulation in (61). Moreover, the function and are defined in Theorem 1.
Note that the analysis in Section VI-B2 shows that the scalar formulation given in (51) is a simplified version of the multivariate AO formulation given in (36). Define the random variable as the optimal solution of the minimization of the problem (36) over in the feasibility set defined in (27). Moreover, define the random variables , and as follows
where is the optimal solution of the multivariate AO formulation given in (36). Based on the decomposition in (45), note that satisfies the following expression
where is defined in (49) and is the optimal solution of minimizing the function introduced in (47). Substituting the expression of given in (49), performing the same analysis as in Section VI-B3 and using the convergence result in (LABEL:sop_conv), it can be shown that the random quantity converges in probability to defined in (1). Additionally, observe that can be expressed as follows
Define the function , where the random functions and are defined in (52) and where and . Here, are defined in Lemma 8. Given the expression of in (49), we can see that can be expressed as follows
where the optimal solutions are treated as constants independent of . Performing the same analysis as in Section VI-B3 and using the convergence result in (LABEL:sop_conv), it can be shown that the random quantity converges in probability as follows
where is the optimal solution of (61) and the function is defined in Theorem 1. Given that the scalar formulation given in (51) is a simplified version of the multivariate AO formulation and based on Lemma 8, we obtain the following asymptotic properties
where and are the optimal solutions of the deterministic scalar formulation in (61). Following a similar analysis as in , we can show that the assumptions in Theorem 3 are all satisfied. The main idea is to define the set introduced in Theorem 3 as
Then, use the strong convexity properties of the formulation in (LABEL:ana_fm8) to prove that the assumptions in Theorem 3 are satisfied. This means that , , and defined in (65) concentrates around the same values as , , and defined in (68). ∎
Now, to show the convergence of the generalization error in Theorem 1, it suffices to show that is a continuous function in , , and . Based on Assumption 3, the functions and are square integrable over Gaussian distributions. Moreover, the optimal solutions , , and are bounded. Based on Assumption 3 and the continuity under integral sign property , the continuity of follows. These properties lead to the convergence result given in (20) in Theorem 1. Based on the analysis in Lemma 9 and Theorem 3, the optimal cost value of the noisy formulation converges in probability to the optimal cost value of the deterministic formulation in (61). Combining this result with the asymptotic property stated in (72) shows the convergence of the training error stated in Theorem 1.
VI-C Large Number of Noise Injections
where and . Here, the functions and are the same as the ones provided in Section IV. Furthermore, the functions and are given as follows
Now, we focus on analyzing the formulation in (76) when the number of noise injections grows to infinity. The following lemma summarizes our main technical results.
The convergence result in Lemma 10 follows using [38, Theorem 2.1]. Specifically, we use the strong convexity property in Lemma 7. Also, we use the pointwise convergence of the cost functions based on Assumptions 4 and 5 and the dominated convergence theorem. This shows that all the assumptions in [38, Theorem 2.1] are satisfied by the formulation in (76) and its asymptotic formulation mentioned in Lemma 10. Next, we refer to the asymptotic limit obtained in Lemma 10 as the asymptotic deterministic formulation.
Performing a similar analysis as in Sections VI-B1, VI-B2 and VI-B3, it can be checked that the asymptotic deterministic formulation obtained in Lemma 10 is the asymptotic limit of the following formulation
Here, the regularization matrix is defined as follows
and the new activation function satisfies the following properties
We can see that the optimal solution of the max-min problem in (VI-C), denoted by and , satisfies . This trick can be used in the CGMT framework to show that the asymptotic limit of the formulation in (77) can also be expressed as follows
where the constant satisfies if and otherwise. Moreover, is defined as follows
Here, the functions , and can be expressed as follows
The property in (VI-C) can also be used to show that the optimal solution and of the asymptotic deterministic formulation obtained in Lemma 10 satisfy . This then leads to the formulation in (LABEL:scprob1_asy_pf).
Now, define the asymptotic training and generalization errors stated in Theorem 1 as and , respectively. Then, the asymptotic training error converges as follows
where is the optimal cost of the deterministic problem in (LABEL:scprob1_asy_pf). Here, the function is defined as follows
Moreover, the asymptotic generalization error converges as follows
where and have a bivariate Gaussian distribution with mean vector and covariance matrix , defined as follows
where the constants , , and are defined as follows
Here, satisfies the expression in (82). Moreover, and denote the optimal solution of the problem defined in (LABEL:scprob1_asy_pf). Also, we treat , and as constants independent of when we compute the derivative of the function . The results in (84) and (85) can be proved using a similar analysis as in Section VI-B4. Performing a similar analysis as in Sections VI-B1, VI-B2, VI-B3 and VI-B4, it can be checked that the training and generalization errors corresponding to the formulation in (77) converge in probability to the limiting functions obtained in (84) and (85), respectively.
Note that the analysis in this Section is valid for any bounds that satisfy the theoretical results in Lemmas 2, 3 and 6. Moreover, observe that the cost functions of both deterministic problems in (61) and (LABEL:scprob1_asy_pf) diverge when , , or grows to infinity or when or goes to . This means that the solution of the unconstrained version of the formulations in (61) and (LABEL:scprob1_asy_pf) should satisfy the feasibility constraints in (61) and (LABEL:scprob1_asy_pf). This means that the optimization problems in (61) and (LABEL:scprob1_asy_pf) can be equivalently formulated as in (IV-A) and (18). This completes the proof of Theorem 1, Theorem 2 and Lemma 1.
VII Conclusion
In this paper, we precisely analyzed a random perturbation method used to regularize machine learning problems. Specifically, we provided an accurate characterization of the training and generalization errors corresponding to the noisy feature formulation. Our predictions are based on a correlated Gaussian equivalence conjecture and an extended version of the CGMT, referred to as the multivariate CGMT. Moreover, our analysis shows that Gaussian noise injection in the input data has the same effects of a weighted ridge regularization when the number of noise samples grows to infinity. Additionally, it provides the explicit dependence of the introduced regularization on the feature matrix, the activation function and the noise variance. Simulation results validate our predictions and show that inserting noise during training moves the interpolation threshold and can mitigate the double descent phenomenon in the generalization error.
VIII Appendix: Additional Technical Details
In this part, we provide additional technical details to prove the results stated in Theorem 1, Theorem 2 and Lemma 1. Specifically, we provide a rigorous proof of the theoretical results stated in Lemma 5 and Lemma 6.
The optimization problems given in (38) and (39) share the same feasibility set which we define as follows
Define as the cost function of the optimization problem given in (38) and define as the cost function of the optimization problem given in (39). Note that the following inequality is true for any and . Therefore, we have the following inequality
where we perform the change of variable and . Here, is defined as follows
Given that the set is bounded and based on Assumptions 4 and 5, and can be bounded by a constant independent of the optimization variables. Combining this with the weak law of large numbers, one can see that the right hand side of (88) converges in probability to zero. Then, we obtain the following convergence in probability
Moreover, the following two properties are true for bounded functions
Given that the functions and are bounded in the set and the result in (91), we get the following convergence in probability
where and are the optimal objective values of the optimization problems given in (38) and (39), respectively. Now, define and as the set of optimal solutions of the minimization problems in (38) and (39), respectively. Next, the objective is to show that
Moreover, define the functions and as follows
Note that the set is the set of minimizing of the first function in (95). Based on Lemma 4, the function is strongly convex in the feasibility set where is a strong convexity parameter. This means that it has a unique minimizer denoted by . Now, assume that is a minimizer of the function . Moreover, assume that there exists independent of such that the following convergence holds true
Given the strong convexity of the function , we have the following inequality
where this is valid for any and feasible and . Take , and . Based on the fact that is a minimizer of the function , there exists independent of such that
Next, we use the convergence in probability established in (91) and (93) to show that the result in (98) produces a contradiction. To this end, note that the following inequality is always valid
which means that the following inequality is always true
Observe that the inequality derived in (100) implies that the following inequality holds true
Now, based on (91), (92) and (93), the right hand side of (100), converges in probability to zero. This means that the following convergence in probability holds
This means that the following convergence in probability is true
VIII-B Proof of Lemma 6: Additional Compactness
We start our prove by analyzing the feasibility sets of the primal formulation in (28). Note that the optimal solution of the formulation given in (28) can be expressed in closed form as follows
with probability going to as grows to . Therefore, there exists a positive constant such that
where denotes the minimum eigenvalue. Now, observe that
where . Given that the random quantities , and have independent standard Gaussian components, we have the following
Moreover, using the weak law of large numbers and Assumptions 3 and 5, we obtain the following asymptotic results
Combining this with Assumptions 3, 4 and 5, we obtain the following inequality
valid with probability going to as grows to infinity. This shows that there exists a positive constant such that
with probability going to as grows to infinity. Then, we can apply the multivariate CGMT framework with the additional constraint in (113). Based on this result and Assumption 4, there exists positive constants , , and , such that the following convergence in probability holds
where and are the optimal solutions of the formulation in (LABEL:ana_fm7). This completes the proof of Lemma 6.