Representational Geometry as a Diagnostic for Adversarial Robustness
Summary
A NeurIPS 2026 workshop paper showing that representational geometry, visualized with M-PHATE, can serve as a diagnostic for adversarial robustness, revealing that robust accuracy and representational stability can rank defenses in opposite ways.
View Cached Full Text
Cached at: 11/16/26, 08:45 AM
# Representational Geometry as a Diagnostic for Adversarial Robustness
Source: [https://arxiv.org/html/2611.17684](https://arxiv.org/html/2611.17684)
\\workshoptitle
NeurIPS 2026 Workshop on Neural Network Artifacts as a New Data Modality
Brandon IsmalejAffiliation:Department of Computer ScienceAffiliation:California State University, NorthridgeAffiliation:Northridge, California, USAEmail:[brandon\.ismalej\.671@my\.csun\.edu](mailto:)Alex CloningerAffiliation:Department of MathematicsAffiliation:Halıcıoğlu Data Science InstituteAffiliation:University of California San DiegoAffiliation:La Jolla, California, USAEmail:[acloninger@ucsd\.edu](mailto:)Gal MishneAffiliation:Halıcıoğlu Data Science InstituteAffiliation:University of California San DiegoAffiliation:La Jolla, California, USAEmail:[gmishne@ucsd\.edu](mailto:)
###### Abstract
Adversarial training is a common technique for making neural networks more robust to small, intentionally crafted input perturbations, and robustness is commonly measured through accuracy under attack\. By exploring inter\-network representations across different adversarial training objectives, we can analyze whether multiple networks organize their latent representations similarly\. We study Multilayer Perceptrons trained on MNIST under three adversarial training regimes and compare the resulting population training dynamics and geometry to those of a vanilla network\. We use M\-PHATE to embed data samples across training epochs and examine how the geometry of the data changes during training under adversarial objectives\. On penultimate\-layer representations we measure displacement between clean and perturbed points, distributional distance through maximum mean discrepancy, and nearest\-neighbor recovery\. Our visualizations and quantitative analyses show that adversarial training leads to structural changes in how networks organize internal data representations, and robust accuracy and representational stability can rank the same defenses in opposite ways\. These findings support a discussion of re\-evaluating how practitioners approach the auditing of model robustness by treating latent representations and their training trajectories as diagnostic artifacts across sets of networks\.
## 1Introduction
Robustness is most commonly reported as a single scalar, without identifying how the structure of internal representations is organized, or how that organization formed during training\. Adversarial attacks introduce small, carefully crafted perturbations to data samples with the aim of inducing misclassifications\[[1](https://arxiv.org/html/2611.17684#bib.bib1);[2](https://arxiv.org/html/2611.17684#bib.bib2)\]\. Adversarial training is the standard method of defense for neural networks, where the network is trained on perturbed samples to learn to correctly classify attack samples\[[3](https://arxiv.org/html/2611.17684#bib.bib3)\]\. However, multiple networks can achieve similar accuracy on perturbed samples, even if their internal representations differ structurally\. As a scalar, accuracy lacks the power to report whether their representation geometries are truly different\.
Differences in internal representational geometry stem largely from adversarial training, where clean accuracy is consequently sacrificed for robustness\[[4](https://arxiv.org/html/2611.17684#bib.bib4);[5](https://arxiv.org/html/2611.17684#bib.bib5)\]while also altering the input features that a network learns from\[[6](https://arxiv.org/html/2611.17684#bib.bib6)\]\. As a result, the representations learned from robust networks are structurally different from those of a standard network\[[4](https://arxiv.org/html/2611.17684#bib.bib4);[7](https://arxiv.org/html/2611.17684#bib.bib7)\]\. Given that robustness is largely a representational phenomenon, assessing defenses through a single behavioral metric strips researchers of the benefit of understanding the structural organization within a network that enables it to defend against an adversary\. While existing work leverages similarity metrics\[[8](https://arxiv.org/html/2611.17684#bib.bib8);[9](https://arxiv.org/html/2611.17684#bib.bib9)\]to compare standard and robust representations, these methods are limited to static post\-hoc analyses\. As a result, they overlook the training dynamics in networks and how these shift under varying perturbation strengths across groups of networks\.
In this work, we examine what adversarial training does inside a network, across regimes trained under varying adversarial objectives and attack strengths\. Per\-epoch traces and penultimate layer representations are computational artifacts produced through standard and adversarial training\. Every network is examined with the same underlying test images, in their clean and perturbed forms, so the measured geometry reflects common data as arranged by each network, which allows networks themselves to be compared directly against each other\. Across 45 networks under three adversarial training objectives and five perturbation budgets, we show that adversarial training reshapes representational geometry in ways that accuracy is unable to capture, with the largest reshaping belonging to the defense that scores best on accuracy\. This disagreement widens as the perturbation budget grows and holds across each geometric measure computed\.
The main contributions of this work are as follows:\(1\)we measure the representation geometry of a population of adversarially trained neural networks uniformly across attack objectives and varying perturbation budgets;\(2\)we show that geometric analyses rank network robustness differently than standard evaluations under threat\-model\-matched attacks;\(3\)we show that geometry and accuracy capture different aspects of robustness, since a defended network can keep accuracy high while its representations drift substantially when attacked\.
## 2Background
Letfθ:𝒳→ℝCf\_\{\\theta\}:\\mathcal\{X\}\\rightarrow\\mathbb\{R\}^\{C\}be a classifier with lossl\(fθ\(x\),y\)l\(f\_\{\\theta\}\(x\),y\)\. An adversarial attack creates a misclassification\-inducing perturbationδ\\deltaconstrained to‖δ‖p≤ϵ\\\|\\delta\\\|\_\{p\}\\leq\\epsilonwhereϵ\\epsilonis the perturbation budget and∥⋅∥p\\\|\\cdot\\\|\_\{p\}is thelpl\_\{p\}norm\[[1](https://arxiv.org/html/2611.17684#bib.bib1);[2](https://arxiv.org/html/2611.17684#bib.bib2)\]\. In the white\-box case, attacks are constructed using the input gradientg=∇xl\(fθ\(x\),y\)g=\\nabla\_\{x\}l\(f\_\{\\theta\}\(x\),y\), which provides the direction of the steepest increase in loss\. We use single\-step, white\-box attacks that differ only in howggis normalized before scaling byϵ\\epsilon\. The fast gradient sign method \(FGSM\)\[[2](https://arxiv.org/html/2611.17684#bib.bib2)\]perturbs the input byϵ⋅sign\(g\)\\epsilon\\cdot\\operatorname\{sign\}\(g\)moving every input value byϵ\\epsilon\. Thel2l\_\{2\}\- andl∞l\_\{\\infty\}\-bounded attacks computeϵ⋅g/‖g‖2\\epsilon\\cdot g/\\\|g\\\|\_\{2\}andϵ⋅g/‖g‖∞\\epsilon\\cdot g/\\\|g\\\|\_\{\\infty\}, respectively\. All scalings are clamped to\[0,1\]\[0,1\]\. A min\-max objective is optimized during adversarial training,minθ𝔼\(x,y\)\[max‖δ‖p≤ϵl\(fθ\(x\+δ\),y\)\]\\operatorname\{min\}\_\{\\theta\}\\mathbb\{E\}\_\{\(x,y\)\}\[\\underset\{\\\|\\delta\\\|\_\{p\}\\leq\\epsilon\}\{\\max\}l\(f\_\{\\theta\}\(x\+\\delta\),y\)\], where the inner maximization is approximated by an attack, while perturbed inputs are generated\. The maximum mean discrepancy \(MMD\)\[[10](https://arxiv.org/html/2611.17684#bib.bib10)\]measures distances between feature distributions in a Reproducing Kernel Hilbert Space \(RKHS\), which is used as an attack\-agnostic measure of global representational difference\. For thennmatched pairs, we compute the estimateMMD^2=1n2∑i,i′k\(xi,xi′\)\+1m2∑j,j′k\(yj,yj′\)−2nm∑i,jk\(xi,yj\)\\widehat\{MMD\}^\{2\}=\\frac\{1\}\{n^\{2\}\}\\sum\_\{i,i^\{\\prime\}\}k\(x\_\{i\},x\_\{i^\{\\prime\}\}\)\+\\frac\{1\}\{m^\{2\}\}\\sum\_\{j,j^\{\\prime\}\}k\(y\_\{j\},y\_\{j^\{\\prime\}\}\)\-\\frac\{2\}\{nm\}\\sum\_\{i,j\}k\(x\_\{i\},y\_\{j\}\), with Gaussian kernelkkwhose bandwidth is chosen per configuration using the median heuristic \(further details in Appendix[A\.1](https://arxiv.org/html/2611.17684#A1.SS1)\)\.
M\-PHATE\[[11](https://arxiv.org/html/2611.17684#bib.bib11)\], an extension of the PHATE dimensionality reduction method\[[12](https://arxiv.org/html/2611.17684#bib.bib12)\], tracks and visualizes representational dynamics across training epochs, embedding these high\-dimensional network trajectories into a low\-dimensional space while preserving local and global structures\. Here we change the perspective and study how the geometry of data \(i\.e\., samples\), rather than hidden units, evolves throughout training\. We describe the M\-PHATE construction in Section[3\.2](https://arxiv.org/html/2611.17684#S3.SS2)\.
Related work:The standard defense for neural networks is adversarial training which is known to transform representational structures by sacrificing clean accuracy\[[4](https://arxiv.org/html/2611.17684#bib.bib4)\], increasing reliance on robust features\[[6](https://arxiv.org/html/2611.17684#bib.bib6)\], and reorganizing latent structures\[[13](https://arxiv.org/html/2611.17684#bib.bib13)\]\. To measure the structural differences between trained networks with a similarity measure, CKA\[[8](https://arxiv.org/html/2611.17684#bib.bib8)\]provides a static, pairwise comparison post\-hoc by comparing centered kernel matrices\. SVCCA integrates singular value decomposition and canonical correlation analysis to analyze differences in representations\[[9](https://arxiv.org/html/2611.17684#bib.bib9)\]\. To analyze the inter\- and intra\-unit dynamical characteristics of a network throughout training, M\-PHATE\[[11](https://arxiv.org/html/2611.17684#bib.bib11)\]embeds the activation tensor as a single object in low\-dimensional space\. Setting dimensionality to two or three enables visualizing the dynamics\. This places our work alongside an increasingly vital domain that treats trained networks themselves as data to be analyzed directly\. These efforts include predicting model properties from weights\[[14](https://arxiv.org/html/2611.17684#bib.bib14);[15](https://arxiv.org/html/2611.17684#bib.bib15)\], compiling datasets of model populations\[[16](https://arxiv.org/html/2611.17684#bib.bib16)\], and developing architectures that operate on weight spaces\[[17](https://arxiv.org/html/2611.17684#bib.bib17)\]\. While weights are not well\-ordered, activations are, which makes matched\-pair displacement between clean/perturbed input pairs tractable\.
## 3Setup and methods
### 3\.1Models and training
All experiments use MNIST\[[18](https://arxiv.org/html/2611.17684#bib.bib18)\]with a fixed sample of 1,000 training images and 2,000 test images\. We compute geometric measurements on a fixed batch of 1,000 test images with indices consistent across all experiments, so only initialization and batch ordering vary across runs\. The architecture is a three\-layer fully connected MLP \(784→128→64→10784\\rightarrow 128\\rightarrow 64\\rightarrow 10\) with ReLU activations\. Leth1∈ℝ128h\_\{1\}\\in\\mathbb\{R\}^\{128\}andh2∈ℝ64h\_\{2\}\\in\\mathbb\{R\}^\{64\}be the two hidden layers, where all geometric measurements are calculated on the penultimate layerh2h\_\{2\}\. We use fully connected MLPs so that representations are free from pooling or convolutional structure, and the training objective directly contributes to the measured geometry rather than an architectural prior\. For that same reason, we use single\-step attacks, though multi\-step attack suites exist\[[19](https://arxiv.org/html/2611.17684#bib.bib19)\]\. We train under four regimes:vanillaon clean data, and three adversarial regimes applying single\-step attacks on every batch at each epoch\. Each regime is trained across five perturbation budgets referred to as Extreme Low to Extreme High\. Each network is trained on three seeds, resulting in a total population of 48 networks: 45 adversarially\-trained and 3 vanilla\. Training and attack details are expanded upon in Appendix[A\.6](https://arxiv.org/html/2611.17684#A1.SS6)\.
### 3\.2Trajectory and joint embeddings
PHATE\[[12](https://arxiv.org/html/2611.17684#bib.bib12)\]embeds high\-dimensional data by representing the data as an affinity graph to capture local relationships, applying a diffusion operator to learn global structure, and reducing the dimensionality with MDS, resulting in a low\-dimensional representation of the original data\. M\-PHATE\[[11](https://arxiv.org/html/2611.17684#bib.bib11)\]builds on this, treating networks as dynamical systems where each epoch becomes a single slice in a multislice graph between hidden units\. To study how this local geometry evolves, M\-PHATE connects a hidden unit to itself across all epochs through interslice edges in the multi\-slice graph, allowing a diffusion process to capture temporal evolution in structural organization\. While Gigante et al\.\[[11](https://arxiv.org/html/2611.17684#bib.bib11)\]track hidden units, here we track*test samples*directly, making each embedded point a single image at a single training epoch\. This corresponds to embedding thesample×\\timesepochmodes of the activation tensor, rather than thehidden unit×\\timesepochmodes \(see Appendix\)\.
Temporal analysis is especially critical in defense settings because standard and adversarial training may differ in the organization of the final representations they arrive at, and the path taken to form them\. Final\-epoch representations hold limited information power since they are unable to differentiate a network that reorganized early from one that drifted throughout, yet these two behaviors represent different learning processes\. During training, the hidden activations of a test batch are recorded per\-epoch to create a tensor of shape \(50epochs×1,000samples×128units50\\text\{ epochs \}\\times 1,000\\text\{ samples \}\\times 128\\text\{ units \}\) forh1h\_\{1\}and shape \(50×1,000×6450\\times 1,000\\times 64\) forh2h\_\{2\}, so a single embedding displays the entire training cycle as one continuous object\. To compare clean and perturbed samples within a shared space, we stack penultimate layer representations of each test batch into a two\-slice tensor of shape\(2×1,000×64\)\(2\\times 1,000\\times 64\)using the multi\-slice graph construction of M\-PHATE\[[11](https://arxiv.org/html/2611.17684#bib.bib11)\], with each clean point linked to its perturbed sample\. Since the interslice edge is a matched pair, each clean image remains linked to its perturbed counterpart with weightexp\{−\(di/σ\)2\}\\operatorname\{exp\}\\\{\-\(d\_\{i\}/\\sigma\)^\{2\}\\\}, wheredid\_\{i\}is the distance between the pair, andσ\\sigmais a global bandwidth set to their mean distance\. Following prior work using these embeddings directly as geometric representations\[[11](https://arxiv.org/html/2611.17684#bib.bib11);[20](https://arxiv.org/html/2611.17684#bib.bib20)\]all measurements in Section[3\.3](https://arxiv.org/html/2611.17684#S3.SS3)are computed in this space\. We report results corresponding to using the rawh2h\_\{2\}activations in Appendix[B](https://arxiv.org/html/2611.17684#A2)\.
### 3\.3Geometric analysis
We feed clean and perturbed test batches through each network, extracting their penultimate representationshicleanh\_\{i\}^\{\\text\{clean\}\}andhiadvh\_\{i\}^\{\\text\{adv\}\}, which are jointly embedded, as described in Section[3\.2](https://arxiv.org/html/2611.17684#S3.SS2)\. All three quantities below are computed on the resulting 3\-dimensional M\-PHATE coordinates\. Our batches keep sample correspondence, so we measure matched pair quantities, described below\.
Normalized displacement\(dnormd\_\{\\text\{norm\}\}\) is the mean distance that the applied perturbation moves a point, expressed relative to the scale of that network’s own representation space\. Since raw distances are not comparable across networks, we divide mean perturbation displacement by the within\-network median to obtain a dimensionless quantity that measures how far a point moves after perturbation, relative to how far apart two arbitrary clean points lie\. This yields a dimensionless, scale\-invariant metric appropriate for cross\-network comparison\.
Distributional divergenceis the measure of dissimilarity or difference between two distributions of data points\. We use MMD with a Gaussian kernel to test whether the representations of clean and perturbed points are drawn from the same distribution\. SinceMMD^2\\widehat\{MMD\}^\{2\}provides a scalar output, distributional difference is formally characterized using a permutation test withNperm=1000N\_\{\\text\{perm\}\}=1000permutations\. Kernel parameters are fit per configuration\.
Neighborhood recoveryrequires no normalization, as we report the fraction of perturbed points whose clean counterpart appears within theirk=10k=10nearest clean neighbors, making the measure invariant to any rescaling of the representation space\.
## 4Representational drift from adversarial training
We report our main findings below: testing networks on common attacks aligns with geometric measurement ranking about robustness and similarity among points; standard seen attack metrics rank training regimes opposite of geometric measurements; accuracy\-based and geometric metrics diverge in specific cases, showing that the two metrics are not interchangeable as measures of robustness\.
### 4\.1Measuring robustness with accuracy can coincide with geometric stability
Figure[1](https://arxiv.org/html/2611.17684#S4.F1)reports clean accuracy of each trained network and its gap in accuracy against each attack along the same perturbation budget level:accuracyclean−accuracyrobust\\textbf\{accuracy\}\_\{\\text\{clean\}\}\-\\textbf\{accuracy\}\_\{\\text\{robust\}\}\. Clean accuracy remains stable across regimes, except for the FGSM\-trained network, which exhibits a known instability that can come from single\-step adversarial training with large budgets\[[21](https://arxiv.org/html/2611.17684#bib.bib21)\]\.




Figure 1:Clean accuracy and adversarial performance gaps for FGSM,ℓ2\\ell\_\{2\}andℓ∞\\ell\_\{\\infty\}attacks across training perturbation budgets\. A gap of00means clean accuracy matches accuracy under attack and larger gaps mean a larger drop under attack\.Figure 2:Normalized displacement between matched clean and perturbed representations in 3D M\-PHATE space; larger values mean the perturbation moved representations further relative to the network’s own scale\. Rows: trained network\. Columns: budget and attack used to perturb, ordered by ascending vanilla displacement\. Each cell represents the network trained at the budget and perturbations of that attack at the same budget\. Mean±\\pms\.d\., three seeds\.Figure 3:\(a\)Proportion of perturbed test points whose clean counterpart lies within its ten nearest neighbors in 3D PHATE space\.\(b\)MMD permutation testpp\-values between clean and perturbed points in 3D PHATE space\. Recovery near11andppnear11both mean the perturbation left the representation essentially unchanged\. For both panels, rows denote the trained network and applied evaluation attack, and columns denote the perturbation budget\. Mean±\\pms\.d\. across three seeds\.Figure 4:M\-PHATE embeddings ofh1h\_\{1\}\(top\) andh2h\_\{2\}\(bottom\) across all 50 training epochs at the High budget, one network per column\. Each panel embeds the full trajectory of activations for the clean test batch, colored by epoch\.Comparing each network against the attack it was trained on gives a standard measure of robustness, shown within Figure[1](https://arxiv.org/html/2611.17684#S4.F1)\(Mean±\\pms\.d\. are shown in Appendix[B](https://arxiv.org/html/2611.17684#A2)\)\. A clear pattern arises here:l∞l\_\{\\infty\}exhibits the smallest gap between clean accuracy and robust accuracy, across its own attack\. This suggests, by standard measures, that it ranks as the most robust network in this population\. Geometric measures suggest the opposite, ranking it last across the board\. Across the three attack families, thel∞l\_\{\\infty\}\-trained network exhibits the largest mean displacement at Medium, High, and Extreme High, at 0\.095, 0\.153, and 0\.233 \(Figure[2](https://arxiv.org/html/2611.17684#S4.F2)\)\. It also shows the lowest mean kNN recovery proportions, 0\.77, 0\.55, and 0\.30 \(Figure[3](https://arxiv.org/html/2611.17684#S4.F3)\(a\)\), while the FGSM\-trained network has the smallest displacement and highest recovery, withl2l\_\{2\}between them\. Distributional discrepancy follows a similar pattern \(Figure[3](https://arxiv.org/html/2611.17684#S4.F3)\(b\)\), revealing that the defended network with the most appealing robustness number is the one that has moved its representations furthest from where they started: a defense can rearrange how a network represents its data with no guarantee that accuracy will reflect it\.
Figure[4](https://arxiv.org/html/2611.17684#S4.F4)shows the 2\-dimensional M\-PHATE embeddings for hidden\-layer activations over 50 epochs for the four regimes at the High perturbation budget\. Compared to the vanilla network dynamics, all adversarially trained networks show a clear pattern in either a single layer or both layers: learning stability begins to collapse at earlier epochs\. The first hidden layer remains more stable through all 50 epochs than the second, where representation movement becomes difficult to track; the FGSM regime appears the least sporadic of the defended networks and closely resembles the vanilla dynamics\. All M\-PHATE embeddings are in Appendix[C](https://arxiv.org/html/2611.17684#A3), where these behaviors vary across budgets, and give a qualitative view of clean versus perturbed representations\.
### 4\.2Ranking robust networks varies with evaluation attacks
The vanilla network explains why thel∞l\_\{\\infty\}\-trained network appears most robust under threat\-model\-matched evaluation: under the same nominalϵ\\epsilon, an undefended network loses 0\.232 accuracy under FGSM perturbation, but only 0\.055 underl∞l\_\{\\infty\}\-bounded perturbation\. Standard evaluations introduce bias into comparison since different attack types have different optimization objectives\. Geometric measurements complement this by evaluating each network against each type of attack equally, providing a natural architecture\- and attack\-agnostic benchmark, enabling practitioners to compare populations of networks without strict constraints or requirements\.
At Extreme High FGSM attack, thel∞l\_\{\\infty\}\-trained network provides little benefit in accuracy, reducing the vanilla gap of0\.8560\.856to0\.7210\.721, where the FGSM\-trained network reaches a far lower gap of0\.3260\.326, yet it retains much of the geometric benefit, with displacement reduced from0\.4140\.414to0\.3000\.300against the FGSM\-trained displacement of0\.2060\.206\. Therefore, the measured geometric benefit of a defense is not proportional to the benefit that accuracy measures\. We also note that no adversarially trained network has larger displacement than the vanilla network in any of the 45 cells, shown in Figure[2](https://arxiv.org/html/2611.17684#S4.F2)\.
## 5Discussion, limitations, and next steps
Across a group of 48 networks spanning four regimes \(three adversarial and one standard\) and five perturbation budgets, rankings imposed by conventional robustness metrics are not necessarily in agreement with their geometric structures\. This nuanced relationship is attributed to the choice of evaluation attack used to quantify robustness\. Scoring a defense against an attack it was trained on means that each network faces a test of different difficulty, whereas geometric measures enable cross\-comparison across networks and test attacks without having to choose which attack represents a given network\. For instance, our undefended network loses 0\.232 accuracy under FGSM attack, but only 0\.055 under thel∞l\_\{\\infty\}\-bounded attack at the same nominalϵ\\epsilon, showing that evaluating defenses at equivalentϵ\\epsilon\-values subjects models to tests of unequal difficulty\. Geometry does not replace accuracy, since accuracy only calculates whether or not a decision boundary was crossed, while displacement, MMD, and kNN recovery report how far representations shifted, whether their global distribution changed, and whether local neighborhoods survived\. Reporting both distinguishes a defense that stabilized a network’s representations from one that only scored well against a favorable attack\. We acknowledge the results presented reflect small MLPs on MNIST with single\-step attacks, and are mainly derived from penultimate layer representations\. Perturbation budgets were chosen to follow convention within the domain literature, matching on a nominalϵ\\epsilon, though extended study could compute budgets matched on applied perturbation magnitude\. In future work, we will extend this analysis to convolutional\- and transformer\-based architectures\[[22](https://arxiv.org/html/2611.17684#bib.bib22);[23](https://arxiv.org/html/2611.17684#bib.bib23);[24](https://arxiv.org/html/2611.17684#bib.bib24)\]on CIFAR\-10 and ImageNet, where representational structure is richer and robustness claims carry practical weight for researchers\. Our results also indicate the geometry within neural network representations can be used for adversarial detection, using geometric shift as the basis for identifying perturbed inputs\.
## References
- Szegedy et al\. \[2013\]Christian Szegedy, Wojciech Zaremba, I\. Sutskever, Joan Bruna, D\. Erhan, I\. Goodfellow, and R\. Fergus\.Intriguing properties of neural networks\.*CoRR*, December 2013\.
- Goodfellow et al\. \[2015\]Ian J\. Goodfellow, Jonathon Shlens, and Christian Szegedy\.Explaining and harnessing adversarial examples, 2015\.URL[https://arxiv\.org/abs/1412\.6572](https://arxiv.org/abs/1412.6572)\.
- Madry et al\. \[2019\]Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu\.Towards Deep Learning Models Resistant to Adversarial Attacks, September 2019\.
- Tsipras et al\. \[2019\]Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry\.Robustness May Be at Odds with Accuracy, September 2019\.
- Zhang et al\. \[2019\]Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric Xing, Laurent El Ghaoui, and Michael Jordan\.Theoretically principled trade\-off between robustness and accuracy\.In*International conference on machine learning*, pages 7472–7482\. PMLR, 2019\.
- Ilyas et al\. \[2019\]Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry\.Adversarial examples are not bugs, they are features\.In H\. Wallach, H\. Larochelle, A\. Beygelzimer, F\. d’Alché\-Buc, E\. Fox, and R\. Garnett, editors,*Advances in Neural Information Processing Systems*, volume 32\. 2019\.
- Wang et al\. \[2018\]Liwei Wang, Lunjia Hu, Jiayuan Gu, Yue Wu, Zhiqiang Hu, Kun He, and John Hopcroft\.Towards Understanding Learning Representations: To What Extent Do Different Neural Networks Learn the Same Representation, November 2018\.
- Kornblith et al\. \[2019\]Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton\.Similarity of Neural Network Representations Revisited\.In*Proceedings of the 36th International Conference on Machine Learning*, pages 3519–3529, May 2019\.
- Raghu et al\. \[2017\]Maithra Raghu, Justin Gilmer, Jason Yosinski, and Jascha Sohl\-Dickstein\.SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability\.In*Advances in Neural Information Processing Systems*, volume 30, 2017\.
- Gretton et al\. \[2012\]Arthur Gretton, Karsten M\. Borgwardt, Malte J\. Rasch, Bernhard Schölkopf, and Alexander Smola\.A Kernel Two\-Sample Test\.*Journal of Machine Learning Research*, 13\(25\):723–773, 2012\.ISSN 1533\-7928\.
- Gigante et al\. \[2019\]Scott Gigante, Adam S\. Charles, Smita Krishnaswamy, and Gal Mishne\.Visualizing the PHATE of Neural Networks\.In*Advances in Neural Information Processing Systems*, volume 32, 2019\.
- Moon et al\. \[2019\]Kevin R\. Moon, David van Dijk, Zheng Wang, Scott Gigante, Daniel B\. Burkhardt, William S\. Chen, Kristina Yim, Antonia van den Elzen, Matthew J\. Hirn, Ronald R\. Coifman, Natalia B\. Ivanova, Guy Wolf, and Smita Krishnaswamy\.Visualizing structure and transitions in high\-dimensional biological data\.*Nature Biotechnology*, 37\(12\):1482–1492, December 2019\.ISSN 1546\-1696\.doi:10\.1038/s41587\-019\-0336\-3\.
- Engstrom et al\. \[2019\]Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Brandon Tran, and Aleksander Madry\.Adversarial Robustness as a Prior for Learned Representations, September 2019\.
- Unterthiner et al\. \[2021\]Thomas Unterthiner, Daniel Keysers, Sylvain Gelly, Olivier Bousquet, and Ilya Tolstikhin\.Predicting Neural Network Accuracy from Weights, April 2021\.
- Eilertsen et al\. \[2020\]Gabriel Eilertsen, Daniel Jönsson, Timo Ropinski, Jonas Unger, and Anders Ynnerman\.Classifying the Classifier: Dissecting the Weight Space of Neural Networks\.In*ECAI 2020*, pages 1119–1126\. 2020\.doi:10\.3233/FAIA200209\.
- Schürholt et al\. \[2022\]Konstantin Schürholt, Diyar Taskiran, Boris Knyazev, Xavier Giró\-i\-Nieto, and Damian Borth\.Model Zoos: A Dataset of Diverse Populations of Neural Network Models\.*Advances in Neural Information Processing Systems*, 35:38134–38148, December 2022\.doi:10\.52202/068431\-2763\.
- Navon et al\. \[2023\]Aviv Navon, Aviv Shamsian, Idan Achituve, Ethan Fetaya, Gal Chechik, and Haggai Maron\.Equivariant Architectures for Learning in Deep Weight Spaces\.In*Proceedings of the 40th International Conference on Machine Learning*, pages 25790–25816, July 2023\.
- LeCun et al\. \[1998\]Y\. LeCun, L\. Bottou, Y\. Bengio, and P\. Haffner\.Gradient\-based learning applied to document recognition\.*Proceedings of the IEEE*, 86\(11\):2278–2324, November 1998\.ISSN 1558\-2256\.doi:10\.1109/5\.726791\.
- Croce and Hein \[2020\]Francesco Croce and Matthias Hein\.Reliable evaluation of adversarial robustness with an ensemble of diverse parameter\-free attacks\.In*International conference on machine learning*, pages 2206–2216\. PMLR, 2020\.
- Xie et al\. \[2026\]Jiancheng Xie, Lou C Voinov, Noga Mudrik, Gal Mishne, and Adam Shabti Charles\.Multiway multislice PHATE: Visualizing hidden dynamics of RNNs through training\.*Transactions on Machine Learning Research*, 2026\.ISSN 2835\-8856\.URL[https://openreview\.net/forum?id=9Yr4V7iZsq](https://openreview.net/forum?id=9Yr4V7iZsq)\.
- Wong et al\. \[2020\]Eric Wong, Leslie Rice, and J\. Zico Kolter\.Fast is better than free: Revisiting adversarial training\.In*International Conference on Learning Representations*, 2020\.URL[https://openreview\.net/forum?id=BJx040EFvH](https://openreview.net/forum?id=BJx040EFvH)\.
- He et al\. \[2015\]Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun\.Deep Residual Learning for Image Recognition, December 2015\.
- Zagoruyko and Komodakis \[2016\]Sergey Zagoruyko and Nikos Komodakis\.Wide Residual Networks\.In*Proceedings of the British Machine Vision Conference 2016*, pages 87\.1–87\.12, York, UK, 2016\.ISBN 978\-1\-901725\-59\-9\.doi:10\.5244/C\.30\.87\.
- Dosovitskiy et al\. \[2021\]Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby\.An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale, June 2021\.
## Appendix AExtended methodological details
### A\.1Maximum mean discrepancy
The maximum mean discrepancy \(MMD\)[Gretton et al\. \[2012\]](https://arxiv.org/html/2611.17684#bib.bib10)can be used to measure the distance between two sets of representations through their mean embeddings in a Reproducing Kernel Hilbert Space \(RKHS\)\. LetX=\{xi\}i=1nX=\\\{x\_\{i\}\\\}\_\{i=1\}^\{n\}andY=\{yj\}j=1mY=\\\{y\_\{j\}\\\}\_\{j=1\}^\{m\}be the clean and perturbed representations, respectively, withn=m=1000n=m=1000and pooled asZ=\[X,Y\]Z=\[X,Y\]\. We use a Gaussian kernel
k\(u,v\)=exp\(−γ‖u−v‖22\)withγ=1\[mediani,j‖zi−zj‖2\]2\+ϵ0k\(u,v\)=\\operatorname\{exp\}\(\-\\gamma\\\|u\-v\\\|\_\{2\}^\{2\}\)\\text\{ with \}\\gamma=\\frac\{1\}\{\[\\operatorname\{median\}\_\{i,j\}\\\|z\_\{i\}\-z\_\{j\}\\\|\_\{2\}\]^\{2\}\+\\epsilon\_\{0\}\}with the bandwidth chosen using the median heuristic andϵ0=10−12\\epsilon\_\{0\}=10^\{\-12\}\. The kernel matrix is computed once and held fixed\. Using the kernel matrixK∈ℝ\(n\+m\)×\(n\+m\)K\\in\\mathbb\{R\}^\{\(n\+m\)\\times\(n\+m\)\}ofZZand the weight vectorw=\(1n,…,1n,−1m,…,−1m\)⊤w=\(\\frac\{1\}\{n\},\\dots,\\frac\{1\}\{n\},\-\\frac\{1\}\{m\},\\dots,\-\\frac\{1\}\{m\}\)^\{\\top\}, the biased estimator of MMD is measured as:
MMD^2=w⊤Kw=1n2∑i,i′k\(xi,xi′\)\+1m2∑j,j′k\(yj,yj′\)−2nm∑i,jk\(xi,yj\)\.\\widehat\{MMD\}^\{2\}=w^\{\\top\}Kw=\\frac\{1\}\{n^\{2\}\}\\sum\_\{i,i^\{\\prime\}\}k\(x\_\{i\},x\_\{i^\{\\prime\}\}\)\+\\frac\{1\}\{m^\{2\}\}\\sum\_\{j,j^\{\\prime\}\}k\(y\_\{j\},y\_\{j^\{\\prime\}\}\)\-\\frac\{2\}\{nm\}\\sum\_\{i,j\}k\(x\_\{i\},y\_\{j\}\)\.
Since this statistic is invariant to global rescaling of the representation space, comparison across networks is appropriate\. To properly compare MMD scalars across networks, we assess statistical significance using a permutation test withN=1,000N=1,000permutations\. Each permutationπ\\pishuffles the pooled indices and recomputesMMD^π2=wπ⊤Kwπ\\widehat\{MMD\}\_\{\\pi\}^\{2\}=w^\{\\top\}\_\{\\pi\}Kw\_\{\\pi\}\. The p\-value is computed as
p=1N∑π1\[MMD^π2≥MMD^2\]p=\\frac\{1\}\{N\}\\sum\_\{\\pi\}1\[\\widehat\{MMD\}\_\{\\pi\}^\{2\}\\geq\\widehat\{MMD\}^\{2\}\]which is reported as 0\.000 when no permutation satisfies the inequality, indicatingp<0\.001p<0\.001rather than exact zero\.
### A\.2Normalized displacement
Lethicleanh\_\{i\}^\{\\text\{clean\}\}andhiadvh\_\{i\}^\{\\text\{adv\}\}be the representations of the i\-th clean example and its perturbed counterpart, in the space being measured\. The normalized displacement is computed as
dnorm=1n∑i=1n‖hiclean−hiadv‖2mediani,j‖hiclean−hjclean‖2\.d\_\{\\text\{norm\}\}=\\frac\{\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\\|h\_\{i\}^\{\\text\{clean\}\}\-h\_\{i\}^\{\\text\{adv\}\}\\\|\_\{2\}\}\{\\operatorname\{median\}\_\{i,j\}\\\|h\_\{i\}^\{\\text\{clean\}\}\-h\_\{j\}^\{\\text\{clean\}\}\\\|\_\{2\}\}\.
### A\.3kNN recovery
For each perturbed representation,hiadvh\_\{i\}^\{\\text\{adv\}\}, let𝒩k\(hiadv\)\\operatorname\{\\mathcal\{N\}\_\{k\}\}\(h\_\{i\}^\{\\text\{adv\}\}\)be the index set of its k clean\-representation nearest neighbors under Euclidean distance\. The kNN recovery rate is
Rk=1n∑i=1n1\[i∈𝒩k\(hiadv\)\]R\_\{k\}=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}1\[i\\in\\operatorname\{\\mathcal\{N\}\_\{k\}\}\(h\_\{i\}^\{\\text\{adv\}\}\)\]where k=10 in this work\.Rk=1R\_\{k\}=1means every single perturbed point’s clean counterpart is within its k nearest clean neighbors, andRk=0R\_\{k\}=0means no perturbed point is within its k clean nearest neighbors\.
### A\.4PHATE and M\-PHATE
PHATE is a powerful dimensionality reduction technique that optimizes diffusion maps and aims to preserve both global and local structure for data visualization[Moon et al\. \[2019\]](https://arxiv.org/html/2611.17684#bib.bib12)\. It works by building a graph of data points, computing affinities to capture local relationships, and applying a diffusion operator to capture multiscale global structure\. The resulting embedding maps potential distances into a low\-dimensional space, maintaining the spatial organization of its high\-dimensional counterpart\. Built upon PHATE, M\-PHATE extends this to time\-variant high\-dimensional data \(i\.e\. network representations over epochs\)[Gigante et al\. \[2019\]](https://arxiv.org/html/2611.17684#bib.bib11)\. A tensor of shape\(epochs×samples×units\)\(\\text\{epochs\}\\times\\text\{samples\}\\times\\text\{units\}\)is formed into a multislice graph where every epoch is a "slice", where interslice edges are connected to the same unit across epochs and intraslice edges connected within epochs\. Applying diffusion on this combined graph creates an embedding where the representational trajectory of a network throughout training can be seen as a continuous structure, analogous to treating networks as dynamical systems whose temporal artifacts evolve along a low\-dimensional trajectory\. For further details, see Moon et al\.[Moon et al\. \[2019\]](https://arxiv.org/html/2611.17684#bib.bib12)and Gigante et al\.[Gigante et al\. \[2019\]](https://arxiv.org/html/2611.17684#bib.bib11)\.
### A\.5Attacks
Letg=∇xl\(fθ\(x\),y\)g=\\nabla\_\{x\}l\(f\_\{\\theta\}\(x\),y\)be the input gradient of a single sample, and letΠ\[0,1\]\\Pi\_\{\[0,1\]\}denote clamping to the valid pixel range\. The three single step attacks used are
xFGSMadv=Π\[0,1\]\(x\+ε⋅sign\(g\)\)x^\{\\mathrm\{adv\}\}\_\{\\mathrm\{FGSM\}\}=\\Pi\_\{\[0,1\]\}\\big\(x\+\\varepsilon\\cdot\\mathrm\{sign\}\(g\)\\big\)xl2adv=Π\[0,1\]\(x\+ε⋅g‖g‖2\+ϵ0\)x^\{\\mathrm\{adv\}\}\_\{l\_\{2\}\}=\\Pi\_\{\[0,1\]\}\\Big\(x\+\\varepsilon\\cdot\\tfrac\{g\}\{\\\|g\\\|\_\{2\}\+\\epsilon\_\{0\}\}\\Big\)xl∞adv=Π\[0,1\]\(x\+ε⋅g‖g‖∞\+ϵ0\)x^\{\\mathrm\{adv\}\}\_\{l\_\{\\infty\}\}=\\Pi\_\{\[0,1\]\}\\Big\(x\+\\varepsilon\\cdot\\tfrac\{g\}\{\\\|g\\\|\_\{\\infty\}\+\\epsilon\_\{0\}\}\\Big\)where norms are computed over the flattened image andϵ0=10−12\\epsilon\_\{0\}=10^\{\-12\}\.
### A\.6Network training and attack configurations
Table[1](https://arxiv.org/html/2611.17684#A1.T1)displays the details of training configurations used in this paper\. This is held constant throughout all work in the paper, with the only variation being the adversarial training regime and perturbation budgets\. Table[2](https://arxiv.org/html/2611.17684#A1.T2)displays perturbation budgets as fractions and decimals for each attack used\. Table[3](https://arxiv.org/html/2611.17684#A1.T3)shows the mean perturbation magnitudes for each attacked batch of 1000 images used for evaluation\.
Table 1:Training configuration, identical for all networks and budgets\.Table 2:Perturbation budgets\. FGSM andl∞l\_\{\\infty\}use the same pixel\-scaleε\\varepsilon, given both as a fraction of 255 and as a decimal;l2l\_\{2\}uses a separate scale\.Table 3:Measured perturbation magnitudes, averaged over the 1000\-image evaluation batch\.δ=xadv−x\\delta=x\_\{\\mathrm\{adv\}\}\-xis measured after clamping to\[0,1\]\[0,1\], so these are the perturbations actually applied rather than the nominal budgets\.
## Appendix BComplete results tables
Table[4](https://arxiv.org/html/2611.17684#A2.T4)shows the complete cross\-attack accuracy measurements of all networks across all training regimes\. Tables[5](https://arxiv.org/html/2611.17684#A2.T5)and[6](https://arxiv.org/html/2611.17684#A2.T6)give the corresponding geometry in the rawh2h\_\{2\}space and in the 3\-component M\-PHATE embedding, each reporting the mean displacement, the clean–clean median used as the denominator, the resulting normalized displacement,MMD2MMD^\{2\}and corresponding p\-values\.
Table 4:Complete cross\-attack accuracy grid\. Every network is evaluated on the clean batch and under all three attacks at that budget; attacks are generated white\-box against the network being evaluated\. Mean±\\pms\.d\. over seeds 0, 1, 2\.Table 5:Geometry in the raw 64\-dimensional penultimate \(h2\) space\. Mean displacement and median clean–clean pairwise distance are reported so normalized values can be recomputed as their ratio\. Mean±\\pms\.d\. over seeds 0, 1, 2\.Table 6:Geometry in the 3\-component M\-PHATE embedding of the joint clean/perturbed tensor\. Columns match Table[5](https://arxiv.org/html/2611.17684#A2.T5)\. Mean±\\pms\.d\. over seeds 0, 1, 2\.
## Appendix CAdditional figures
### C\.1M\-PHATE embeddings across training regimes and adversarial budgets
Figure[5](https://arxiv.org/html/2611.17684#A3.F5)shows the M\-PHATE trajectories of all networks across 50 epochs\. Clean test samples are fed through at every epoch\. Throughout these additional examples, the pattern noted in the main text still holds: the first hidden layers \(h1h\_\{1\}\) of each of these networks appears to have more stable and consistent trajectory evolution throughout training than the second hidden layers \(h2h\_\{2\}\), whose trajectory is hard to follow from epoch to epoch\. For the adversarially trained networks, this becomes more pronounced at larger perturbation budgets, where data points across epochs do not progress in a similar way ash1h\_\{1\}\. The vanilla row is identical across all budgets\.
Figure 5:M\-PHATE embeddings of training trajectories for layersh1h\_\{1\}\(top block\) andh2h\_\{2\}\(bottom block\), with one row per network and one column per perturbation budget\. Each point is one clean test image at one epoch, colored by epoch\. The vanilla row is identical across all five columns, since that network never sees an attack\.
### C\.2Joint M\-PHATE embeddings across training regimes and adversarial budgets
Figures[6](https://arxiv.org/html/2611.17684#A3.F6)–[9](https://arxiv.org/html/2611.17684#A3.F9)show the 2D M\-PHATE embeddings of both clean and perturbed data points as penultimate layer representations \(h2h\_\{2\}\) from each respective network, created after training has concluded\. In Figure[6](https://arxiv.org/html/2611.17684#A3.F6), within rows as perturbation budgets increase, so does the shift in perturbed point clusters from clean points and this is especially noticeable with classes for digits 0, 2, and 6\. Thel∞l\_\{\\infty\}attack \(Figure[9](https://arxiv.org/html/2611.17684#A3.F9)\) also produces the least visible separation at every budget, compared to the FGSM andl2l\_\{2\}attack \(Figures[7](https://arxiv.org/html/2611.17684#A3.F7)and[8](https://arxiv.org/html/2611.17684#A3.F8)\)\. The embeddings provided are best examined for qualitative patterns, as precise magnitudes and variations across seeds are given in Tables[5](https://arxiv.org/html/2611.17684#A2.T5)and[6](https://arxiv.org/html/2611.17684#A2.T6)\.
Figure 6:Embeddings of the vanilla network’s penultimate layer\. Joint M\-PHATE embeddings of clean \(circles\) and perturbed \(crosses\) penultimate\-layer representations of 1000 MNIST test images, colored by digit class, across attacks \(rows\) and perturbation budgets \(columns\)\.Figure 7:Embeddings under the FGSM attack\. Joint M\-PHATE embeddings of clean \(circles\) and perturbed \(crosses\) penultimate\-layer representations of 1000 MNIST test images, colored by digit class, across perturbation budgets \(rows\) and training regimes \(columns\)\.Figure 8:Embeddings under thel2l\_\{2\}attack\. Joint M\-PHATE embeddings of clean \(circles\) and perturbed \(crosses\) penultimate\-layer representations of 1000 MNIST test images, colored by digit class, across perturbation budgets \(rows\) and training regimes \(columns\)\.Figure 9:Embeddings under thel∞l\_\{\\infty\}attack\. Joint M\-PHATE embeddings of clean \(circles\) and perturbed \(crosses\) penultimate\-layer representations of 1000 MNIST test images, colored by digit class, across perturbation budgets \(rows\) and training regimes \(columns\)\.
## Appendix DComputing resources
All experiments were run on a single machine: one NVIDIA Tesla V100 \(16 GB\), a 16\-core x86\_64 CPU, and 64 GB of system memory\.
Each of the five budget sets is one self\-contained run covering 3 seeds×\\times4 networks: 12 networks trained for 50 epochs\. A run took roughly 20 minutes, and the five sets together took 101\.9 minutes of wall\-clock time\. Network training is a minority of that cost: 26\.2 minutes in total, against 35\.0 minutes for the embeddings and 39\.4 minutes for the permutation tests \(0\.9 minutes for the kNN and distance computations\)\. Embedding, not training, dominates this pipeline, and the cost depends strongly on the number of slices\. Averaged over exploratory runs, a 50\-slice training\-dynamics embedding takes489±60489\\pm 60s, while a 2\-slice clean\-versus\-perturbed embedding takes124±30124\\pm 30s\.Similar Articles
Measuring Representation Robustness in Large Language Models for Geometry
Researchers introduce GeoRepEval, a framework to evaluate LLM robustness across equivalent geometric problem representations (Euclidean, coordinate, vector). Testing 11 LLMs on 158 geometry problems, they find accuracy gaps up to 14 percentage points based solely on representation choice, with vector formulations being a consistent failure point.
Geometry Is Not Robustness: A Trajectory-Level Study of PGD Evaluation
This paper conducts a trajectory-level investigation of PGD attacks on CNNs trained on Fashion-MNIST, showing that while a robustness hierarchy exists, trajectory metrics like loss evolution and gradient alignment do not independently measure robustness, with steps-to-failure providing clearer separation.
Beyond Decision Boundaries: Relational Geometry Attacks on Contrastive Embedding Manifolds
This paper introduces a geometry-aware adversarial attack framework that targets relational structure in contrastive embedding manifolds, showing that verification systems like Markmatch can be severely degraded by distorting pairwise similarities rather than decision boundaries.
10 years of AI robustness tricks (PGD, RLHF, Data Augmentation) are actually computing the same hidden matrix. We proved what happens when you get it wrong.
A research paper proves that various AI robustness techniques (PGD, RLHF, data augmentation) all estimate the same deployment nuisance covariance matrix. Applying a geometric penalty term reduces sycophancy in Qwen2.5-7B from 38.5% to 13.5% and improves adversarial robustness by 14.8% over standard PGD-AT.
Streaming Adversarial Robustness in Fuzzy ARTMAP: Mechanism-Aligned Evaluation, Progressive Training, and Interpretable Diagnostics
This paper investigates adversarial robustness in Fuzzy ARTMAP, a streaming neural architecture, by introducing WB-Softmax as a mechanism-aligned white-box attack surrogate. It evaluates progressive training and selective updating strategies to improve robustness without data replay, while also offering interpretable diagnostics for structural failures.