Unified Entropy Optimization for Open-Set Test-Time Adaptation

Zhengqing Gao, Xu-Yao Zhang, Cheng-Lin Liu
2/9/2026

No official code found. Best implementation: gaozhengqing/UniEnt (34 stars, MIT, last commit 2024-08-30).

Abstract

Test-time adaptation (TTA) aims at adapting a model pretrained on the labeled source domain to the unlabeled target domain. Existing methods usually focus on improving TTA performance under covariate shifts, while neglecting semantic shifts. In this paper, we delve into a realistic open-set TTA setting where the target domain may contain samples from unknown classes. Many state-of-the-art closed-set TTA methods perform poorly when applied to open-set scenarios, which can be attributed to the inaccurate estimation of data distribution and model confidence. To address these issues, we propose a simple but effective framework called unified entropy optimization (UniEnt), which is capable of simultaneously adapting to covariate-shifted in-distribution (csID) data and detecting covariate-shifted out-of-distribution (csOOD) data. Specifically, UniEnt first mines pseudo-csID and pseudo-csOOD samples from test data, followed by entropy min-imization on the pseudo-csID data and entropy maximization on the pseudo-csOOD data. Furthermore, we introduce UniEnt+ to alleviate the noise caused by hard data partition leveraging sample-level confidence. Extensive experiments on CIFAR benchmarks and Tiny-ImageNet-C show the superiority of our framework. The code is available at https://github.com/gaozhengqing/UniEnt.

View on arXivView PDF

Code Implementations(1)

gaozhengqing/UniEntCommunity100%
MIT

PyTorch implementation of our CVPR 2024 paper "Unified Entropy Optimization for Open-Set Test-Time Adaptation"

340Shell, PythonApr 10, 20242 years agoMIT
open-set-recognitiontest-time-adaptation

Similar Papers

Cite this paper

@article{gao2026unified,
  title  = {Unified Entropy Optimization for Open-Set Test-Time Adaptation},
  author = {Zhengqing Gao and Xu-Yao Zhang and Cheng-Lin Liu},
  year   = {2026},
  eprint = {2404.06065},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2404.06065},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.06065.svg)](https://codeofpaper.com/paper/2404.06065)

Discussion