SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.04344 · 2023

ViDA: Homeostatic Visual Domain Adapter for Continual Test Time Adaptation

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2306.04344.json · badge: /api/ran/2306.04344.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
yangsenqiao/vida canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
collect_params Ran
ran; our contract draft was wrong, not the code
yangsenqiao/vida/imagenet/tent.py
code served (permissive licence) · get_code("63832452f78dcb58")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small model with batch normalization layers
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 4, kernel_size=3)
        self.bn1 = nn.BatchNorm2d(4)
        self.linear1 = nn.Linear(4, 8)
        self.norm_layer = nn.BatchNorm1d(8)
        self.conv2 = nn.Conv2d(4, 5, kernel_size=3)
        self.bn2 = nn.BatchNorm2d(5)
    
    def forward(self, x):
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
forward_and_adapt Ran
ran; our contract draft was wrong, not the code
yangsenqiao/vida/imagenet/tent.py
code served (permissive licence) · get_code("dae52c9027c48afd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model that takes input and produces logits
class SimpleModel(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Set up the components
input_dim = 4
output_dim = 3
batch_size = 2

# Create model
model = SimpleModel(input_dim, output_dim)

# Create input tensor (batch_size=2, input_dim=4)
x = torch.randn(batch_size, input_dim)

# Create optimizer
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

ARGS = {
    "x": x,
    "model": model,
    "optimizer": optimizer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
inject_trainable_vida Ran
ran; our contract draft was wrong, not the code
yangsenqiao/vida/imagenet/inject_vida.py
code served (permissive licence) · get_code("108a82af5a25b36a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class Attention(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 8)
        self.linear2 = nn.Linear(8, 4)

class CrossAttention(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 6)
        self.linear2 = nn.Linear(6, 4)

class DummyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.attention = Attention()
        self.cross_attention = CrossAttention()
        self.other_module = nn.Linear(4, 4)

model = DummyModel()

ARGS = {
    'model': model,
    'target_replace_module': ['CrossAttention', 'Attention'],
    'r': 4,
    'r2': 16,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
setup_source Ran
ran; our contract draft was wrong, not the code
yangsenqiao/vida/imagenet/imagenetc.py
code served (permissive licence) · get_code("721e565ebd5fda4e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned MinimalModel. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import logging

logger = logging.getLogger(__name__)

# Set seed for reproducibility
torch.manual_seed(0)

# Create a minimal model that can be set to eval mode
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Instantiate the model
model = MinimalModel()

# Construct the arguments dictionary
ARGS = {
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MinimalModel — a MinimalModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MinimalModel output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
softmax_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yangsenqiao/vida/imagenet/tent.py
pointer only (licence: MIT); the stored copy get_code serves, from Feliciaxyao/ICML2024-FSTTA, is pointer only (licence: NONE) · get_code("3078648c75e3e1e3")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Feliciaxyao/ICML2024-FSTTA, and GitHub detected no licence in that repository when it was checked. 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; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yangsenqiao/vida/cifar/vida.py
code served (permissive licence) · get_code("e589e47d748af885")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create two small logit tensors
# The function calls:
# - x.log_softmax(1)
# - x_ema.softmax(1)
# - sum(1) on the product
# So we need 2D tensors (batch_size, num_classes)

x = torch.randn(2, 4)
x_ema = torch.randn(2, 4)

ARGS = {
    "x": x,
    "x_ema": x_ema,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:OSError)
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
softmax_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yangsenqiao/vida/imagenet/vida.py
code served (permissive licence) · get_code("b8ea8e2ae9be86a9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects two tensors that support:
# - .softmax(1) method
# - .log_softmax(1) method
# - Element-wise multiplication
# - .sum(1) method
# These are standard PyTorch tensor operations

x = torch.randn(2, 4)
x_ema = torch.randn(2, 4)

ARGS = {
    "x": x,
    "x_ema": x_ema,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:OSError)
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
update_ema_variables Ran
ran; our contract draft was wrong, not the code
yangsenqiao/vida/imagenet/cotta.py
pointer only (licence: MIT); the stored copy get_code serves, from joe817/gcal, is pointer only (licence: NONE) · get_code("a77d556c0aea19c1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from joe817/gcal, and GitHub detected no licence in that repository when it was checked. 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.

update_ema_variables Ran
ran; our contract draft was wrong, not the code
yangsenqiao/vida/imagenet/vida.py
code served (permissive licence) · get_code("f11bbc6fc4cc3fe7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned SimpleModel. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.vida_linear = nn.Linear(3, 2)
        self.linear2 = nn.Linear(2, 1)
    
    def forward(self, x):
        return self.linear2(self.vida_linear(self.linear1(x)))

# Create two model instances - one for EMA model and one for the current model
ema_model = SimpleModel()
model = SimpleModel()

# Initialize EMA model with the same weights as the model
for ema_param, param in zip(ema_model.parameters(), model.parameters()):
    ema_param.data[:] = param.data[:]

# Define the arguments
alpha_teacher = 0.999
alpha_vida = 0.95

ARGS = {
    'ema_model': ema_model,
    'model': model,
    'alpha_teacher': alpha_teacher,
    'alpha_vida': alpha_vida
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 9 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 9 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
softmax_entropy 22 other papers
5 dated earlier, 16 later, 1 undated · 4 only as an assembly brick
2006.10726 (2020-06)
TENT: FULLY TEST-TIME ADAPTATION BY ENTROPY MINIMIZATION
2105.08714 (2021-05)
Fighting Gradients with Gradients: Dynamic Defenses against Adversarial Attacks
2110.14038 (2021-10)
Robustness of Graph Neural Networks at Scale
and 19 more not named here
update_ema_variables 14 other papers
2 dated earlier, 12 later · 2 only as an assembly brick
2203.13591 (2022-03)
Continual Test-Time Domain Adaptation
2212.09713 (2022-12)
A Probabilistic Framework for Lifelong Test-Time Adaptation
2309.14949 (2023-09)
Towards Real-World Test-Time Adaptation: Tri-Net Self-Training with Balanced Normalization
and 11 more not named here
softmax_entropy 8 other papers
1 dated earlier, 7 later · 2 only as an assembly brick
2303.13899 (2023-03)
Robust Test-Time Adaptation in Dynamic Scenarios
2309.14949 (2023-09)
Towards Real-World Test-Time Adaptation: Tri-Net Self-Training with Balanced Normalization
2311.18193 (2023-11)
Persistent Test-time Adaptation in Recurring Testing Scenarios
and 5 more not named here
forward_and_adapt 5 other papers
2 dated earlier, 2 later, 1 undated
2006.10726 (2020-06)
TENT: FULLY TEST-TIME ADAPTATION BY ENTROPY MINIMIZATION
2105.08714 (2021-05)
Fighting Gradients with Gradients: Dynamic Defenses against Adversarial Attacks
2406.10737 (2024-06)
DPCore: Dynamic Prompt Coreset for Continual Test-Time Adaptation
and 2 more not named here
setup_source 4 other papers
1 dated earlier, 3 later
2105.08714 (2021-05)
Fighting Gradients with Gradients: Dynamic Defenses against Adversarial Attacks
2405.16486 (2024-05)
Decomposing the Neurons: Activation Sparsity via Mixture of Experts for Continual Test Time Adaptation
2406.10737 (2024-06)
DPCore: Dynamic Prompt Coreset for Continual Test-Time Adaptation
and 1 more not named here
softmax_entropy 2 other papers
1 dated earlier, 1 later
2203.13591 (2022-03)
Continual Test-Time Domain Adaptation
2404.06065 (2024-04)
Unified Entropy Optimization for Open-Set Test-Time Adaptation
collect_params 1 other paper
1 later
2406.10737 (2024-06)
DPCore: Dynamic Prompt Coreset for Continual Test-Time Adaptation
inject_trainable_vida 1 other paper
1 later
2406.10737 (2024-06)
DPCore: Dynamic Prompt Coreset for Continual Test-Time Adaptation
update_ema_variables 1 other paper
1 later
2406.10737 (2024-06)
DPCore: Dynamic Prompt Coreset for Continual Test-Time Adaptation

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-23.

Repositories linked to this paper

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

Abstract

Since real-world machine systems are running in non-stationary environments, Continual Test-Time Adaptation (CTTA) task is proposed to adapt the pre-trained model to continually changing target domains. Recently, existing methods mainly focus on model-based adaptation, which aims to leverage a self-training manner to extract the target domain knowledge. However, pseudo labels can be noisy and the updated model parameters are unreliable under dynamic data distributions, leading to error accumulation and catastrophic forgetting in the continual adaptation process. To tackle these challenges and maintain the model plasticity, we design a Visual Domain Adapter (ViDA) for CTTA, explicitly handling both domain-specific and domain-shared knowledge. Specifically, we first comprehensively explore the different domain representations of the adapters with trainable high-rank or low-rank embedding spaces. Then we inject ViDAs into the pre-trained model, which leverages high-rank and low-rank features to adapt the current domain distribution and maintain the continual domain-shared knowledge, respectively. To exploit the low-rank and high-rank ViDAs more effectively, we further propose a Homeostatic Knowledge Allotment (HKA) strategy, which adaptively combines different knowledge from each ViDA. Extensive experiments conducted on four widely used benchmarks demonstrate that our proposed method achieves state-of-the-art performance in both classification and segmentation CTTA tasks. Note that, our method can be regarded as a novel transfer paradigm for large-scale models, delivering promising results in adaptation to continually changing distributions. Project page: https://sites.google.com/view/iclr2024-vida/home.

For agents

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

get_harvested_code_for_paper("2306.04344")
get_code_for_paper("2306.04344")
have("2306.04344")

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

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

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

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

Connect an agent — have() is free.