超越不变性:针对具有“虚假”相关性的分布的测试时标签偏移自适应
Beyond Invariance: Test-Time Label-Shift Adaptation for Distributions with "Spurious" Correlations
AI总结:
本文提出测试时标签偏移自适应方法 TTLSA,通过 EM 算法对目标域无标签样本重新加权源判别模型输出,以适应联合分布 p(y,z) 的变化,无需拟合生成模型,并在多个数据集上验证其优于不变性方法和经验风险最小化基线。
摘要:
测试时数据分布的变化可能对预测模型 $p(y|x)$ 的性能产生有害影响。我们考虑存在额外元数据标签(例如组标签)的情况,用 $z$ 表示,这些标签可以解释分布中的此类变化。特别地,我们假设先验分布 $p(y, z)$(用于建模类别标签 $y$ 与“干扰”因素 $z$ 之间的依赖关系)可能跨域发生变化,变化的原因可能是这些项之间的相关性发生变化,也可能是它们某个边缘分布发生变化。然而,我们假设特征的生成模型 $p(x|y,z)$ 跨域保持不变。我们注意到,这对应于广泛使用的“标签偏移”假设的扩展版本,其中标签现在还包括干扰因素 $z$。基于这一观察,我们提出了一种测试时标签偏移校正方法,该方法利用 EM 算法对来自目标域分布 $p_t(x)$ 的无标签样本进行处理,从而适应联合分布 $p(y, z)$ 的变化。重要的是,我们能够避免拟合生成模型 $p(x|y, z)$,而只需对在源分布上训练的判别模型 $p_s(y, z|x)$ 的输出进行重新加权。我们在多个标准图像和文本数据集以及 CheXpert 胸部 X 光数据集上评估了我们的方法(称为“测试时标签偏移自适应”(TTLSA)),并表明与针对分布变化不变性的方法以及基线经验风险最小化方法相比,该方法能提升性能。用于复现实验的代码可在 https://github.com/nalzok/test-time-label-shift 获取。
英文摘要:
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 .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。