Papers › Towards Real-World Test-Time Adaptation: Tri-Net Self-Training with Balanced Normalization

Towards Real-World Test-Time Adaptation: Tri-Net Self-Training with Balanced Normalization

26 Sep 2023arXiv:2309.14949archive 2025-07-28

Yongyi Su, Xun Xu, Kui Jia

Test-Time Adaptation aims to adapt source domain model to testing data at inference stage with success demonstrated in adapting to unseen corruptions. However, these attempts may fail under more challenging real-world scenarios. Existing works mainly consider real-world test-time adaptation under non-i.i.d. data stream and continual domain shift. In this work, we first complement the existing real-world TTA protocol with a globally class imbalanced testing set. We demonstrate that combining all settings together poses new challenges to existing methods. We argue the failure of state-of-the-art methods is first caused by indiscriminately adapting normalization layers to imbalanced testing data. To remedy this shortcoming, we propose a balanced batchnorm layer to swap out the regular batchnorm at inference stage. The new batchnorm layer is capable of adapting without biasing towards majority classes. We are further inspired by the success of self-training (ST) in learning from unlabeled data and adapt ST for test-time adaptation. However, ST alone is prone to over adaption which is responsible for the poor performance under continual domain shift. Hence, we propose to improve self-training under continual domain shift by regularizing model updates with an anchored loss. The final TTA model, termed as TRIBE, is built upon a tri-net architecture with balanced batchnorm layers. We evaluate TRIBE on four datasets representing real-world TTA settings. TRIBE consistently achieves the state-of-the-art performance across multiple evaluation protocols. The code is available at https://github.com/Gorilla-Lab-SCUT/TRIBE.

PaperPDFCodeCode 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="2309.14949")

Code

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

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

gorilla-lab-scut/tribe 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

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 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.

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

Licence: 13 of the 13 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 gorilla-lab-scut/tribe. “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.

cf_learning_rate gorilla-lab-scut/tribe/train_for_petal_cifar10.py official repository ran fingerprinted no licence file found · pointer only · b128b1b1c37a4fe0 · report
entropy_energy gorilla-lab-scut/tribe/core/adapter/lame.py official repository ran fingerprinted no licence file found · pointer only · 340d65079d8e40ca · report
load_cifar100_train gorilla-lab-scut/tribe/train_for_petal_cifar100.py official repository ran no licence file found · pointer only · 75bf7879dc84bb70 · report
load_cifar10_train gorilla-lab-scut/tribe/train_for_petal_cifar10.py official repository ran no licence file found · pointer only · c90018f7dd3ef01a · report
softmax_entropy gorilla-lab-scut/tribe/core/adapter/base_adapter.py official repository ran · fixture could not drive it no licence file found · pointer only · 8cc4004512e3fa2f · report
train gorilla-lab-scut/tribe/train_mnist.py official repository ran no licence file found · pointer only · bfba965ef40453f9 · report
update_ema_variables gorilla-lab-scut/tribe/core/adapter/cotta.py official repository ran · our draft was wrong no licence file found · pointer only · a77d556c0aea19c1 · report
update_model_probs gorilla-lab-scut/tribe/core/adapter/eata.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · f4a71b97346fb88d · report
val gorilla-lab-scut/tribe/train_mnist.py official repository ran no licence file found · pointer only · f787337c5aaa6127 · report
forward_and_adapt_eata gorilla-lab-scut/tribe/core/adapter/eata.py official repository unverified no licence file found · pointer only · 7853dec9689a762f · report
get_tta_transforms gorilla-lab-scut/tribe/core/adapter/cotta.py official repository unverified no licence file found · pointer only · 3dc11f35b4b01ab2 · report
laplacian_optimization gorilla-lab-scut/tribe/core/adapter/lame.py official repository unverified no licence file found · pointer only · 47e54051e894c2e3 · report
softmax_entropy gorilla-lab-scut/tribe/core/adapter/cotta.py official repository unverified no licence file found · pointer only · e589e47d748af885 · report

Tasks

Test-time Adaptation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

fail

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