Papers › Un-Mixing Test-Time Normalization Statistics: Combatting Label Temporal Correlation

Un-Mixing Test-Time Normalization Statistics: Combatting Label Temporal Correlation

16 Jan 2024arXiv:2401.08328archive 2025-07-28

Devavrat Tomar, Guillaume Vray, Jean-Philippe Thiran, Behzad Bozorgtabar

Recent test-time adaptation methods heavily rely on nuanced adjustments of batch normalization (BN) parameters. However, one critical assumption often goes overlooked: that of independently and identically distributed (i.i.d.) test batches with respect to unknown labels. This oversight leads to skewed BN statistics and undermines the reliability of the model under non-i.i.d. scenarios. To tackle this challenge, this paper presents a novel method termed 'Un-Mixing Test-Time Normalization Statistics' (UnMix-TNS). Our method re-calibrates the statistics for each instance within a test batch by mixing it with multiple distinct statistics components, thus inherently simulating the i.i.d. scenario. The core of this method hinges on a distinctive online unmixing procedure that continuously updates these statistics components by incorporating the most similar instances from new test batches. Remarkably generic in its design, UnMix-TNS seamlessly integrates with a wide range of leading test-time adaptation methods and pre-trained architectures equipped with BN layers. Empirical evaluations corroborate the robustness of UnMix-TNS under varied scenarios-ranging from single to continual and mixed domain shifts, particularly excelling with temporally correlated test data and corrupted non-i.i.d. real-world streams. This adaptability is maintained even with very small batch sizes or single instances. Our results highlight UnMix-TNS's capacity to markedly enhance stability and performance across various benchmarks. Our code is publicly available at https://github.com/devavratTomar/unmixtns.

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

Code

Syntology Ran 14 of 20 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 8 ran · our draft was wrong; 6 ran with no contract checked.

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

devavrattomar/unmixtns officialmentioned in paperpytorch 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; 14 ran; 0 honoured the contract we drafted; 6 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.

8ran · our draft was wrong
6ran
6unverified

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 devavrattomar/unmixtns. “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.

BaseNormLayer devavrattomar/unmixtns/tta_experiments/unmixtns.py official repository ran no licence file found · pointer only · 7bf2445ffb6dcd2b · report
autocontrast devavratTomar/unmixtns/tta_experiments/augmentations/transforms_memo_imagenet.py official repository ran · our draft was wrong no licence file found · pointer only · 3ee3bf864db8867f · report
ckpt_path_to_domain_seq devavratTomar/unmixtns/tta_experiments/conf.py official repository ran no licence file found · pointer only · 5af9cc28c5ec0d9a · report
complete_data_dir_path devavratTomar/unmixtns/tta_experiments/conf.py official repository ran no licence file found · pointer only · e7ccaa89c8a835ad · report
convert_iabn devavratTomar/unmixtns/tta_experiments/methods/note.py official repository ran no licence file found · pointer only · a2f66c9bbd052a97 · report
entropy_energy devavratTomar/unmixtns/tta_experiments/methods/lame.py official repository ran fingerprinted no licence file found · pointer only · 473a24407468b75e · report
equalize devavratTomar/unmixtns/tta_experiments/augmentations/transforms_memo_imagenet.py official repository ran · our draft was wrong no licence file found · pointer only · ca3e2158c52023d8 · report
get_named_submodule devavrattomar/unmixtns/tta_experiments/unmixtns.py official repository ran · our draft was wrong no licence file found · pointer only · d0fd88319e6d77c9 · report
get_named_submodule devavratTomar/unmixtns/tta_experiments/unmixtns.py official repository ran · our draft was wrong no licence file found · pointer only · 17a64140912eeb6b · report
get_num_classes devavratTomar/unmixtns/tta_experiments/conf.py official repository ran no licence file found · pointer only · a1872378501c3ba8 · report
replace_bn_layers devavrattomar/unmixtns/tta_experiments/unmixtns.py official repository ran · our draft was wrong no licence file found · pointer only · d7485ac8fc677c98 · report
rotate devavratTomar/unmixtns/tta_experiments/augmentations/transforms_memo_imagenet.py official repository ran · our draft was wrong no licence file found · pointer only · 344ae735e72e78f3 · report
timeliness_reweighting devavratTomar/unmixtns/tta_experiments/methods/note.py official repository ran · our draft was wrong no licence file found · pointer only · 2fd0610ee153f304 · report
update_ema_variables devavratTomar/unmixtns/tta_experiments/methods/cotta.py official repository ran · our draft was wrong no licence file found · pointer only · a77d556c0aea19c1 · report
UnMixTNS2d devavrattomar/unmixtns/tta_experiments/unmixtns.py official repository unverified no licence file found · pointer only · df14e688c0bb6e88 · report
create_file_list devavratTomar/unmixtns/tta_experiments/datasets/imagenet_subsets.py official repository unverified no licence file found · pointer only · 0c4495cb2187be84 · report
create_imagenet_subset devavratTomar/unmixtns/tta_experiments/datasets/imagenet_subsets.py official repository unverified no licence file found · pointer only · b723ea0fcdc2c948 · report
laplacian_optimization devavratTomar/unmixtns/tta_experiments/methods/lame.py official repository unverified no licence file found · pointer only · d2597d43cbd2fbca · report
softmax_entropy_cifar devavratTomar/unmixtns/tta_experiments/methods/cotta.py official repository unverified no licence file found · pointer only · 991d0f3401682804 · report
softmax_entropy_imagenet devavratTomar/unmixtns/tta_experiments/methods/cotta.py official repository unverified no licence file found · pointer only · 6bdfed740b3da7ce · report

Tasks

Test-time Adaptation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Batch Normalization

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