Does Symmetry Lower the Price of Robustness?

Hardening an image classifier against adversarial attacks, meaning tiny worst-case pixel changes chosen to flip its prediction, almost always costs accuracy on ordinary clean images. A separate line of work builds symmetries such as rotation directly into the network's wiring, so that a rotated input produces a correspondingly rotated internal response. The file contains two opposite claims about how these interact. One paper reports that rotation- and scale-equivariant networks trained only on clean data resist attacks as well as adversarially trained ones. Another proves, and shows empirically, that pushing spatial invariance up pushes adversarial robustness down roughly linearly, even for equivariant networks. This proposal asks a narrower question that we think decides the matter. Holding parameters, data and attack strength fixed, does building a symmetry into the architecture shift the whole curve of clean accuracy against robust accuracy? And does that shift depend on whether the symmetry is actually present in the data?

Our hypothesis has two parts. First, equivariance does not give robustness for free: clean-trained equivariant models will lose most of their reported robustness under a strong standardized attack suite. Second, once adversarial training is used, an equivariant network gets a better clean-versus-robust curve than a matched ordinary network, but only on data whose labels really are rotation-independent, such as rotated CIFAR-10 or histopathology patches. It should not help on upright natural images. We also give a concrete reason this might happen. For a network that is exactly equivariant to a finite rotation group, one adversarial example at $x$ yields, by rotation, an equally adversarial example at every rotated copy of $x$. So adversarial training on such a network covers the whole group of rotated copies (the orbit) at the cost of one attack.

Core Claim

The disagreement between Bridging Symmetry and Robustness and Can we have it all? comes from asking the wrong question. The first paper asks whether equivariance replaces adversarial training, and evaluates only with the single-step (FGSM) and iterative gradient (PGD) attacks. The second asks whether a single model can maximize both spatial and pixel robustness, and tests only standard group-equivariant convolutional networks with spatial augmentation budgets. Neither measures the clean-versus-robust curve under adversarial training with capacity matched across architectures.

We claim the useful quantity is the price of robustness: how much clean accuracy is lost for each point of robust accuracy gained along a sweep of the trade-off weight $\lambda$ in TRADES. We predict that symmetry encoding lowers this price exactly when the symmetry holds in the data. We further predict that most of the gain can be reproduced by an ordinary network trained on rotated adversarial examples, at $|G|$ times the attack cost, where $|G|$ is the number of discrete rotations. If that prediction holds, the architecture's contribution is efficiency and exact coverage, not a new kind of robustness. That is a smaller claim than either paper makes, and one that can be checked.

Research Program

We work with finite rotation groups that map the pixel grid onto itself: $p4$ (90-degree rotations) and $p4m$ (adding reflections). For these groups, equivariance can be exact and interpolation artifacts do not blur the question. We add the eight-orientation roto-translation networks of Roto-Translation Equivariant Convolutional Networks as an approximate-equivariance condition. These networks rotate filters, stack their responses along an extra orientation axis, and pool that axis away at the end. We also build the parallel design of Wang et al., which runs standard, rotation-equivariant and scale-equivariant branches side by side and fuses them.

Every equivariant model gets two capacity-matched ordinary counterparts, one with equal parameter count and one with equal floating-point cost. Lafarge et al. showed that finer orientation grids under a fixed parameter budget make networks "thin" and eventually hurt accuracy. A robust boundary plausibly needs even more capacity, so this confound has to be controlled rather than ignored.

The mechanism behind the second hypothesis is simple. If $f$ is invariant to group $G$ and the pixel-norm ball is preserved by the group action (true for grid rotations and flips), then $\max_{\|\delta\|\le\epsilon} \mathcal{L}(f(g\cdot x+\delta),y) = \max_{\|\delta\|\le\epsilon}\mathcal{L}(f(x+\delta),y)$ for every $g \in G$. Here $\mathcal{L}$ is the loss, $y$ the label and $\delta$ the perturbation. The worst-case loss is therefore constant across each orbit. An ordinary network must learn this constancy from data, and in doing so it spends capacity on orientation copies of the same boundary. This is the capacity argument usually made for clean training, applied to the adversarial boundary. It is also where the decomposition of robust error into natural error plus boundary error from TRADES becomes measurable. We predict the equivariant advantage appears mostly in the boundary-error term.

Two diagnostic analyses go with the main sweep. The first tests the excessive-margin story of Reducing Excessive Margin, which showed that adversarial training pushes decision boundaries far past the required radius along directions that carry clean-discriminative information. We measure the distance to the boundary along clean-discriminative directions for matched ordinary and equivariant models trained at the same $\lambda$, and ask whether equivariance reduces this over-expansion. The second test comes from Rethinking Invariance Regularization. That paper showed batch normalization statistics computed over mixed clean and adversarial batches distort clean inference. Group-equivariant networks share normalization statistics across the orientation axis, which could make the mixture problem worse. We therefore train each equivariant model with and without separate normalization statistics for clean and adversarial inputs, so any frontier gain is not an artifact of normalization.

Baselines

The naive reference is an ordinary ResNet trained on clean data, alongside its $p4m$ equivariant counterpart, also trained only on clean data. Both are evaluated under the same attacks. This pair tests the "robustness for free" claim directly. The strongest number in the file for that claim is 64.96% PGD accuracy on CIFAR-10 for the 10-layer equivariant model trained only on clean data (Bridging Symmetry and Robustness), with 60.23% FGSM accuracy at $\epsilon=0.05$ against 57.3% for an adversarially trained CNN. No AutoAttack result for that model was found on Lacuna. We will retrain it with their reported design and evaluate it at their $\epsilon$ and at the standard CIFAR-10 $\ell_\infty$ budget of 8/255, using the full AutoAttack suite described in RobustBench. That suite combines two adaptive gradient attacks, a minimal-perturbation boundary attack, and a gradient-free query attack. We also run the attack-failure diagnostics of IndicatorsOfAttackFailure. Their claim survives if AutoAttack robust accuracy stays within a few points of their PGD figure.

The strongest existing trade-off methods are TRADES, HAT and AR-AT, run on ordinary backbones. TRADES reports a spectrum from 88.64% natural accuracy to 56.61% PGD robust accuracy. The AR-AT paper reports TRADES at 84.33% clean accuracy on WideResNet-34-10, against AR-AT's 90.89% clean and 50.77% AutoAttack robustness (Rethinking Invariance Regularization). HAT reports about 2.17 points more clean accuracy than TRADES at roughly 49% AutoAttack robustness on PreAct ResNet-18. AR-AT is the strongest competitor because it attacks clean-accuracy loss directly while keeping AutoAttack robustness. HAT is the most practical, since its code (imrahulr/hat) already includes TRADES, MART, HAT and AutoAttack evaluation for PreAct ResNet-18. We will run all equivariant variants inside that codebase so that data, schedules, attack steps and evaluation are identical, with the same tuning budget of five $\lambda$ values per method.

On upright CIFAR-10, beating these baselines means the equivariant frontier lies above the matched ordinary TRADES and HAT frontiers by more than seed-to-seed variation across three seeds. On rotated CIFAR-10 and PCam, it means the same, measured on worst-case rotated clean accuracy as well as AutoAttack accuracy. We do not expect to beat AR-AT's WideResNet numbers at PreAct scale. Instead, the key comparison applies AR-AT's ingredients to both ordinary and equivariant backbones at matched size.

The ablation that isolates our ingredient is an ordinary network trained with TRADES on orbit-augmented data. Each clean example is replaced by all $|G|$ of its rotated copies, and each copy gets its own attack. This is the fair version of the data-augmentation alternative, because it gives the ordinary network exactly the coverage the equivariant network gets for free. A second ablation keeps the equivariant architecture but breaks exact equivariance by using eight orientations with interpolated filters. This tells us whether the exactness argument or the general architectural prior matters. CuSP serves as the spatial-plus-adversarial curriculum reference. It reports 37.18% adversarial and 59.09% spatial accuracy on VGG16, against 44.88% and 33.07% for standard PGD training.

Why not just…?

Why not just run AutoAttack on the parallel equivariant model and stop there? That settles only the first half of the question. A collapse under AutoAttack would say equivariance is not a defense on its own. It would say nothing about whether equivariance lowers the cost of real adversarial training, which is the question practitioners actually face. Gap 1 in the file stops at the audit. The frontier sweep is what turns the audit into a result.

Why not just train an ordinary network with rotation augmentation plus TRADES? This is the real threat, and we treat it as the central ablation rather than a strawman. The file's evidence against plain augmentation is about clean spatial robustness, not adversarial training. Training or Architecture? reports worst-case rotation accuracy of about 44% for augmentation versus about 71% for orbit mapping, and Lafarge et al. report that equivariant networks match ordinary ones with 25–50% of the data. If orbit-augmented TRADES matches the equivariant frontier at equal parameters, we will report that the architecture's value is a $|G|$-fold saving in attack computation and nothing more. That is still a useful practical finding, but a weaker one, and we will state it that way.

Why not just scale width and add synthetic data? Reducing Excessive Margin reaches 91.30% clean and 62.50% robust accuracy with wider networks and diffusion-generated data, and RobustBench identifies extra data as the most reliable lever. This proposal is not an alternative to scale. It asks whether symmetry changes the slope at fixed scale. We will report results at two widths so a reader can see whether the equivariant gain shrinks, holds, or grows with capacity. If it shrinks to zero at the larger width, scale wins and we will say so.

Why not just enforce equivariance at test time or certify it with smoothing? Robust Perception through Equivariance restores equivariance by optimizing the input at inference, which costs about 1.6 s against 0.04 s per sample. It also falls outside the deterministic threat model of RobustBench. Provable Adversarial Robustness for Group Equivariant Tasks certifies equivariant models with randomized smoothing, which requires many noisy forward passes and costs clean accuracy. Both change the deployment setting, so neither answers the architecture question we pose.

Proposed Experiments

We use three datasets. Upright CIFAR-10 has gravity-aligned semantics, where rotation symmetry is false. Rotated CIFAR-10 applies a random $p4m$ element per image at both training and test time, so the symmetry is exactly true. PCam histopathology patches have a natural orientation-free symmetry; no reported adversarial result was found on Lacuna for PCam, so our numbers there will be the first. The CIFAR-100 versions of the first two test whether the effect survives finer class distinctions. For every backbone (ordinary, $p4$, $p4m$, eight-orientation roto-translation, parallel) at two widths, we sweep the TRADES weight $\lambda$ with and without HAT helper examples and with and without separate clean and adversarial normalization. We report clean accuracy, AutoAttack accuracy at 8/255, worst-case rotated accuracy found by grid search, and the natural and boundary error terms separately.

Four outcomes decide the question. The first is whether clean-only equivariant robustness survives AutoAttack. The second is whether the equivariant frontier rises on rotated CIFAR-10 and PCam but not on upright CIFAR-10; the proposal's central claim fails if the shift appears equally on all three or on none. The third is whether orbit-augmented TRADES closes the gap at equal parameters, which separates "better robustness" from "cheaper coverage." The fourth is whether the margin analysis shows less over-expansion along clean-discriminative directions in equivariant models, which would connect the result to the excessive-margin account rather than leave it as an empirical curve.