Papers › TEA: Test-time Energy Adaptation

TEA: Test-time Energy Adaptation

24 Nov 2023CVPR 2024 1arXiv:2311.14402archive 2025-07-28

Yige Yuan, Bingbing Xu, Liang Hou, Fei Sun, HuaWei Shen, Xueqi Cheng

Test-time adaptation (TTA) aims to improve model generalizability when test data diverges from training distribution, offering the distinct advantage of not requiring access to training data and processes, especially valuable in the context of large pre-trained models. However, current TTA methods fail to address the fundamental issue: covariate shift, i.e., the decreased generalizability can be attributed to the model's reliance on the marginal distribution of the training data, which may impair model calibration and introduce confirmation bias. To address this, we propose a novel energy-based perspective, enhancing the model's perception of target data distributions without requiring access to training data or processes. Building on this perspective, we introduce Test-time Energy Adaptation (TEA), which transforms the trained classifier into an energy-based model and aligns the model's distribution with the test data's, enhancing its ability to perceive test distributions and thus improving overall generalizability. Extensive experiments across multiple tasks, benchmarks and architectures demonstrate TEA's superior generalization performance against state-of-the-art methods. Further in-depth analyses reveal that TEA can equip the model with a comprehensive perception of test distribution, ultimately paving the way toward improved generalization and calibration.

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="2311.14402")

Code

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

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

yuanyige/tea officialmentioned in papermentioned on GitHubpytorch 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

20 samples harvested; 15 ran; 0 honoured the contract we drafted; 5 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
13ran
5unverified

Licence: 20 of the 20 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 yuanyige/tea. “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.

collect_params yuanyige/tea/core/param.py official repository ran no licence file found · pointer only · a784a511d03ebe30 · report
collect_stats yuanyige/tea/core/adazoo/norm.py official repository ran no licence file found · pointer only · c5f915703f30ab89 · report
configure_model yuanyige/tea/core/adazoo/norm.py official repository ran no licence file found · pointer only · 8f537ee8d4a9b397 · report
configure_model yuanyige/tea/core/param.py official repository ran no licence file found · pointer only · 16a89171a04c1ac1 · report
copy_model_and_optimizer yuanyige/tea/core/param.py official repository ran · our draft was wrong no licence file found · pointer only · d203451c6493f65d · report
forward_and_adapt_eata yuanyige/tea/core/adazoo/eata.py official repository ran no licence file found · pointer only · 611482e1142a774f · report
forward_and_adapt_sar yuanyige/tea/core/adazoo/sar.py official repository ran no licence file found · pointer only · b16160c62f8cd37e · report
init_random yuanyige/tea/core/adazoo/energy.py official repository ran no licence file found · pointer only · fd187d75df206ce0 · report
load_tin200 yuanyige/tea/core/data.py official repository ran no licence file found · pointer only · 79f439c0ef7cb476 · report
sample_p_0 yuanyige/tea/core/adazoo/energy.py official repository ran no licence file found · pointer only · be1107d08d25a5b0 · report
sample_q yuanyige/tea/core/adazoo/energy.py official repository ran no licence file found · pointer only · c7bb6b60a3ef4df5 · report
set_transform yuanyige/tea/core/data.py official repository ran no licence file found · pointer only · e0b98f11d30aba61 · report
setup_optimizer yuanyige/tea/core/optim.py official repository ran no licence file found · pointer only · b0b20bfb6ab94443 · report
setup_source yuanyige/tea/core/setada.py official repository ran no licence file found · pointer only · 7dd97c802ed32b19 · report
softmax_entropy yuanyige/tea/core/adazoo/sar.py official repository ran · fixture could not drive it no licence file found · pointer only · 3078648c75e3e1e3 · report
load_pacs yuanyige/tea/core/data.py official repository unverified no licence file found · pointer only · 489e90fa2cfbabec · report
plot_calibration_hist yuanyige/tea/core/calibration.py official repository unverified no licence file found · pointer only · 2aca4c8f872ec672 · report
softmax_entropy yuanyige/tea/core/adazoo/eata.py official repository unverified no licence file found · pointer only · 7b9d88d29b50aca6 · report
update_ema yuanyige/tea/core/adazoo/sar.py official repository unverified no licence file found · pointer only · 17259eab7993e1c7 · report
update_model_probs yuanyige/tea/core/adazoo/eata.py official repository unverified no licence file found · pointer only · 182d3657a9eebb0d · report

Tasks

Test-time Adaptation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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