Beyond Invariance: Test-Time Label-Shift Adaptation for Distributions with "Spurious" Correlations
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
- 2017On Calibration of Modern Neural Networkscited by 4,860
- 2014Deep Learning Face Attributes in the Wildcited by 3,679
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2020Shortcut Learning in Deep Neural Networkscited by 1,928
- 2019Invariant Risk Minimizationcited by 1,832
- 2019CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparisoncited by 1,410
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,232
- 2020In Search of Lost Domain Generalizationcited by 1,042
- 2020Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptationcited by 844
- 2020Long-tail learning via logit adjustmentcited by 605
- 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 522
21 more
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
- 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
- 2018Detecting and Correcting for Label Shift with Black Box Predictorscited by 364
- 2022Contrastive Test-Time Adaptationcited by 258
- 2021Simple data balancing achieves competitive worst-group-accuracycited by 177
- 2021A Fine-Grained Analysis on Distribution Shiftcited by 171
- 2021Reading Race: AI Recognises Patient's Racial Identity In Medical Imagescited by 155
- 2022On Feature Learning in the Presence of Spurious Correlationscited by 145
- 2020A Unified View of Label Shift Estimationcited by 119
- 2022Spread Spurious Attribute: Improving Worst-group Accuracy with Spurious Attribute Estimationcited by 88
- 2021Causally motivated Shortcut Removal Using Auxiliary Labelscited by 55
- 2021Out-of-distribution Generalization in the Presence of Nuisance-Induced Spurious Correlationscited by 41
- 2022Invariant and Transportable Representations for Anti-Causal Domain Shiftscited by 37
- 2022Modeling the Data-Generating Process is Necessary for Out-of-Distribution Generalizationcited by 34
- 2020Deep Learning Applied to Chest X-Rays: Exploiting and Preventing Shortcutscited by 29
- 2021BARACK: Partially Supervised Group Robustness With Guaranteescited by 25
- 2022Revisiting Self-Distillationcited by 23
- 2022Fairness and robustness in anti-causal predictioncited by 10
- 2022Breaking Correlation Shift via Conditional Invariant Regularizercited by 7
- 2022Towards Group Robustness in the presence of Partial Group Labelscited by 6
- 2022Generative multitask learning mitigates target-causing confoundingcited by 4
Built on by
Citing papers per year: 2023: 3; 2024: 4.
7 papers.
- 2024The Clever Hans Mirage: A Comprehensive Survey on Spurious Correlations in Machine Learningcited by 39
- 2023Substance or Style: What Does Your Image Embedding Know?cited by 5
- 2024Scalable Out-of-distribution Robustness in the Presence of Unobserved Confounderscited by 5
- 2023Modularity Trumps Invariance for Compositional Robustnesscited by 0
- 2023Label Shift Estimators for Non-Ignorable Missing Datacited by 0
- 2024Autoencoder based approach for the mitigation of spurious correlationscited by 0
- 2024Theory-inspired Label Shift Adaptation via Aligned Distribution Mixturecited by 0
- 2024Scalable Out-of-distribution Robustness in the Presence of Unobserved Confounders29 Nov 2024
- 2024Theory-inspired Label Shift Adaptation via Aligned Distribution Mixture4 Nov 2024
- 2024Autoencoder based approach for the mitigation of spurious correlations27 Jun 2024
- 2024The Clever Hans Mirage: A Comprehensive Survey on Spurious Correlations in Machine Learning20 Feb 2024
- 2023Label Shift Estimators for Non-Ignorable Missing Data27 Oct 2023
- 2023Substance or Style: What Does Your Image Embedding Know?10 Jul 2023
- 2023Modularity Trumps Invariance for Compositional Robustness15 Jun 2023