WorksComputer Science
Structured Confidence Perturbation via Fisher Geometry for Adversarial Training
Abstract
Adversarial training is often plagued by "pseudo-attacks", perturbations that significantly increase the loss value but fail to truly alter the model's confidence structure. To address this, we propose two complementary approaches to directly attack and defend against confidence structure deformation. First, building upon the traditional loss maximization perspective, we introduce a hybrid objective that integrates cross-entropy and KL divergence, encouraging adversarial examples to simultaneously disrupt prediction accuracy and distribution consistency. Second, we geometrically reconstruct adversarial training by generating perturbations that maximize the distribution distance on the confidence manifold. Theoretical analysis shows that the optimal perturbation direction aligns with the principal eigenvectors of the Fisher information matrix. We also propose an efficient algorithm to avoid high-dimensional matrix computations. Experiments on multiple datasets and model architectures demonstrate that our method outperforms existing methods in adversarial robustness and robust transferability, particularly excelling in structural perturbations within high-confidence regions.
Introduction
Deep neural networks (DNNs) have achieved remarkable progress across numerous applications; however, despite their impressive performance, they remain highly susceptible to adversarial perturbations which conduct imperceptible modifications to inputs that cause incorrect predictions [1]. This vulnerability has raised significant concerns in safety–critical domains such as image recognition [2], autonomous driving [3], and anomaly detection [4]. Among various defense strategies, adversarial training has emerged as one of the most effective methods for improving model robustness [5, 6]. By jointly optimizing over clean and adversarial samples, it encourages models to learn stable decision boundaries under input perturbations.
Preprint.
Existing adversarial training methods are commonly grouped into gradient-based approaches, optimization-based formulations, and attack-driven adversarial sample generation. Gradient-based methods such as FGSM and PGD [7, 8] construct perturbations by following the loss gradient, offering high computational efficiency but ensuring robustness only in a local linear neighborhood. Optimization-based defenses treat adversarial training as a min–max problem and explicitly minimize the worst-case loss under bounded perturbations, often using solvers like L-BFGS [9] or zero-order optimization [10]; however, their computational overhead is typically prohibitive for large-scale models. Meanwhile, adversarial attack–based methods [11] generate perturbed samples directly by designing black-box or white-box attacks: black-box methods rely solely on model outputs, whereas white-box attacks exploit full model gradients and internal structures.
Prevailing adversarial training methods largely share a common heuristic: they craft perturbations by maximizing the classification loss with respect to the true label. While effective in reducing the predicted probability of the true class, this loss-centric paradigm often fails to induce meaningful, global changes in the model’s output distribution. As illustrated in Figure 1, even when the loss is increased, the relative ordering of confidence across classes may remain intact—a phenomenon we term pseudo-attacks. We define a "pseudo-attack" as a perturbation satisfying but . Even if the top-1 remains unchanged, the relative confidence ranking and distribution shape can still maintain local stability, meaning that the geometric vulnerability of the model near the decision boundary is not truly challenged. Such perturbations do not genuinely challenge the structural geometry of the model’s confidence manifold, leaving underlying vulnerabilities exposed.

Figure 1. Most previous methods add perturbation noise to a single discriminant value for adversarial training (top), while our SCP adds structured perturbations to the statistical manifold for adversarial training (bottom).
To move beyond local loss maximization, we argue that adversarial robustness should be grounded in the geometric stability of the model’s confidence distribution. In this paper, we introduce a unified adversarial training framework that operates directly on the statistical manifold of output probabilities. Our main contributions are summarized as follows:
We propose an enhanced Single Point Perturbation (SPP) strategy that combines cross-entropy (CE) and Kullback–Leibler (KL) divergence into a hybrid objective. Unlike prior uses of KL as a regularizer [12], we deploy it actively during attack generation to disrupt both the top-1 prediction and the overall confidence structure.
We develop a SCP framework that reformulates adversarial search as maximizing the distance between probability distributions on the confidence manifold. We show theoretically that the optimal perturbation aligns with the principal eigenvector of the Fisher Information
Matrix (FIM), which captures the local curvature of the manifold. To enable scalable computation, we derive an efficient eigen-decomposition that avoids explicit manipulation of high-dimensional FIM.
Extensive experiments on CIFAR-10, CIFAR-100, and Tiny-ImageNet demonstrate that our methods consistently improve adversarial robustness and enhance attack transferability across architectures. By directly targeting the geometric roots of model vulnerability, SCP and SPP advance the state of the art in adversarial training, offering a principled and computationally feasible path toward truly robust deep learning systems.
Related work
Adversarial Training and Geometry. Adversarial training (AT) has evolved from a local noise defense strategy into a holistic paradigm that reshapes the decision manifold of deep neural networks. Early mainstream gradient-based methods, such as FGSM [7] and PGD [8], primarily constructed adversarial perturbations within a local -sphere along the direction of steepest loss increase. While effective, their robustness was often limited to these direct input neighborhoods. To seek more globally stable solutions, optimization-based frameworks [8, 12] modeled adversarial training as a minimax game. Although subsequent acceleration strategies, such as FreeAT [13], YOPO [14], improved training efficiency, they essentially still followed the same loss-centric heuristic. In recent years, some methods, including feature scattering [15] and MART [16], have attempted to learn more transferable features through feature space alignment or hard example reweighting, but they often neglect the underlying geometry of the data manifold.
Many existing approaches rely on maximizing the cross-entropy (CE) loss to measure adversarial vulnerability, while methods such as TRADES maximize distributional discrepancy during attack generation. This approach is essentially a “pointwise suppression” of the true logit, which typically fails to induce a global distortion of the model’s confidence structure. While TRADES [12] and ensemble-based approaches [17] introduce KL divergence or diversity constraints, they generally treat distributional disparity as a scalar penalty rather than a structural measure. Our work breaks with this convention by redefining adversarial perturbations as geometric transformations on the confidence manifold and asserting that true robustness stems from the manifold’s geometric stability under structural stress.
Information-Theoretic Perspectives. The application of KL divergence in adversarial training has traditionally been limited to its use as a scalar measure of distributional disparity. A common practice is to use it as a consistency regularization term to balance the tradeoff between natural accuracy and adversarial robustness (e.g., TRADES [12] or gradient-smoothing approaches [18]). Another perspective stems from knowledge distillation, where KL divergence guides distribution alignment [19], thereby facilitating the learning of robust representations. However, most of these paradigms overlook the profound informational geometric meaning of KL divergence. Within the informational geometry framework, the KL divergence between two neighboring probability distributions is equivalent to a second-order approximation of the Mahalanobis distance defined by the Fisher information matrix (FIM).
Existing defense methods utilize its size for constraint but fail to fully leverage its potential as a tool for discovering structural vulnerabilities. Our research bridges this gap by transforming KL divergence from a passive regularization term into an active target for attack generation. By maximizing the manifold distance along the Fisher principal eigenvectors, we can systematically disrupt the global structure of the confidence distribution, rather than merely suppressing local outputs, forcing the model to learn a more resilient geometric representation and effectively overcoming the evaluation blind spots inherent in traditional paradigms.
Methodology
Traditional adversarial training generates perturbations by maximizing the loss function (e.g., cross-entropy CE), but such methods only locally suppress the logit of the true class, ignoring the global geometry of the confidence distribution (Figure 1). We propose that true robustness should stem from the model’s stability on the confidence manifold, i.e., the input perturbation should maximize the structural deformation of the output probability distribution. To this end, we design two complementary strategies:
Local Single-Point Perturbation (SPP): Jointly optimizes CE and KL divergence, simultaneously disrupting prediction accuracy and distribution consistency;
Global Structured Confidence Perturbation (SCP): From an information geometry perspective, it generates perturbations using the principal eigendirections of the Fisher Information Matrix (FIM), directly manipulating the curvature of the confidence manifold.
Geometric motivation: from single points to manifold deformation
Let the model be , where denotes the parameters and is the number of classes. The softmax output defines a statistical manifold. Each input corresponds to a point on , and a perturbation moves to , inducing a trajectory on the manifold. Traditional adversarial training aims to maximize the cross-entropy loss , which only affects the probability of the true class. In contrast, we propose to maximize a distance metric on , which captures global changes in the confidence structure.
Adversarial training with single point perturbation (SPP)
Previous TRADES [12] introduces a defense objective that balances accuracy and robustness via a KL-divergence regularizer
where CE is the cross-entropy loss, KL is the Kullback-Leibler divergence and controls the trade-off between accuracy and robustness.
Unlike the TRADES [12] method, we repurpose this formulation for attack generation. Specifically, we define a hybrid loss (as shown in Alg. 1)
and generate adversarial examples by maximizing within an -ball
where the first term encourages misclassification, while the second term disrupts the entire output distribution, preventing pseudo-attacks that leave the confidence ordering intact.
Adversarial training with structured confidence perturbation (SCP)
SCP transforms adversarial training into a geometric optimization problem on a confidence manifold.
Theoretical foundation
For the sake of convenience, we ignore the model parameter . By the following theorem, we can conclude that the KL divergence between any two conditional distributions and is approximately equal to half the Mahalanobis distance between and , where the covariance parameter matrix is the inverse of the Fisher information matrix. The detailed derivation is provided in Appendix A.
Theorem 1 (Local approximation of KL divergence). For any two class confidence distributions and , where and are the inputs of the model and is the class label of the model output, we have
where is the Fisher information matrix (FIM) defined as follows
Algorithm 1 Adversarial training with single point perturbation (SPP)
1: Input: DNN model ; dataset with classes; batch size ; learning rate ; radius for adversaries ; step size and for attack iterations; number of epochs . 2: Randomly initialize the network parameter and 3: for do 4: for each batch in do 5: 6: for in do 7: 8: for do 9: 10: 11: end for 12: 13: end for 14: 15: 16: end for 17: end for 18: Output: Trained model
Theorem 1 reveals that the KL divergence between two nearby conditional distributions is locally approximated by the quadratic form . This establishes that the Fisher Information Matrix defines a Riemannian metric on the statistical manifold of output distributions . The most sensitive perturbation direction at a given input is therefore the one that maximizes this KL divergence under a fixed Euclidean norm constraint :
By the Rayleigh–Ritz theorem, the maximum is attained when is aligned with the principal eigenvector of , and the maximal KL divergence equals .
This geometric insight provides the foundation for SCP: rather than following the gradient of cross-entropy loss, which only suppresses the true class probability, we perturb along the direction that maximally deforms the entire confidence manifold. The FIM not only captures local curvature but also identifies the input direction that induces the most radical structural change in the output distribution, enabling a more principled approach to adversarial training.
Theorem 2 (FIM for softmax model). For a deep learning model whose last layer uses a softmax function to implement classification tasks, where the input vector of softmax is , the Fisher information matrix is
where is the gradient matrix (Jacobian matrix) of the vector with respect to the input and represents the variance of the matrix random variable. The proof is provided in Appendix § 6.§ 2.
Efficient algorithm design
The Fisher information matrix of for the discrete variable is defined as
Further, let and , we can write the Fisher information matrix in a more compressed form
where
and
Notice that is the dimension of the image and is the number of classes (). It can be seen that the (or ) that maximizes the KL divergence is the eigenvector of associated with the largest eigenvalue. However, directly storing or decomposing the Fisher matrix is very costly.
Here we introduce a technique to solve this problem. While Fisher information matrix , we construct a matrix:
Let the eigenvector of be ,and the eigenvector of be , the relation of and can be represented as follows:
According to (13), we can simply decompose a matrix instead of directly dealing with the Fisher Information Matrix.
To obtain the adversarial examples, we select the eigenvector corresponding to the largest eigenvalue, which is the most sensitive direction of the model. Finally, we get our adversarial algorithm SCP Alg.
Algorithm 2 Adversarial training with structured confidence perturbation (SCP)
Input: DNN classifier ; dataset with classes; batch size ; learning rate ; radius for adversaries ; number of epochs
Randomly initialize the network parameter
for do
for each batch in do
for in do
Decompose and find the principal eigenvector which corresponds to the largest eigenvalue
end for
end for
end for
Output: Trained model
Finally, we summarize the differences between our method and TRADES: TRADES combines clean cross-entropy with a KL robustness regularizer in the training objective, and its inner maximization generates perturbations by maximizing the KL divergence between clean and perturbed predictions. SPP instead directly maximizes CE + KL in the attack generation stage, actively disrupting distribution consistency, and then uses the generated examples for standard adversarial training. SCP further replaces the gradient direction geometrically with the principal eigenvector of the FIM.
Experiments
Datasets and settings
We used three common and popular datasets for image classification: CIFAR-10 [20], CIFAR-100 [20], and Tiny-ImageNet [21]. CIFAR-10 contains 60,000 color images of size in 10 categories. CIFAR-100 contains 60,000 color images of size in 100 categories. Tiny-ImageNet is a subset of ImageNet [22] with 200 categories, similar to the ImageNet dataset, where each category contains 500 color images of size .
To comprehensively evaluate the relationship between model geometry and attack resistance, we conduct experiments on representative architectures with distinct structural characteristics:
ResNet[23]: It introduces residual connections, allowing gradients to bypass nonlinear layers directly. Skip connections stabilize the gradient flow, reduce gradient vanishing/explosion, and reduce variance, so its maximum eigenvalue is relatively low.
DenseNet[24]: Each layer of DenseNet receives the output of all previous layers as input. With more gradient paths and gradients dispersed to each layer, its variance is potentially the smallest among the considered models.
ViT[25]: Vision Transformer (ViT) is based on the self-attention mechanism, which causes the gradient to involve global interactions, potentially introducing large variance; however, LayerNorm and residual connections help stabilize the gradient.
The batch size on each dataset is 32, the learning rate is , and the maximum perturbation range coefficient is in training section. The adversarial training contains 100 epochs. All experiments were conducted on a server equipped with six NVIDIA GeForce RTX 3090 GPUs. At the same time, we introduce CW[26] and AutoAttack[27] as our counter-test methods. We test our SCP method on multiple datasets and baseline models. The specific parameters of AutoAttack are , the type of norm is L2; the parameter settings of the CW-10 method are as follows: the learning rate is 0.01, the confidence threshold is 0, and the number of iterations is 10.
Evaluation metrics
Assume that the test set is , the set of all instances predicted correctly by the model is , and represents the perturbed sample generated by the clean input . We can define the following three main metrics: STD, ADV, and ASR:
Standard Accuracy (STD) [28] represents the standard test accuracy of in-distribution generalization, which is the accuracy obtained by testing the model using the original test sample, i.e., .
Adversarial Robust Accuracy (ADV) Adversarial robust accuracy is a method used to evaluate the performance of a model when facing adversarial samples. When we use a dataset consisting of perturbed samples generated by test samples to test the model obtained through adversarial training, the classification accuracy obtained is called ADV accuracy. In our experiments with attack methods AutoAttack, it is defined as .
Attack Success Rate (ASR) ASR measures the proportion of samples that an attacker can cause the model to make incorrect predictions and is used to measure the robustness of the model. It is worth noting that for the above three measurements, using the ADV under AutoAttack, we have the following relationship .
Comparison on attack metrics
We compare our SCP algorithm with state-of-the-art (SOTA) adversarial training methods on three widely used image classification datasets (CIFAR-10, CIFAR-100 and Tiny-ImageNet) using ResNet18, ResNet34, and ResNet50 [23] as baseline models. These architectures were chosen as the common intersection of models used in recent adversarial training literature, balancing computational efficiency and representativeness. Adversarial examples are generated with a perturbation budget () customized for each dataset and the performance is evaluated using STD, ADV, and ASR, where lower ASR indicates higher robustness.
Driven by its geometric approach to perturbing the belief manifold rather than traditional scalar loss optimization, SCP demonstrates competitive performance, particularly on the CIFAR-10 and CIFAR-100 datasets. As shown in Table 1, SCP frequently achieves the highest robust accuracy under AutoAttack (AA). For instance, on CIFAR-10 with ResNet-50, SCP achieves an AA of 72.50%, surpassing SPP (70.99%) and significantly outperforming baseline methods. Conversely, SPP exhibits superior performance on the Tiny-ImageNet dataset. Across all three ResNet architectures on Tiny-ImageNet, SPP yields higher Standard Accuracy (STD) than SCP. Its Attack Success Rate (ASR) is lower on ResNet-18 and ResNet-50; on ResNet-34, SPP has an ASR of 30.69%, compared with SCP’s 28.89%.
| Dataset | Method | ResNet-18 | ResNet-34 | ResNet-50 | |||||||||
| STD ↑ | CW-10 ↑ | AA ↑ | ASR ↓ | STD ↑ | CW-10 ↑ | AA ↑ | ASR ↓ | STD ↑ | CW-10 ↑ | AA ↑ | ASR ↓ | ||
| CIFAR-10 | PGD [8] | 78.87% | 46.20% | 62.37% | 20.92% | 77.74% | 50.26% | 64.24% | 17.37% | 75.38% | 48.30% | 62.49% | 17.10% |
| TRADES [12] | 80.72% | 48.74% | 64.93% | 19.56% | 82.47% | 49.15% | 67.31% | 18.38% | 80.20% | 50.09% | 64.69% | 19.34% | |
| MIFGSM [29] | 81.92% | 50.98% | 64.11% | 21.74% | 81.35% | 53.30% | 65.06% | 20.02% | 78.86% | 49.39% | 61.78% | 21.66% | |
| NIFGSM [30] | 81.28% | 52.07% | 65.08% | 19.93% | 82.63% | 52.26% | 67.39% | 18.44% | 81.33% | 54.91% | 67.13% | 17.46% | |
| DIFGSM [31] | 81.51% | 50.18% | 64.23% | 21.20% | 80.76% | 53.31% | 67.03% | 17.00% | 79.61% | 52.47% | 66.00% | 17.10% | |
| JITTER [32] | 77.99% | 50.02% | 64.92% | 16.76% | 80.07% | 50.47% | 65.79% | 17.83% | 72.11% | 47.03% | 60.36% | 16.29% | |
| PIFGSM [33] | 82.61% | 48.37% | 64.22% | 22.26% | 82.51% | 52.29% | 67.00% | 18.80% | 80.40% | 52.74% | 67.79% | 15.68% | |
| VNIFGSM [34] | 76.08% | 47.53% | 59.31% | 22.04% | 74.50% | 46.88% | 59.27% | 20.44% | 62.17% | 41.34% | 49.17% | 20.91% | |
| SPP (Ours) | 81.90% | 60.33% | 70.15% | 14.35% | 82.49% | 60.79% | 70.66% | 14.34% | 83.12% | 61.10% | 70.99% | 14.59% | |
| SCP (Ours) | 82.69% | 55.25% | 70.47% | 14.78% | 83.17% | 55.47% | 71.50% | 14.03% | 83.24% | 59.02% | 72.50% | 12.90% | |
| CIFAR-100 | PGD [8] | 41.70% | 21.57% | 28.94% | 30.60% | 40.58% | 27.18% | 28.41% | 29.99% | 35.34% | 25.57% | 25.64% | 27.45% |
| TRADES [12] | 46.46% | 28.98% | 32.07% | 30.97% | 44.50% | 31.43% | 32.66% | 26.61% | 36.17% | 22.21% | 22.20% | 38.62% | |
| MIFGSM [29] | 48.47% | 22.09% | 30.43% | 37.22% | 47.39% | 30.98% | 31.85% | 32.79% | 39.70% | 27.93% | 27.93% | 29.65% | |
| NIFGSM [30] | 46.19% | 30.26% | 31.93% | 30.87% | 46.20% | 30.26% | 31.29% | 32.27% | 40.92% | 25.18% | 25.16% | 38.51% | |
| DIFGSM [31] | 47.42% | 30.30% | 31.89% | 32.75% | 46.35% | 31.15% | 32.28% | 30.36% | 41.57% | 28.77% | 28.79% | 30.74% | |
| JITTER [32] | 41.35% | 25.66% | 29.22% | 29.33% | 42.76% | 29.10% | 30.22% | 29.33% | 32.45% | 24.34% | 24.39% | 24.84% | |
| PIFGSM [33] | 50.34% | 30.44% | 32.66% | 35.12% | 49.10% | 32.54% | 33.68% | 31.41% | 40.83% | 28.39% | 28.45% | 30.32% | |
| VNIFGSM [34] | 35.22% | 21.65% | 24.16% | 31.40% | 36.70% | 23.80% | 24.65% | 32.83% | 31.25% | 21.58% | 21.56% | 31.01% | |
| SPP (Ours) | 43.92% | 31.20% | 31.96% | 27.23% | 45.45% | 30.51% | 32.50% | 28.49% | 42.76% | 29.49% | 30.70% | 28.20% | |
| SCP (Ours) | 44.18% | 32.01% | 32.38% | 26.71% | 44.88% | 32.43% | 32.90% | 26.69% | 42.25% | 31.96% | 31.86% | 24.59% | |
| Tiny-ImageNet | PGD [8] | 30.55% | 20.33% | 20.32% | 33.49% | 29.91% | 21.95% | 21.95% | 26.61% | 28.87% | 17.98% | 17.97% | 37.76% |
| TRADES [12] | 33.29% | 19.57% | 19.57% | 41.21% | 32.12% | 19.89% | 22.79% | 29.05% | 33.09% | 21.44% | 21.44% | 35.21% | |
| MIFGSM [29] | 34.06% | 20.19% | 20.73% | 39.14% | 35.14% | 19.38% | 21.11% | 39.93% | 34.37% | 20.97% | 20.99% | 38.93% | |
| NIFGSM [30] | 36.43% | 19.50% | 21.28% | 41.59% | 35.22% | 19.38% | 21.11% | 39.93% | 34.37% | 20.97% | 20.99% | 38.93% | |
| DIFGSM [31] | 34.70% | 18.98% | 22.83% | 34.21% | 31.54% | 22.72% | 22.71% | 28.00% | 34.49% | 22.86% | 22.88% | 33.66% | |
| JITTER [32] | 30.10% | 21.25% | 21.23% | 29.47% | 31.58% | 22.95% | 22.95% | 27.33% | 29.79% | 18.08% | 18.09% | 29.24% | |
| PIFGSM [33] | 35.93% | 21.48% | 22.09% | 38.52% | 32.92% | 23.07% | 23.06% | 29.95% | 33.82% | 24.55% | 24.55% | 27.41% | |
| VNIFGSM [34] | 25.66% | 16.97% | 16.99% | 33.79% | 24.75% | 17.00% | 17.03% | 31.19% | 20.56% | 12.84% | 12.83% | 37.60% | |
| SPP (Ours) | 34.43% | 24.13% | 24.30% | 29.42% | 34.38% | 23.51% | 23.83% | 30.69% | 34.54% | 24.82% | 24.93% | 27.82% | |
| SCP (Ours) | 33.49% | 23.08% | 23.20% | 30.73% | 33.33% | 23.32% | 23.70% | 28.89% | 33.80% | 24.02% | 24.32% | 28.05% |
Table 1. Comparison of adversarial training methods on CIFAR-10, CIFAR-100, and Tiny-ImageNet. Red: best; blue: second best.
From a dataset perspective, SCP consistently minimizes the Attack Success Rate (ASR) compared to traditional methods like PGD and TRADES, validating its focus on structured belief perturbations over heuristic input space attacks. This advantage is most performed on CIFAR-10 and CIFAR-100. For example, using the ResNet-50 architecture on CIFAR-10, SCP achieves a remarkable ASR of 12.90%, which is a substantial improvement over TRADES (19.34%) and PGD (17.10%). Even on the more challenging CIFAR-100 dataset, SCP maintains its robust status superiority; with ResNet-50, it suppresses the ASR to 24.59%, whereas competitive baselines like MIFGSM and PIFGSM struggle with ASRs of 29.65% and 30.32%, respectively.
The proposed methods, SPP and SCP, perform exceptionally well across varying model depths: ResNet-18, ResNet-34, and ResNet-50, demonstrating that the geometric disruption of the belief manifold scales effectively with network complexity. Unlike SOTA baselines such as PIFGSM, which witness a performance drop as model depth increases (e.g., dropping to 40.83% STD on CIFAR-100/ResNet-50), the proposed methods exhibit enhanced adversarial resilience without suffering catastrophic drops in standard accuracy. On CIFAR-10/ResNet-50, both SPP and SCP maintain high clean accuracy (STD) of 83.12% and 83.24% respectively, while simultaneously securing the highest CW-10 and AA scores in the comparison.
On Tiny-ImageNet, SCP has lower STD than SPP at all three depths and higher ASR at two of the three depths. We attribute this behavior to three factors. First, the large number of classes (200) inflates the estimation variance of the Fisher Information Matrix, degrading the accuracy of its principal eigenvector. Second, the underfitting on this dataset may violate SCP’s assumption of a well-converged confidence manifold, making its single-step perturbation unreliable. Third, SPP’s multi-step signed gradient updates are inherently more robust to gradient noise and do not rely on explicit geometric estimation, offering greater stability under challenging training conditions.
Comparison with recent baselines
We further compare our methods with recent adversarial training baselines under the CIFAR-10 setting.
As shown in Table 2, the proposed methods remain highly competitive against recent adversarial training baselines under the AutoAttack evaluation. SCP achieves the best robust accuracy of 70.47%, while SPP obtains the second-best result of 70.15%, both surpassing the strongest non-ours baseline GAWP (68.89%). SPP and SCP also reduce ASR to 14.35% and 14.78%, respectively, compared with RAMP’s 18.88%. These results indicate that our confidence-geometry-based training improves robustness rather than merely increasing clean accuracy.
| Dataset | Method | Model | STD | AA | ASR |
| CIFAR-10 | RPF [35] | PreActResNet-18 | 84.21% | 53.89% | 36.01% |
| CIFAR-10 | RAMP [36] | PreActResNet-18 | 82.10% | 66.60% | 18.88% |
| CIFAR-10 | GAWP [37] | PreActResNet-18 | 88.07% | 68.89% | 21.78% |
| CIFAR-10 | LOAT [38] | ResNet-18 | 77.97% | 55.66% | 28.61% |
| CIFAR-10 | RAT [39] | ResNet-18 | 81.87% | 60.19% | 26.48% |
| CIFAR-10 | AR-AT [40] | ResNet-18 | 86.80% | 62.45% | 28.05% |
| CIFAR-10 | SPP (Ours) | ResNet-18 | 81.90% | 70.15% | 14.35% |
| CIFAR-10 | SCP (Ours) | ResNet-18 | 82.69% | 70.47% | 14.78% |
Table 2. Comparison with recent adversarial training baselines on CIFAR-10. Red: best; blue: second best.
Cross-architecture evaluation
To comprehensively evaluate the relationship between model geometry and attack resistance, we conduct experiments on representative architectures with distinct structural characteristics, as shown in Table 3:
| Dataset | Method | DenseNet121 STD | DenseNet121 CW-10 | DenseNet121 AA | DenseNet121 ASR | ViT-B/16 STD | ViT-B/16 CW-10 | ViT-B/16 AA | ViT-B/16 ASR |
| CIFAR-10 | TRADES [12] | 76.24% | 48.56% | 62.27% | 18.32% | 71.60% | 47.37% | 48.55% | 32.19% |
| CIFAR-10 | MIFGSM [29] | 77.35% | 49.79% | 61.03% | 21.10% | 74.14% | 50.36% | 52.39% | 29.34% |
| CIFAR-10 | DIFGSM [31] | 77.75% | 49.21% | 62.68% | 19.38% | 70.90% | 47.43% | 48.53% | 31.55% |
| CIFAR-10 | PIFGSM [33] | 78.87% | 49.41% | 63.33% | 19.70% | 68.22% | 45.13% | 46.32% | 32.10% |
| CIFAR-10 | SPP (Ours) | 81.62% | 60.38% | 69.15% | 15.28% | 68.12% | 44.55% | 45.37% | 33.40% |
| CIFAR-10 | SCP (Ours) | 82.49% | 57.43% | 69.79% | 15.40% | 66.20% | 43.03% | 46.94% | 29.09% |
Table 3. Comparison of DenseNet121 and ViT-B/16 on CIFAR-10. Red: best; blue: second best.
For DenseNet121, both SPP and SCP maintain their superiority, with SCP achieving an outstanding STD of 82.49% and a robust AA of 69.79%. This aligns with our expectations: DenseNet’s dense skip connections disperse gradient flow across layers, effectively minimizing gradient variance and providing a stable, smooth geometric manifold that perfectly suits our covariance-based perturbation estimation. Conversely, on the ViT-B/16 architecture, we observe a systemic performance degradation across all evaluated adversarial training methods, including our SPP/SCP and established baselines like TRADES and PIFGSM. The standard accuracy (STD) and robust accuracy (AA) for all methods drop significantly compared to their CNN counterparts. We attribute this phenomenon to two fundamental conflicts between the ViT architecture and current gradient-based adversarial training paradigms:
Lack of Local Inductive Bias and Severe Underfitting: Unlike CNNs, ViTs lack translational invariance and local inductive biases. They are notoriously data-hungry and prone to severe underfitting when trained from scratch on small-scale datasets like CIFAR-10. Introducing strong adversarial constraints (whether through TRADES’ KL-divergence or our geometric manifold perturbations) acts as an excessive regularization that further chokes the model’s representation capacity, leading to the observed collapse in STD.
High Gradient Variance and Manifold Instability: ViTs rely heavily on global self-attention mechanisms, meaning that spatial perturbations interact globally across the entire image patch sequence. This global interaction induces highly non-local and high-variance gradients. Since almost all current adversarial training methods (especially our SCP, which relies on the Fisher Information Matrix for local geometric approximation) depend on stable local gradient information, the noisy gradient landscape of ViT causes the estimated worst-case perturbation directions to become highly inaccurate. This instability explains why neither traditional PGD-based methods nor our covariance-guided framework can achieve optimal robustness on Vision Transformers without specialized architectural adaptations.
Diagnostic analysis on ViT-B/16
To provide direct evidence for the above explanation, we further measure gradient variation on CIFAR-10. For each mini-batch , we compute the mean input-gradient norm . Their relative variation is computed as
where a larger value indicates a noisier gradient landscape across batches.
As shown in Figure 2, ViT-B/16 exhibits the largest input-gradient variation (0.345), compared with ResNet-18 (0.247) and DenseNet-121 (0.268). It also shows a more dispersed FIM direction-stability distribution than the CNN architectures. These observations support our claim that ViT-B/16 produces noisier local gradients and less reliable local geometric estimates, which weakens SCP on this architecture.
Figure 2. Diagnostic analysis of gradient variation on CIFAR-10.
Cross-model transferability
We next evaluate whether adversarial examples generated on one architecture can transfer to different target architectures. We use three ResNet-18 source models trained with PGD, TRADES, and PIFGSM, generate AutoAttack-L2 adversarial examples on CIFAR-10, and directly evaluate the same adversarial examples on DenseNet-121 and ViT-B/16 target models without re-optimizing them on the target models. This follows the standard black-box transfer setting [41].
Let be the test set, be a target model, and be the adversarial example generated by attack on a source model . Since transfer attacks should only count samples that the target model originally classifies correctly, we first define the clean-correct subset
The transfer robust accuracy and attack success rate are computed as
Table 4 reports results for each combination of attack, source model, and target training method, where each entry is formatted as Robust Acc.
| Method | DenseNet121 | DenseNet121 | DenseNet121 | ViT-B/16 | ViT-B/16 | ViT-B/16 |
| PGD | TRADES | PIFGSM | PGD | TRADES | PIFGSM | |
| TRADES[12] | 92.94% | 93.17% | 92.63% | 91.68% | 92.29% | 90.58% |
| MIFGSM [29] | 92.41% | 92.54% | 90.59% | 92.03% | 92.58% | 90.94% |
| DIFGSM [31] | 92.80% | 92.99% | 91.37% | 92.02% | 92.87% | 91.26% |
| PIFGSM [33] | 93.03% | 92.61% | 91.52% | 91.83% | 92.12% | 90.73% |
| SPP (Ours) | 94.23% | 94.33% | 93.89% | 91.13% | 91.68% | 90.22% |
| SCP (Ours) | 94.65% | 94.64% | 94.22% | 93.10% | 93.14% | 92.19% |
Table 4. Cross-model transfer results on CIFAR-10. AutoAttack-L2 adversarial examples are generated on ResNet-18 source models and evaluated on DenseNet-121 and ViT-B/16 target models. Each entry reports robust accuracy . The best and second-best results in each column are highlighted in red and blue, respectively.
As shown in Table 4, target models trained with our methods are generally less affected by transferred adversarial examples. Under AutoAttack, SCP gives the best transfer robustness for both DenseNet-121 and ViT-B/16 across the reported source models, while SPP usually ranks second on DenseNet-121.
FIM spectrum analysis
To further inspect the geometric effect of different training methods, we compute the maximum eigenvalue of the input Fisher Information Matrix on CIFAR-10. We use the low-dimensional matrix decomposition described in § 3.3.2 to obtain the FIM spectrum efficiently. A smaller means that the model’s output distribution changes less sharply along its most sensitive local direction.
As shown in Table 5, SCP produces the largest fraction of samples with low curvature. This supports the geometric intuition that SCP training flattens the most sensitive direction of the confidence manifold, reducing sharp local confidence changes.
| Method | Median ↓ | ↑ | ↑ |
| PGD | 0.1438 | 33.96% | 47.62% |
| TRADES | 0.3011 | 24.36% | 40.93% |
| PIFGSM | 0.1332 | 33.10% | 47.84% |
| MIFGSM | 0.2257 | 26.83% | 43.39% |
| SPP | 0.1131 | 32.61% | 48.98% |
| SCP | 0.0287 | 45.03% | 56.06% |
Table 5. FIM maximum eigenvalue statistics on CIFAR-10 using ResNet-18.
Visualization of the confidence shift
To validate the primary motivation of our Structured Confidence Perturbation (SCP) framework—specifically,we utilize t-SNE [42] to project the high-dimensional latent features from the penultimate layer of a ResNet-18 model into a 2D coordinate system ( and axes). The -axis represents the model’s prediction confidence, defined as the maximum softmax probability of the predicted class. Figure 3 illustrates the distribution shift between clean samples and adversarial examples generated by CW[26] and our SCP method on the CIFAR-10 dataset.
Figure 3. 3D visualization comparison of confidence shift on CIFAR-10 (left: CW, right: SCP). The - plane represents t-SNE projected features, and the -axis represents the prediction confidence.
As shown in Figure 3, benign samples (represented by blue points) cluster into distinct regions and reside on a high-confidence plateau, with -axis values consistently near 1.0. CW attack lead to many adversarial points remaining in high-confidence zones (represented by orange points). This phenomenon confirms the existence of pseudo-attacks, where the perturbation fails to disrupt the model’s belief structure fundamentally. In contrast, our SCP method induces a much more radical deformation of the confidence landscape (represented by red points). The confidence scores for SCP-generated samples drop sharply, indicating that our method effectively explores the most vulnerable regions of the statistical manifold.
Time and space complexity
We analyze the computational efficiency of SPP and SCP to demonstrate their practical feasibility. While SPP follows a standard linear complexity, the primary bottleneck for SCP has been solved by using the decomposition technique; see Eq. (13).
As shown in Table 6, our optimization reduces SCP’s complexity, since (, ) in most classification tasks. This approach ensures that our geometric paradigm remains scalable and feasible for large-scale deep learning systems.
| Method | Space complexity | Time complexity |
| SPP | ||
| SCP (direct) | ||
| SCP (indirect) |
Table 6. Time and space complexity of SPP and SCP with direct and indirect decomposition.
Ablation study
Effectiveness of Hybrid loss: To verify the effectiveness of the proposed hybrid loss function, we present a comparison in Table 7 among the PGD (CE only), the TRADES (KL only), and our proposed hybrid loss SPP (CE+KL) on the CIFAR10 dataset using ResNet-18.
| Loss Type | Clean Acc | AA | ASR |
| CE only | 78.87% | 62.37% | 20.92% |
| KL only | 80.72% | 64.93% | 19.56% |
| CE + KL (SPP) | 81.90% | 70.15% | 14.35% |
Table 7. Comparison of the hybrid loss SPP(CE+KL) with PGD(CE) and TRADES(KL) on CIFAR10 using ResNet-18.
As shown in Table 1, the proposed hybrid loss strategy achieves superior performance across all metrics compared with using either loss component individually. The SPP (CE+KL) method achieves the highest Clean Accuracy of 81.90% and the highest AutoAttack accuracy of 70.15%. This represents a significant improvement over the CE-only baseline and also outperforms the KL-only approach. In terms of ASR, the hybrid loss achieves the strongest defense, reducing ASR to 14.35%. This is notably lower than both the CE-only (20.92%) and KL-only (19.56%) configurations.
These results confirm that combining CE and KL losses allows the model to learn more robust features without compromising standard accuracy, demonstrating the effectiveness of the SPP hybrid loss design.
We further analyze the sensitivity of SPP to the KL-loss weight. In this experiment, the SPP training objective is
where controls the contribution of the distribution-consistency term. We train ResNet-18 on CIFAR-10 with and evaluate the trained models under clean, PGD, CW-10, and AutoAttack-L2 settings.
As shown in Figure 4, the SPP performance is stable across a broad range of . The clean and attack accuracies fluctuate only mildly, indicating that the CE and KL terms are complementary rather than requiring fragile tuning. In particular, gives the best clean and CW-10 performance, while achieves the best accuracy.
Figure 4. SPP lambda ablation on CIFAR-10 using ResNet-18.
Conclusion
We address the “pseudo-attack” problem using two complementary approaches—Single Point Perturbation (SPP) and Structured Confidence Perturbation (SCP)—systematically attacking and strengthening the model’s confidence structure stability from two levels: local sample-level perturbation and global manifold-level deformation, respectively. SPP integrates a hybrid loss function combining CE and KL, while SCP further models adversarial perturbation as a distance maximization problem on the confidence manifold from an information geometry perspective. SCP’s scalable computation makes it suitable for large-scale classification tasks. Experimental results show that the proposed method significantly improves adversarial robustness on multiple standard datasets and model architectures. Visualization analysis further confirms that SCP effectively induces global deformation of the confidence distribution, preventing adversarial examples from remaining in high-confidence regions. Future research directions include exploring its potential to improve robustness in generative models and self-supervised learning.
Theoretical proofs
Theoretical proofs on KL divergence under general discrete distribution
Theorem A.1. For any two discrete probability distributions and , we have
where
Proof. First, we perform Taylor’s second-order expansion of the function at point
then substitute it into the KL divergence
to get
For the first term above, we have
For the second term above, we have
further we get
Finally, we arrive at our conclusion.
Proof of the Fisher information matrix for deep learning models
Theorem A.2. Proof. According to Theorem 1, the Fisher information matrix measures the sensitivity of the model output distribution to the input . For classification tasks, is defined as
Next we need to estimate the maximum eigenvalue of the Fisher information matrix for some models.
For classification, we assume the model outputs probabilities :
then
Its gradient with respect to the input is (let ):
The covariance formula is defined as:
Let denote the mean gradient, then the Fisher information matrix can be represented as follows:
Theorem A.3. Proof. The Fisher information matrix of for the discrete variable is defined as
Further, let and , we can write the Fisher information matrix in a more compressed form
where
and
Where is the dimension of the image and is the number of the classes().)While Fisher information matrix ,we construct a matrix :
Then we have:
References
- [1]Anirban Chakraborty, Manaar Alam, Vishal Dey, Anupam Chattopadhyay, and Debdeep Mukhopadhyay. A survey on adversarial attacks and defences. CAAI Transactions on Intelligence Technology, 2021.
- [2]Sandy Huang, Nicolas Papernot, Ian Goodfellow, Yan Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. arXiv, 2017.arxiv.org/abs/1702.02284
- [3]Kabid Hassan Shibly, Md Delwar Hossain, Hiroyuki Inoue, Yuzo Taenaka, and Youki Kadobayashi. Towards autonomous driving models resistant to adversarial attack. Applied Artificial Intelligence, 2023.DOI
- [4]Haiqi Zhu, Shaohui Liu, and Feng Jiang. Adversarial training of lstm-ed based anomaly detection for complex time-series in cyber-physical-social systems. Pattern Recognition Letters, 2022.
- [5]Insaf Kraidia, Afifa Ghenai, and Samir Brahim Belhaouari. Defense against adversarial attacks: robust and efficient compressed optimized neural networks. Scientific Reports, 2024.
- [6]Shuai Zhou, Chi Liu, Dayong Ye, Tianqing Zhu, Wanlei Zhou, and Philip S Yu. Adversarial attacks and defenses in deep learning: From a perspective of cybersecurity. ACM Computing Surveys, 2022.
- [7]Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv:1412.6572, 2014.DOI
- [8]Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks, 2019.arxiv.org/abs/1706.06083
- [9]Dong C Liu and Jorge Nocedal. On the limited memory bfgs method for large scale optimization. Mathematical programming, 1989.
- [10]John C Duchi, Michael I Jordan, Martin J Wainwright, and Andre Wibisono. Optimal rates for zero-order convex optimization: The power of two function evaluations. IEEE Transactions on Information Theory, 2015.
- [11]Cho-Jui Hsieh Yao Li, Minhao Cheng and Thomas C. M. Lee. A review of adversarial attack and defense for classification methods. The American Statistician, 2022.
- [12]Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric Xing, Laurent El Ghaoui, and Michael Jordan. Theoretically principled trade-off between robustness and accuracy. In ICML, 2019.arxiv.org/abs/1901.08573
- [13]Ali Shafahi, Mahyar Najibi, Mohammad Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! NeurIPS, 2019.arxiv.org/abs/1904.12843
- [14]Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Accelerating adversarial training via maximal principle. NeurIPS, 2019.
- [15]Haichao Zhang and Jianyu Wang. Defense against adversarial attacks using feature scattering-based adversarial training. NeurIPS, 2019.
- [16]Yisen Wang, Difan Zou, Jinfeng Yi, James Bailey, Xingjun Ma, and Qianquan Gu. Improving adversarial robustness requires revisiting misclassified examples. In ICLR, 2020.
- [17]Florian Tramèr, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. arXiv:1705.07204, 2017.arxiv.org/abs/1705.07204
- [18]Maksym Andriushchenko and Nicolas Flammarion. Understanding and improving fast adversarial training. NeurIPS, 2020.arxiv.org/abs/2007.02617
- [19]Taiqiang Wu, Chaofan Tao, Jiahao Wang, Rummning Yang, Zhe Zhao, and Ngai Wong. Rethinking kullback-leibler divergence in knowledge distillation for large language models. In ACL, 2025.
- [20]Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
- [21]Ya Le and Xuan Yang. Tiny imagenet visual recognition challenge. CS 231N, 2015.
- [22]Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009.
- [23]Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.arxiv.org/abs/1512.03385
- [24]Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017.arxiv.org/abs/1608.06993
- [25]Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv:2010.11929, 2020.arxiv.org/abs/2010.11929
- [26]Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In IEEE SP, 2017.arxiv.org/abs/1608.04644
- [27]Francesco Croce and Matthias Hein. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks. In ICML, 2020.arxiv.org/abs/2003.01690
- [28]Chenhao Lin, Xiang Ji, Yulong Yang, Qian Li, Zhengyu Zhao, Zhe Peng, Run Wang, Liming Fang, and Chao Shen. Hard adversarial example mining for improving robust fairness. IEEE TIFS, 2024.arxiv.org/abs/2308.01823
- [29]Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In CVPR, 2018.arxiv.org/abs/1710.06081
- [30]Jiadong Lin, Chuanbiao Song, Kun He, Liwei Wang, and John E Hopcroft. Nesterov accelerated gradient and scale invariance for adversarial attacks. arXiv:1908.06281, 2019.
- [31]Cihang Xie, Zhishuai Zhang, Yuyin Zhou, Song Bai, Jianyu Wang, Zhou Ren, and Alan L Yuille. Improving transferability of adversarial examples with input diversity. In CVPR, 2019.arxiv.org/abs/1803.06978
- [32]Leo Schwin, René Raab, An Nguyen, Dario Zanca, and Bjoern Eskofier. Exploring mis-classifications of robust neural networks to enhance adversarial attacks. Applied intelligence, 2023.
- [33]Lianli Gao, Qilong Zhang, Jingkuan Song, Xianglong Liu, and Heng Tao Shen. Patch-wise attack for fooling deep neural network. In ECCV, 2020.arxiv.org/abs/2007.06765
- [34]Xiaosen Wang and Kun He. Enhancing the transferability of adversarial attacks through variance tuning. In CVPR, 2021.arxiv.org/abs/2102.00436
- [35]Minjing Dong and Chang Xu. Adversarial robustness via random projection filters. In CVPR, 2023.DOI
- [36]Enyi Jiang and Gagandeep Singh. Ramp: Boosting adversarial robustness against multiple lₚ perturbations for universal robustness, 2024.
- [37]Yixuan Jiang and Hsiao-Dong Chiang. Geometry-aware weight perturbation for adversarial training. Electronics, 2024.DOI
- [38]Xiangyu Yin and Wenjie Ruan. Boosting adversarial training via fisher-rao norm-based regular-ization. In CVPR, 2024.arxiv.org/abs/2403.17520
- [39]Gaojie Jin, Xinping Yi, Dengyu Wu, Ronghui Mu, and Xiaowei Huang. Randomized adversarial training via taylor expansion. In CVPR, 2023.arxiv.org/abs/2303.10653
- [40]Futa Waseda, Ching-Chun Chang, and Isao Echizen. Rethinking invariance regularization in adversarial training to improve robustness-accuracy trade-off. In ICLR, 2025.
- [41]Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. In arXiv:1605.07277, 2016.arxiv.org/abs/1605.07277
- [42]Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. JMLR, 2008.


