기본 정보
- 저자
- DOI
- 10.1016/j.neunet.2024.106983
- 저널
- Neural Networks
- 발행년도
- 2024
- 발행기관
- Elsevier BV
- 피인용수
- 1
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.neunet.2024.106983
- 토픽
- High-Velocity Impact and Material Behavior
- OpenAlex ID
- W4405024727
평가 내용
- 관련도
- 사업분야
- 엔지니어링 플라스틱 · (22) POM(폴리아세탈)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > POM(폴리아세탈)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
초록이 없습니다.
본문 81,086자
본문 펼치기
섹션 본문 159문단 · 38,276자
(제목 없음)
1Stability analysis is an essential aspect of studying the generalization ability of deep learning, as it involves deriving generalization bounds for stochastic gradient descent-based training algorithms.Adversarial training is the most widely used defense against adversarial example attacks.However, previous generalization bounds for adversarial training have not included information regarding the data distribution.In this paper, we fill this gap by providing generalization bounds for stochastic gradient descent-based adversarial training that incorporate data distribution information.We utilize the concepts of on-average stability and high-order approximate Lipschitz conditions to examine how changes in data distribution and adversarial budget can affect robust generalization gaps.Our derived generalization bounds for both convex and nonconvex losses are at least as good as the uniform stabilitybased counterparts which do not include data distribution information.Furthermore, our findings demonstrate how distribution shifts from data poisoning attacks can impact robust generalization.
Introduction
2Deep learning models acquire knowledge from training data and generalize to unseen data.Generalization plays a key role in successful machine learning algorithms.On the other hand, a neural network can be easily fooled by adversarial examples (Szegedy et al. 2013;Goodfellow, Shlens, and Szegedy 2014).Though adversarial training (Madry et al. 2017) can largely alleviate the adversarial vulnerability of networks, the corresponding robust generalization is more difficult and robust overfitting (Rice, Wong, and Kolter 2020) harms the robust performance to a very large degree.To understand the generalization ability of adversarial training, an important research direction is to give a theoretical analysis of its generalization bounds.
3Algorithmic stability (Bousquet and Elisseeff 2002;Shalev-Shwartz et al. 2010) can derive the generalization bounds.In standard training, the uniform stability of stochastic gradient descent (SGD) was studied by Hardt, Recht, and Singer (2016), assuming the loss function is L-Lipschitz and β-gradient Lipschitz.Bassily et al. (2020) extended the results to non-smooth convex losses.Kuzborskij and Lampert (2018) employed on-average stability and provided data-dependent generalization bounds.In adversarial training, the stability of minimax problems is discussed by Farnia and Ozdaglar (2021), assuming the inner maximization problem is strongly concave.Xing, Song, and Cheng (2021) considered the uniform stability of adversarial training on non-smooth losses.Under the η-approximate β-gradient Lipschitz assumption, Xiao et al. (2022) derived generalization bounds for SGD in adversarial training, which involved the adversarial training budget.
4It is generally believed that the difficulty of robust generalization involves three aspects including model capacity, training algorithm, and data distribution.The capacity of a strictly robust classifier on a well-separated distribution should be exponential in the data dimension (Li et al. 2022).The previous generalization bounds based on uniform stability analyses (Xing, Song, and Cheng 2021;Xiao et al. 2022) of adversarial training algorithms did not contain information about data distribution.
5In this paper, we analyze the on-average stability of SGDbased adversarial training and derive data-dependent generalization bounds to illustrate robust generalization, that is, the generalization bounds contain information of data distribution.For the convex adversarial losses, assuming the losses are Lipschitz and approximately gradient Lipschitz, we give a generalization bound dependent on the adversarial population risk at the initialization point and the variance of stochastic gradients over the distribution.Assuming the losses are approximately Hessian Lipschitz in addition, we provide a generalization bound for the non-convex adversarial losses.Besides the variance of stochastic gradients over the distribution, this bound depends on the curvature (the norm of the Hessian matrix) at the initialization point and the population risk at the output parameters.Our bounds grow with the adversarial training budget and cover the standard training setting when the budget becomes zero.Our bounds for both convex and non-convex losses are no worse than the uniform stability-based counterparts but capture the information about the data distribution and the initialization point.
6An additional advantage of our generalization bound over the previous ones is that it describes the effects of distribution shifts caused by data poisoning attacks and hence interprets the shrinkage of generalization gaps in adversarial training under stability attacks since the poisoned distributions can reduce the adversarial population risk over the poisoned data.
7The rest of the paper is organized as follows.In Section 3, we revisit the relationship between stability and robust generalization for adversarial training.In Section 4, we provide our main results.In Section 5, we present experimental results to verify the theoretical results.All proofs are deferred to Appendix A.
Related Works
8Robust Generalization.Machine learning models are highly vulnerable to adversarial examples (Szegedy et al. 2013;Biggio et al. 2013;Nguyen, Yosinski, and Clune 2015;Moosavi-Dezfooli, Fawzi, and Frossard 2016), where crafted and imperceptible perturbations to input data can easily fool a well-trained classifier.A widely adopted illustration attributes adversarial examples to the presence of non-robust features (Ilyas et al. 2019).Among numerous proposed defenses against adversarial attacks, adversarial training (Goodfellow, Shlens, and Szegedy 2014;Shaham, Yamada, and Negahban 2015;Madry et al. 2017) has become a major approach to training a robust deep neural network and can achieve optimal robust accuracy if certain loss functions are used (Gao, Liu, and Yu 2022).
9The generalization in adversarial training is much more tricky than that in standard training and requires more data and larger models (Schmidt et al. 2018;Gowal et al. 2021;Li et al. 2022;Wang et al. 2023).The robust overfitting (Rice, Wong, and Kolter 2020) phenomenon harms the robustness in a long training procedure.In recent years, different methods (Chen et al. 2020;Wu, Xia, and Wang 2020;Yu et al. 2022a;Chen et al. 2022) have been proposed to alleviate robust overfitting.
10Algorithmic Stability.Modern stability analysis goes back to the work of Bousquet and Elisseeff (2002).Notions of stability fall into two categories: data-free and datadependent ones.The first category is usually called uniform stability.Generalization bounds of SGD have been analyzed using uniform stability under Lipschitz and smoothness conditions by Hardt, Recht, and Singer (2016).Bassily et al. (2020) extended the results to the non-smooth convex case.Farnia and Ozdaglar (2021) studied the role of optimization algorithm in the generalization performance of the minimax model.The uniform stability of adversarial training has been reported by Xing, Song, and Cheng (2021); Xiao et al. (2022).The data-dependent stability (Kuzborskij and Lampert 2018) employing the notion of on-average stability (Shalev-Shwartz et al. 2010) focused on the stability of the SGD-based standard training under the data distribution given an initialization point.
11Data Poisoning.As defensive strategies against unauthorized exploitation of personal data, availability attacks (Huang et al. 2021;Fowl et al. 2021;Feng, Cai, and Zhou 2019;Liu et al. 2021;Ren et al. 2022) perturb the training data imperceptibly such that the trained models learn nothing useful and become futile.Adversarial training can mitigate such availability attacks (Tao et al. 2021).Stability attacks (Tao et al. 2022;Fu et al. 2022;Wang, Wang, and Wang 2021) have been proposed to come through adversarial training and result in a large degradation in the robust test performance.The shortcut interpretation (Yu et al. 2022b) suggests that stability poisoning attacks root "easy-to-learn" features in the poisoned training data.However, these features do not appear in clean data.Our generalization bound can be used to interpret the shrinkage of generalization gaps in adversarial training under stability attacks, since it contains information of data distribution.
Preliminaries
12In this section, we revisit the robust generalization gap and the on-average stability analysis.Adversarial Training.As a major defense approach, adversarial training (Madry et al. 2017) refers to a bi-level optimization, of which the inner maximization iteratively searches for the strongest perturbation inside a L p -norm ball and the outer minimization optimizes the model via the loss on the perturbed data.Formally, given an adversarial budget ǫ, the adversarial training uses the adversarial loss:
Robust Generalization Gap
13Here the p-norm is for the image part of z.When ǫ = 0, we have h = l and adversarial training reduces to standard training.The adversarial population risk and adversarial empirical risk are respectively defined as
14We denote the SGD algorithm of adversarial training by A, which inputs a training set S and outputs the parameter A(S) of a network through minimizing the adversarial empirical risk R S .
15Robust Generalization Gap.Let θ * , θ be the optimal solutions of learning over D and S, namely minimizing R D (θ) and R S (θ), respectively.Then, for the output θ = A(S) of algorithm A, the excess risk can be decomposed as
16To control the excess risk, we need to control the robust generalization gap ε gen and the robust optimization gap ε opt .The robust optimization gap in adversarial training has been studied a lot theoretically (Nemirovski et al. 2009;Xiao et al. 2022).Also, empirical results (Madry et al. 2017;Zhang et al. 2019;Wang et al. 2019;Wu, Xia, and Wang 2020) present narrow robust optimization gaps.
17On the other hand, robust overfitting (Rice, Wong, and Kolter 2020) is a dominant phenomenon in adversarial training that hinders deep neural networks from attaining high robust performance.Hence, we focus on the robust generalization gap ε gen in this paper.
On-Average Stability
18In order to analyze the data-dependent stability, we employ the notion of on-average stability.Given a data set
19where S ∼ D n , z ∼ D, and ε can depend on the data distribution D and the initialization point of A.
20The on-average stability considers the expected difference between the losses of algorithm outputs on S and its replaceone-example version for all replacement index i.The onaverage stability derives the upper bound of the generalization gap as follows.
21Theorem 2 (Kuzborskij and Lampert (2018)).If A is ε-onaverage stable, then the robust generalization gap of A is bounded by ε:
Theoretical Results
22In this section, we give the data-dependent stability analysis of adversarial training for both convex and non-convex adversarial losses.We provide proof sketches of our results and the full proofs are placed in Appendix A.
Lipschitz Conditions
23Stability analysis always relies on some Lipschitz conditions.The loss function is assumed to be L-Lipschitz and βgradient Lipschitz, i.e. β-smooth in the work (Hardt, Recht, and Singer 2016).For adversarial training, we need the adversarial loss h(θ, z) to satisfy some Lipschitz conditions.It is not reasonable to directly endow h with Lipschitz conditions, since h(θ, z) takes the maximum of l(θ, z ′ ) with z ′ ∈ B ǫ (z).Instead, we assume that the original loss function l(θ, z) satisfies the following Lipschitz conditions.Let || • || p be the p-norm of vectors or matrices and we write || • || instead of || • || 2 for brevity.In this paper, ∇ is the abbreviation for ∇ θ .
24Assumption 3. The loss l is L-Lipschitz in θ:
25Assumption 4. The loss l is L θ -gradient Lipschitz in θ and L z -gradient Lipschitz in z:
26Assumption 5.The loss l is H θ -Hessian Lipschitz in θ and H z -Hessian Lipschitz in z:
27Remark 6.For commonly used losses and ReLU-based networks, Assumption 3 is valid (Gao, Liu, and Yu 2022).The gradient Lipschitz conditions (Lipschitz smoothness) are often used in robustness analysis (Sinha et al. 2017;Liu et al. 2020;Xiao et al. 2022).Lipschitz Hessians are used in the analysis of SGD (Ge et al. 2015;Kuzborskij and Lampert 2018).Assumptions 4 and 5 are valid for networks based on smooth activation functions such as Sigmoid and smooth loss functions such as cross-entropy (CE) and mean squared error (MSE); related works on ReLU-based networks were given in (Allen-Zhu, Li, and Song 2019;Du et al. 2019).
28Note that the adversarial vulnerability of deep networks is rooted in the explosion of the Lipschitz constant of l(θ, z) in z.However, the zero-order Lipschitz constant in θ can be directly inherited by h(θ, z) (Liu et al. 2020).Additional Lipschitz conditions in z imply approximate gradient and Hessian Lipschitz conditions in θ which are needed for stability analysis.
29Definition 7. Let η, β, ν, ρ > 0 and h(θ) be a second-order differentiable function.
30Lemma 8.The adversarial loss h(θ, z) inherits (approximate) Lipschitz properties from the original loss l(θ, z).
311.Under Assumption 3, h is L-Lipschitz with respect to θ:
32gradient Lipschitz with respect to θ:
333. Under Assumption 5, h is 2ǫH z -approximately H θ -Hessian Lipschitz with respect to θ:
Preliminaries for Analysis
34We consider the SGD without replacement, that is, given a training set S ∼ D n , algorithm A chooses a random permutation π over [n] = {1, • • • , n} and cycles through S in the order determined by the permutation.If not mentioned otherwise, our analyses focus on the on-average stability of adversarial training in a single pass.Suppose the update of A starts from an initialization point θ 1 and for t ∈ [n],
35where the permutation π depends on A and α t is the t-th step size.We update T steps in a single pass for T ∈ [n] and analyze the on-average stability of the algorithm output A(S) = θ T +1 .We assume the variance of stochastic gradients in A obey
36The variance σ describes the distance between the stochastic gradient and the optimal gradient.Indeed, σ will change if the distribution D changes.
Convex Adversarial Losses
37For convex adversarial losses, our analysis requires the approximate gradient Lipschitz assumption.Theorem 9. Assume the adversarial loss h(θ, z) is nonnegative, convex in θ, L-Lipschitz and η-approximately βgradient Lipschitz with respect to θ.Let the step sizes
38where θ 1 is the initialization point.
39Proof sketch.Given a data set
40t be the t-th outputs of A(S) and A(S i,z ), respectively.Denote the distance of two trajectories at step
41According to whether the algorithm meets the different sample with index i at step t, we derive the following recursion formula involving the adversarial budget η = 2ǫL z ,
42By repeatedly applying Jensen's inequality, both expectations ES[
43] and prove the theorem.Remark 10.By Theorem 2, Theorem 9 gives an upper bound ε(D, θ 1 ) for the robust generalization gap of algorithm A, similarly for Theorems 12 and 13.
44When the step size is
45β and the adversarial budget ǫ = 0, this bound reduces to the result in (Kuzborskij and Lampert 2018).Now we fix step sizes to be constant and bound the adversarial loss gap between the initialization point and the optima via the Lipschitz condition.
46Comparison.We compare our result with existing results for adversarial training with convex adversarial losses in a single pass.For clarity, we take constant step size α and use the O notation.
47• Result of Xing, Song, and Cheng (2021):
48• Result of Xiao et al. (2022):
49• Our result:
50The smoothness of h is not required for the result of (Xing, Song, and Cheng 2021).The bound (5) remains unchanged under changes in the adversarial training budget ǫ.Thus this result does not capture the empirical observations that the robust overfitting phenomenon deteriorates as ǫ grows.
51Approximate smoothness of h is required for the result of (Xiao et al. 2022).The bound (6) takes into account ǫ, i.e. η = 2ǫL z by the second statement in Lemma 8.However, this bound stays unchanged whenever the distribution shifts or the initialization point changes.Detailed discussion is shown in Appendix B.
52Our bound grows with the adversarial training budget ǫ as well.In general case, ( 6) and ( 7) are both O(T ).When
53) which is the case for standard training.In the case that η = 0 and σ is negligible, our bound is dominated by the term L √ αrT n and becomes tighter than O(T ) in Equ. ( 5) and ( 6).Since r relies on θ 1 and D, our result implies that a properly selected initialization point matters for robust generalization, and a potential distribution shift caused by some poisoning attack may affect the robust generalization.
Non-Convex Adversarial Losses
54For non-convex adversarial losses, our analysis requires both approximate gradient Lipschitz and approximate Hessian Lipschitz assumptions.
55Theorem 12. Suppose the adversarial loss h(θ, z) is nonnegative, L-Lipschitz, η-approximately β-gradient Lipschitz and ν-approximately ρ-Hessian Lipschitz with respect to θ.Let the step sizes
56where
57Proof sketch.By Lemma 16 (Lemma 5 in (Kuzborskij and Lampert 2018)),
58The key is to recursively bound ∆ T +1 (S, z, i).When the algorithm meets the different sample with index i at step t with probability1 n , we have
59Otherwise, the second statement in Lemma 15 (from (Xiao et al. 2022)) implies
60Additionally, in this case, Lemma 19 starts from Taylor expansion with integral remainder and exploits the approximate Hessian Lipschitz condition, deriving another bound as
61Let ψ t (S, z, i) = EA[min{ξt(S, z, i, A), β}] and we have
62Assigning proper step sizes α t and leveraging Lemma 20, the on-average stability is given as
63Then we take the optimal t 0 and obtain the theorem.From Equ. ( 8), we see that smaller γ yields higher stability.Note that γ is controlled by η and ν, the adversarial population risk at the initialization point, and the average Hessian norm of adversarial loss at the initialization point over the distribution.
64Since SGD in a single pass is considered, we take T ≈ n and obtain that ε(D, θ 1 ) = O(n − 1 1+cγ ) which can be improved to a more optimistic result O(n −1 ) when the adversarial empirical risk R S (A(S)) becomes negligible according to Kuzborskij and Lampert (2018).Due to η = 2ǫL z and ν = 2ǫH z , a large adversarial budget ǫ makes the algorithm unstable and setting ǫ = 0 derives the result for standard training.The gradient and Hessian Lipschitz constants L z and H z amplify the effect of ǫ and this explains why adversarial training appears to be more tricky than standard training and requires more training data (Schmidt et al. 2018;Gowal et al. 2021;Wang et al. 2023).
65The initialization point is another factor that affects robust generalization.Intuitively, adversarial training prefers an initialization point naturally with low adversarial population risk which is close to the global optima.Furthermore, our result suggests that a proper selection of the initialization point should better have low curvature over the distribution.
66Comparison.Assume that the adversarial loss h(θ, z) is bounded in [0, B] and α t = c t with c ≤ 1 β .The result 1 of Xiao et al. (2022) for the non-convex case is
67Observe that ( 8) and ( 9) have similar forms.Nevertheless, (9) remains unchanged under data poisoning attacks.Our result replaces β with γ which captures much more information dependent on the initialization point, the loss function, and data distribution.Besides η, the approximation ν emphasizes the effect of ǫ again in our bound.Moreover, γ and c are bounded by β and 1 β respectively in (8).During the training, the dataset size n is fixed and the term involving the training step T dominates the bound in Equation ( 8), namely smaller γ means smaller (E S,A [R D (A(S))]T ) cγ 1+cγ , and then a tighter bound.Thus, our result is no worse than (9).
68Multiple-pass Case.Note that Equ.(8) holds within one pass through the training set.If we loosen some datadependency requirements, say γ, the on-average stability analysis provides a result for the multiple-pass case.Theorem 13 (Multiple-pass Case).Assume the adversarial loss h(θ, z) is non-negative, convex in θ, L-Lipschitz and ηapproximately β-gradient Lipschitz with respect to θ.Let the step sizes
69Both ( 8) and ( 10) contain the data-dependent factor ES,A [R D (A(S))] which can be much smaller than B in (9).
Poisoned Generalization Gap
70To have a closer look at how changes in data distribution can affect robust generalization, we consider the distribution shift caused by a poisoning attack.A data poisoning attack P maps a distribution D to the poisoned distribution P # D.
Experiments
71In this section, experiments are used to demonstrate the datadependent stability of adversarial training and the advantages of our theoretical results.We adopt L ∞ norm as constraints of imperceptible perturbations.Experimental setups and details are presented in Appendix C.
Robust Generalization.
72We adversarially train ResNet-18 (He et al. 2016) on CIFAR-10, CIFAR-100 (Krizhevsky, Hinton et al. 2009), SVHN (Netzer et al. 2011), and Tiny-ImageNet (Le and Yang 2015).Figures 1(a) and 1(b) show that the robust generalization is more difficult than the standard generalization, i.e. ǫ = 0 as shown by Equ. ( 4
Poisoned Robust Generalization.
73A poisoning attack is called a stability attack if the attack aims at destroying the robustness of a model, trained on the poisoned training set P(S) ∼ P # D n , on the original distribution D, i.e.R D (A P (S)).Stability attacks employed in this paper include the error-minimizing noise (EM) (Huang et al. 2021), the robust error-minimizing noise (REM) (Fu et al. 2022), the adversarial poisoning (ADV) (Fowl et al. 2021), the hypocritical perturbation (HYP) (Tao et al. 2022) and the class-wise random noise (RAN).We poison both the training and test sets to simulate the poisoned distribution P # D. Detailed poisoning settings are given in Appendix C. Our bounds reflect the influence of data poisoning on the poisoned robust generalization.First, effective stability at- 8) and ( 10).We further study the robust generalization under the HYP attack with various intensities, i.e. the poisoning budget ǫ ′ , on CIFAR-100.A larger budget leads to a stronger stability attack.Figure 4(a) and 4(b) show that a stronger stability attack results in a lower robust test accuracy as well as a narrower robust generalization gap on the poisoned data distribution, which confirms the principle stated by our results again.
Conclusion
74Motivated by the need to analyze the generalization ability for adversarial training under data poisoning attacks, we present a data-dependent stability analysis of adversarial training.Precisely, under certain reasonable smoothness conditions on the loss functions, we prove that SGD-based adversarial training is an ε(D, θ 1 )-on-average stable randomized algorithm, and thus give an upper bound ε(D, θ 1 ) for the robust generalization gap of the training algorithm.
75The bound ε(D, θ 1 ) depends on the data distribution and the initial point of the algorithm and can be used to explain the changes in the poisoned robust generalization gaps of adversarial training.
76Limitations and future works Our theoretical results provide the first attempt to analyze the influence of distribution shifts on robust generalization bounds, but only partial solutions are given.More refined generalization bounds for adversarial training to capture more relationships between robust generalization and distribution are a future research problem.Furthermore, alternative forms of Assumptions 4 and 5 for ReLU-based networks need to be further studied.
A Proofs
77A.1 Proof of Lemma 8
78Proof. 1. Assume that h(θ 1 , z) = l(θ 1 , z 1 ) and h(θ 2 , z) = l(θ 2 , z 2 ).We have
A.2 Proof of Theorem 9
79We first prove several lemmas.A core technique in stability analysis is to give the expansion properties of update rules.
Definition 14 (Expansion). The update rule G
80If the original loss l(θ, z) is β-gradient Lipschitz in θ, then the update rule in standard training is 1-expansive in the convex case and (1 + αβ)-expansive in the non-convex case (Hardt, Recht, and Singer 2016).If the adversarial loss h(θ, z) is ηapproximately β-gradient Lipschitz in θ, then the expansion coefficients in the update rule G A remain unchanged in both convex and non-convex cases, while the approximation parameter η leads to an additional term αη in each update (Xiao et al. 2022).Lemma 15 ( Xiao et al. (2022)).Suppose the adversarial loss h(θ, z) is η-approximately β-gradient Lipschitz in θ.
Assume in addition that
81t be the t-th outputs of A(S) and A(S i,z ) respectively.Denote the distance of two trajectories at step t by δ t (S, z, i, A) = ||θ t − θ ′ t ||.As both two updates start from θ 1 , we have δ 1 (S, z, i, A) = 0. Since the on-average stability in Definition 1 takes supremum over the index i ∈ [n], the stability analysis aims at providing a unified bound for all i ∈ [n].Thus, we will not point out the selection of i in later statements for brevity.
82We restate Lemma 5 in (Kuzborskij and Lampert 2018) on which the data-dependent stability analysis relies.Note that this lemma holds for SGD without replacement in both a single pass and multiple passes through the training set.The multiple-pass case cycles through S repeatedly in a fixed order determined by A.
83Lemma 16.Assume the adversarial loss h(θ, z) is non-negative and L-Lipschitz in θ.Then,
84Due to the change of notations, we repeat the proof here.
85Proof.By the Lipschitz condition and non-negativeness of h, we have
86Take expectation w.r.t.A and we have
87Note that the first time that A selects the different example is
88Recall that a realization of A is a permutation π of [n].Thus, with a fixed π, taking over S ∼ D n equals to taking over both
89As a consequence, we have
90Combining Equation (12) ( 13) and ( 15), we get the statement.
91Lemma 17. Suppose the adversarial loss h(θ, z) is L-Lipschitz and η-approximately β-gradient Lipschitz in θ.Then, in a single pass such that T ∈ [n], we have that
92Proof.From the first statement in Lemma 15, we have
93Take expectation w.r.t.S and rearrange terms,
94Sum the above over t = 1, • • • , T and get the statement.
95Lemma 18. Suppose the adversarial loss h(θ, z) is L-Lipschitz and η-approximately β-gradient Lipschitz with respect to θ, and the step sizes α t ≤ 1/β.Assume the variance of stochastic gradients in A obeys for all t ∈ [T ]
96We have
97Proof.Repeatedly applying Jensen's inequality, we have
98The penultimate inequality is by Lemma 17.
99We now prove Theorem 9.
100At step t, A selects the example π(t) = i with probability 1/n and π(t) = i with probability 1 − 1/n.When π(t) = i, by the third statement in Lemma 15 , we have
101)||.Take expectation w.r.t.A and we have ∆ t+1 (S, z, i)
102Thus, we have
103Here we take t 0 = 1.By Lemma 18, we have
A.3 Proof of Corollary 11
104Proof.
A.4 Proof of Theorem 12
105We first prove several lemmas.
106Lemma 19.Suppose the adversarial loss h(θ, z) is ν-approximately ρ-Hessian Lipschitz with respect to θ.At step t with π(t) = i, we have
107For brevity, we denote h t (θ) = h(θ, z π(t) ).By Taylor expansion with integral remainder, we have
108Note that
109Therefore,
110Taking α k = c k and by Lemma 18, we have
111The penultimate inequality is due to t k=1 1 k ≤ 1 + ln t, and
112Lemma 20 (Bernstein-type inequality (Kuzborskij and Lampert 2018)).Let Z be a zero-mean real-valued random variable such that |Z| ≤ b and E[Z 2 ] ≤ σ 2 .Then for all |c| ≤ 1 2b , we have that E[e cZ ] ≤ e c 2 σ 2 .We now prove Theorem 12.
113When π(t) = i with probability 1 n , we have
114When π(t) = i with probability 1 − 1 n , we have
115, by the second statement in Lemma 15 and
116and we have
117Note that ∆ t0 (S, z, i) = 0 and α t = c t .We have ∆ T +1 (S, z, i)
118It follows that
119Note that
120Assuming in addition that c ≤ 1 β , we have ES,z[ξk(S, z, i, A)] is bounded by γ by Lemma 19.We have that
121Thus,
122Let q = 2cγ and r = ES,A[RD(θT +1 )].Setting
123minimizes Equation ( 16) and we have
124A.5 Proof of Theorem 13
125When π(t) = i with probability 1 n , we have
126, by the second statement in Lemma 15.We have
B Discussions of uniform stability-based counterparts
127Uniform stability analysis employs the following notion: Definition 21 (Uniform stability).A randomized algorithm A is ε-uniformly stable if for all S, S ′ ∈ D n such that S and S ′ differ in at most one element, we have sup
128Thus uniform stability bounds the expected difference between the losses of algorithm outputs on two adjacent training sets.The uniform stability is distribution-free since S and S ′ are independent of D. A generalization bound was given as follows.
129Theorem 22 (Hardt, Recht, and Singer 2016).If A is ε-uniformly stable, then the robust generalization gap of A is bounded by ε:
130The following theorem gives an upper bound of the robust generalization gap.Theorem 23 (Xiao et al. 2022).Let h(θ, z) be convex, L-Lipschitz and η-approximately β-gradient Lipschitz in θ.Let the step sizes α t = α ≤ 1 β .Then the generalization gap of algorithm A using the training set of size n after T steps of SGD update has an upper bound
131where η is a parameter proportional to the adversarial training budget ǫ and the approximate gradient Lipschitz condition will be defined in Lemma 8.
B.1 Data poisoning
132A poisoned algorithm A P uses the gradient on a poisoned datum ∇h(θ, P(z)) instead of ∇h(θ, z) which may result in totally different update trajectories dependent on P. Nevertheless, the expansion properties of G AP are not affected by the attack P at all.Indeed, due to
133if G A is ι-approximately κ-expansive, the poisoned update rule G AP is ι-approximately κ-expansive as well.Therefore, uniform stability analysis provides the same upper bound of ||A P (S) − A P (S ′ )||.Thus, Theorem 23 implies the following proposition.proposition 24.The poisoned generalization gap ε P based on the uniform stability analysis remains unchanged, i.e.
134Similar consequences also hold for the results in (Hardt, Recht, and Singer 2016;Xing, Song, and Cheng 2021), and the results for non-convex and strongly-convex cases in (Xiao et al. 2022).
135Proof.By Theorem 22 and the Lipschitz assumption, it suffices to prove
136Assume the trajectories of A P (S) and A
137the update rule G AP is αη-approximately 1-expansive as well due to the Definition 14.Note that at step t the algorithm A P selects the example that S and S ′ differ with probability 1 n .In this case, δ t+1 ≤ δ t + 2αL.
138In the other case, δ t+1 ≤ δ t + αη.
It follows that
139Therefore, Equation ( 18) follows.
C Experiments Setups
140We conduct experiments by adversarially training a ResNet-18 (He et al. 2016) on common datasets and their poisoned counterparts under different data poisoning attacks.
C.1 Data Augmentation
141For CIFAR-10 and CIFAR-100, we perform RandomHorizontalFlip,RandomCrop(32,4)
C.2 Adversarial Training
142We use the cross entropy loss as the original loss l.We adopt the 10-step projection gradient descent (PGD-10) (Madry et al. 2017) to generate adversarial examples.The adversarial budget is ǫ and the step size is ǫ/4 in L ∞ -norm.We report robust accuracy as the ratio of correctly adversarial examples generated by PGD-10, and the robust generalization gap as the gap between robust training accuracy and robust test accuracy.
143We use the SGD optimizer in PyTorch and set the momentum and weight decay to be 0.9 and 5 × 10 −4 respectively.For all four data sets, the batch sizes of data loaders are set to 128.In Figure 1(b) and 1(a), to illustrate the robust overfitting phenomenon, we run AT for 200 epochs with an initial learning rate of 0.1 that decays by a factor of 0.1 at the 100 and 150 epochs.In other experiments, we adopt the constant learning rate of 0.01.We run AT for 50 epochs on SVHN and for 200 epochs on CIFAR-10, CIFAR-100 and Tiny-ImageNet.
C.3 Poisoning Details
144We introduce different poisoning attacks used in our experiments on CIFAR-10 and CIFAR-100.In order to simulate the poisoned distribution P # D, we generate the poisoned training set and test set simultaneously.
145EM (error minimizing noise).(Huang et al. 2021) proposed a min-min bi-level optimization to generate error-minimizing noises on the training set.Such noises prevent deep learning models from learning information about the clean distribution from the poisoned training data.Formally:
146where ǫ ′ is the poisoning budget.The trained noise generator f θ generates an unlearnable example (x em , y) with respect to the clean datum (x, y) such that x em = x + arg min ||δi||≤ǫ ′ l(f θ (x + δ), y).PGD-10 is employed for solving the minimization problem.It is worth noting that in our experiments, we combine the training set and test set together to train noise generator f θ in order to obtain the poisoned training set and poisoned test set coming from the same shifted distribution.
147REM (robust error minimizing noise).(Fu et al. 2022) further proposed robust minimizing noise in order to protect data from adversarial training, which also can degrade the test robustness.Formally:
148where ǫ ′ and ρ a are poisoning budget and adversarial perturbation budget.ρ a controls the protection level against adversarial training.For REM, we set ρ a = 2/255.The trained noise generator f θ generates a robust unlearnable example (x rem , y) with respect to the clean datum (x, y) such that x rem = x + arg min ||δ u i ||≤ǫ ′ max ||δ a i ||≤ρa l(f θ (x + δ u + δ a ), y).It is worth noting that in our experiments, we combine the training set and test set together to train noise generator f θ in order to obtain the poisoned training set and poisoned test set coming from the same shifted distribution.
149Following (Fu et al. 2022), the source model is trained with SGD for 5000 iterations, with batch size of 128, momentum of 0.9, weight decay of 5 × 10 −4 , an initial learning rate of 0.1, and a learning rate scheduler that decays the learning rate by a factor of 0.1 every 2000 iterations.The inner minimization and maximization use PGD-10 to approximate.For EOT, the data transformation T is set as the data augmentation of the corresponding data set, and the repeated sampling number for expectation estimation is set as 5.
150ADV (adversarial perturbation).(Tao et al. 2021) and (Fowl et al. 2021) both proposed that adding adversarial perturbations to the training data is effective to degrade the test performance of a naturally trained model.In our experiments, we follow their class-targeted adversarial attack.Let K be the number of data classes.We choose fixed target permutation t = (y + 1) mod K according to source label y.Then add a small adversarial perturbation to x in order to force a naturally trained model to classify it as the wrong label t.Formally:
151where f θ is a classifier naturally trained on the combination of the training set and test set, and ǫ ′ is the poisoning budget.For the minimization problem, we adopt PGD-100 which is enough to generate strong poisons.HYP (hypocritical perturbation).(Tao et al. 2022) proposed adding hypocritical perturbation on training data to degrade the test robustness of an adversarially trained model.Before generating the poisons, a crafting model is adversarially trained with a crafting budget ǫ = 2/255 for 10 epochs.Then generate hypocritical noises within the perturbation budget ǫ ′ which can mislead the learner by reinforcing the non-robust features.Formally:
152x hyp = arg min ||δ||≤ǫ ′ l(f θ (x + δ), y), where f θ is the crafting model.Like in ADV, we choose PGD-100 to solve the minimization problem.It is worth mentioning that we trained the crafting model on the combination of the training set and test set.RAN (class-wise random perturbation).In our experiment, we generate a random perturbation p y ∈ B(0, ǫ ′ ) for each label y according to the uniform distribution.Then we have poisoned pairs (x + p y , y).It is important that we choose the same class-wise random perturbation for the training set and test set.
Let
153D be a data distribution over an image classification data space D = [0, 1] d × [m], where [0, 1] d contains the image space and [m] = {1, . . ., m} is the label set.A data set S of n samples is drawn i.i.d.from D and is denoted by S ∼ D n .Given a network with parameter θ and a non-negative loss function l(θ, z) : R k × D → R ≥0 , the standard training minimizes the empirical risk Ez∈S l(θ, z) with SGD.
154Poisoning is usually constrained by a given poisoning budget ǫ ′ such that sup z∈D ||P(z) − z|| p ≤ ǫ ′ .The poisoned version of an algorithm A is denoted by A P which inputs S ∼ D n and outputs A P (S) = A(P(S)) by minimizing R P(S) (θ).The robust generalization gap of A P (S) over the poisoned distributionP # D is called the poisoned generalization gap, denoted by ε P .That is, | E S,AP [R P # D (A P (S)) − R P(S) (A P (S))]| ≤ ε P .(11)Influence of poisoning.Our data-dependent bounds in Equ.(3) and (8) embody the influence of poisoning.When the distribution D is poisoned by P, the bound ε(D, θ 1 ) becomes ε(P # D, θ 1 ).The expected curvature at the initialization point becomes Ez[||∇ 2 h(θ 1 , P(z))||].The initial population risk gap become R P # D (θ 1 ) − R P # D (θ * P ), in which θ * P is optimal with respect to R P # D .Besides, the variance σ also depends on the poisoning and becomes σ P .Additionally, the adversarial population risk ES,A P [R P # D (A P (S))] in the poisoned counterparts of Equ.(8) and Equ.(10) can be significantly influenced by the poisoning.
Figure 2 :
155Figure 2: The robust overfitting phenomenon.
Figure 3 :
156Figure 3: The robust generalization and robust test accuracy on poisoned CIFAR-10 under different stability attacks.The adversarial training budget ǫ = 4/255 and the poisoning budget ǫ ′ = 8/255.
Figure 4 :
157Figure 4: The robust generalization and robust test accuracy on the poisoned data under HYP attack with different poisoning budgets.The adversarial training budget ǫ = 4/255 and the poisoning budget ǫ ′ varies.
158) and Equ.(8).The The robust performance of adversarial training with different with the AT budget ǫ ranging from 0 to 8/255.effect of even a small ǫ such as 2/255 is amplified by the gradient and Hessian Lipschitz constants in z, namely L z and H z , and results in a large generalization gap.Moreover, the robust generalization gap increases with ǫ which implies that it is harder to ensure robustness in a broader area.Figures2(a) and 2(b) present the robust overfitting phenomenon on CIFAR-100 and Tiny-ImageNet.When training errors converge to zero, the robust generalization gaps (blue lines) grow throughout the whole training procedure, while the robust test accuracy (red lines) increases in the first 100 epochs, decreases from the first learning rate decay at the 100-th epoch, and then jumps a little at the 150-th epoch before stabilizes.
159on the training set and Normalize on both the training set and test set.For Tiny-ImageNet, we perform RandomHorizontalFlip on the training set and Normalize on both the training set and test set.For SVHN, we perform only Normalize on both the training set and test set.
참고문헌 42건
- Learnability, Stability and Uniform Convergence Journal of Machine Learning Research · The MIT Press · 2010
- Intriguing properties of neural networks 2013
- Escaping From Saddle Points --- Online Stochastic Gradient for Tensor Decomposition arXiv (Cornell University) · Cornell University · 2015
- Train faster, generalize better: Stability of stochastic gradient descent arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1509.01240
- Deep neural networks are easily fooled: High confidence predictions for unrecognizable images 2015 10.1109/cvpr.2015.7298640
- Explaining and Harnessing Adversarial Examples arXiv (Cornell University) · Cornell University · 2014
- Robust Stochastic Approximation Approach to Stochastic Programming SIAM Journal on Optimization · Society for Industrial and Applied Mathematics · 2009 10.1137/070704277
- Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
- DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks 2016 10.1109/cvpr.2016.282
- Reading Digits in Natural Images with Unsupervised Feature Learning 2011
- Data-Dependent Stability of Stochastic Gradient Descent International Conference on Machine Learning · 2017
- Adversarially Robust Generalization Requires More Data arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1804.11285
- A Convergence Theory for Deep Learning via Over-Parameterization arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1811.03962
- Theoretically Principled Trade-off between Robustness and Accuracy arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1901.08573
- Improving Adversarial Robustness Requires Revisiting Misclassified Examples International Conference on Learning Representations · 2020
- Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuning 2020 10.1109/cvpr42600.2020.00078
- On the Loss Landscape of Adversarial Training: Identifying Challenges and How to Overcome Them arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2006.08403
- Improve Robustness and Accuracy of Deep Neural Network with L2,∞ Normalization Journal of Systems Science and Complexity · Springer Science+Business Media · 2022 10.1007/s11424-022-1326-y
- Adversarial Weight Perturbation Helps Robust Generalization arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.05884
- Train simultaneously, generalize better: Stability of gradient-based minimax learners arXiv (Cornell University) · Cornell University · 2020
- Unlearnable Examples: Making Personal Data Unexploitable 2021
- Robust Overfitting may be mitigated by properly learned smoothening 2021
- Adversarial Examples Make Strong Poisons arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2106.10807
- Better Safe Than Sorry: Preventing Delusive Adversaries with Adversarial\n Training arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2102.04716
- On the Algorithmic Stability of Adversarial Training Neural Information Processing Systems · 2021
- Fooling Adversarial Training with Inducing Noise arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2111.10130
- Can Adversarial Training Be Manipulated By Non-Robust Features? arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2201.13329
- Robust Weight Perturbation for Adversarial Training Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence · 2022 10.24963/ijcai.2022/512
- Availability Attacks Create Shortcuts Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining · 2022 10.1145/3534678.3539241
- Improving Robustness using Generated Data arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2110.09468
- Stability of Stochastic Gradient Descent on Nonsmooth Convex Losses arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2006.06914
- Learning to Confuse: Generating Training Time Adversarial Data with\n Auto-Encoder arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.09027
- Adversarial Examples Are Not Bugs, They Are Features arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.02175
- Achieving optimal adversarial accuracy for adversarial deep learning using Stackelberg games Acta Mathematica Scientia · Elsevier BV · 2022 10.1007/s10473-022-0613-y
- On Assessing ML Model Robustness: A Methodological Framework (Academic Track) Dagstuhl Research Online Publication Server · 2025 10.4230/oasics.saia.2024.1
- Certifying Some Distributional Robustness with Principled Adversarial\n Training arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1710.10571
- Stability Analysis and Generalization Bounds of Adversarial Training arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2210.00960
- Better Diffusion Models Further Improve Adversarial Training arXiv (Cornell University) · Cornell University · 2023 10.48550/arxiv.2302.04638
- Why Robust Generalization in Deep Learning is Difficult: Perspective of Expressive Power arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2205.13863
- Stability analysis of stochastic gradient descent for homogeneous neural networks and linear classifiers Neural Networks · Elsevier BV · 2023 10.1016/j.neunet.2023.04.028
- Is Adversarial Training Really a Silver Bullet for Mitigating Data Poisoning? Figshare · Figshare (United Kingdom) · 2023 1060882cispa25195511v1
- Stability and Generalization MPG.PuRe (Max Planck Society) · Max Planck Society · 2001