Addressing Missing Sources with Adversarial Support-Matching

Thomas Kehrenberg, Myles Bartlett, Viktoriia Sharmanska, Novi QuadriantoarXiv 2022

TL;DR

This paper introduces a novel adversarial framework to fix machine learning models trained on biased datasets where certain groups are completely missing (e.g., a medical dataset with no data for pregnant women). By using an additional, unlabeled but diverse "deployment set," the authors learn subgroup-invariant representations through a technique called Adversarial Support-Matching, ensuring models generalize to groups they never saw during training.

What Problem Does This Paper Address?

Machine learning models are only as good as the data they ingest. A common failure mode is representational bias, where certain demographics or "subgroups" are underrepresented. Most existing research focuses on imbalanced data, but this paper tackles a more severe scenario: missing sources.

Imagine training a digit classifier on "Colored MNIST" where all purple digits are '2's and all green digits are '4's. A standard model will learn a spurious correlation: "if it's purple, it's a 2." If the model is then deployed in the real world where purple '4's exist, it will fail miserably.

Figure 1: Illustration of our general problem setup. We assume the data follows a two-level hier- archy in which the first level corresponds to the class-level information (digit) and the second level corresponds to subgroup-level information (color). While all digits appear in the training set (Top), not all digit-color combinations (sources) do; these gaps in conditional support give rise to a spuri- ous correlation between digit and color, where the former is completely determined by the latter in the training set (giving the mappings purple →2 and green ∨red →4 as degenerate solutions to the classification problem), yet this same correlation does not hold for the deployment set (Bottom) which contains samples from the missing combinations. To disentangle the (spurious) subgroup- and class-related information, we make use of an additional dataset that is representative of the data the model is expected to encounter at deployment time, in terms of the sources present.

The authors formalize this as a two-level hierarchy: Level 1 is the class (e.g., digit) and Level 2 is the subgroup (e.g., color). The goal is to prevent the model from using Level 2 information to predict Level 1 labels when the training set has "incomplete support" for certain combinations.

Methods

The core idea is to learn a representation $z$ that contains all the information needed to predict the class $y$, but none of the information about the subgroup $s$. To do this, the authors propose a two-step pipeline:

  1. Constructing "Perfect Bags": Since the deployment set is unlabeled, they use semi-supervised clustering to group samples into potential class-subgroup combinations. They then sample "bags" (small sets of samples) that are balanced across these clusters.
  2. Adversarial Support-Matching: They train an encoder (the "debiaser") against a discriminator. The discriminator's job is to look at a bag of representations and guess whether it came from the biased training set or the diverse deployment set.
Figure 2: Visualization of our support-matching pipeline. Bags are sampled from the training and deployment sets using the hierarchical sampling procedure described in Sec. 4 and defined function- ally in Eq. 15. Since we cannot use ground-truth labels for hierarchical sampling of the deployment set, we use a semi-supervised clustering algorithm to produce balanced batches. In the event that certain combinations are missing, as shown here for (s = 0, y = 1), the sampling on the training set substitutes the missing combinations with combinations that ensure equal representation of the tar- get classes. The debiaser is adversarially trained to produce representations from which the source dataset cannot be reliably inferred by the discriminator. Assuming the bags are sufficiently balanced and Str × Ytr ⊂Sdep × Ydep, the optimal debiaser is one that produces a representation z that is invariant to s, which we prove in Appendix B.2.

What's new here? Unlike standard domain adaptation that matches individual samples, this method matches the support of the distributions using bags. This is crucial because if a subgroup is entirely missing from the training set, the distributions cannot be matched sample-by-sample without losing class information. By using bags and hierarchical sampling, the model learns to ignore the subgroup features while keeping the class features.

Datasets

The authors evaluated their method on three distinct types of data:

  • Colored MNIST: A synthetic image dataset where digits are colored to create extreme spurious correlations.
  • CelebA: A real-world image dataset of celebrities. The task was to predict "smiling" while treating "gender" as the biased subgroup.
  • Adult Income: A tabular dataset used to predict if an individual earns >$50k, with gender as the subgroup.

Key Insights and Ideas

  • Bags over Samples: The use of "bags" (sets) for the discriminator is the "aha moment." It allows the model to detect the absence of a group in a set, which is a much stronger signal for invariance than looking at a single data point.
  • Support Matching: The goal isn't just to make the distributions look the same, but to ensure the latent space covers the same ground for both datasets.
  • Visualizing Invariance: As training progresses, the UMAP visualizations show that representations of different subgroups (colors) for the same class (digit) eventually merge into a single cluster, effectively "bleaching" the bias out of the latent space.
Figure 3: UMAP visualizations of the representations learned by the debiaser for the Colored MNIST dataset. Left: After 450 training-steps each source forms a distinct cluster. Right: Af- ter 12,000 training-steps sources with the same y-value have merged, thus eliminating the spurious correlation between digit and color.

Key Results

The primary metric used is Robust Accuracy (the minimum accuracy across all subgroups).

  • Colored MNIST: In the "missing subgroup" setting, standard Empirical Risk Minimization (ERM) achieved near 0% robust accuracy. The proposed method reached ~95% robust accuracy when using an "Oracle Bag" and remained highly effective even with noisy clustering.
  • CelebA: The method consistently outperformed baselines like GEORGE and gDRO. Notably, it performed almost as well as "Label Oracle" methods that had access to ground-truth labels for the deployment set.
  • Robustness: The framework proved robust to noise in the clustering process, outperforming baselines even when the deployment set balancing was imperfect.

Limitations and Future Work

  • Prior Knowledge: The method currently requires knowing the number of clusters (classes $\times$ subgroups) beforehand, which might not always be known in practice.
  • Clustering Sensitivity: While robust, the performance still depends on the quality of the initial semi-supervised clustering. If the clusters are poorly defined, the "bags" won't be truly balanced.
  • Future Directions: The authors suggest exploring non-reconstruction-based encoders (like those using contrastive learning) and developing more automated ways to determine the number of hidden subgroups.

Summary updated

BibTeX
@misc{kehrenberg2022addressing,
  author = {Thomas Kehrenberg and Myles Bartlett and Viktoriia Sharmanska and Novi Quadrianto},
  title = {{Addressing Missing Sources with Adversarial Support-Matching}},
  year = {2022},
  eprint = {2203.13154},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.13154},
}
Figure