SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.10792 · 2022

Test-Time Adaptation via Self-Training with Nearest Neighbor Information

arXiv · PDF · Open in the Atlas

Code that ran

14 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 11 failures of our instrument; 5 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2207.10792.json · badge: /api/ran/2207.10792.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
mingukjang/tast canonical (classifier label)
classifier basis not recorded on the link
12 ran · 4 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 1 no recorded run
FunctionStatusWhere it lives
Classifier Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/networks.py
pointer only (licence: MIT) · get_code("ce7990d7ad5821ff")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

accuracy_ent Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from matsuolab/t3a
pointer only · get_code("5d1f700db67751f1")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

configure_model Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/adapt_algorithms.py
pointer only (licence: MIT) · get_code("09762c09de098b26")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv1x1 Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/lib/big_transfer.py
pointer only (licence: MIT) · get_code("ee80cf467065076b")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/lib/big_transfer.py
pointer only (licence: MIT) · get_code("f01b8d3901f0b289")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_test_records Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/model_selection.py
pointer only (licence: MIT) · get_code("53fac8d8d949e72b")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hashable Ran
ran, honoured the contract we drafted
mingukjang/tast/domainbed/lib/query.py
pointer only (licence: MIT) · get_code("71a3a61ceed99bf3")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_selector_fn Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/lib/query.py
pointer only (licence: MIT) · get_code("2f8af5779e1edcb6")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_weights_for_balanced_classes Ran
ran, honoured the contract we drafted
mingukjang/tast/domainbed/lib/misc.py
pointer only (licence: MIT) · get_code("5f576ed342c48a0a")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

remove_batch_norm_from_resnet Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/networks.py
pointer only (licence: MIT) · get_code("196cab71d7129d62")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

softmax_entropy Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from matsuolab/t3a
pointer only · get_code("e6171e29ed623a12")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

softmax_entropy Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/adapt_algorithms.py
pointer only (licence: MIT) · get_code("b5d67732e5b29f2b")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_dataset Ran
ran; our contract draft was wrong, not the code
mingukjang/tast/domainbed/lib/misc.py
pointer only (licence: MIT) · get_code("18e820e42046bc45")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

tf2th Ran
ran, violated the contract we drafted
mingukjang/tast/domainbed/lib/big_transfer.py
pointer only (licence: MIT) · get_code("7023eb86801bb3a3")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_featurelized_loader Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from matsuolab/t3a
pointer only · get_code("57634636fcd54537")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_algorithm_class Not yet run
unverified (harvested, no recorded run)
mingukjang/tast/domainbed/adapt_algorithms.py
pointer only (licence: MIT) · get_code("b0bc80b1655a6802")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_dataset_class Not yet run
unverified (harvested, no recorded run)
mingukjang/tast/domainbed/datasets.py
pointer only (licence: MIT) · get_code("d0ea85d74c20dea9")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

num_environments Not yet run
unverified (harvested, no recorded run)
mingukjang/tast/domainbed/datasets.py
pointer only (licence: MIT) · get_code("73f32252eedba6a4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

print_row Not yet run
unverified (harvested, no recorded run)
mingukjang/tast/domainbed/lib/misc.py
pointer only (licence: MIT) · get_code("af3c9a80c8fd1f7a")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, mingukjang/tast, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 18 are also present in other papers whose code we hold (18 with at least one paper dated earlier, 2 the same month, 17 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_algorithm_class 39 other papers
14 dated earlier, 25 later
1907.02893 (2019-07)
Invariant Risk Minimization
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2007.02931 (2020-07)
Adaptive Risk Minimization: Learning to Adapt to Domain Shift
and 36 more not named here
conv1x1 33 other papers
19 dated earlier, 1 the same month, 13 later · 3 only as an assembly brick
1912.11370 (2019-12)
Big Transfer (BiT): General Visual Representation Learning
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2102.04306 (2021-02)
TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation
and 30 more not named here
conv3x3 33 other papers
19 dated earlier, 1 the same month, 13 later · 3 only as an assembly brick
1912.11370 (2019-12)
Big Transfer (BiT): General Visual Representation Learning
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2102.04306 (2021-02)
TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation
and 30 more not named here
Classifier 24 other papers
5 dated earlier, 19 later · 4 only as an assembly brick
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2205.09739 (2022-05)
Diverse Weight Averaging for Out-of-Distribution Generalization
and 21 more not named here
remove_batch_norm_from_resnet 23 other papers
6 dated earlier, 17 later
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 20 more not named here
get_test_records 22 other papers
8 dated earlier, 14 later
1710.03077 (2017-10)
Deeper, Broader and Artier Domain Generalization
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
and 19 more not named here
get_dataset_class 21 other papers
9 dated earlier, 12 later
1907.02893 (2019-07)
Invariant Risk Minimization
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
and 18 more not named here
num_environments 21 other papers
8 dated earlier, 13 later
1907.02893 (2019-07)
Invariant Risk Minimization
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
and 18 more not named here
hashable 20 other papers
6 dated earlier, 14 later
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2203.10789 (2022-03)
Domain Generalization by Mutual-Information Regularization with Pre-trained Models
and 17 more not named here
make_selector_fn 20 other papers
6 dated earlier, 14 later
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2203.10789 (2022-03)
Domain Generalization by Mutual-Information Regularization with Pre-trained Models
and 17 more not named here
make_weights_for_balanced_classes 18 other papers
6 dated earlier, 12 later
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 15 more not named here
tf2th 17 other papers
9 dated earlier, 8 later
1912.11370 (2019-12)
Big Transfer (BiT): General Visual Representation Learning
2104.02610 (2021-04)
On the Robustness of Vision Transformers to Adversarial Examples
2106.01127 (2021-06)
Towards Robust Classification Model by Counterfactual and Invariant Data Generation
and 14 more not named here
print_row 11 other papers
4 dated earlier, 7 later
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 8 more not named here
split_dataset 5 other papers
2 dated earlier, 3 later
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2307.08187 (2023-07)
An Empirical Study of Pre-trained Model Selection for Out-of-Distribution Generalization and Calibration
and 2 more not named here
softmax_entropy 4 other papers
1 dated earlier, 2 later, 1 undated
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2304.12566 (2023-04)
AdaNPC: Exploring Non-Parametric Classifier for Test-Time Adaptation
2405.05012 (2024-05)
The Entropy Enigma: Success and Failure of Entropy Minimization
and 1 more not named here
configure_model 3 other papers
2 dated earlier, 1 later
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2203.05574 (2022-03)
On-the-Fly Test-time Adaptation for Medical Image Segmentation
2407.09498 (2024-07)
OT-VP: Optimal Transport-guided Visual Prompting for Test-Time Adaptation
accuracy_ent 2 other papers
1 dated earlier, 1 later
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2304.12566 (2023-04)
AdaNPC: Exploring Non-Parametric Classifier for Test-Time Adaptation
generate_featurelized_loader 1 other paper
1 dated earlier
2007.01434 (2020-07)
In Search of Lost Domain Generalization

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Test-time adaptation (TTA) aims to adapt a trained classifier using online unlabeled test data only, without any information related to the training procedure. Most existing TTA methods adapt the trained classifier using the classifier's prediction on the test data as pseudo-label. However, under test-time domain shift, accuracy of the pseudo labels cannot be guaranteed, and thus the TTA methods often encounter performance degradation at the adapted classifier. To overcome this limitation, we propose a novel test-time adaptation method, called Test-time Adaptation via Self-Training with nearest neighbor information (TAST), which is composed of the following procedures: (1) adds trainable adaptation modules on top of the trained feature extractor; (2) newly defines a pseudo-label distribution for the test data by using the nearest neighbor information; (3) trains these modules only a few times during test time to match the nearest neighbor-based pseudo label distribution and a prototype-based class distribution for the test data; and (4) predicts the label of test data using the average predicted class distribution from these modules. The pseudo-label generation is based on the basic intuition that a test data and its nearest neighbor in the embedding space are likely to share the same label under the domain shift. By utilizing multiple randomly initialized adaptation modules, TAST extracts useful information for the classification of the test data under the domain shift, using the nearest neighbor information. TAST showed better performance than the state-of-the-art TTA methods on two standard benchmark tasks, domain generalization, namely VLCS, PACS, OfficeHome, and TerraIncognita, and image corruption, particularly CIFAR-10/100C.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2207.10792")
get_code_for_paper("2207.10792")
have("2207.10792")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2207.10792.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2207.10792.svg)](https://syntology.ai/paper/2207.10792)

Connect an agent — have() is free.