arXiv:2604.01589cs.CV2026-04被引 1

解决开放集测试时自适应中身份与异常样本检测的冲突问题

Mitigating the ID-OOD Tradeoff in Open-Set Test-Time Adaptation

  • 引入角度损失和特征范数损失,调节特征空间以提升异常检测
  • 在CIFAR-10-C等四个数据集上同时保持高身份分类与强异常检测能力
  • 适用于真实场景语义分割及多种开放集自适应设置

开放集测试时自适应(OSTTA)旨在应对新环境中的分布偏移,其中分布内(ID)与分布外(OOD)样本共存。例如天气变化导致的协变量偏移会改变ID样本,降低模型可靠性。因此,模型需准确分类受偏移影响的ID样本(csID),同时有效拒绝受偏移影响的OOD样本(csOOD)。现有方法通常结合熵最小化(保ID性能)与熵最大化(提OOD检测),但二者存在内在冲突,导致性能权衡。本文分析熵最大化在OSTTA中的局限性,提出基于角度损失调节特征范数、特征范数损失抑制OOD logits的联合机制,构建名为ROSETTA的方法。实验显示,该方法在CIFAR-10-C、CIFAR-100-C、Tiny-ImageNet-C和ImageNet-C上均实现优异的OOD检测与高精度的ID分类。城市景观(Cityscapes)实验验证其在真实语义分割中的有效性,HAC数据集结果表明其适用于多种开放集测试时自适应场景。

原文摘要 · Abstract (English)

Open-set test-time adaptation (OSTTA) addresses the challenge of adapting models to new environments where out-of-distribution (OOD) samples coexist with in-distribution (ID) samples affected by distribution shifts. In such settings, covariate shift-for example, changes in weather conditions such as snow-can alter ID samples, reducing model reliability. Consequently, models must not only correctly classify covariate-shifted ID (csID) samples but also effectively reject covariate-shifted OOD (csOOD) samples. Entropy minimization is a common strategy in test-time adaptation to maintain ID performance under distribution shifts, while entropy maximization is widely applied to enhance OOD detection. Several studies have sought to combine these objectives to tackle the challenges of OSTTA. However, the intrinsic conflict between entropy minimization and maximization inevitably leads to a trade-off between csID classification and csOOD detection. In this paper, we first analyze the limitations of entropy maximization in OSTTA and then introduce an angular loss to regulate feature norm magnitudes, along with a feature-norm loss to suppress csOOD logits, thereby improving OOD detection. These objectives form ROSETTA, a $\underline{r}$obust $\underline{o}$pen-$\underline{se}$t $\underline{t}$est-$\underline{t}$ime $\underline{a}$daptation. Our method achieves strong OOD detection while maintaining high ID classification performance on CIFAR-10-C, CIFAR-100-C, Tiny-ImageNet-C and ImageNet-C. Furthermore, experiments on the Cityscapes validate the method's effectiveness in real-world semantic segmentation, and results on the HAC dataset demonstrate its applicability across different open-set TTA setups.

测试时自适应开放集学习异常检测特征空间优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。