Papers › Unified Entropy Optimization for Open-Set Test-Time Adaptation

Unified Entropy Optimization for Open-Set Test-Time Adaptation

9 Apr 2024CVPR 2024 1arXiv:2404.06065archive 2025-07-28

Zhengqing Gao, Xu-Yao Zhang, Cheng-Lin Liu

Test-time adaptation (TTA) aims at adapting a model pre-trained 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 minimization 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

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2404.06065")

Code

Syntology Ran 13 of 15 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 11 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

gaozhengqing/unient officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 13 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
11ran
2unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from gaozhengqing/UniEnt. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

accuracy gaozhengqing/UniEnt/imagenet/utils.py official repository ran MIT (permissive) · ab52115ec2a59e51 · report
collect_stats gaozhengqing/UniEnt/imagenet/norm.py official repository ran MIT (permissive) · c5f915703f30ab89 · report
configure_model gaozhengqing/UniEnt/imagenet/norm.py official repository ran MIT (permissive) · 8f537ee8d4a9b397 · report
forward_and_adapt gaozhengqing/UniEnt/imagenet/ostta.py official repository ran MIT (permissive) · 0b2d02a3e572ebdb · report
forward_and_adapt gaozhengqing/UniEnt/imagenet/tent.py official repository ran MIT (permissive) · e792fe789fb94df3 · report
forward_and_adapt_eata gaozhengqing/UniEnt/imagenet/eata.py official repository ran MIT (permissive) · 513dc262cb3f7002 · report
forward_and_adapt_eata gaozhengqing/UniEnt/tiny_imagenet/eata.py official repository ran MIT (permissive) · 2495003ded423e33 · report
get_logger gaozhengqing/UniEnt/imagenet/utils.py official repository ran MIT (permissive) · 211f0b5c566ca621 · report
load_imagenet_o_64x64 gaozhengqing/UniEnt/tiny_imagenet/data.py official repository ran MIT (permissive) · dffb43525c87e005 · report
softmax_entropy gaozhengqing/UniEnt/imagenet/ostta.py official repository ran · fixture could not drive it MIT (permissive) · 3078648c75e3e1e3 · report
softmax_entropy gaozhengqing/UniEnt/imagenet/cotta.py official repository ran MIT (permissive) · b8ea8e2ae9be86a9 · report
softmax_mean_entropy gaozhengqing/UniEnt/imagenet/eata.py official repository ran MIT (permissive) · 9bd7038815c1f6f9 · report
update_ema_variables gaozhengqing/UniEnt/imagenet/cotta.py official repository ran · our draft was wrong MIT (permissive) · a77d556c0aea19c1 · report
softmax_entropy gaozhengqing/UniEnt/tiny_imagenet/cotta.py official repository unverified MIT (permissive) · e589e47d748af885 · report
softmax_entropy gaozhengqing/UniEnt/imagenet/eata.py official repository unverified MIT (permissive) · 7b9d88d29b50aca6 · report

Tasks

Test-time Adaptation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections