Rectifying Group Irregularities in Explanations for Distribution Shift

Adam Stein, Yinjun Wu, Eric Wong, Mayur Naik · Submission to ICLR 2024 · Rejected

TL;DR

Standard methods for explaining distribution shifts focus on global metrics, often generating explanations that alter immutable traits or cross natural category boundaries (such as changing an individual's race to explain an increase in income). The authors introduce Group-aware Shift Explanations (GSE), a framework that leverages worst-group optimization to preserve subpopulation structure. Across tabular, text, and image datasets, GSE significantly reduces "group irregularities," improving explanation feasibility by up to 22% and perturbation robustness by up to 25%.

What Problem Does This Paper Address?

When machine learning models encounter distribution shift (e.g., differences across hospitals, changing weather conditions, or demographic changes), researchers often use shift explanations to understand how the source distribution differs from the target. Existing methods—such as Optimal Transport (OT), $K$-cluster transport, and counterfactual approaches like DiCE—find a transformation map that minimizes global disparity (e.g., Wasserstein distance).

However, optimizing solely for global alignment creates group irregularities: the explanation often takes shortcuts that fracture internal subpopulation structures. For example:

  • In the Adult dataset, explaining the shift from low to high income by switching a majority-Black cluster into a majority-White cluster.
  • In image datasets, shifting an antelope into a porcupine rather than another hooved mammal.

Such explanations are practically useless (infeasible for decision-makers) and brittle (non-robust to small perturbations in the source data).

Methods

The authors unify disparate shift explanation methods under a shared parameterized mapping framework $M(x; \theta)$ and propose Group-aware Shift Explanations (GSE):

  1. Worst-Group PercentExplained (WG-PE): Instead of maximizing the standard PercentExplained ($\text{PE}$) across the entire dataset, GSE optimizes the worst-performing subgroup: $$\text{WG-PE}(\theta) = \min_{g} \text{PE}_g(\theta)$$ This penalizes mappings where any single subpopulation suffers from poor alignment, driving the model to respect group boundaries without requiring a separate explanation for every cluster.

  2. Unified Loss Formulation: For non-OT methods (like DiCE classifiers), GSE minimizes a generalized worst-group loss: $$\text{WG-}L(\theta) = F(\{L_g(\theta)\}_{g=1}^G) + \lambda \cdot L(\theta)$$ where $F$ aggregates group losses (e.g., sum or max via Group DRO) and $\lambda$ balances global vs. subgroup performance.

  3. Featurization & Reverse-Featurization for Vision and NLP: Because raw pixels and text lack directly interpretable semantic dimensions, the authors extract interpretable features (e.g., CLIP-derived captions converted to Bag-of-Words, or topic models), optimize the shift, and then map back to the input space using generative models (like Stable Diffusion) or token manipulations.

Datasets

The authors evaluated GSE across three modalities using established benchmarks (no new datasets were introduced):

  • Tabular: Adult Income (low vs. high income; grouped by sex/race) and Breast Cancer Wisconsin (benign vs. malignant; grouped by cell radius-to-area ratio).
  • Text: Civil Comments (non-toxic to toxic comments; grouped by gender mentions) and Amazon Reviews from WILDS (review sentiment; grouped by review year).
  • Vision: BREEDS/ImageNet (adversarial subpopulation shift between hooved mammals and rodents), FMoW (satellite imagery pre/post 2012; grouped by geography), and iWildCam (wildlife camera traps across regions; grouped by daytime vs. nighttime).

Key Insights and Ideas

  • Group irregularities are theoretically inevitable under global objectives: The authors prove in a 1D Bernoulli setting (Theorem 1) that optimizing global PE strictly produces a discrepancy between overall PE and worst-group PE for nearly all distribution configurations. GSE eliminates this gap.
  • Group constraints do not ruin global fit: One might expect that constraining explanations to respect groups would hurt overall distribution alignment. In practice, GSE maintains comparable overall PE and even improves global PE on datasets like ImageNet, Civil Comments, and iWildCam.
  • Unsupervised grouping remains effective: When predefined group annotations are unavailable, GSE can construct groups via unsupervised clustering (e.g., $K$-means over sentence embeddings) and still substantially outperform vanilla shift explanations in feasibility and worst-group PE.

Key Results

  • Worst-Group Alignment (WG-PE): GSE delivered major gains on worst-group metrics—improving WG-PE by over 20 percentage points on the Breast Cancer (83.42% $\rightarrow$ 93.42%) and FMoW (-17.30% $\rightarrow$ 7.46%) benchmarks using $K$-cluster transport.
  • Feasibility: By preventing shifts across protected or fixed attributes, GSE improved actionable feasibility across all tested datasets, with gains up to 22.5% on iWildCam (48.69% to 71.24%) and 12.8% on ImageNet (37.25% to 50.11%).
  • Robustness: Across small random input perturbations, GSE reduced explanation sensitivity $\Omega$ by up to 25% (e.g., dropping sensitivity from 18.78 to 13.95 on Amazon Reviews).

Limitations and Future Work

  • Dependence on Base Explanation Expressiveness: GSE cannot overcome capacity limits inherent to base methods (e.g., $K$-cluster transport with small $K$ cannot fully capture complex multi-modal shifts).
  • Sensitivity to Group Definitions: Explanation quality depends heavily on how groups are specified. Poorly chosen groups can occasionally harm worst-case perturbation robustness.
  • Featurization Bottlenecks: Reversible text and image pipelines (e.g., captioning via CLIP + generation via Stable Diffusion) can introduce artifacts or lose nuanced context compared to working natively in representation space.

Summary updated

BibTeX
@inproceedings{stein2023rectifying,
  author = {Adam Stein and Yinjun Wu and Eric Wong and Mayur Naik},
  title = {{Rectifying Group Irregularities in Explanations for Distribution Shift}},
  booktitle = {XAIA @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=lJ63ABWs8V},
}
Figure