원시데이터 수집 시스템
선정목록으로

Data-dependent stability analysis of adversarial training

관련 엔지니어링 플라스틱 · (22) POM(폴리아세탈)

기본 정보

저자
  1. Yihan Wang — Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing, 100190, China; University of Chinese Academy of Sciences, Beijing, 101408, China
  2. Shuang Liu — Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing, 100190, China; University of Chinese Academy of Sciences, Beijing, 101408, China
  3. Xiao-Shan Gao — Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing, 100190, China; University of Chinese Academy of Sciences, Beijing, 101408, China. Electronic address: xgao@mmrc.iss.ac.cn
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자

본문 펼치기
## Data-Dependent Stability Analysis of Adversarial Training Yihan Wang <sup>1,2</sup>, Shuang Liu <sup>1,2</sup>, Xiao-Shan Gao <sup>1,2</sup> <sup>*</sup> 1Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing 100190, China 2University of Chinese Academy of Sciences, Beijing 101408, China yihanwang@amss.ac.cn, liushuang2020@amss.ac.cn, xgao@mmrc.iss.ac.cn Abstract Stability 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. 1 Introduction Deep 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. Algorithmic 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 LLipschitz and β-gradient Lipschitz. Bassily et al. (2020) extended the results to non-smooth convex losses. Kuzborskij *Corresponding author. 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. It 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. In 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. An 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. The 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. 2 Related Works Robust 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). The 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. Algorithmic 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. Data 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. 3 Preliminaries In this section, we revisit the robust generalization gap and the on-average stability analysis. 3.1 Robust Generalization Gap Let D be a data distribution over an image classification data space D = [0, 1] <sup>d</sup> × [m], where [0, 1] <sup>d</sup> 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 <sup>n</sup> . Given a network with parameter θ and a non-negative loss function l(θ, z) : R <sup>k</sup> × D → R≥0, the standard training minimizes the empirical risk Ez∈S l(θ, z) with SGD. 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 Lp-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: h(θ, z) = z <sup>′</sup> max∈Bǫ(z) <sup>l(z′, θ),</sup> Here thewhere Bǫ p(z-norm is for the image part of) = {z <sup>′</sup> ∈ D : ||z <sup>′</sup> - z||p ≤ ǫ} z and. When p ∈ ǫN = 0∪{∞}, we. have h = l and adversarial training reduces to standard training. The adversarial population risk and adversarial empirical risk are respectively defined as To 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. RD(θ) = z E z <sup>E</sup> ∈S <sup>[h(θ, z)].</sup> z∼DE <sup>[h(θ, z)]</sup> <sup>and</sup> <sup>RS(θ) =</sup> z <sup>E</sup> ∈ We 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 RS. Robust Generalization Gap. Let θ <sup>∗</sup>, θ <sup>¯</sup> be the optimal solutions of learning over D and S, namely minimizing RD(θ) and RS(θ), respectively. Then, for the output θ <sup>ˆ</sup> = A(S) of algorithm A, the excess risk can be decomposed as RD(θ <sup>ˆ</sup> ) −RD(θ <sup>∗</sup> ) = RD(θ <sup>ˆ</sup> ) −RS(θ <sup>ˆ</sup> ) εgen - �� . <sup>∗</sup> ) = RD(θ <sup>ˆ</sup> ) −RS(θ <sup>ˆ</sup> ) + RS(θ <sup>ˆ</sup> ) −RS(θ <sup>¯</sup> ) εgen εopt - �� - - �� + RS(θ <sup>¯</sup> ) −RS(θ <sup>∗</sup> ) + RS(θ <sup>∗</sup> ) −RD(θ <sup>∗</sup> ) ≤0 E=0 - �� - - �� + RS(θ <sup>∗</sup> ) −RD(θ <sup>∗</sup> ) E=0 - �� 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. On 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. 3.2 On-Average Stability In order to analyze the data-dependent stability, we employ the notion of on-average stability. Given a data set S = {z1, · · ·, zn} ∼D <sup>n</sup> and z ∼D, replacing zi in S with z, we denote S <sup>i,z</sup> = {z1, · · ·, zi−1, z, zi+1, · · ·, zn} with i ∈ [n]. Definition 1 (On-Average Stability). A randomized algorithm A is ε-on-average stable if isup∈[n] S,z,EA <sup>[h(A(S), z) −</sup> <sup>h(A(Si,z), z)] ≤</sup> <sup>ε,</sup> (1) where S ∼D <sup>n</sup>, z ∼D, and ε can depend on the data distribution D and the initialization point of A. The 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. Theorem 2 (Kuzborskij and Lampert (2018)). If A is ε-onaverage stable, then the robust generalization gap of A is bounded by ε: S,EA <sup>[RD(A(S)) −RS(A(S))] ≤</sup> <sup>ε.</sup> 4 Theoretical Results In 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. 4.1 Lipschitz Conditions Stability 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 <sup>′</sup> ) with z <sup>′</sup> ∈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 ∇θ. Assumption 3. The loss l is L-Lipschitz in θ: ||l(θ1, z) − l(θ2, z)|| ≤ L||θ1 − θ2||. Assumption 4. The loss l is Lθ-gradient Lipschitz in θ and Lz-gradient Lipschitz in z: ||∇l(θ1, z) −∇l(θ2, z)|| ≤ Lθ||θ1 − θ2||, ||∇l(θ, z1) −∇l(θ, z2)|| ≤ Lz||z1 − z2||p. Assumption 5. The loss l is Hθ-Hessian Lipschitz in θ and Hz-Hessian Lipschitz in z: ||∇ <sup>2</sup> l(θ1, z) −∇ <sup>2</sup> l(θ2, z)|| ≤ Hθ||θ1 − θ2||, ||∇ <sup>2</sup> l(θ, z1) −∇ <sup>2</sup> l(θ, z2)|| ≤ Hz||z1 − z2||p. Remark 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). Note 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. Definition 7. Let η, β, ν, ρ > 0 and h(θ) be a second-order differentiable function. 1. h is η-approximately β-gradient Lipschitz, if ||∇h(θ1) −∇h(θ2)|| ≤ β||θ1 − θ2|| + η. 2. h is ν-approximately ρ-Hessian Lipschitz, if ||∇ <sup>2</sup> h(θ1) −∇ <sup>2</sup> h(θ2)|| ≤ ν||θ1 − θ2|| + ρ. Lemma 8. The adversarial loss h(θ, z) inherits (approximate) Lipschitz properties from the original loss l(θ, z). 1. Under Assumption 3, h is L-Lipschitz with respect to θ: ||h(θ1, z) − h(θ2, z)|| ≤ L||θ1 − θ2||. 2. Under Assumption 4, h is 2ǫLz-approximately Lθgradient Lipschitz with respect to θ: ||∇h(θ1, z) −∇h(θ2, z)|| ≤ Lθ||θ1 − θ2|| + 2ǫLz. 3. Under Assumption 5, h is 2ǫHz-approximately HθHessian Lipschitz with respect to θ: ||∇ <sup>2</sup> h(θ1, z) −∇ <sup>2</sup> h(θ2, z)|| ≤ Hθ||θ1 − θ2|| + 2ǫHz. 4.2 Preliminaries for Analysis We consider the SGD without replacement, that is, given a training set S ∼D <sup>n</sup>, 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], By repeatedly applying Jensen’s inequality, both expectations t=1 <sup>αt||∇h(θt, zπ(t))||]</sup> and t=1 <sup>αt||∇h(</sup> E <sup>θ</sup> St <sup>′</sup> <sup>, z</sup> [ <sup>�</sup> π <sup>′</sup> ( <sup>T</sup> t) <sup>)||]</sup> have the same upper Ez,S[ <sup>�</sup> t <sup>T</sup> t <sup>T</sup> =1 <sup>αt||∇h(θ</sup> t <sup>′</sup> t <sup>′</sup> <sup>, z′</sup> t=1 <sup>αt||∇h(θt, zπ(t))||]</sup> and <sup>T</sup> t=1 <sup>αt||∇h(θ</sup> t <sup>′</sup> <sup>, z</sup> π <sup>′</sup> (t) <sup>)||]</sup> have the same upper Ebound (Lemma 18)z,S[ <sup>�T</sup> T �t=1 T �t=1 σαt + 2 T ��t=1 αt · - 2 ��r + <sup>β</sup> T �t=1 σ <sup>2</sup> α <sup>2</sup> t <sup>+ ηL</sup> αt, θt+1 = GA(θt, zπ(t), αt), where 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 t <sup>′, z)] and prove the theorem.</sup> ES <sup>[||∇h(θt, zπ(t)) −∇RD(θt)||2] ≤</sup> <sup>σ2</sup> (2) where r = RD(θ1) −RD(θ <sup>∗</sup> ). Then, we can recursively bound ES,z,A[h(θt, z) − h(θt <sup>′, z)] and prove the theorem.</sup> 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. When the step size is αt = O( √ <sup>1</sup> t <sup>)</sup> <sup>≤</sup> β1 <sup>and</sup> <sup>the</sup> <sup>ad-</sup> versarial 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. corollary 11. Let the step size αt be a constant α ≤ 1/β and r = RD(θ1) −RD(θ <sup>∗</sup> ). Then algorithm A is ε(D, θ1)on-average stable with When the step size is αt = O( √ <sup>1</sup> E for all t ∈ [T ]. The variance σ describes the distance between the stochastic gradient and the optimal gradient. Indeed, σ will change if the distribution D changes. 4.3 Convex Adversarial Losses For 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 αt ≤ 1/β. Then algorithm A is ε(D, θ1)-on-average stable with Comparison. 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. - Result of Xing, Song, and Cheng (2021): ε(D, θ1) √αrT . (4) n =ηαLT + <sup>2αLT</sup> (σ + n √2σ + 2�ηL) + <sup>4L</sup> t=1 + Lη) ε(D, θ1) = ( <sup>2σL</sup> n ε(D, θ1) = ( <sup>2σL</sup> n T �t=1 αt + <sup>4L</sup> n αt + <sup>4L</sup> αt T �t=1 T ��t=1 - 2 ��RD(θ1) −RD(θ∗) + <sup>βσ2</sup> T �t=1 α <sup>2</sup> t <sup>+ ηL</sup> αt, (3) O(αL <sup>2√</sup> T + <sup>αL2T</sup> <sup>2T</sup> ). (5) n where θ1 is the initialization point. Proof sketch. Given a data set S = {z1, · · ·, zn} ∼D <sup>n</sup>, an example z ∼D, and an index i ∈ [n], we denote i <sup>=</sup> <sup>z.</sup> S <sup>i,z</sup> = {z1 <sup>′</sup> <sup>, · · ·</sup> <sup>, z</sup> n <sup>′</sup> <sup>}</sup> <sup>with</sup> <sup>z</sup> j <sup>′</sup> <sup>=</sup> <sup>zj</sup> <sup>for</sup> <sup>j̸</sup> <sup>=</sup> <sup>i</sup> <sup>and</sup> <sup>z′</sup> - Result of Xiao et al. (2022): ). (6) O(ηαLT + <sup>αL</sup> n <sup>2T</sup> 1 <sup>′</sup> <sup>, · · ·</sup> <sup>, z</sup> n <sup>′</sup> <sup>}</sup> <sup>with</sup> <sup>z</sup> j <sup>′</sup> <sup≯</sup> j <sup>′</sup> <sup>=</sup> <sup>zj</sup> <sup>for</sup> <sup>j̸</sup> <sup>=</sup> <sup>i</sup> <sup>and</sup> <sup>z</sup> i <sup>′</sup> i <sup>=</sup> <sup>z.</sup> S <sup>i,z</sup> = {z1 <sup>′</sup> <sup>, · · ·</sup> <sup>, z</sup> n <sup>′</sup> <sup>}</sup> <sup>with</sup> <sup>z</sup> j <sup>′</sup> <sup>=</sup> <sup>zj</sup> <sup>for</sup> <sup>j̸</sup> <sup>=</sup> <sup>i</sup> <sup>and</sup> <sup>z′</sup> Let θt, θt <sup>′</sup> <sup>be</sup> <sup>the</sup> <sup>t-th</sup> <sup>outputs</sup> <sup>of</sup> <sup>A(S)</sup> <sup>and</sup> <sup>A(Si,z),</sup> <sup>re-</sup> - Our result: <sup≯</sup> Let θt, θt <sup>′</sup> <sup>be</sup> <sup>the</sup> <sup>t-th</sup> <sup>outputs</sup> <sup>of</sup> <sup>A(S)</sup> <sup>and</sup> <sup>A(Si,z),</sup> <sup>re-</sup> spectively. Denote the distance of two trajectories at step t by δt(S, z, i, A) = ||θt - θt <sup>′||.</sup> <sup>As</sup> <sup>both</sup> <sup>two</sup> <sup>updates</sup> <sup>start</sup> √ t by δt(S, z, i, A) = ||θt - θt <sup>′||.</sup> <sup>As</sup> <sup>both</sup> <sup>two</sup> <sup>updates</sup> <sup>start</sup> from θ1, we have δ1(S, z, i, A) = 0. Denote ∆t(S, z, i) = EA[δt(S, z, i, A)|δt0(S, z, i, A) = 0]. Lemma 16 (Lemma 5 in (Kuzborskij and Lampert 2018)) tells that O(ηαT L + <sup>ασLT</sup> <sup>+ α√ηL</sup> n <sup>1.5T</sup> <sup>+ L</sup> αrT ) (7) n <sup>1.5T</sup> <sup>+ L</sup> S,z,EA <sup>[h(θt, z) −</sup> <sup>h(θ</sup> t <sup>′</sup> t <sup>′, z)] ≤</sup> <sup>L</sup> S,z <sup>E</sup> S,z <sup>E</sup> <sup>[∆t(S, z, i)].</sup> According 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ǫLz, ∆t+1(S, z, i) ≤ ∆t(S, z, i) + (1 − n <sup>1</sup> + <sup>αt</sup> n t <sup>E</sup> A <sup>[||∇h(θt, zπ(t))|| + ||∇h(θ′</sup> n <sup>1</sup> <sup>)αtη</sup> The 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. Approximate smoothness of h is required for the result of (Xiao et al. 2022). The bound (6) takes into account ǫ, i.e. η = 2ǫLz 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. Our bound grows with the adversarial training budget ǫ as well. In general case, (6) and (7) are both O(T ). When n <sup>E</sup> A t <sup>′, z′</sup> π <sup>′</sup> (t) <sup>)||].</sup> Let ψt(S, z, i) = EA[min{ξt(S, z, i, A), β}] and we have n η = 0, our bound reduces to O( <sup>ασLT +L</sup> the case for standard training. In the case √ √ n αrT ) which is η = 0, our bound reduces to O( <sup>ασLT +L</sup> the case for standard training. In the case that η = 0 and σ is negligible, our bound is dominated by the term <sup>L</sup> √nαrT σ is negligible, our bound is dominated by the term <sup>L</sup> nαrT 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. ∆t+1(S, z, i) ≤ n <sup>1</sup> n <sup>1</sup> <sup>(∆t(S, z, i) + 2αtL)</sup> + (1 − n <sup>1</sup> <sup>)((1 + αtψt(S, z, i))∆t(S, z, i) + αtη).</sup> Assigning proper step sizes αt and leveraging Lemma 20, the on-average stability is given as 4.4 Non-Convex Adversarial Losses For non-convexadversarial losses, our analysis requires both approximate gradient Lipschitz and approximate Hessian Lipschitz assumptions. Theorem 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 αt = ct with c min{ β <sup>1</sup> <sup>,</sup> 4β ln1 T <sup>,</sup> 8(β ln1 T ) <sup>2 }.</sup> <sup>Then</sup> <sup>A</sup> <sup>is</sup> <sup>ε(D, θ1)-on-average</sup> ≤ stable with S,z,EA <sup>[h(θT +1, z) −</sup> <sup>h(θ</sup> T <sup>′</sup> T +1 <sup>, z)]</sup> ≤( <sup>2L2</sup> 2 <sup>+</sup> nγ <sup>ηnL</sup> E n S,A <sup>[RD(θT )].</sup> <sup>−</sup> <sup>1</sup> T )( 2 <sup>+</sup> nγ <sup>ηnL</sup> n t0 − 1 <sup>)2cγ</sup> <sup>+</sup> <sup>t0 −</sup> <sup>1</sup> Then we take the optimal t0 and obtain the theorem. 1+1cγ - (S,EA <sup>[RD(A(S))]T )</sup> 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. Since SGD in a single pass is considered, we take1 T ≈ n and obtain that ε(D, θ1) = O(n <sup>−</sup> 1+cγ ) which can be improved to a more optimistic result O(n <sup>−1</sup> ) when the adversarial empirical risk RS(A(S)) becomes negligible according to Kuzborskij and Lampert (2018). Due to η = 2ǫLz and ν = 2ǫHz, a large adversarial budget ǫ makes the algorithm unstable and setting ǫ = 0 derives the result for standard training. The gradient and Hessian Lipschitz constants Lz and Hz 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). The 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. Comparison. Assume that the adversarial loss h(θ, z) is bounded in [0, B] and αt = <sup>c</sup> t <sup>with</sup> <sup>c</sup> <sup>≤</sup> β1 <sup>.</sup> <sup>The</sup> <sup>result1</sup> <sup>of</sup> Xiao et al. (2022) for the non-convex case is 1+cγcγ, (8) = ε(D, θ1) 1 + cγ <sup>1</sup> (2cL <sup>2</sup> + ncηL) n where γ = min{β, O <sup>˜</sup> (Ez Ez <sup>[||∇2h(θ1, z)||] + ν + ∆∗)},</sup> (RD(θ1) −RD(θ <sup>∗</sup> ))c + cσ + c ηL). ∆ <sup>∗</sup> = ρ( Proof sketch. By Lemma 16 (Lemma 5 in (Kuzborskij and Lampert 2018)), ∀t0 ∈ [n + 1]), S,z,EA <sup>[h(θT +1, z) −</sup> <sup>h(θ</sup> T <sup>′</sup> T +1 <sup>, z)]</sup> S,zE <sup>[∆T +1(S, z, i)] +</sup> <sup>t0 −</sup> n <sup>1</sup> ≤ L S,zE E <sup>−</sup> n <sup>1</sup> S,A <sup>[RD(θT +1)].</sup> The key is to recursively bound ∆T +1(S, z, i). When the algorithm meets the different sample with index i at step t with probability n <sup>1</sup> <sup>, we have</sup> 1 + cβ1 (2cL <sup>2</sup> + ncηL) n 1 cβ 1+cβ (BT ) 1+cβ . (9) ||GA(θt) −GA(θt <sup>′)|| ≤</sup> <sup>δt(S, z, i, A) + 2αtL.</sup> Otherwise, the second statement in Lemma 15 (from (Xiao et al. 2022)) implies ||GA(θt) −GA(θt <sup>′</sup> <sup>)|| ≤</sup> <sup>(1 + αtβ)δt(S, z, i, A) + αtη.</sup> Additionally, in this case, Lemma 19 starts from Taylor expansion with integral remainder and exploits the approximate Hessian Lipschitz condition, deriving another bound as ||GA(θt) −GA(θt <sup>′</sup> <sup>)|| ≤</sup> <sup>(1 + αtξt(S, z, i, A))δt(S, z, i, A),</sup> where E S,z <sup>[ξt(S, z, i, A)] =</sup> <sup>O˜(E</sup> z <sup>[||∇2h(θ1, z)||] + ν + ∆∗).</sup> Observe 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 β <sup>1</sup> <sup>respectively</sup> <sup>in</sup> <sup>(8).</sup> <sup>During</sup> 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 (ES,A[RD(A(S))]T ) 1+cγcγ, and then a tighter bound. Thus, our result is no worse than (9). 1They reported a conservative result in the paper. Here we place their optimal result for comparison. Multiple-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 αt ≤ <sup>c</sup> t <sup>with c ≤</sup> β <sup>1</sup> <sup>. Then algorithm A is ε(D, θ1)-</sup> on-average stable with 1.0 0.8 0.6 0.4 0.2 SVHN 1.0 0.8 0.6 0.4 0.2 CIFAR-10 Generalization Gap Robust Test Accuracy Generalization Gap Robust Test Accuracy <sup>c</sup> t <sup>with c ≤</sup> β <sup>1</sup> step sizes αt ≤ <sup>c</sup> t <sup>with c ≤</sup> β <sup>1</sup> <sup>. Then algorithm A is ε(D, θ1)-</sup> on-average stable with 0.0 0/255 2/255 4/255 6/255 8/255 AT Budget (a) CIFAR-10 0.0 0/255 2/255 4/255 6/255 8/255 AT Budget (b) SVHN ε(D, θ1) Figure 1: 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 Lz and Hz, 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. Figures 2(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. 1+cβcβ . (10) = ε(D, θ1) 1 + cβ1 (2cL <sup>2</sup> + ncηL) n 1+1cβ (S,EA <sup>[RD(A(S))]T )</sup> Both (8) and (10) contain the data-dependent factor ES,A [RD(A(S))] which can be much smaller than B in (9). 4.5 Poisoned Generalization Gap To 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. Poisoning is usually constrained by a given poisoning budget ǫ <sup>′</sup> such that supz∈D ||P(z) − z||p ≤ ǫ <sup>′</sup> . The poisoned version of an algorithm A is denoted by AP which inputs S ∼D <sup>n</sup> and outputs AP (S) = A(P(S)) by minimizing RP(S)(θ). The robust generalization gap of AP (S) over the poisoned distribution P#D is called the poisoned generalization gap, denoted by εP . That is, | E S,AP [RP#D(AP (S)) −RP(S)(AP (S))]| ≤ εP. (11) 1.0 0.8 0.6 0.4 0.2 0.0 Tiny-ImageNet ~~Robust~~ ~~Training~~ ~~Accuracy~~ Robust Test Accuracy Robust Generalization Gap 0 50 100 150 200 Epochs (d) Tiny-ImageNet CIFAR-100 ~~Robust~~ ~~Training~~ ~~Accuracy~~ Robust Test Accuracy Robust Generalization Gap 0 50 100 150 200 Epochs (c) CIFAR-100 1.0 0.8 0.6 0.4 0.2 0.0 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[||∇ <sup>2</sup> h(θ1, P(z))||]. The initial population risk gap become RP#D(θ1) −RP#D(θP <sup>∗</sup> <sup>),</sup> <sup>in</sup> <sup>which</sup> θ <sup>∗</sup> lation risk gap become RP#D(θ1) −RP#D(θP <sup>∗</sup> <sup>),</sup> <sup>in</sup> <sup>which</sup> θP <sup>∗</sup> <sup>is</sup> <sup>optimal with</sup> <sup>respect</sup> <sup>to</sup> <sup>RP</sup> # <sup>D.</sup> <sup>Besides,</sup> <sup>the</sup> <sup>variance</sup> θP <sup>∗</sup> <sup>is</sup> <sup>optimal with</sup> <sup>respect</sup> <sup>to</sup> <sup>RP</sup> # <sup>D.</sup> <sup>Besides,</sup> <sup>the</sup> <sup>variance</sup> σ also depends on the poisoning and becomes σP . Additionally, the adversarial population risk ES,AP [RP#D(AP (S))] in the poisoned counterparts of Equ. (8) and Equ.(10) can be significantly influenced by the poisoning. 5 Experiments In 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. 5.1 Robust Generalization. We 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) and Equ. (8). The Figure 2: The robust overfitting phenomenon. 5.2 Poisoned Robust Generalization. A 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 <sup>n</sup>, on the original distribution D, i.e. RD(AP (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 Poisoned CIFAR-10 0.4 AT RAN 0.3 <u>ADVEM</u> HYP REM 0.2 0.1 0.0 0 50 100 150 200 Epochs (a) Poisoned Gen Gap Poisoned CIFAR-10 1.0 0.9 0.8 0.7 0.6 0.3 0 50 100 150 200 Epochs (b) Poisoned Test Acc 0.5 0.4 AT RAN ADV EM <u>HYP</u> <u>REM</u> Figure 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 ǫ <sup>′</sup> = 8/255. tacks such as EM, HYP, and REM, indeed result in the shrinkage of robust generalization gaps on CIFAR-10 and ResNet-18 in Figures 3(a). Comparing Figure 3(a) and Figure 3(b), we see that robust generalization gaps present correlated trends to the test performance as pointed out by our results, i.e. Equ. (8) and (10). We further study the robust generalization under the HYP attack with various intensities, i.e. the poisoning budget ǫ <sup>′</sup>, 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. Poisoned CIFAR-100 0.6 ~~2/255~~ 4/255 0.5 ~~6/255~~ 8/255 10/255 0.4 0.3 0.2 0.1 0.0 0 50 100 150 200 Epochs (a) Poisoned Gen Gap Poisoned CIFAR-100 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0 50 100 150 200 Epochs (a) Poisoned Test Acc 2/255 ~~4/255~~ 6/255 ~~8/255~~ 10/255 Figure 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 ǫ <sup>′</sup> varies. 6 Conclusion Motivated 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. The 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. Limitations 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. References Allen-Zhu, Z.; Li, Y.; and Song, Z. 2019. A convergence theory for deep learning via over-parameterization. In International Conference on Machine Learning, 242–252. Bassily, R.; Feldman, V.; Guzm´an, C.; and Talwar, K. 2020. Stability of stochastic gradient descent on nonsmooth convex losses. Advances in Neural Information Processing Systems, 33: 4381–4391. Biggio, B.; Corona, I.; Maiorca, D.; Nelson, B.; Srndi´c, N.; <sup>ˇ</sup> Laskov, P.; Giacinto, G.; and Roli, F. 2013. Evasion attacks against machine learning at test time. In Joint European conference on machine learning and knowledge discovery in databases, 387–402. Springer. Bousquet, O.; and Elisseeff, A. 2002. Stability and generalization. The Journal of Machine Learning Research, 2: 499–526. Chen, T.; Zhang, Z.; Liu, S.; Chang, S.; and Wang, Z. 2020. Robust overfitting may be mitigated by properly learned smoothening. In International Conference on Learning Representations. Chen, T.; Zhang, Z.; Wang, P.; Balachandra, S.; Ma, H.; Wang, Z.; and Wang, Z. 2022. Sparsity Winning Twice: Better Robust Generaliztion from More Efficient Training. arXiv preprint arXiv:2202.09844. Du, S.; Lee, J.; Li, H.; Wang, L.; and Zhai, X. 2019. Gradient descent finds global minima of deep neural networks. In International conference on machine learning, 1675–1685. Farnia, F.; and Ozdaglar, A. 2021. Train simultaneously, generalize better: Stability of gradient-based minimax learners. In International Conference on Machine Learning, 3174–3185. Feng, J.; Cai, Q.-Z.; and Zhou, Z.-H. 2019. Learning to confuse: generating training time adversarial data with autoencoder. Advances in Neural Information Processing Systems, 32. Fowl, L.; Goldblum, M.; Chiang, P.-y.; Geiping, J.; Czaja, W.; and Goldstein, T. 2021. Adversarial examples make strong poisons. arXiv preprint arXiv:2106.10807. Fu, S.; He, F.; Liu, Y.; Shen, L.; and Tao, D. 2022. Robust Unlearnable Examples: Protecting Data Against Adversarial Learning. arXiv preprint arXiv:2203.14533. Gao, X.-S.; Liu, S.; and Yu, L. 2022. Achieving Optimal Adversarial Accuracy for Adversarial Deep Learning Using Stackelberg Games. Acta Mathematica Scientia, 42B(6): 2399–2418. Ge, R.; Huang, F.; Jin, C.; and Yuan, Y. 2015. Escaping from saddle points—online stochastic gradient for tensor decomposition. In Conference on learning theory, 797–842. Goodfellow, I. J.; Shlens, J.; and Szegedy, C. 2014. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572. Gowal, S.; Rebuffi, S.-A.; Wiles, O.; Stimberg, F.; Calian, D. A.; and Mann, T. A. 2021. Improving robustness using generated data. Advances in Neural Information Processing Systems, 34: 4218–4233. Hardt, M.; Recht, B.; and Singer, Y. 2016. Train faster, generalize better: Stability of stochastic gradient descent. In International conference on machine learning, 1225–1234. He, K.; Zhang, X.; Ren, S.; and Sun, J. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, 770–778. Huang, H.; Ma, X.; Erfani, S. M.; Bailey, J.; and Wang, Y. 2021. Unlearnable examples: Making personal data unexploitable. arXiv preprint arXiv:2101.04898. Ilyas, A.; Santurkar, S.; Tsipras, D.; Engstrom, L.; Tran, B.; and Madry, A. 2019. Adversarial examples are not bugs, they are features. Advances in neural information processing systems, 32. Krizhevsky, A.; Hinton, G.; et al. 2009. Learning multiple layers of features from tiny images. Technical Report TR2009. Kuzborskij, I.; and Lampert, C. 2018. Data-dependent stability of stochastic gradient descent. In International Conference on Machine Learning, 2815–2824. Le, Y.; and Yang, X. 2015. Tiny imagenet visual recognition challenge. CS 231N, 7(7): 3. Li, B.; Jin, J.; Zhong, H.; Hopcroft, J.; and Wang, L. 2022. Why robust generalization in deep learning is difficult: Perspective of expressive power. Advances in Neural Information Processing Systems, 35: 4370–4384. Liu, C.; Salzmann, M.; Lin, T.; Tomioka, R.; and S¨usstrunk, S. 2020. On the loss landscape of adversarial training: Identifying challenges and how to overcome them. Advances in Neural Information Processing Systems, 33: 21476–21487. Liu, Z.; Zhao, Z.; Kolmus, A.; Berns, T.; van Laarhoven, T.; Heskes, T.; and Larson, M. 2021. Going Grayscale: The Road to Understanding and Improving Unlearnable Examples. arXiv preprint arXiv:2111.13244. Madry, A.; Makelov, A.; Schmidt, L.; Tsipras, D.; and Vladu, A. 2017. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083. Moosavi-Dezfooli, S.-M.; Fawzi, A.; and Frossard, P. 2016. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2574–2582. Nemirovski, A.; Juditsky, A.; Lan, G.; and Shapiro, A. 2009. Robust stochastic approximation approach to stochastic programming. SIAM Journal on Optimization, 19(4): 1574– 1609. Netzer, Y.; Wang, T.; Coates, A.; Bissacco, A.; Wu, B.; and Ng, A. Y. 2011. Reading digits in natural images with unsupervised feature learning. In NIPS DLW. Nguyen, A.; Yosinski, J.; and Clune, J. 2015. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In Proceedings of the IEEE conference on computer vision and pattern recognition, 427–436. Ren, J.; Xu, H.; Wan, Y.; Ma, X.; Sun, L.; and Tang, J. 2022. Transferable Unlearnable Examples. arXiv preprint arXiv:2210.10114. Rice, L.; Wong, E.; and Kolter, Z. 2020. Overfitting in adversarially robust deep learning. In International Conference on Machine Learning, 8093–8104. Schmidt, L.; Santurkar, S.; Tsipras, D.; Talwar, K.; and Madry, A. 2018. Adversarially robust generalization requires more data. Advances in neural information processing systems, 31. Shaham, U.; Yamada, Y.; and Negahban, S. 2015. Understanding adversarial training: Increasing local stability of neural nets through robust optimization. arXiv preprint arXiv:1511.05432. Shalev-Shwartz, S.; Shamir, O.; Srebro, N.; and Sridharan, K. 2010. Learnability, stability and uniform convergence. The Journal of Machine Learning Research, 11: 2635–2670. Sinha, A.; Namkoong, H.; Volpi, R.; and Duchi, J. 2017. Certifying some distributional robustness with principled adversarial training. arXiv preprint arXiv:1710.10571. Szegedy, C.; Zaremba, W.; Sutskever, I.; Bruna, J.; Erhan, D.; Goodfellow, I.; and Fergus, R. 2013. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199. Tao, L.; Feng, L.; Wei, H.; Yi, J.; Huang, S.-J.; and Chen, S. 2022. Can Adversarial Training Be Manipulated By NonRobust Features? arXiv preprint arXiv:2201.13329. Tao, L.; Feng, L.; Yi, J.; Huang, S.-J.; and Chen, S. 2021. Better safe than sorry: Preventing delusive adversaries with adversarial training. Advances in Neural Information Processing Systems, 34: 16209–16225. Wang, Y.; Zou, D.; Yi, J.; Bailey, J.; Ma, X.; and Gu, Q. 2019. Improving adversarial robustness requires revisiting misclassified examples. In International Conference on Learning Representations. Wang, Z.; Pang, T.; Du, C.; Lin, M.; Liu, W.; and Yan, S. 2023. Better diffusion models further improve adversarial training. arXiv preprint arXiv:2302.04638. Wang, Z.; Wang, Y.; and Wang, Y. 2021. Fooling Adversarial Training with Inducing Noise. arXiv preprint arXiv:2111.10130. Wu, D.; Xia, S.-T.; and Wang, Y. 2020. Adversarial weight perturbation helps robust generalization. Advances in Neural Information Processing Systems, 33: 2958–2969. Xiao, J.; Fan, Y.; Sun, R.; Wang, J.; and Luo, Z.-Q. 2022. Stability analysis and generalization bounds of adversarial training. arXiv preprint arXiv:2210.00960. Xing, Y.; Song, Q.; and Cheng, G. 2021. On the algorithmic stability of adversarial training. Advances in Neural Information Processing Systems, 34: 26523–26535. Yu, C.; Han, B.; Shen, L.; Yu, J.; Gong, C.; Gong, M.; and Liu, T. 2022a. Understanding robust overfitting of adversarial training and beyond. In International Conference on Machine Learning, 25595–25610. Yu, D.; Zhang, H.; Chen, W.; Yin, J.; and Liu, T.-Y. 2022b. Availability attacks create shortcuts. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 2367–2376. Zhang, H.; Yu, Y.; Jiao, J.; Xing, E.; El Ghaoui, L.; and Jordan, M. 2019. Theoretically principled trade-off between robustness and accuracy. In International conference on machine learning, 7472–7482. A Proofs A.1 Proof of Lemma 8 Proof. 1. Assume that h(θ1, z) = l(θ1, z1) and h(θ2, z) = l(θ2, z2). We have ||h(θ1, z) − h(θ2, z)|| = ||l(θ1, z1) − l(θ2, z2)||. Note that l(θ1, z1) ≥ l(θ1, z2) and l(θ2, z2) ≥ l(θ2, z1). If l(θ1, z1) ≥ l(θ2, z2), then If l(θ1, z1) ≤ l(θ2, z2), then ||l(θ1, z1) − l(θ2, z2)|| ≤ l(θ1, z1) − l(θ2, z1) ≤ L||θ1 − θ2||. ||l(θ1, z1) − l(θ2, z2)|| ≤ l(θ2, z2) − l(θ1, z2) ≤ L||θ1 − θ2||. 2. Assume that h(θ1, z) = l(θ1, z1) and h(θ2, z) = l(θ2, z2). ||∇h(θ1, z) −∇h(θ2, z)|| =||∇l(θ1, z1) −∇l(θ2, z2)|| ≤||∇l(θ1, z1) −∇l(θ1, z2)|| + ||∇l(θ1, z2) −∇l(θ2, z2)|| ≤Lθ||θ1 − θ2|| + Lz||z1 − z2||p ≤Lθ||θ1 − θ2|| + 2ǫLz. 3. Assume that h(θ1, z) = l(θ1, z1) and h(θ2, z) = l(θ2, z2). ||∇ <sup>2</sup> h(θ1, z) −∇ <sup>2</sup> h(θ2, z)|| =||∇ <sup>2</sup> l(θ1, z1) −∇ <sup>2</sup> l(θ2, z2)|| ≤||∇ <sup>2</sup> l(θ1, z1) −∇ <sup>2</sup> l(θ1, z2)|| + ||∇ <sup>2</sup> l(θ1, z2) −∇ <sup>2</sup> l(θ2, z2)|| ≤Hθ||θ1 − θ2|| + Hz||z1 − z2||p ≤Hθ||θ1 − θ2|| + 2ǫHz. A.2 Proof of Theorem 9 We 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 GA is ι-approximately κ-expansive, if ∀z ∈ D ||GA(θ1, z, α) −GA(θ2, z, α)|| ≤ κ||θ1 − θ2|| + ι. If 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 GA 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 θ. 1. (η-approximate descent.) h(θ1, z) − h(θ2, z) ≤∇h(θ2, z) <sup>⊤</sup> (θ1 − θ2) + <sup>β</sup> 2 2. The update rule GA is η-approximately (1 + αβ)-expansive: <sup>β</sup> 2 <sup>||θ1 −</sup> <sup>θ2||2 + η||θ1 −</sup> <sup>θ2||.</sup> ||GA(θ1, z, α) −GA(θ2, z, α)|| ≤ (1 + αβ)||θ1 − θ2|| + αη. 3. Assume in addition that h(θ, z) is convex in θ, for α ≤ 1/β, we have ||GA(θ1, z, α) −GA(θ2, z, α)|| ≤||θ1 − θ2|| + αη. Given a data set S = {z1, · · ·, zn} ∼D <sup>n</sup>, an example z ∼D, and an index i ∈ [n], we denote S <sup>i,z</sup> = {z1 <sup>′</sup> <sup≯</sup> i <sup>=</sup> <sup>z.</sup> <sup>Let</sup> <sup>θt,</sup> <sup>θ′</sup> Given a data set S = {z1, · · ·, zn} ∼D <sup>n</sup>, an example z ∼D, and an index i ∈ [n], we denote S <sup>i,z</sup> = {z1 <sup>′</sup> <sup>, · · ·</sup> <sup>, z</sup> n <sup>′</sup> <sup>} with</sup> zj <sup>′</sup> <sup>=</sup> <sup>zj</sup> <sup>for</sup> <sup>j̸</sup> <sup>=</sup> <sup>i</sup> <sup>and</sup> <sup>z</sup> i <sup>′</sup> <sup>=</sup> <sup>z.</sup> <sup>Let</sup> <sup>θt,</sup> <sup>θ</sup> t <sup>′</sup> <sup>be</sup> <sup>the</sup> <sup>t-th</sup> <sup>outputs of</sup> <sup>A(S)</sup> <sup>and</sup> <sup>A(Si,z)</sup> <sup>respectively. Denote</sup> <sup>the</sup> <sup>distance</sup> <sup>of</sup> <sup>two</sup> j <sup>′</sup> <sup>=</sup> <sup>zj</sup> <sup>for</sup> <sup>j̸</sup> <sup>=</sup> <sup>i</sup> <sup>and</sup> <sup>z</sup> i <sup>′</sup> <sup≯</sup> i <sup>′</sup> <sup>=</sup> <sup>z.</sup> <sup>Let</sup> <sup>θt,</sup> <sup>θ</sup> t <sup>′</sup> zj <sup>′</sup> <sup>=</sup> <sup>zj</sup> <sup>for</sup> <sup>j̸</sup> <sup>=</sup> <sup>i</sup> <sup>and</sup> <sup>z</sup> i <sup>′</sup> <sup>=</sup> <sup>z.</sup> <sup>Let</sup> <sup>θt,</sup> <sup>θ</sup> t <sup>′</sup> <sup>be</sup> <sup>the</sup> <sup>t-th</sup> <sup>outputs of</sup> <sup>A(S)</sup> <sup>and</sup> <sup>A(Si,z)</sup> <sup>respectively. Denote</sup> <sup>the</sup> <sup>distance</sup> <sup>of</sup> <sup>two</sup> trajectories at step t by δt(S, z, i, A) = ||θt - θt <sup>′||.</sup> <sup>As both two</sup> <sup>updates start</sup> <sup>from θ1,</sup> <sup>we</sup> <sup>have δ1(S, z, i, A)</sup> <sup>=</sup> <sup>0.</sup> <sup>Since</sup> <sup>the</sup> <sup≯</sup> trajectories at step t by δt(S, z, i, A) = ||θt - θt <sup>′||.</sup> <sup>As both two</sup> <sup>updates start</sup> <sup>from θ1,</sup> <sup>we</sup> <sup>have δ1(S, z, i, A)</sup> <sup>=</sup> <sup>0.</sup> <sup>Since</sup> <sup>the</sup> 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. We 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. Lemma 16. Assume the adversarial loss h(θ, z) is non-negative and L-Lipschitz in θ. Then, ∀t0 ∈ [n + 1], S,z,EA <sup>[h(θt, z) −</sup> <sup>h(θ</sup> t <sup>′</sup> t <sup>′, z)] ≤</sup> <sup>L</sup> S,z <sup>E</sup> <sup>E</sup> n A <sup>[δt(S, z, i, A)|δt0(S, z, i, A) = 0]] +</sup> <sup>t0 −</sup> <sup>1</sup> S,z <sup>E</sup> <sup>[E</sup> A <sup>[</sup> E n <sup>−</sup> <sup>1</sup> S,A <sup>[RD(θt)].</sup> Due to the change of notations, we repeat the proof here. Proof. By the Lipschitz condition and non-negativeness of h, we have h(θt, z) − h(θt <sup>′</sup> t <sup>′, z))I{δt</sup> 0 <sup>(S, z, i, A) = 0} + (h(θt, z) −</sup> <sup>h(θ</sup> t <sup>′</sup> <sup≯</sup> ̸ t <sup>′, z)</sup> =(h(θt, z) − h(θt <sup>′</sup> ̸ =(h(θt, z) − h(θt <sup>′, z))I{δt</sup> 0 <sup>(S, z, i, A) = 0} + (h(θt, z) −</sup> <sup>h(θ</sup> t <sup>′, z))I{δt</sup> 0 <sup>(S, z, i, A)̸ = 0}</sup> ≤Lδt(S, z, i, A)I{δt0(S, z, i, A) = 0} + h(θt, z)I{δt0(S, z, i, A)̸ = 0}. Take expectation w.r.t. A and we have EA <sup>[h(θt, z) −</sup> <sup>h(θ</sup> t <sup>′</sup> <sup>E</sup> A <sup>[δt(S, z, i, A)|δt0(S, z, i, A) = 0] + E</sup> A <sup≯</sup> t <sup>′, z)] ≤</sup> <sup>L E</sup> A <sup>E</sup> A <sup>[h(θt, z)I{δt0(S, z, i, A)̸ = 0}].</sup> (12) Note that the first time that A selects the different example is π <sup>−1</sup> (i). Since that π <sup>−1</sup> (i) ≥ t0 implies δt0(S, z, i, A) = 0, we have I{δt0(S, z, i, A)̸ = 0} ≤ I{π <sup>−1</sup> (i) < t0}. It follows that S,zE <sup>[E</sup> A <sup≯</sup> <sup>[E</sup> A <sup>[h(θt, z)I{δt0(S, z, i, A)̸ = 0}]]]</sup> ≤ S,zE = E S,zE <sup>[E</sup> A <sup>[</sup> z,EA <sup>[E</sup> S <sup≯</sup> <sup>E</sup> A <sup>[h(θt, z)I{π−1(i) < t0}]]</sup> <sup>E</sup> S <sup>[h(θt, z)]I{π−1(i) < t0}].</sup> (13) Recall that a realization of A is a permutation π of [n]. Thus, with a fixed π, taking over S ∼D <sup>n</sup> equals to taking over both S ∼D <sup>n</sup> and A. That is, ES[h(θt, z)] = EA,S[h(θt, z)]. As a consequence, we have <sup>E</sup> S <sup>[h(θt, z)]I{π−1(i) < t0}]</sup> (14) E z,A <sup>[E</sup> S <sup>[</sup> <sup>E</sup> A <sup>[I{π−1(i) < t0}]</sup> = S,z,EA <sup>[h(θt, z)] E</sup> A ≤ <sup>t0 −</sup> n <sup>1</sup> E (15) <sup>−</sup> n <sup>1</sup> S,z,A <sup>[h(θt, z)].</sup> Combining Equation (12) (13) and (15), we get the statement. Lemma 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 T �t=1 (αt − <sup>βα</sup> 2 t <sup>2</sup> T �t=1 2 t <sup>2</sup> <sup>) E</sup> S <sup>[||∇RD(θt)||2] ≤RD(θ1) −</sup> <sup>E</sup> S <sup>[</sup> <sup>E</sup> S <sup>[||∇h(θt, zπ(t)) −∇RD(θt)||2].</sup> <sup>E</sup> S <sup>[RD(θT )] + ηL</sup> T �t=1 αt + <sup>β</sup> 2 α <sup>2</sup> t <sup>2</sup> t <sup>E</sup> S Proof. From the first statement in Lemma 15, we have RD(θt+1) −RD(θt) t ≤∇RD(θt) <sup>⊤</sup> (θt+1 − θt) + <sup>βα2</sup> 2 t t <sup>βα</sup> 2 <sup>2</sup> <sup>||∇h(θt, zπ(t)) −∇RD(θt)||2 −</sup> <sup>βα</sup> 2 <sup>2</sup> <sup>||∇RD(θt)||2.</sup> <sup>2</sup> t <sup>−</sup> <sup>αt)∇RD(θt)⊤∇h(θt, zπ(t)) + ηαtL +</sup> <sup>βα</sup> 2 t <sup>2</sup> ≤(βα <sup>2</sup> t t <sup>βα2</sup> 2 <sup>||∇h(θt, zπ(t))||2 + ηαt||∇h(θt, zπ(t))||</sup> Since θt is determined by zπ(1), · · ·, zπ(t−1) and Ezπ(t) [h(θt, zπ(t))] = RD(θt), we have that E S <sup>[∇RD(θt)⊤∇h(θt, zπ(t))] = E</sup> S E <sup>E</sup> S <sup>[||∇RD(θt)||2].</sup> Take expectation w.r.t. S and rearrange terms, (αt − <sup>βα</sup> 2 t <sup>2</sup> <sup>E</sup> S <sup>[RD(θt) −RD(θt+1) +</sup> <sup>βα</sup> t <sup>2</sup> 2 2 t <sup>2</sup> <sup>) E</sup> S <sup>[||∇RD(θt)||2] ≤</sup> <sup>E</sup> S Sum the above over t = 1, · · ·, T and get the statement. t <sup>2</sup> 2 <sup>||∇h(θt, zπ(t)) −∇RD(θt)||2] + ηαtL.</sup> Lemma 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 ] ES <sup>[||∇h(θt, zπ(t)) −∇RD(θt)||2] ≤</sup> <sup>σ</sup> t <sup>2</sup> E t <sup>2.</sup> We have T ��t=1 t <sup>2</sup> <sup>+ ηL</sup> ES <sup>[</sup> T �t=1 αt||∇h(θt, zπ(t))||] ≤ T σtαt + 2 �t=1 t=1 αt - 2 ��RD(θ1) −RD(θ∗) + <sup>β</sup> T �t=1 σt <sup>2</sup> t <sup>2α</sup> t <sup>2</sup> T �t=1 αt Proof. Repeatedly applying Jensen’s inequality, we have ES <sup>[</sup> T �t=1 αt||∇h(θt, zπ(t))||] T ��t=1 T ��t=1 T �t=1 αt ES <sup>[||∇RD(θt)||]</sup> ≤ ≤ ≤ ≤ ≤ ≤ T �t=1 T �t=1 T �t=1 T �t=1 T �t=1 T �t=1 αt ES <sup>[||∇h(θt, zπ(t)) −∇RD(θt)||] +</sup> t=1 T �t=1 ES <sup>[||∇RD(θt)||2]</sup> αt ES <sup>[||∇h(θt, zπ(t)) −∇RD(θt)||2] +</sup> αt ES <sup>[||∇RD(θt)||2]</sup> ES σtαt + T �t=1 αt T �t=1 σtαt + 2 σtαt + 2 σtαt + 2 (αt − <sup>βα</sup> 2 t <sup>2</sup> ES <sup>[||∇RD(θt)||2]</sup> t 2 <sup>2</sup> <sup>)</sup> ES T ��t=1 t=1 t=1 (αt − <sup>βα</sup> 2 t <sup>2</sup> 2 t <sup>2</sup> <sup>)</sup> (αt − <sup>βα</sup> 2 t <sup>2</sup> <sup>) E</sup> S <sup>[||∇RD(θt)||2]</sup> <sup>2</sup> t <sup>+ ηL</sup> T αt. �t=1 αt T �t=1 σt <sup>2</sup> t <sup>2α2</sup> t - 2 ��RD(θ1) −RD(θ∗) + <sup>β</sup> The penultimate inequality is by Lemma 17. We now prove Theorem 9. Proof. Denote ∆t(S, z, i) = EA[δt(S, z, i, A)|δt0(S, z, i, A) = 0]. By Lemma 16, ∀t0 ∈{1, · · ·, n, n + 1} we have S,z,EA <sup>[h(θT +1, z) −</sup> <sup>h(θ</sup> T <sup>′</sup> T +1 <sup>, z)]</sup> S,zE <sup>[∆T +1(S, z, i)] +</sup> <sup>t0 −</sup> n <sup>1</sup> ≤L S,zE E <sup>−</sup> n <sup>1</sup> S,A <sup>[RD(θT +1)].</sup> At 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 δt+1(S, z, i, A) · I{δt0(S, z, i, A) = 0} ≤δt(S, z, i, A) · I{δt0(S, z, i, A) = 0} + αtη. When π(t) = i, we have δt+1(S, z, i, A) · I{δt0 (S, z, i, A) = 0} t <sup>′</sup> <sup>, z</sup> π <sup>′</sup> ≤δt(S, z, i, A) · I{δt0 (S, z, i, A) = 0} + αt||∇h(θt, zπ(t))|| + αt||∇h(θt <sup>′</sup> π <sup>′</sup> (t) <sup>)||.</sup> Take expectation w.r.t. A and we have ∆t+1(S, z, i) ≤ n <sup>1</sup> <sup>E</sup> A <sup>[||∇h(θt, zπ(t))|| + ||∇h(θ</sup> t <sup>′</sup> π <sup>′</sup> (t) <sup>)||]) + (1 −</sup> n <sup>1</sup> n <sup>1</sup> <sup>)(∆t(S, z, i) + αtη)</sup> n <sup>1</sup> <sup>(∆t(S, z, i) + αt E</sup> A <sup>[</sup> t <sup>′, z′</sup> =∆t(S, z, i) + (1 − n <sup>1</sup> n <sup>1</sup> <sup>)αtη +</sup> <sup>α</sup> n <sup>t</sup> t <sup>E</sup> A <sup>[||∇h(θt, zπ(t))|| + ||∇h(θ′</sup> n <sup>t</sup> <sup>E</sup> A t <sup>′</sup> <sup>, z′</sup> π <sup>′</sup> (t) <sup>)||].</sup> Thus, we have S,z,EA <sup>[h(θT +1, z) −</sup> <sup>h(θ</sup> T <sup>′</sup> +1 <sup>, z)]</sup> E αt + <sup>t0 −</sup> <sup>1</sup> n S,A <sup>[RD(θT )].</sup> z,EA <sup>[E</sup> S ≤ <sup>L</sup> n T t�=t0 π <sup>′</sup> (t) <sup>)||]] + (1 −</sup> n <sup>1</sup> n <sup>1</sup> <sup>)Lη</sup> αt E <sup>E</sup> S <sup>[||∇h(θt, zπ(t))|| + ||∇h(θ</sup> t <sup>′</sup> t <sup>′, z′</sup> T t�=t0 Here we take t0 = 1. By Lemma 18, we have T �t=1 ES <sup>[</sup> ES <sup>[</sup> αt||∇h(θt, zπ(t))||] - 2 ��RD(θ1) −RD(θ∗) + <sup>β</sup> αt||∇h(θt <sup>′</sup> π <sup>′</sup> (t) <sup>)||]</sup> ≤ T �t=1 z,SE <sup>[</sup> T �t=1 σαt + 2 T ��t=1 αt · σ <sup>2</sup> α <sup>2</sup> t <sup>+ ηL</sup> and Thus, T �t=1 t <sup>′, z</sup> π <sup>′</sup> = ES <sup>[</sup> = ES T �t=1 αt||∇h(θt, zπ(t))||] - 2 ��RD(θ1) −RD(θ∗) + <sup>β</sup> T �t=1 T �t=1 T ��t=1 αt · T �t=1 T �t=1 αt, αt, ≤ T σαt + 2 �t=1 σ <sup>2</sup> α <sup>2</sup> t <sup>+ ηL</sup> S,z,EA <sup>[h(θT +1, z) −</sup> <sup>h(θ</sup> T <sup>′</sup> T +1 <sup>, z)]</sup> ≤ <sup>2</sup> n <sup>L</sup> T �t=1 T ��t=1 αt · T αt. �t=1 - 2 ��RD(θ1) −RD(θ∗) + <sup>β</sup> T �t=1 σ <sup>2</sup> α <sup>2</sup> t <sup>+ ηL</sup> σ <sup>2</sup> α <sup>2</sup> t σαt + Lη T �t=1 αt + <sup>4L</sup> n A.3 Proof of Corollary 11 Proof. αt · ���RD(θ1) −RD(θ∗) + <sup>βσ</sup> 2 <sup>2</sup> T �t=1 ( <sup>2σL</sup> + Lη) n αt + <sup>4L</sup> n αt + <sup>4L</sup> T �t=1 α <sup>2</sup> t <sup>+ ηL</sup> α <sup>2</sup> t T �t=1 αt T ��t=1 <sup>σL</sup> + Lη)αT + <sup>4L</sup> n n + Lη)αT + <sup>4L</sup> <sup>σL</sup> n n =( <sup>2σL</sup> n αT (RD(θ1) −RD(θ <sup>∗</sup> ) + <sup>βσ2α</sup> 2 <sup>3T 2</sup> + ηLα <sup>2</sup> T <sup>2</sup> ) <sup>α</sup> 2 <sup>3T 2</sup> ≤( <sup>2σL</sup> n n αT r + <sup>σ2α2T 2</sup> <sup>2T 2</sup> + ηLα <sup>2</sup> T <sup>2</sup> 2 + 2 + <sup>4L</sup> <sup>σαT L</sup> n n √ ≤ηαT L + <sup>2σαT L</sup> n ηLαT ) √ <sup>L</sup> n <sup>(</sup> αT r + <sup>σαT</sup> √2 αT r . n =ηαT L + <sup>2αT L</sup> (σ + n =ηαT L + <sup>2αT L</sup> √ 2σ + 2�ηL) + <sup>4L</sup> A.4 Proof of Theorem 12 We first prove several lemmas. Lemma 19. Suppose the adversarial loss h(θ, z) is ν-approximately ρ-Hessian Lipschitz with respect to θ. At step t with π(t)̸ = i, we have where ||GA(θt) −GA(θt <sup>′</sup> t <sup>′</sup> <sup>)|| ≤</sup> <sup>(1 + αtξt(S, z, i, A))δt(S, z, i, A),</sup> ξt(S, z, i, A) = ||∇h(θ1, zπ(t))|| + <sup>ρ</sup> 2 t−1 k�=1 <sup>ρ</sup> 2 <sup>(</sup> αk(||∇h(θk, zπ(k)|| + ||∇h(θk <sup>′</sup> k <sup>′</sup> <sup>, z′</sup> π <sup>′</sup> (k) <sup>)||) + ν.</sup> k <sup>c</sup> <sup>with c ≤</sup> β <sup>1</sup> Furthermore, when αk = k <sup>c</sup> β <sup>1</sup> <sup>, we have</sup> S,zE <sup>[ξt(S, z, i, A)]</sup> ≤ Ez <sup>[||∇2h(θ1, z)||] + ν + 2ρ</sup> RD(θ1) −RD(θ <sup>∗</sup> )c(1 + ln t) + 2ρσc βc(1 + ln t) + ρc(σ + 2 ηL)(1 + ln t). - Proof. For π(t)̸ = i, we have t <sup>′)|| ≤||θt −</sup> <sup>θ</sup> t <sup>′</sup> ̸ ||GA(θt) −GA(θt <sup>′</sup> t <sup>′|| + αt||∇h(θt, zπ(t)) −∇h(θ</sup> t <sup>′</sup> t <sup>′</sup> <sup>, zπ(t))||.</sup> For brevity, we denote ht(θ) = h(θ, zπ(t)). By Taylor expansion with integral remainder, we have ∇ht(θt) −∇ht(θt <sup>′</sup> t <sup>′)</sup> t <sup>′</sup> <sup>−</sup> <sup>θt)) −∇2ht(θ1))dτ</sup> <sup>· (θt −</sup> <sup>θ</sup> t <sup>′</sup> <sup>θ</sup> t <sup>′) + ∇2ht(θ1) · (θt −</sup> <sup>θ</sup> t <sup>′</sup> = = �01 �01 01 ∇ <sup>2</sup> ht(θt + τ (θt <sup>′</sup> 01(∇ <sup>2</sup> ht(θt + τ (θt <sup>′</sup> t <sup>′</sup> <sup>−</sup> <sup>θt))dτ</sup> <sup>· (θt</sup> <sup>−</sup> <sup>θ</sup> t <sup>′</sup> t <sup>′).</sup> t <sup>′)</sup> Since h is ν-approximately ρ-Hessian Lipschitz, ||∇ht(θt) −∇ht(θt <sup>′</sup> �01 t <sup>′</sup> <sup>)||</sup> θt <sup>′</sup> <sup>−</sup> <sup>θt) −</sup> <sup>θ1||dτ</sup> <sup>+ ν + ||∇2ht(θ1)||) · ||θt −</sup> <sup>θ</sup> t <sup>′</sup> ≤ (ρ 01 ||θt + τ (θt <sup>′</sup> t <sup>′</sup> <sup>||.</sup> Note that Therefore, θt + τ (θ <sup>′</sup> θt + τ (θt <sup>′</sup> <sup>−</sup> <sup>θt) −</sup> <sup>θ1</sup> = (1 − τ )(θt − θ1) + τ (θt <sup>′</sup> t−1 k�=1 t−1 k�=1 t <sup>′</sup> <sup>−</sup> <sup>θ1)</sup> k <sup>′</sup> <sup>)</sup> = (1 − τ ) = (1 − τ ) (θk+1 − θk) + τ αk∇h(θk, zπ(k)) + τ t−1 k�=1 (θ <sup>′</sup> θk <sup>′</sup> +1 <sup>−</sup> <sup>θ</sup> k <sup>′</sup> t−1 k�=1 t−1 k�=1 t−1 k�=1 αk∇hk(θk <sup>′</sup> k <sup>′</sup> <sup>, z</sup> π <sup>′</sup> π <sup>′</sup> (k) <sup>).</sup> �01 ≤ 2 <sup>1</sup> t−1 k�=1 01 ||θt + τ (θt <sup>′</sup> t <sup>′</sup> <sup>−</sup> <sup>θt) −</sup> <sup>θ1||dτ</sup> π <sup>′</sup> (k) <sup>)||).</sup> 2 <sup>1</sup> <sup>(</sup> αk(||∇h(θk, zπ(k)|| + ||∇h(θk <sup>′</sup> k <sup>′</sup> <sup>, z′</sup> Taking αk = k <sup>c</sup> <sup>and by Lemma 18, we have</sup> t−1 k�=1 1 2 <sup>(</sup> αk(||∇h(θk, zπ(k)|| + ||∇h(θk <sup>′</sup> k <sup>′</sup> <sup>, z′</sup> π <sup>′</sup> (k) <sup>||))</sup> t−1 ≤σ k�=1 t−1 k�=1 αk + 2 t−1 �k�=1 αk · t−1 k�=1 α <sup>2</sup> k <sup>+ ηL</sup> αk k=1 - 2 ��RD(θ1) −RD(θ∗) + <sup>βσ2</sup> 2 �(RD(θ1) −RD(θ <sup>∗</sup> ) + βc <sup>2</sup> σ <sup>2</sup> + cηL(1 + ln t) βc(1 + ln t) + c(σ + 2 ≤cσ(1 + ln t) + 2 RD(θ1) −RD(θ <sup>∗</sup> )c(1 + ln t) + 2σc ηL)(1 + ln t). ≤2 c(1 + ln t) · The penultimate inequality is due to t k�=1 1 k <sup>≤</sup> <sup>1 + ln t,</sup> <sup>and</sup> t k�=1 1 t <sup>.</sup> k <sup>2</sup> <sup>≤</sup> <sup>2 −</sup> <sup>1</sup> Lemma 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 <sup>2</sup> ] ≤ σ <sup>2</sup> . Then for all |c| ≤ 21b <sup>, we have that E[ecZ] ≤</sup> <sup>ec2σ2</sup> <sup>.</sup> We now prove Theorem 12. Proof. Let ∆t(S, z, i) = EA[δt(S, z, i, A)|δt0(S, z, i, A) = 0]. By Lemma 16, ∀t0 ∈ [n + 1], S,z,EA <sup>[h(θT +1, z) −</sup> <sup>h(θ</sup> T <sup>′</sup> S,z <sup>E</sup> <sup>[∆T +1(S, z, i)] +</sup> <sup>t0 −</sup> n <sup>1</sup> T <sup>′</sup> +1 <sup>, z)] ≤</sup> <sup>L</sup> S,z <sup>E</sup> E <sup>−</sup> n <sup>1</sup> S,A <sup>[RD(θT +1)].</sup> When π(t) = i with probability n <sup>1</sup> <sup>, we have</sup> ||GA(θt) −GA(θt <sup>′)|| ≤</sup> <sup>δt(S, z, i, A) + 2αtL.</sup> When π(t)̸ = i with probability 1 − n <sup>1</sup> <sup>, we have</sup> ||GA(θt) −GA(θt <sup>′</sup> <sup>)|| ≤</sup> <sup>(1 + αtβ)δt(S, z, i, A) + αtη,</sup> by the second statement in Lemma 15 and ||GA(θt) −GA(θt <sup>′</sup> <sup>)|| ≤</sup> <sup>(1 + αtξt(S, z, i, A))δt(S, z, i, A),</sup> by Lemma 19. Let and we have ψt(S, z, i) = EA <sup>[min{ξt(S, z, i, A), β}]</sup> ∆t+1(S, z, i) ≤ n <sup>1</sup> n <sup>1</sup> <sup>(∆t(S, z, i) + 2αtL) + (1 −</sup> n <sup>1</sup> n <sup>1</sup> <sup>)((1 + αtψt(S, z, i))∆t(S, z, i) + αtη)</sup> n <sup>1</sup> <sup>)αtψt(S, z, i))∆t(S, z, i) +</sup> <sup>2αtL + (</sup> n <sup>n −</sup> <sup>1)αtη</sup> =(1 + (1 − n <sup>1</sup> ≤ exp((1 − n <sup>1</sup> n n <sup>1</sup> <sup>)αtψt(S, z, i))∆t(S, z, i) +</sup> <sup>2α</sup> n <sup>tL</sup> + αtη. <sup>α</sup> n <sup>tL</sup> Note that ∆t0 (S, z, i) = 0 and αt = <sup>c</sup> t <sup>. We have</sup> ∆T +1(S, z, i) T t�=t0 T t�=t0 <sup>2</sup> nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t <sup>cη</sup> t <sup>)</sup> T =�t exp( <sup>(n −</sup> <sup>1)cψk(S, z, i)</sup> ≤ = T t�=t0 T t�=t0 ( exp( <sup>(n −</sup> <sup>1)c</sup> n k=t+1 <sup>cψk(S, z, i)</sup> ))( <sup>2cL</sup> nk nt T k=�t+1 S, z, i) )( <sup>2cL</sup> k nt t <sup>).</sup> ψk(S, z, i) <sup>2</sup> nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t Let µk = ES,z[ψk(S, z, i)]. We have |ψk(S, z, i) − µk| ≤ 2β and S,zE <sup>[exp(c</sup> T k=�t+1 ψk(S, z, i) )] k T k=�t+1 T k=�t+1 µk k <sup>).</sup> = S,zE <sup>[exp(c</sup> T =�t+1 ψk(S, z, i) − µk )] exp(c k Since | T k=�t+1 ψk(S, z, i) − µk k | ≤ 2β ln T, we assume c ≤ min{ 2(2β ln1 T ) <sup>2,</sup> 2(2β1 ln T ) <sup>}. By Lemma 20, we have</sup> T k=�t+1 S,zE <sup>[exp(c</sup> ψk(S, z, i) − µk )] k ψk(S, z, i) − µk ≤ exp(c <sup>2</sup> S,zE k=t+1 S,zE <sup>[(</sup> T =�t+1 ψk(S, z, i) − µk ) <sup>2</sup> ]) k T k=�t+1 1 ≤ exp( 2 <sup>c</sup> S,z <sup>E</sup> <sup>[(</sup> 2β ln T 1 2 <sup>c</sup> S,z <sup>E</sup> <sup>[(</sup> 2β ln T T =�t+1 ψk(S, z, i) − µk ) <sup>2</sup> ]) k ≤ exp( 2 <sup>c</sup> S,z <sup>E</sup> <sup>[|</sup> ≤ exp( 2 <sup>c</sup> T k=�t+1 T =�t+1 ψk(S, z, i) − µk k |]) ≤ exp( 2 <sup>c</sup> T k=�t+1 T =�t+1 ES,z[|ψk(S, z, i) − µk|] ) k ES,z[|ψk(S, z, i) − µk|] T k=�t+1 T =�t+1 T =�t+1 µk k <sup>).</sup> ψk(S, z, i) k )] ≤ exp(c It follows that Note that ≤ exp(c S,zE <sup>[exp(c</sup> T k=�t+1 T k=�t+1 2µk k <sup>).</sup> µk ≤ min{EA EA <sup>[ E</sup> S,z <sup>E</sup> S,z <sup>[ξk(S, z, i, A)]], β}.</sup> Assuming in addition that c ≤ β <sup>1</sup> <sup>, we have ES,z[ξk(S, z, i, A)] is bounded by γ</sup> <sup>by Lemma 19. We have that</sup> S,zE <sup>[∆T +1(S, z, i)]</sup> T k=�t+1 T =�t+1 t <sup>)</sup> ≤ ≤ ≤ T t�=t0 T t�=t0 T t�=t0 exp(2cγ(1 − n <sup>1</sup> <sup>)</sup> exp(2cγ(1 − n <sup>1</sup> k1 <sup>)(2</sup> nt <sup>cL</sup> nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t exp(2cγ(1 − n <sup>1</sup> n <sup>1</sup> <sup>) ln T</sup> t t <sup>)(2</sup> nt <sup>cL</sup> nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t t <sup>)</sup> exp(2cγ ln <sup>T</sup> t nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t <sup>T</sup> t <sup>)(2</sup> nt <sup>cL</sup> <sup>cη</sup> t <sup>)</sup> = ( <sup>2cL</sup> + cη)T <sup>2cγ</sup> n T t <sup>−2cγ−1</sup> t�=t0 Thus, T )( ≤ ( <sup>2L</sup> 2 <sup>+</sup> nγ <sup>ηn</sup> t0 − 1 <sup>)2cγ.</sup> T +1 <sup>, z)] ≤</sup> <sup>(2L2</sup> 2 <sup>+</sup> nγ <sup>ηnL</sup> <sup>′</sup> E (16) n S,A <sup>[RD(θT )].</sup> <sup>−</sup> <sup>1</sup> E S,z,A <sup>[h(θT +1, z) −</sup> <sup>h(θ′</sup> T )( 2 <sup>+</sup> nγ <sup>ηnL</sup> n t0 − 1 <sup>)2cγ</sup> <sup>+</sup> <sup>t0 −</sup> <sup>1</sup> Let q = 2cγ and r = ES,A[RD(θT +1)]. Setting t0 = ((2L <sup>2</sup> + nηL) <sup>cT q</sup> r 1+1 q + 1 <sup>q</sup> r <sup>)</sup> minimizes Equation (16) and we have (2cL <sup>2</sup> + ncηL) ε(D, θ1) ≤ <sup>1 + 1</sup> n <sup>/q</sup> ε(D, θ1) ≤ <sup>1 + 1</sup> n <sup>/q</sup> 1+q q . 1+1 q (T r) A.5 Proof of Theorem 13 Proof. Let ∆t(S, z, i) = EA[δt(S, z, i, A)|δt0(S, z, i, A) = 0]. By Lemma 16, ∀t0 ∈ [n + 1], S,z,EA <sup>[h(θT +1, z) −</sup> <sup>h(θ</sup> T <sup>′</sup> S,z <sup>E</sup> <sup>[∆T +1(S, z, i)] +</sup> <sup>t0 −</sup> n <sup>1</sup> T <sup>′</sup> +1 <sup>, z)] ≤</sup> <sup>L</sup> S,z <sup>E</sup> E <sup>−</sup> n <sup>1</sup> S,A <sup>[RD(θT +1)].</sup> When π(t) = i with probability n <sup>1</sup> <sup>, we have</sup> When π(t)̸ = i with probability 1 − n <sup>1</sup> ||GA(θt) −GA(θt <sup>′)|| ≤</sup> <sup>δt(S, z, i, A) + 2αtL.</sup> ̸ n <sup>1</sup> <sup>, we have</sup> ̸ ||GA(θt) −GA(θt <sup>′</sup> t <sup>′</sup> <sup>)|| ≤</sup> <sup>(1 + αtβ)δt(S, z, i, A) + αtη,</sup> by the second statement in Lemma 15. We have ∆t+1(S, z, i) ≤ n <sup>1</sup> n <sup>1</sup> <sup>(∆t(S, z, i) + 2αtL) + (1 −</sup> n <sup>1</sup> n <sup>1</sup> <sup>)((1 + αtβ)∆t(S, z, i) + αtη)</sup> =(1 + (1 − n <sup>1</sup> n <sup>n −</sup> <sup>1)αtη</sup> ≤ exp((1 − n <sup>1</sup> n <sup>1</sup> <sup>)αtβ)∆t(S, z, i) +</sup> <sup>2αtL + (</sup> n <sup>n −</sup> <sup>1)αtη</sup> n <sup>1</sup> <sup>)αtβ)∆t(S, z, i) +</sup> <sup>2α</sup> n <sup>tL</sup> + αtη. n <sup>tL</sup> <sup>c</sup> t <sup>with c ≤</sup> β <sup>1</sup> Let αt = <sup>c</sup> t β <sup>1</sup> <sup>. It follows that</sup> nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t t <sup>)</sup> T =�t+1 exp( <sup>(n −</sup> <sup>1)cβ)</sup> ∆T +1(S, z, i) ≤ = ≤ ≤ T t�=t0 T t�=t0 T t�=t0 T t�=t0 T t�=t0 T t�=t0 ( k=t+1 <sup>1)cβ)</sup> ))( <sup>2cL</sup> nk nt T t�=t0 T t�=t0 exp( <sup>(n −</sup> <sup>1)c</sup> n T k=�t+1 βk <sup>)(2</sup> nt <sup>cL</sup> nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t t <sup>)</sup> exp( <sup>(n −</sup> <sup>1)cβ</sup> <sup>T</sup> t <sup>)(2</sup> nt <sup>cL</sup> <sup>1)cβ</sup> ln <sup>T</sup> n t nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t t <sup>)</sup> exp(2cβ ln <sup>T</sup> t nt <sup>cL</sup> <sup>+</sup> <sup>cη</sup> t <sup>T</sup> t <sup>)(2</sup> nt <sup>cL</sup> <sup>cη</sup> t <sup>)</sup> = ( <sup>2cL</sup> + cη)T <sup>2cβ</sup> n = ( <sup>2cL</sup> T t�=t0 T t�=t0 t <sup>−2cβ−1</sup> ≤ ( <sup>2L</sup> 2 <sup>+</sup> nβ <sup>ηn</sup> Let q = 2cβ and r = ES,A[RD(θT +1)]. Setting T )( 2 <sup>+</sup> nβ <sup>ηn</sup> t0 − 1 <sup>)2cβ.</sup> t0 = ((2L <sup>2</sup> + nηL) <sup>cT q</sup> r 1+1 q + 1, <sup>q</sup> r <sup>)</sup> we have (2cL <sup>2</sup> + ncηL) ε(D, θ1) ≤ <sup>1 + 1</sup> n <sup>/q</sup> ε(D, θ1) ≤ <sup>1 + 1</sup> n <sup>/q</sup> 1+q q . 1+1 q (T r) B Discussions of uniform stability-based counterparts Uniform stability analysis employs the following notion: Definition 21 (Uniform stability). A randomized algorithm A is ε-uniformly stable if for all S, S <sup>′</sup> ∈ D <sup>n</sup> such that S and S <sup>′</sup> differ in at most one element, we have supz∈D <sup>E</sup> A <sup>[h(A(S), z) −</sup> <sup>h(A(S′), z)] ≤</sup> <sup>ε.</sup> (17) Thus 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 <sup>′</sup> are independent of D. A generalization bound was given as follows. Theorem 22 (Hardt, Recht, and Singer 2016). If A is ε-uniformly stable, then the robust generalization gap of A is bounded by ε: | S,EA <sup>[RD(A(S)) −RS(A(S))]|</sup> <sup>≤</sup> <sup>ε.</sup> The 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 = α ≤ β <sup>1</sup> <sup>. Then the generalization gap of algorithm A using the training set of size n after T</sup> <sup>steps of SGD update has</sup> an upper bound εgen = (η + <sup>2L</sup> n <sup>)αT L,</sup> where η 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 A poisoned algorithm AP 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 GAP are not affected by the attack P at all. Indeed, due to GAP (θ, z, α) = GA(θ, P(z), α), if GA is ι-approximately κ-expansive, the poisoned update rule GAP is ι-approximately κ-expansive as well. Therefore, uniform stability analysis provides the same upper bound of ||AP (S) −AP (S <sup>′</sup> )||. Thus, Theorem 23 implies the following proposition. proposition 24. The poisoned generalization gap εP based on the uniform stability analysis remains unchanged, i.e. εP = (η + <sup>2</sup> n <sup>L</sup> n <sup>L</sup> <sup>)αT L.</sup> Similar 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). Proof. By Theorem 22 and the Lipschitz assumption, it suffices to prove [||AP (S) −AP (S <sup>′</sup> )||] ≤ (η + <sup>2</sup> n <sup>L</sup> <sup>)αT.</sup> (18) E AP 1 <sup>′</sup> <sup>, · · ·</sup> <sup>, θ</sup> T <sup>′</sup> <sup>respectively. Let δt</sup> <sup>=</sup> <sup>||θt</sup> <sup>−</sup> <sup>θ</sup> t <sup>′</sup> Assume the trajectories of AP (S) and AP (S <sup>′</sup> ) are θ1, · · ·, θT and θ1 <sup>′</sup> Assume the trajectories of AP (S) and AP (S <sup>′</sup> ) are θ1, · · ·, θT and θ1 <sup>′</sup> <sup>, · · ·</sup> <sup>, θ</sup> T <sup>′</sup> <sup>respectively. Let δt</sup> <sup>=</sup> <sup>||θt</sup> <sup>−</sup> <sup>θ</sup> t <sup>′||. By the third</sup> statement in Lemma 15, the update rule GA is αη-approximately 1-expansive. Since we have GAP (θ, z, α) = GA(θ, P (z), α), the update rule GAP is αη-approximately 1-expansive as well due to the Definition 14. Note that at step t the algorithm AP selects the example that S and S <sup>′</sup> differ with probability n <sup>1</sup> <sup>. In this case,</sup> n <sup>1</sup> <sup>. In this case,</sup> In the other case, It follows that Therefore, Equation (18) follows. δt+1 ≤ δt + 2αL. δt+1 ≤ δt + αη. AP AP E AP [δt+1] ≤ n <sup>1</sup> n <sup>1</sup> <sup>( E</sup> AP [δt] + 2αL) + (1 − n <sup>1</sup> n <sup>1</sup> <sup>)( E</sup> AP [δt] + αη) ≤ E AP [δt] + (η + <sup>2L</sup> n <sup>L</sup> n <sup>)α.</sup> C Experiments Setups We 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 For CIFAR-10 and CIFAR-100, we perform RandomHorizontalFlip, RandomCrop(32, 4) on 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. C.2 Adversarial Training We 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 classified adversarial examples generated by PGD-10, and the robust generalization gap as the gap between robust training accuracy and robust test accuracy. We use the SGD optimizer in PyTorch and set the momentum and weight decay to be 0.9 and 5 × 10 <sup>−4</sup> 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 We 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. EM (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: n �i=1 ||δmini||≤ǫ <sup>′ l(fθ(xi + δi), yi)),</sup> min θ 1 n where ǫ <sup>′</sup> is the poisoning budget. The trained noise generator fθ generates an unlearnable example (xem, y) with respect to the clean datum (x, y) such that xem = 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. REM (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: min max i <sup>u||≤ǫ′</sup> ||δi <sup>a||≤</sup> n �i=1 min ||δi <sup>u||≤</sup> min θ 1 n max i i <sup>a||≤ρa l(fθ(x + δu</sup> i <sup>u</sup> <sup>+ δ</sup> i <sup>a</sup> i <sup>a), y),</sup> where ǫ <sup>′</sup> 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 (xrem, y) with respect to the clean datum (x, y) such that xrem = x + arg min||δi <sup>u||≤ǫ′ max||δ</sup> i <sup>a||≤ρa l(fθ(x + δu + δa), y). It is worth noting</sup> respect to the clean datum (x, y) such that xrem = x + arg min||δi <sup>u||≤ǫ′ max||δ</sup> i <sup>a||≤ρa l(fθ(x + δu + δa), y). It is worth noting</sup> 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. Following (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 <sup>−4</sup>, 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. ADV (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: i <sup>u||≤ǫ′ max||δ</sup> i <sup>a</sup> together to xadv = arg ||minδ||≤ǫ <sup>′ l(fθ(x + δ), t),</sup> where fθ is a classifier naturally trained on the combination of the training set and test set, and ǫ <sup>′</sup> 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 ǫ <sup>′</sup> which can mislead the learner by reinforcing the non-robust features. Formally: xhyp = arg ||minδ||≤ǫ <sup>′ l(fθ(x + δ), y),</sup> 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. labelRAN y according to the uniform distribution. Then we have poisoned pairs(class-wise random perturbation). In our experiment, we generate (x +a prandomy, y). It is important that we choose the sameperturbation py ∈ B(0, ǫ <sup>′</sup> ) for each class-wise random perturbation for the training set and test set.

섹션 본문 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건

  1. Learnability, Stability and Uniform Convergence Journal of Machine Learning Research · The MIT Press · 2010
  2. Intriguing properties of neural networks 2013
  3. Escaping From Saddle Points --- Online Stochastic Gradient for Tensor Decomposition arXiv (Cornell University) · Cornell University · 2015
  4. Train faster, generalize better: Stability of stochastic gradient descent arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1509.01240
  5. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images 2015 10.1109/cvpr.2015.7298640
  6. Explaining and Harnessing Adversarial Examples arXiv (Cornell University) · Cornell University · 2014
  7. Robust Stochastic Approximation Approach to Stochastic Programming SIAM Journal on Optimization · Society for Industrial and Applied Mathematics · 2009 10.1137/070704277
  8. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  9. DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks 2016 10.1109/cvpr.2016.282
  10. Reading Digits in Natural Images with Unsupervised Feature Learning 2011
  11. Data-Dependent Stability of Stochastic Gradient Descent International Conference on Machine Learning · 2017
  12. Adversarially Robust Generalization Requires More Data arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1804.11285
  13. A Convergence Theory for Deep Learning via Over-Parameterization arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1811.03962
  14. Theoretically Principled Trade-off between Robustness and Accuracy arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1901.08573
  15. Improving Adversarial Robustness Requires Revisiting Misclassified Examples International Conference on Learning Representations · 2020
  16. Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuning 2020 10.1109/cvpr42600.2020.00078
  17. 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
  18. 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
  19. Adversarial Weight Perturbation Helps Robust Generalization arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.05884
  20. Train simultaneously, generalize better: Stability of gradient-based minimax learners arXiv (Cornell University) · Cornell University · 2020
  21. Unlearnable Examples: Making Personal Data Unexploitable 2021
  22. Robust Overfitting may be mitigated by properly learned smoothening 2021
  23. Adversarial Examples Make Strong Poisons arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2106.10807
  24. Better Safe Than Sorry: Preventing Delusive Adversaries with Adversarial\n Training arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2102.04716
  25. On the Algorithmic Stability of Adversarial Training Neural Information Processing Systems · 2021
  26. Fooling Adversarial Training with Inducing Noise arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2111.10130
  27. Can Adversarial Training Be Manipulated By Non-Robust Features? arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2201.13329
  28. Robust Weight Perturbation for Adversarial Training Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence · 2022 10.24963/ijcai.2022/512
  29. Availability Attacks Create Shortcuts Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining · 2022 10.1145/3534678.3539241
  30. Improving Robustness using Generated Data arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2110.09468
  31. Stability of Stochastic Gradient Descent on Nonsmooth Convex Losses arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2006.06914
  32. Learning to Confuse: Generating Training Time Adversarial Data with\n Auto-Encoder arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.09027
  33. Adversarial Examples Are Not Bugs, They Are Features arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.02175
  34. Achieving optimal adversarial accuracy for adversarial deep learning using Stackelberg games Acta Mathematica Scientia · Elsevier BV · 2022 10.1007/s10473-022-0613-y
  35. On Assessing ML Model Robustness: A Methodological Framework (Academic Track) Dagstuhl Research Online Publication Server · 2025 10.4230/oasics.saia.2024.1
  36. Certifying Some Distributional Robustness with Principled Adversarial\n Training arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1710.10571
  37. Stability Analysis and Generalization Bounds of Adversarial Training arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2210.00960
  38. Better Diffusion Models Further Improve Adversarial Training arXiv (Cornell University) · Cornell University · 2023 10.48550/arxiv.2302.04638
  39. Why Robust Generalization in Deep Learning is Difficult: Perspective of Expressive Power arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2205.13863
  40. 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
  41. Is Adversarial Training Really a Silver Bullet for Mitigating Data Poisoning? Figshare · Figshare (United Kingdom) · 2023 1060882cispa25195511v1
  42. Stability and Generalization MPG.PuRe (Max Planck Society) · Max Planck Society · 2001