Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Identifying and Understanding Cross-Class Features in Adversarial Training

Cross-class features help robust training early and fade during robust overfitting

  • Problem Adversarial training overfits late in training, and no clear mechanism explains why. Prior explanations do not tie this late drop to how the model uses features.
  • Method The authors split learned features into cross-class features shared by several classes and class-specific features. They score cross-class use per checkpoint with class attribution similarity (CAS).
  • Results Cross-class use peaks at the best checkpoint, with CAS 25.6, and falls to 9.0 by epoch 200 in vanilla AT.

Figure 10: Feature attribution correlation matrices, and their corresponding robust accuracy (RA), CAS at different epochs

Figure 10 . Feature attribution correlation matrices, and their corresponding robust accuracy (RA), CAS at different epochs.

Original paper · CC BY 4.0 · Zeming Wei, Yiwen Guo, Yisen Wang · Identifying and Understanding Cross-Class Features in Adversarial Training · Original paper figure · Extracted the figure area from page 13 of the original PDF.

Why robust overfitting needs a mechanism

Adversarial training keeps a hard-to-read training dynamic, and robust overfitting is one of its clearest symptoms. Meanwhile the training robust error keeps decreasing, so the gap between training and test robust error grows large. Prior work on robust overfitting has offered several explanations, but none of them tie the late-stage drop to how the model uses features.

Soft labels raise a second puzzle that existing accounts also leave open. Integrating knowledge distillation into AT improved CIFAR-10 results from 41% to 48% and also mitigated robust overfitting. Many smoothed-label AT variants were proposed, but no unified view explains how they raise peak performance and also curb robust overfitting.

The authors therefore look for a single account of both effects, using class-wise feature attribution. They split the features a model learns into cross-class features, shared by several classes, and class-specific features. Their attribution vector for a class, built from the per-feature contributions to that class's logit, lets them measure cross-class feature usage.

That measurement is the starting point for the cross-class view that the following section develops.

A cross-class view of AT

The key idea is to split what a model learns into class-specific features and cross-class features shared by several classes. Wheels shared by automobile and truck in CIFAR-10 serve as the running example. The authors examine how these features are used across stages of AT, and they find that the model learns more cross-class features early on.

The authors hypothesise that early in AT, both kinds of feature help reduce the robust loss at the same time. Later, a cross-class feature raises positive logits on other classes, which under one-hot labels yields a positive robust loss. So the model drops shared features and leans on class-specific ones to keep reducing that loss. Memorization of training samples and their adversarial examples also lowers the training robust error in this later stage.

The authors argue that this shift hurts test robust error, because forgetting cross-class features lowers test robust accuracy and produces robust overfitting.

This drop has a cost, because cross-class features help robust classification. A model that uses only class-specific features can't reach the best robust accuracy. Soft labels fit the story: a teacher's smoothed target keeps more shared features, so fewer get forgotten. The authors suggest that a teacher model in knowledge distillation captures cross-class features and turns the one-hot label into a more precise target.

Measuring cross-class feature usage

The authors start from a K-class model built from a feature extractor g and a linear layer W. The logit for class i is the sum over features j of g(x)_j W[i,j], so each feature adds its own piece to that logit. These per-feature pieces form the attribution vector A_i(x) for sample x on class i. Each element of A_i(x) records the weight of one feature in that class's logit.

Because the paper cares only about adversarial robustness, it looks at robust features on adversarial inputs. The attack is an untargeted PGD attack inside the epsilon ball, and the authors craft one adversarial example per test sample. For each class, they average the attribution vectors of its adversarial test samples, so each class gets a single vector.

The full procedure appears as Algorithm 1 in the appendix.

The attribution correlation matrix C holds the cosine similarity between each pair of class vectors. A high value at C[i,j] means the model uses more features shared by classes i and j. For example, the wheels shared by automobile and truck would raise the entry for that pair. Figure 2 shows such matrices for models at epochs 70, 108 and 200.

The authors reduce each matrix to one number called Class Attribution Similarity, or CAS. CAS sums the positive off-diagonal entries of C, so the diagonal is excluded. The max function drops negative entries, since the authors find them small and not decisive for their analysis. CAS therefore gives a checkpoint-level indicator of how much cross-class feature usage the model has.

How cross-class usage changes across AT checkpoints

The authors trained PreActResNet-18 on CIFAR-10 for 200 epochs with vanilla AT, following the Pang et al. code base. The best test robust accuracy came at the 108th epoch, so they compare that checkpoint with an under-fitted one at epoch 70 and an over-fitted one at epoch 200. Each checkpoint gets a feature attribution correlation matrix, and CAS summarises the positive off-diagonal entries of that matrix.

CAS only keeps positive correlations, because the negative elements are small and don't change the analysis.

At epoch 108, robust accuracy reached 47.8% with CAS at 25.6. At epoch 200, robust accuracy fell to 42.5% and CAS dropped to 9.0. The under-fitted checkpoint at epoch 70 sits at 42.6% robust accuracy with CAS 18.2, so CAS climbs before it falls. The matrices show the same pattern: more large off-diagonal entries at the best checkpoint, and a clear decay by the end of training.

The authors read the rise as the model learning cross-class features early, since they help lower the robust loss when that loss is large. Later, the model shifts weight toward class-specific features, and that shift makes the cross-class signal fade. They don't claim the fall is caused by one mechanism alone, but they link it to robust overfitting through this forgetting.

Soft labels keep cross-class usage

Adversarial training with knowledge distillation shows a different late-stage pattern from vanilla AT. The best checkpoint reaches 48.1% robust accuracy with a CAS of 25.7. The last checkpoint keeps 46.2% robust accuracy with a CAS of 24.1. In the vanilla run, CAS falls from 25.6 at the best checkpoint to 9.0 at epoch 200. Because the distilled model's CAS barely changes, its shared-feature usage stays nearly flat.

The authors find no significant differences between the best and last matrices in Figure 3 (a) and (b). They conclude that distillation helps by identifying cross-class features and giving more precise labels. Vanilla AT with one-hot labels may suppress cross-class features in the model weights. The authors expect temporal ensembling to mitigate robust overfitting in the same way.

Grad-CAM compares the two checkpoints on adversarial examples that the best checkpoint classifies correctly and the last one misclassifies. For an automobile sample, the best checkpoint attends to the whole car, including the wheels. The last checkpoint focuses on the car roof, which is exclusive to automobiles. Other examples show the same local pattern, with the mane for horse and the antlers for deer.

Effect of the perturbation bound on cross-class features

Robust overfitting gets worse as the perturbation bound grows across the usual range, and it is milder at 2/255. The authors test whether forgetting cross-class features follows the same trend as epsilon grows. Figure 4 plots the difference between the best and last attribution matrices, measured as the CAS gap, for each bound. The CAS gap is 4.1 at 2/255, 8.9 at 4/255, 13.8 at 6/255 and 16.6 at 8/255.

The gap is small at the smallest bound and widens as epsilon grows, which the authors read as evidence that forgetting drives robust overfitting. At 2/255 the best and last checkpoints don't differ significantly in their matrices.

Table 1 compares epsilon values of 8/255, 12/255 and 16/255 at epoch 10, the best checkpoint and the last checkpoint. At epoch 10, CAS is 16.7 for 8/255 and 14.4 for 16/255, so the larger bound learns fewer shared features early. At the best checkpoint, CAS drops from 25.6 for 8/255 to 17.5 for 16/255. The CAS gap between best and last shrinks as epsilon grows, matching the smaller drop in robust accuracy.

The authors explain this with a more rigid robust loss that suppresses shared features from the start.

Figure 4: The differences between the feature attribution corre-
lation matrices ( Cbest − Clast) and CAS of the best and the last
checkpoint with various trai…

Figure 4 . The differences between the feature attribution corre- lation matrices ( Cbest − Clast) and CAS of the best and the last checkpoint with various training perturbation bound ϵ.

Original paper · CC BY 4.0

Larger epsilon therefore reduces the features the model can later forget, which weakens robust overfitting at very large bounds. The authors don't train their own catastrophic overfitting runs at these bounds, so this section stays with robust overfitting.

Synthetic model and the three theorems

The authors build a three-class synthetic model where each class owns one exclusive feature and each pair of classes shares one cross-class feature. Each sample has six attribution coordinates in R6, and the model follows the robust and non-robust feature setup of Tsipras et al., while leaving out the non-robust features. The exclusive feature and the two shared features that skip its index are drawn from a normal distribution with mean μ and variance σ2, and the remaining coordinates are zero.

The analysis assumes σ below √π μ, so that the variance stays controlled.

The linear classifier has two weights, w1 for exclusive features and w2 for shared ones, and the authors constrain both to be non-negative. Its i-th logit is w1 times the exclusive feature plus w2 times the sum of the two shared features that skip class i. Adversarial training uses an ℓ∞ bound ε below μ/2 and adds a small L2 penalty on w.

Under this robust loss, w1 stays positive for every ε in (0, μ/2), while w2 is set to zero once ε passes a threshold.

Training with ε above ε0 drives w2 to zero, so the cross-class weight is the first to be dropped as the robust loss tightens. Theorem 2 says that for w2 between 0 and w1, a larger w2 raises the probability that the model gives the true class the highest logit under any perturbation within the bound. So shared features still help robust classification, even though adversarial training removes them.

Label smoothing replaces knowledge distillation in the analysis, because the symmetry of the setup makes the two other-class logits identical in expectation. Corollary 1 states that for ε below ε1, the label smoothed w2 is larger than the standard one. The difference between the two w2 values equals β(2ε + σ√π)λ, which is positive, so smoothing preserves more shared features.

Large epsilon, FAT and other checks

For epsilon above 8/255, several works report that robust overfitting weakens. The authors' account is that a rigid robust loss makes shared features harder to learn early, so fewer exist to forget later. The 8/255, 12/255 and 16/255 comparison fits this picture.

After catastrophic overfitting, CAS fell to 2.1 and robust accuracy dropped to 0.1%. The authors argue that forgetting shared features is also behind catastrophic overfitting.

Figure 7: Feature attribution correlation matrices for fast adver-
sarial training at different stages, including epoch 10, best check-
point, and after catast…

Figure 7 . Feature attribution correlation matrices for fast adver- sarial training at different stages, including epoch 10, best check- point, and after catastrophic overfitting (CO).

Original paper · CC BY 4.0

An instance-wise variant pairs each sample with its most similar sample from the other class and averages cosine similarity. For ℓ∞ AT, I-CAS was 34.9 at the best checkpoint and 25.6 at the last. For ℓ2 AT the values were 27.0 and 14.9.

Standard training on clean examples gave CAS of 7.3, 8.4, 9.8 and 10.2 at epochs 50, 100, 150 and 200. The authors note these values lie well below the usual AT values, which generally exceed 20.

On CIFAR-100 the best checkpoint had robust accuracy 24.7% and CAS 569, and the last had 19.6% and CAS 352. On Tiny-ImageNet, the best checkpoint had 18.0% and CAS 1548, and the last had 14.4% and CAS 998.

For DeiT-Ti on CIFAR-10, the best checkpoint had 47.9% and CAS 25.4, and the last had 42.6% and CAS 16.6. The ℓ2 AT results follow the same pattern, at 69.8% and CAS 22.1 at best versus 65.6% and CAS 10.7 at the last.

Limitations of the cross-class feature evidence

CAS only adds up the positive off-diagonal correlations, so the metric ignores negative entries by design. The authors justify this by pointing to Figure 2, where the negative elements look small. Averaging over all sample pairs left each matrix element near zero, so the instance-wise variant pairs each sample with its nearest counterpart instead.

The detailed checkpoint matrices come from PreActResNet-18 on CIFAR-10 with ℓ∞ AT. Other datasets and architectures appear only as best and last comparisons, not as full training curves. Those comparisons cover CIFAR-100, Tiny-ImageNet, ℓ2-AT and DeiT-Ti, each shown at two checkpoints.

The theory covers a three-class linear model built on a Gaussian synthetic distribution. The authors say the extension to more dimensions can be easily derived, but the proof isn't written out. That extension uses 6K feature dimensions, and the appendix only sketches how the bounds carry over.

The link from cross-class forgetting to robust overfitting rests on CAS gaps between checkpoints. Those gaps come from comparing checkpoints, so the evidence is observational. The paper doesn't intervene on the shared features, so it can't test whether keeping them would prevent overfitting.

Paper info

Authors
Zeming Wei, Yiwen Guo, Yisen Wang
Venue
arXiv · Preprint
First published
2025-6-5
Added
2026-10-29
Updated
2025-6-5
Version
v1
arXiv
2506.05032
Category
cs.LG · cs.AI · cs.CR · cs.CV · math.OC
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Adversarial training (AT) has been considered one of the most effective methods for making deep neural networks robust against adversarial attacks, while the training mechanisms and dynamics of AT remain open research problems. In this paper, we present a novel perspective on studying AT through the lens of class-wise feature attribution. Specifically, we identify the impact of a key family of features on AT that are shared by multiple classes, which we call cross-class features. These features are typically useful for robust classification, which we offer theoretical evidence to illustrate through a synthetic data model. Through systematic studies across multiple model architectures and settings, we find that during the initial stage of AT, the model tends to learn more cross-class features until the best robustness checkpoint. As AT further squeezes the training robust loss and causes robust overfitting, the model tends to make decisions based on more class-specific features. Based on these discoveries, we further provide a unified view of two existing properties of AT, including the advantage of soft-label training and robust overfitting. Overall, these insights refine the current understanding of AT mechanisms and provide new perspectives on studying them. Our code is available at https://github.com/PKU-ML/Cross-Class-Features-AT.

Quote from the paper

Zeming Wei, Yiwen Guo, Yisen Wang (2025). Identifying and Understanding Cross-Class Features in Adversarial Training. arXiv:2506.05032v1. https://arxiv.org/abs/2506.05032v1

BibTeX
@misc{wei2025identifying,
  title = {{Identifying and Understanding Cross-Class Features in Adversarial Training}},
  author = {Zeming Wei and Yiwen Guo and Yisen Wang},
  year = {2025},
  eprint = {2506.05032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.05032v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up