DMAT: Dual Manifold Adversarial Training
- DMAT is an adversarial defense framework that combines image-space (L∞) and latent-space perturbation training to address conventional robustness–accuracy trade-offs.
- It leverages a generative model to construct an exact image manifold, enabling realistic on-manifold variations alongside traditional off-manifold attacks.
- Empirical results demonstrate that DMAT improves clean accuracy and robustness to unseen transformations, such as fog and elastic deformations, while maintaining competitive L∞ defense.
DMAT, short for Dual Manifold Adversarial Training, is an adversarial defense framework that jointly trains a classifier against two complementary perturbation families: conventional image-space -bounded perturbations and latent-space perturbations constrained to lie on a learned image manifold. In "Dual Manifold Adversarial Robustness: Defense against and non- Adversarial Attacks" (Lin et al., 2020), DMAT is introduced to address two limitations of standard adversarial training: the robustness–accuracy trade-off and weak generalization to attacks outside the training threat model, including on-manifold perturbations, global color shifts, and image filtering.
1. Definition and motivating problem
Standard adversarial training considers a classifier over images and labels , and optimizes the min–max objective
In the setting emphasized by the paper, and the inner maximization is commonly solved with PGD (Lin et al., 2020).
The paper identifies two well-known weaknesses of this paradigm. First, strong adversarial training significantly reduces standard accuracy. Second, robustness to perturbations generalizes poorly to other norms, non-0 transformations, and attacks constrained to lie on the data manifold. DMAT is proposed to combine the strengths of conventional off-manifold adversarial training in image space and on-manifold adversarial training in latent space, thereby improving robustness beyond a single threat model (Lin et al., 2020).
The construction relies on a generative model 1 with latent variable 2, so that 3 and the support of 4 approximates a low-dimensional manifold 5. The paper’s central intuition is that latent codes often correspond to semantic, higher-level features such as object shape, pose, and color. Perturbing latent space can therefore generate realistic, label-preserving variations, while pixel-space perturbations remain necessary to defend against conventional 6 attacks.
2. Exact manifold construction: OM-ImageNet
A recurring difficulty in manifold-based robustness work is that the true natural-image manifold is unknown. The paper circumvents this by constructing OM-ImageNet, a dataset for which the manifold is exact by construction (Lin et al., 2020).
The starting point is Mixed-10, a 10-superclass subset of ImageNet. A StyleGAN is trained on this subset, with mapping network 7 and synthesis network 8. The image manifold approximation is
9
Each real image 0 is projected into StyleGAN latent space by solving
1
This inversion produces latent codes and reconstructions for both train and test images. The paper defines
2
with 3, 4, over 10 classes.
OM-ImageNet uses only the reconstructed images 5. Consequently, every sample used in the robustness experiments is exactly of the form 6, so the support of the data distribution is
7
This exactness matters because it cleanly separates on-manifold perturbations from off-manifold perturbations. It also permits a direct test of whether robustness learned on the manifold transfers to the original natural images 8, which are treated as out-of-manifold inputs.
3. Complementary threat models: latent-space versus pixel-space training
On-manifold adversarial examples are generated by perturbing the latent code: 9 The paper uses 0 and implements the attack with OM-FGSM or OM-PGD-1. The corresponding training objective is
2
For comparison, standard adversarial training on OM-ImageNet uses
3
with 4 and PGD-5 during training (Lin et al., 2020).
The empirical contrast between these regimes is the immediate motivation for DMAT. On OM-ImageNet with ResNet-50, latent-only adversarial training improves clean accuracy and on-manifold robustness, but fails against standard pixel-space attacks; pixel-only adversarial training does the reverse.
| Method | Clean | PGD-50 | OM-PGD-50 |
|---|---|---|---|
| Normal | 74.72 | 0.00 | 0.26 |
| AT [PGD-5] | 73.31 | 38.88 | 7.23 |
| OM-AT [OM-FGSM] | 80.77 | 0.03 | 20.19 |
| OM-AT [OM-PGD-5] | 78.10 | 0.25 | 27.53 |
| DMAT [PGD-5, OM-PGD-5] | 77.96 | 37.86 | 20.53 |
These results establish a specific complementarity. Standard adversarial training is strong against 5 image-space attacks but weak against on-manifold attacks. On-manifold adversarial training is strong against latent-space attacks and yields higher clean accuracy, but is essentially broken by PGD-50 in image space. A common misconception is that manifold-consistent perturbations subsume conventional adversarial perturbations; the OM-ImageNet experiments show the opposite. Since no out-of-manifold perturbations are realized in latent-only training, the resulting classifier remains vulnerable to ordinary pixel-space attacks (Lin et al., 2020).
4. Dual Manifold Adversarial Training: objective and procedure
DMAT combines both perturbation families in a single min–max objective: 6 where
7
with 8 and 9 in the reported experiments (Lin et al., 2020).
The first term enforces robustness to off-manifold pixel perturbations; the second enforces robustness to on-manifold latent perturbations. The paper uses PGD-5 in image space and OM-PGD-5 in latent space during training, then sums the two losses equally. No extra weighting parameter is introduced between the two branches.
The algorithmic procedure is organized per minibatch. For each sample 0, the method first generates an image-space adversarial example by projected gradient ascent on 1, then generates a latent-space adversarial example by projected gradient ascent on 2, and finally updates 3 using the sum of the two losses. The same optimizer hyperparameters as in the single-space experiments are used: SGD, momentum 4, weight decay 5, cyclic learning rate, and 20 epochs.
The paper also introduces DMAT + TRADES, which augments image-space TRADES with an additional latent-space consistency term: 6 The two inner maximizations are solved with PGD-5 and OM-PGD-5, respectively. This extension indicates that the dual-manifold idea is not tied to a single robust optimization objective and can be combined with TRADES in a direct way.
5. Empirical robustness to 7, non-8, and unseen attacks
The central empirical claim of DMAT is not that it dominates standard adversarial training on its primary 9 threat model, but that it preserves nearly the same 0 robustness while improving clean accuracy and markedly improving robustness to attacks it was not explicitly trained against (Lin et al., 2020).
On OM-ImageNet, DMAT attains clean accuracy 1, compared with 2 for standard AT [PGD-5], while keeping PGD-50 robustness essentially comparable at 3 versus 4. At the same time, OM-PGD-50 robustness rises from 5 under standard AT to 6 under DMAT.
The paper then evaluates novel attacks drawn from Kang et al. (2019): Fog, Snow, Elastic, Gabor, JPEG, 7, and 8. On every reported unseen attack, DMAT exceeds AT [PGD-5]:
| Method | Fog | Snow | Elastic | Gabor | JPEG | 9 | 0 |
|---|---|---|---|---|---|---|---|
| AT [PGD-5] | 19.76 | 46.39 | 50.32 | 50.43 | 10.23 | 41.98 | 21.21 |
| DMAT [PGD-5, OM-PGD-5] | 31.78 | 51.19 | 56.09 | 51.61 | 14.31 | 51.36 | 29.68 |
The gains are especially large for Fog, 1, and 2. The paper describes these as substantial gains, often 3–4 absolute. This suggests that robustness learned jointly on and off the manifold transfers to structured transformations not captured by the original image-space training threat model.
The TRADES extension exhibits the same pattern. Relative to TRADES, DMAT+TRADES improves clean accuracy from 5 to 6, improves OM-PGD-50 robustness from 7 to 8, and improves robustness on Fog, Elastic, JPEG, and 9, while reducing PGD-50 robustness from 0 to 1. The result is not a monotone improvement in every metric; rather, it is a rebalancing of the robustness profile toward manifold-consistent and unseen perturbations.
6. Generalization beyond the exact manifold, relation to prior work, and limitations
Although OM-ImageNet is an idealized construction, the paper explicitly evaluates the same models on the original natural images 2, treated as out-of-manifold inputs. The qualitative pattern persists (Lin et al., 2020).
On out-of-manifold natural images, AT [PGD-5] yields clean accuracy 3 and PGD-50 robustness 4, while DMAT yields clean accuracy 5 and PGD-50 robustness 6. DMAT again improves robustness to Fog, Snow, Elastic, JPEG, 7, and 8: for example, Fog rises from 9 to 0, Elastic from 1 to 2, and 3 from 4 to 5. A common objection to manifold-based defenses is that exact-manifold experiments are too artificial to say anything about natural images; the out-of-manifold results do not remove that concern, but they show that the observed gains are not confined to reconstructed samples alone.
Within the paper’s framing, DMAT extends two strands of prior work. Relative to standard adversarial training, it retains the image-space branch and therefore keeps comparable 6 robustness. Relative to manifold-based defenses such as those of Jalal et al. and Stutz et al., it scales the analysis to a StyleGAN-based exact manifold for a subset of ImageNet and demonstrates that on-manifold training alone does not protect against off-manifold 7 attacks (Lin et al., 2020). The paper therefore positions DMAT as a hybrid manifold-aware extension to AT and TRADES rather than as a replacement for them.
The method also has explicit limitations. It depends on a strong generative model and an inversion pipeline based on
8
Its main experimental setting is a 10-class subset of ImageNet rather than full ImageNet. Training requires generating two adversarial examples per sample, one in image space and one in latent space, and latent attacks require differentiation through the generator. The reported PGD-50 robustness is slightly lower than that of standard AT in both on-manifold and out-of-manifold evaluation. The paper therefore presents DMAT not as a complete solution to adversarial robustness, but as evidence that manifold information can improve robustness to 9, non-0, and out-of-manifold perturbations when it is combined with conventional adversarial training rather than substituted for it.