mlsanityData to 7 Oct 2026

Beyond Invariance: Test-Time Label-Shift Adaptation for Distributions with "Spurious" Correlations

arXiv 2211.15646 ↗First posted 28 Nov 2022stat.ML cs.CV cs.LGcited by 7

Not on the map. Why?

Abstract (arXiv)

Changes in the data distribution at test time can have deleterious effects on the performance of predictive models p(y|x). We consider situations where there are additional meta-data labels (such as group labels), denoted by z, that can account for such changes in the distribution. In particular, we assume that the prior distribution p(y, z), which models the dependence between the class label y and the "nuisance" factors z, may change across domains, either due to a change in the correlation between these terms, or a change in one of their marginals. However, we assume that the generative model for features p(x|y,z) is invariant across domains. We note that this corresponds to an expanded version of the widely used "label shift" assumption, where the labels now also include the nuisance factors z. Based on this observation, we propose a test-time label shift correction that adapts to changes in the joint distribution p(y, z) using EM applied to unlabeled samples from the target domain distribution, pt(x). Importantly, we are able to avoid fitting a generative model p(x|y, z), and merely need to reweight the outputs of a discriminative model ps(y, z|x) trained on the source distribution. We evaluate our method, which we call "Test-Time Label-Shift Adaptation" (TTLSA), on several standard image and text datasets, as well as the CheXpert chest X-ray dataset, and show that it improves performance over methods that target invariance to changes in the distribution, as well as baseline empirical risk minimization methods. Code for reproducing experiments is available at https://github.com/nalzok/test-time-label-shift .

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 33 of its 60 references that are in the map. First posted on arXiv 28 Nov 2022.

Builds on

33 of 60 references.

References · 33

  1. 2017On Calibration of Modern Neural Networkscited by 4,860
  2. 2014Deep Learning Face Attributes in the Wildcited by 3,679
  3. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  4. 2020Shortcut Learning in Deep Neural Networkscited by 1,928
  5. 2019Invariant Risk Minimizationcited by 1,832
  6. 2019CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparisoncited by 1,410
  7. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
  8. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,232
  9. 2020In Search of Lost Domain Generalizationcited by 1,042
  10. 2020Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptationcited by 844
  11. 2020Long-tail learning via logit adjustmentcited by 605
  12. 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 522
21 more
  1. 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
  2. 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
  3. 2018Detecting and Correcting for Label Shift with Black Box Predictorscited by 364
  4. 2022Contrastive Test-Time Adaptationcited by 258
  5. 2021Simple data balancing achieves competitive worst-group-accuracycited by 177
  6. 2021A Fine-Grained Analysis on Distribution Shiftcited by 171
  7. 2021Reading Race: AI Recognises Patient's Racial Identity In Medical Imagescited by 155
  8. 2022On Feature Learning in the Presence of Spurious Correlationscited by 145
  9. 2020A Unified View of Label Shift Estimationcited by 119
  10. 2022Spread Spurious Attribute: Improving Worst-group Accuracy with Spurious Attribute Estimationcited by 88
  11. 2021Causally motivated Shortcut Removal Using Auxiliary Labelscited by 55
  12. 2021Out-of-distribution Generalization in the Presence of Nuisance-Induced Spurious Correlationscited by 41
  13. 2022Invariant and Transportable Representations for Anti-Causal Domain Shiftscited by 37
  14. 2022Modeling the Data-Generating Process is Necessary for Out-of-Distribution Generalizationcited by 34
  15. 2020Deep Learning Applied to Chest X-Rays: Exploiting and Preventing Shortcutscited by 29
  16. 2021BARACK: Partially Supervised Group Robustness With Guaranteescited by 25
  17. 2022Revisiting Self-Distillationcited by 23
  18. 2022Fairness and robustness in anti-causal predictioncited by 10
  19. 2022Breaking Correlation Shift via Conditional Invariant Regularizercited by 7
  20. 2022Towards Group Robustness in the presence of Partial Group Labelscited by 6
  21. 2022Generative multitask learning mitigates target-causing confoundingcited by 4

Built on by

Cited by year

Citing papers per year: 2023: 3; 2024: 4.

7 papers.