paper-with-me

Papers

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

2023-09-21 · NeurIPS 2023 11

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, $p_t(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 $p_s(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.

📄 PDF Abstract BibTeX

Code (1)

nalzok/test-time-label-shift 공식 구현 jax

Similar Papers 제목 키워드 기반

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

2022-11-28 · Qingyao Sun, Kevin Murphy, Sayna Ebrahimi, Alexander D'Amour

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), deno…

Invariance assumptions for class distribution estimation

2023-11-28 · Dirk Tasche

We study the problem of class distribution estimation under dataset shift. On the training dataset, both features and class labels are observed while on the test dataset only the features can be observed. The task then i…

Beyond Accuracy: Policy Invariance as a Reliability Test for LLM Safety Judges

2026-05-07 · Shihao Weng, Yang Feng, Xiaofei Xie arxiv

LLM-as-a-Judge pipelines have become the de facto evaluator for agent safety, yet existing benchmarks treat their verdicts as ground-truth proxies without checking whether the verdicts depend on the agent's behavior or m…

TIPI: Test Time Adaptation With Transformation Invariance

2023-01-01 · CVPR 2023 1 · A. Tuan Nguyen, Thanh Nguyen-Tang, Ser-Nam Lim, Philip H.S. Torr

When deploying a machine learning model to a new environment, we often encounter the distribution shift problem -- meaning the target data distribution is different from the model's training distribution. In this pap…

Autonomous DrivingTest-time Adaptation

Counterfactual Invariance to Spurious Correlations: Why and How to Pass Stress Tests

2021-05-31 · NeurIPS 2021 12 · Victor Veitch, Alexander D'Amour, Steve Yadlowsky, Jacob Eisenstein

Informally, a 'spurious correlation' is the dependence of a model on some aspect of the input data that an analyst thinks shouldn't matter. In machine learning, these have a know-it-when-you-see-it character; e.g., chang…

Causal Inferencecounterfactualtext-classificationText Classification