Domain-adversarial training is a standard way to transfer a classifier from a labeled "source" dataset to an unlabeled "target" dataset. A second network, the domain discriminator, tries to tell source features from target features. The main network is trained to fool it. Separately, the shortcut-learning literature has found that suppressing one spurious cue tends to push a network onto the next-easiest cue. Examples include backgrounds giving way to co-occurring objects, or single words giving way to word pairs. This note argues that these are the same phenomenon. A domain discriminator can only penalize features whose distribution differs between source and target. It cannot see a spurious cue that both domains share. Adversarial alignment therefore behaves like a single-axis debiaser: it removes the domain-specific shortcut and plausibly drives the model onto shared shortcuts.
The proposal has two parts. First, a controlled multi-shortcut adaptation testbed with "trap" evaluation splits that would show whether this substitution happens. Second, a small change to adversarial adaptation that could undo it. The change adds class-conditioned discriminators whose "domains" are pseudo-groups mined from the model's own early-training errors. This gives the adversary a view of shortcuts that never differ between source and target.
Core Claim
The objective in Domain-Adversarial Training of Neural Networks (DANN) pushes the feature distributions of source and target toward each other. Its gradient is non-zero only along feature directions that separate the two domains. Suppose the source data contains two shortcuts. One, $s_1$ (say, background), has a different marginal distribution in the target. The other, $s_2$ (say, a co-occurring object), is distributed identically in both domains. DANN erases $s_1$. It exerts no pressure on $s_2$, and the source label loss now has one fewer easy cue.
A Whac-A-Mole Dilemma found that mitigating the background shortcut alone on UrbanCars more than doubled reliance on the co-occurring-object shortcut. We predict the same rotation under DANN and under class-conditioned variants such as Conditional Adversarial Domain Adaptation (CDAN) and Multi-Adversarial Domain Adaptation (MADA). Conditioning on class does not make a domain-invariant shortcut visible to the discriminator.
The prediction is falsifiable. On a trap split where $s_2$ is inverted, DANN should do worse than source-only training, even though it does better on standard target accuracy.
Our fix rests on one observation. A shortcut shared across domains still separates examples where it agrees with the label from examples where it conflicts. A briefly trained model exposes these groups through its mistakes. We turn those groups into additional adversarial "domains" and align them within each class. Because A Whac-A-Mole Dilemma reports that shortcuts are learned asynchronously, a single snapshot catches only the earliest one. We therefore mine pseudo-groups from several staggered checkpoints and give each its own discriminator.
Relation to Prior Work
Four papers border this question. None of them studies switching under adversarial alignment.
Artifact-Based Domain Generalization of Skin Lesion Models treats dermoscopy artifacts as environments, trains with GroupDRO, and introduces trap sets with inverted artifact–label correlations. We reuse its trap-set methodology and its benchmark. It relies on artifact annotations and finds that robustness stays local to annotated artifacts. Our pseudo-groups need no annotations, and its locality finding is the failure we target.
Overcoming Shortcut Learning in a Target Domain by Generalizing Basic Visual Factors from a Source Domain uses a synthetic, factor-decorrelated source to break shortcuts in a fully correlated target. It requires known factor decompositions and uses no adversary.
Causally Motivated Personalized Federated Invariant Learning (FedPIN) separates shortcuts from useful local signal using clients as environments and information-theoretic losses. It operates in federated learning and does not involve minimax alignment.
Domain Invariant Adversarial Learning reuses the DANN gradient-reversal machinery with adversarial perturbations as the "target domain." It is evidence that the discriminator can be pointed at domains other than datasets, which our method also does. Its domains are perturbation noise, not natural shortcuts.
Our proposal is constrained by two negative results. When and Why Does Bias Mitigation Work? shows that removing shortcuts from a task beyond the model's capacity yields chance performance or residual shortcuts, not causal features. We therefore include a capacity-controlled condition. Reward Bias Substitution shows that static audits cannot tell elimination from substitution. That result motivates our requirement to measure every known shortcut axis, not just aggregate target accuracy.
Research Program
The testbed. Built from UrbanCars, its two independently controlled shortcuts let us assign roles cleanly:
- Background is the domain-specific shortcut. Source and target differ in background marginals, and the background–label correlation is absent in the target.
- The co-occurring object is the shared shortcut, correlated with the label identically in both domains.
Trap splits invert each shortcut separately. A cheap replica uses MNIST→MNIST-M, where the texture shift is the domain-specific cue, with an injected colored patch as the shared shortcut.
The realistic case uses ISIC2019 as source and the external clinical sets named in the artifact paper (PH2, Derm7pt, PAD-UFES-20) as targets, scored on the existing trap sets. For a standard benchmark, Office-Home gets a transparent watermark overlay in the style of ImageNet-W, correlated with a subset of classes in both domains.
Shortcut reliance. For each shortcut we report two quantities:
- the accuracy gap between its aligned and inverted trap splits, the reliance measure used in the Whac-A-Mole paper;
- linear-probe decodability of the shortcut from the frozen features.
We track both over training. This tests whether alignment removes $s_1$ before $s_2$ reliance grows, which is the temporal signature of substitution rather than pre-existing reliance.
The method. We train an ERM model for a few epochs and save checkpoints at several points. For each checkpoint $c$, source examples are split into "correct" and "incorrect" sets. Within each class $k$, a discriminator $D_{c,k}$ tries to tell the two sets apart from the shared features. Its gradient passes through the usual gradient-reversal layer. The class-conditional structure follows MADA, so that alignment never merges different classes. The ordinary source–target discriminator is kept. The pseudo-group discriminators are an extra, label-free view of shortcuts that both domains share.
Baselines
Source-only ERM. The do-nothing reference is ERM trained on source and evaluated on target and traps. It sets the bar any adaptation must clear. On MNIST→MNIST-M it is reported at 52.25% target accuracy Domain-Adversarial Training of Neural Networks. On the most severe skin trap set it collapses to an AUC of 0.58 Artifact-Based Domain Generalization.
DANN. DANN is the object of the diagnosis, with 76.66% reported on MNIST→MNIST-M.
CDAN+E. The strongest existing adversarial method is CDAN with entropy weighting. It reports 87.7% average accuracy on Office-31 and 65.8% on Office-Home with ResNet-50 Conditional Adversarial Domain Adaptation. It is the right competitor because its class conditioning is the most plausible existing defense against misaligned features.
There is no reported result on Lacuna for DANN or CDAN on UrbanCars, on watermark-injected Office-Home, or on the skin trap sets, so we will produce these numbers ourselves.
GroupDRO with NoiseCrop. On the skin benchmark, the strongest annotation-using method is GroupDRO combined with NoiseCrop, at a trap-set AUC of 0.74. It enters as a privileged reference, not a peer.
Fairness of comparison. All methods share a backbone, augmentations, and training budget. Each gets the same number of hyperparameter trials, selected on a small labeled source validation set. No method sees target labels during selection. The gradient-reversal weight is tuned identically for DANN, CDAN, and our method.
Ablations. Three ablations isolate the key ingredient:
- pseudo-group discriminators from a single checkpoint, testing whether staggered checkpoints matter;
- the same pseudo-groups used for loss reweighting instead of adversarial alignment, isolating the adversary;
- the method without the source–target discriminator.
What counts as success. The method beats CDAN+E if two conditions hold together. Worst-trap accuracy, the minimum over all inverted-shortcut splits, must be higher across seeds. Standard target accuracy must not fall by more than seed noise. A gain on one trap paired with a loss on another would count as substitution, not success.
Why not just…?
Why not just use CDAN or MADA, which already condition on class? Class conditioning aligns source and target within each predicted class. A shortcut that is equally present in both domains looks identical to every class-conditional discriminator, so conditioning cannot see it. This is our central prediction. If CDAN+E shows no increase in co-occurring-object reliance on UrbanCars, the core claim is wrong and the method is unnecessary. That outcome is the first experiment.
Why not just retrain the last layer with deep feature reweighting (DFR)? On Feature Learning in the Presence of Spurious Correlations shows that ERM features already encode the core signal. Retraining only the linear head on a group-balanced split reaches 97% worst-group accuracy on Waterbirds and 92% on CelebA. This is a real threat. If it holds here, representation-level alignment is the wrong place to intervene. DFR needs group labels that unsupervised adaptation lacks, so we run it two ways: an oracle version with true trap-group labels, and a label-free version using our mined pseudo-groups. Both are applied to ERM features and to DANN features. If pseudo-group DFR on ERM features matches our method, we will adopt that cheaper form and report the adversarial component as unneeded.
Why not just apply MaskTune or a Last Layer Ensemble after adaptation? MaskTune is unsupervised. It masks the regions the model relies on, as found by gradient-based saliency maps, then fine-tunes for one epoch. It raised Waterbirds worst-group accuracy from 80.8% to 86.4% MaskTune. It handles only spatially contiguous cues and is sensitive to its masking threshold. Our watermark and texture shortcuts are deliberately non-local, so these conditions test exactly where it should fail. The Last Layer Ensemble from A Whac-A-Mole Dilemma needs shortcut-specific augmentations designed in advance. We give it the known UrbanCars shortcuts as an upper reference, and do not treat it as a competitor in the unknown-shortcut setting.
Decisive Checks
Three outcomes settle the proposal.
Does substitution happen? On the UrbanCars and MNIST-M testbeds, DANN and CDAN+E would have to lower background reliance while raising shared-object reliance above source-only training. The probe curves should show the rise following background erasure in time. Without this, the project ends as a useful negative result about domain discriminators.
Does the fix work without hiding a new substitution? Our method would have to raise worst-trap accuracy above CDAN+E on UrbanCars, watermarked Office-Home, and the skin trap sets. On skin, approaching the annotation-using 0.74 AUC without artifact labels would be the strongest single result. The single-checkpoint and reweighting ablations should each fall short, showing that both the staggered mining and the adversary matter.
Are we below the complexity ceiling? Following When and Why Does Bias Mitigation Work?, we will repeat the UrbanCars experiment with a deliberately small backbone. If removing both shortcuts there drives target accuracy toward chance for every method, gains on the full model can be attributed to removing shortcuts rather than to an artifact of capacity.
References
- Domain-Adversarial Training of Neural Networks
- A Whac-A-Mole Dilemma: Shortcuts Come in Multiples Where Mitigating One Amplifies Others
- Conditional Adversarial Domain Adaptation
- Multi-Adversarial Domain Adaptation
- Artifact-Based Domain Generalization of Skin Lesion Models
- Overcoming Shortcut Learning in a Target Domain by Generalizing Basic Visual Factors from a Source Domain
- Causally Motivated Personalized Federated Invariant Learning with Shortcut-Averse Information-Theoretic Regularization
- Domain Invariant Adversarial Learning
- When and Why Does Bias Mitigation Work?
- Reward Bias Substitution: Single-Axis Bias Mitigations Redirect Optimization Pressure
- On Feature Learning in the Presence of Spurious Correlations
- MaskTune: Mitigating Spurious Correlations by Forcing to Explore