TL;DR
This paper introduces Supervised Subspace Cancellation, a method that forces neural networks to ignore "shortcuts" (like background color or image style) by projecting those features to zero. By combining a standard task loss with a targeted "zero-prediction" penalty on a learned domain subspace, the model learns robust features that generalize even when training-set correlations are broken.
What Problem Does This Paper Address?
Neural networks are notoriously "lazy." If a specific background color or lighting style is highly correlated with a label in the training data (e.g., most "cows" are on green grass), the model will learn to use that background as a shortcut rather than learning the actual object. This is known as spurious correlation.
The challenge is: how do you tell a model what not to learn? Simply telling a model to "predict zero" for everything leads to representation collapse, where the model stops learning anything useful at all. The authors investigate how to use the "pressure" of zero-prediction as a surgical tool—silencing specific, unwanted directions in the data while keeping the important features intact.
Methods
The authors propose a framework called Supervised Subspace Cancellation. The core idea is to identify a specific "subspace" of the data that contains the domain bias and then force the network's internal representations to have zero projection onto that subspace.
Key components include:
- The Orthonormal Domain Head ($W$): A specialized layer that identifies directions in the data predictive of the "style" or "domain" (e.g., the background). To keep this head from collapsing, the authors use QR re-orthonormalization, ensuring the rows of $W$ stay mathematically "clean" and span a distinct $K$-dimensional space.
- Asymmetric Optimization: Training happens in two alternating steps:
- Identify the Bias: The domain head is trained on a balanced split of data to find the directions that define the spurious style.
- Cancel the Bias: The main encoder is trained to solve the primary task (e.g., digit classification) while simultaneously minimizing the "energy" of the projection onto the domain head ($\|Wz\|_2^2$).
- The Task Anchor: The standard Cross-Entropy loss for the main task acts as an "anchor," preventing the model from simply collapsing all its features to zero to satisfy the cancellation penalty.
Datasets
The researchers evaluated their method on three classic computer vision benchmarks, modified to include heavy spurious correlations ($p_{corr} = 0.99$):
- MNIST: Injected with inverted colors and noise styles.
- CIFAR-10: Injected with synthetic visual perturbations.
- SVHN (Street View House Numbers): Injected with analogous three-channel visual perturbations.
In these setups, 99% of certain classes were paired with specific styles during training, creating a massive "shortcut" for the model to exploit.
Key Insights and Ideas
- The Paradox of Zero: Predicting zero is usually a sign of a broken model. However, the authors show that when zero-prediction is restricted to a specific subspace, it becomes a powerful regularizer for invariance.
- Geometric Tension: There is a fundamental "tug-of-war" between the task loss (which wants to keep information) and the cancellation loss (which wants to delete it). The paper's linear analysis proves that without a task anchor, zero-prediction naturally gravitates toward low-variance or "dead" directions.
- Selective Silencing: Unlike global methods that whiten or decorrelate the entire embedding, this method is targeted. It only "mutes" the $K$ dimensions identified as being related to the domain bias.
- The Goldilocks Subspace ($K$): The choice of $K$ (the dimensionality of the cancelled subspace) is critical. If $K$ is too small, the bias remains; if $K$ is too large, the model starts deleting features necessary for the main task.
Key Results
- Reduced Leakage: On MNIST, the "Domain Probe Accuracy" (a measure of how much style info is left in the representation) dropped from 99.2% in the baseline to 66.8% with the proposed method.
- Improved Generalization: On the SVHN dataset, the method didn't just remove bias—it actually improved main task accuracy on the "correlation-broken" test set, jumping from 67.7% to 72.4%. This suggests that by removing the shortcut, the model was forced to learn more meaningful, generalizable features.
- Visual Integrity: Qualitative checks of the first-layer filters showed that the models maintained diverse, structured edge detectors and color blobs, proving that the "predict zero" objective didn't cause a low-level collapse of the neural network.
Limitations and Future Work
- Linearity: The current method uses a linear projection ($Wz$). While effective, a sufficiently powerful nonlinear "probe" might still be able to find residual style information hidden in the representation.
- Hyperparameter Sensitivity: The strength of the penalty ($\beta$) and the size of the subspace ($K$) currently require manual tuning. The authors suggest "spectral thresholding" as a future way to automatically discover the right $K$.
- Known Biases: The method currently assumes we know what the spurious factor is (i.e., we have labels for the "style"). Extending this to "unsupervised" settings where the bias is unknown remains an open challenge.
- Scaling: The experiments focused on compact CNNs and synthetic styles; testing on large-scale architectures like Vision Transformers and real-world datasets (like Waterbirds) is the next logical step.
Summary updated