Learning Robust Representations by Projecting Superficial Statistics Out
Haohan Wang, Zexue He, Zachary C. Lipton, Eric P. Xing
TL;DR
The paper tackles distribution shift and domain generalization by separating superficial texture statistics from semantic content. It introduces a differentiable neural gray-level co-occurrence matrix (NGLCM) to capture texture and a HEX framework to project out this texture information, forcing the model to rely on semantics. Two training strategies are proposed: a reverse-gradient adversarial variant and a projection-based orthogonalization, enabling robust out-of-domain performance without access to target-domain data. Across synthetic tests, nuisance-background tasks, pattern-attached MNIST, MNIST-rotation, and PACS, HEX achieves competitive or superior generalization compared to methods that require target-domain samples, while acknowledging limitations such as imperfect texture suppression and potential trivial solutions.
Abstract
Despite impressive performance as evaluated on i.i.d. holdout data, deep neural networks depend heavily on superficial statistics of the training data and are liable to break under distribution shift. For example, subtle changes to the background or texture of an image can break a seemingly powerful classifier. Building on previous work on domain generalization, we hope to produce a classifier that will generalize to previously unseen domains, even when domain identifiers are not available during training. This setting is challenging because the model may extract many distribution-specific (superficial) signals together with distribution-agnostic (semantic) signals. To overcome this challenge, we incorporate the gray-level co-occurrence matrix (GLCM) to extract patterns that our prior knowledge suggests are superficial: they are sensitive to the texture but unable to capture the gestalt of an image. Then we introduce two techniques for improving our networks' out-of-sample performance. The first method is built on the reverse gradient method that pushes our model to learn representations from which the GLCM representation is not predictable. The second method is built on the independence introduced by projecting the model's representation onto the subspace orthogonal to GLCM representation's. We test our method on the battery of standard domain generalization data sets and, interestingly, achieve comparable or better performance as compared to other domain generalization methods that explicitly require samples from the target distribution for training.
