SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · openreview_QYPKLGyz7K

SaTeen: Learning Structural Alignment for Continual Test-Time Adaptation

Chang Liu, Li Gao, Ruotong Zhao, Yupei Zhang

OpenReview · Open in the Atlas

Code that ran

19 of 24 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; 1 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 15 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/openreview_QYPKLGyz7K.json · badge: /api/ran/openreview_QYPKLGyz7K.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
scienceliuc/SaTeen canonical (classifier label)
classifier basis: census
19 ran · 5 no recorded run
FunctionStatusWhere it lives
collect_params Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/deyo.py
code served (permissive licence) · get_code("0c7e495c41c9465c")
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 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)

# Build a minimal model with normalization layers
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        # Add some norm layers that should be collected
        self.norm1 = nn.BatchNorm2d(4)
        self.norm2 = nn.LayerNorm(4)
        self.norm3 = nn.GroupNorm(2, 4)
        
        # Add some layers that should be skipped
        self.layer4 = nn.BatchNorm2d(4)
        self.blocks = nn.ModuleDict({
            '9': nn.BatchNorm2d(4),
            '10': nn.BatchNorm2d(4),
            '11': nn.BatchNorm2d(4),
        })
        
        # Add a norm. layer that should be skipped
        self.norm = nn.BatchNorm2d(4)
        
        # Add a regular layer
        self.linear = nn.Linear(4, 4)

model = SimpleModel()

ARGS = {
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
collect_params Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/tent.py
code served (permissive licence) · get_code("46ee4be817c11821")
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 various normalization layers
model = nn.Sequential(
    nn.BatchNorm2d(3),
    nn.GroupNorm(2, 4),
    nn.LayerNorm(5),
    nn.BatchNorm2d(8)
)

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
collect_params_dict Ran
ran on a synthesized input
scienceliuc/SaTeen/recap_plpd.py
code served (permissive licence) · get_code("5c8458358c402461")
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 dict. 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.layer1 = nn.Sequential(
            nn.Conv2d(3, 4, 3),
            nn.BatchNorm2d(4),
        )
        self.layer2 = nn.Sequential(
            nn.Conv2d(4, 8, 3),
            nn.BatchNorm2d(8),
        )
        self.layer3 = nn.Sequential(
            nn.Linear(8, 16),
            nn.LayerNorm(16),
        )
        self.layer4 = nn.Sequential(
            nn.BatchNorm2d(4),
        )
        self.blocks = nn.ModuleList([
            nn.Sequential(nn.BatchNorm2d(4)),
            nn.Sequential(nn.GroupNorm(2, 4)),
            nn.Sequential(nn.BatchNorm2d(4)),
            nn.Sequential(nn.LayerNorm(8)),
            nn.Sequential(nn.BatchNorm2d(4)),
            nn.Sequential(nn.GroupNorm(2, 4)),
            nn.Sequential(nn.BatchNorm2d(4)),
            nn.Sequential(nn.LayerNorm(8)),
            nn.Sequential(nn.BatchNorm2d(4)),
            nn.Sequential(nn.BatchNorm2d(4)),
            nn.Sequential(nn.BatchNorm2d(4)),
            nn.Sequential(nn.BatchNorm2d(4)),
        ])
        self.norm = nn.LayerNorm(16)
    
    def forward(self, x):
        x = self.layer1(x)
        x = self.layer2(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
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/models/Res.py
code served (permissive licence) · get_code("d9def42110729a85")
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 Conv2d. 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)

# The function conv1x1 takes in_planes, out_planes, and stride as parameters
# It returns an nn.Conv2d layer configured for 1x1 convolution
# We need to provide valid integer arguments for these parameters

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/models/Res.py
code served (permissive licence) · get_code("160bb14bd76201b4")
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 Conv2d. 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)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1,
    "groups": 1,
    "dilation": 1,
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
forward_and_adapt Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/tent.py
code served (permissive licence) · get_code("dbdbd9c45e96c572")
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 2, 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)

# Build a minimal model that takes input x and returns logits
class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, output_dim=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Create instances
x = torch.randn(2, 4, requires_grad=True)
model = SimpleModel(input_dim=4, output_dim=3)
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, 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 2, 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
forward_and_adapt_eata Ran
ran on a synthesized input
scienceliuc/SaTeen/eata.py
code served (permissive licence) · get_code("e1d18a73c138cdf9")
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
import torch.optim as optim

torch.manual_seed(0)

# Build a minimal model that takes input and outputs logits
class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, num_classes)
    
    def forward(self, x):
        return self.linear(x)

# Create model instance
model = SimpleModel(input_dim=4, num_classes=3)

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

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

# Create fishers dict (for EWC regularization)
fishers = {}
for name, param in model.named_parameters():
    fishers[name] = (torch.ones_like(param), param.clone().detach())

# Parameters
e_margin = 0.5  # entropy margin
d_margin = 0.05  # diversity margin
fisher_alpha = 50.0
scale_factor = 2
num_samples_update = 0

# Initial model probs (None or a probability vector over classes)
current_model_probs = None

ARGS = {
    'x': x,
    'model': model,
    'optimizer': optimizer,
    'fishers': fishers,
    'e_margin': e_margin,
    'current_model_probs': current_model_probs,
    'fisher_alpha': fisher_alpha,
    'd_margin': d_margin,
    'scale_factor': scale_factor,
    'num_samples_update': num_samples_update,
}
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_sar Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/sar.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from yuanyige/tea, is pointer only (licence: NONE) · get_code("b16160c62f8cd37e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from yuanyige/tea, 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.

generate_sample_indices_and_ys Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
scienceliuc/SaTeen/dataset/generate_shifted_sample_indices.py
code served (permissive licence) · get_code("5f093779a87d9678")
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 ndarray, ndim 1, dtype family float, shape (100,) 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 numpy as np

# Set seed for reproducibility
np.random.seed(2022)

# Create q_all: a probability distribution matrix
# Shape should be (num_tests, num_classes)
# For imagenet1k, num_classes = 1000
num_tests = 100
num_classes = 1000

q_all = np.random.dirichlet(np.ones(num_classes), size=num_tests)

ARGS = {
    'q_all': q_all,
    'dataset_name': 'imagenet1k'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (100,) — shape (100,) 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
get_random_index_with_no_self_matching Ran
ran on a synthesized input
scienceliuc/SaTeen/sateen.py
code served (permissive licence) · get_code("c02914f1313610d7")
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 int, shape (5,) 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 time

torch.manual_seed(0)

ARGS = {
    "size": 5
}
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 int, shape (5,) — shape (5,) 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
monotone_shift_constructor Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/dataset/generate_shifted_sample_indices.py
code served (permissive licence) · get_code("e0f5922439b9e115")
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 function. 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 numpy as np

# q1 and q2 are used in the monotone_shift function with numpy operations
# They are multiplied by scalars and added together
# They should be numpy arrays of the same shape
# Using distinct shapes: 4 for q1, 3 for q2 to make them distinguishable

q1 = np.array([1.0, 2.0, 3.0, 4.0])
q2 = np.array([5.0, 6.0, 7.0, 8.0])

ARGS = {
    "q1": q1,
    "q2": q2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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)
scienceliuc/SaTeen/deyo.py
pointer only (licence: BSD-3-Clause); 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 (BSD-3-Clause), 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)
scienceliuc/SaTeen/eata.py
code served (permissive licence) · get_code("7b9d88d29b50aca6")
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)

# Create a small batch of logits with shape (batch_size, num_classes)
# batch_size = 2, num_classes = 4
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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; our contract draft was wrong, not the code
scienceliuc/SaTeen/sateen.py
code served (permissive licence) · get_code("0a744d0bf07e513c")
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, shape (2,) 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)

# The function takes a tensor x and calls:
# - x.softmax(1)
# - x.log_softmax(1)
# - .sum(1)
# So x needs to be a 2D tensor (batch_size, num_classes)

x = torch.randn(2, 4)

ARGS = {
    "x": x,
}
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, shape (2,) — shape (2,) 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
tensor_rot_180 Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/dataset/selectedRotateImageFolder.py
code served (permissive licence) · get_code("890d94991798f654")
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 4, dtype family float, shape (2, 3, 4, 5) 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

torch.manual_seed(0)

# Create a small 4D tensor for testing
# Shape: (batch=2, channels=3, height=4, width=5)
x = torch.randn(2, 3, 4, 5)

ARGS = {
    "x": x
}
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 4, dtype family float, shape (2, 3, 4, 5) — shape (2, 3, 4, 5) 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
tensor_rot_270 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
scienceliuc/SaTeen/dataset/selectedRotateImageFolder.py
code served (permissive licence) · get_code("599b8f7cc5b4ef6d")
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 3, dtype family float, shape (2, 3, 4) 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

torch.manual_seed(0)

# Create a small tensor with distinct dimensions
# Shape: (batch=2, height=4, width=3)
x = torch.randn(2, 4, 3)

ARGS = {
    "x": x
}
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 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 4) 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
tensor_rot_90 Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/dataset/selectedRotateImageFolder.py
code served (permissive licence) · get_code("de9a9c1253646b04")
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 4, dtype family float, shape (2, 3, 4, 5) 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

torch.manual_seed(0)

# The function tensor_rot_90 takes a tensor x and:
# - calls x.flip(2) to flip along dimension 2
# - calls transpose(1, 2) to transpose dimensions 1 and 2
# So x needs to be a tensor with at least 3 dimensions (indices 0, 1, 2)

# Create a small tensor with shape (batch=2, height=4, width=3, channels=5)
# This gives us distinct dimensions so we can track the rotation
x = torch.randn(2, 4, 3, 5)

ARGS = {
    "x": x
}
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 4, dtype family float, shape (2, 3, 4, 5) — shape (2, 3, 4, 5) 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
update_ema Ran
ran, honoured the contract we drafted
scienceliuc/SaTeen/recap_plpd.py
code served (permissive licence) · get_code("17259eab7993e1c7")
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 2, dtype family float, shape (2, 4) 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)

# The function update_ema takes two parameters:
# 1. ema: Can be None or a tensor (based on the conditional check and arithmetic operations)
# 2. new_data: A tensor (used in arithmetic with ema)

# Create small test tensors
ema_tensor = torch.randn(2, 4)
new_data_tensor = torch.randn(2, 4)

ARGS = {
    "ema": ema_tensor,
    "new_data": new_data_tensor,
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) 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
update_model_probs Ran
ran; our contract draft was wrong, not the code
scienceliuc/SaTeen/eata.py
code served (permissive licence) · get_code("182d3657a9eebb0d")
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, shape (4,) 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)

# Case 1: current_model_probs is None, new_probs is non-empty
# This will return new_probs.mean(0)
current_model_probs_1 = None
new_probs_1 = torch.randn(2, 4)

# Case 2: current_model_probs exists, new_probs is empty
# This will return current_model_probs
current_model_probs_2 = torch.randn(4)
new_probs_2 = torch.randn(0, 4)

# Case 3: both exist, update with weighted average
current_model_probs_3 = torch.randn(4)
new_probs_3 = torch.randn(2, 4)

# We'll use case 3 as the main test case
ARGS = {
    "current_model_probs": torch.randn(4),
    "new_probs": torch.randn(2, 4)
}
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, shape (4,) — shape (4,) 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
CrossEntropy Not yet run
unverified (harvested, no recorded run)
scienceliuc/SaTeen/sateen.py
code served (permissive licence) · get_code("7bb6cc95e4358be0")
How it ran

no invocation recorded.

forward_and_adapt_deyo Not yet run
unverified (harvested, no recorded run)
scienceliuc/SaTeen/deyo.py
code served (permissive licence) · get_code("fed24bba00035b3a")
How it ran

no invocation recorded.

generate_test_probs_and_ys Not yet run
unverified (harvested, no recorded run)
scienceliuc/SaTeen/dataset/generate_shifted_sample_indices.py
code served (permissive licence) · get_code("d0e36060db3376e6")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
scienceliuc/SaTeen/models/Res.py
code served (permissive licence) · get_code("48cd44b7f9a2e1d9")
How it ran

no invocation recorded.

validate Not yet run
unverified (harvested, no recorded run)
scienceliuc/SaTeen/main_c.py
code served (permissive licence) · get_code("39cc284bf9e14f83")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 19 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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
conv1x1 431 other papers
431 same year, order not determinable · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3 312 other papers
312 same year, order not determinable · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
and 309 more not named here
resnet18 95 other papers
95 same year, order not determinable
1805.00907 (2018-05)
Glow: Graph Lowering Compiler Techniques for Neural Networks
1902.08153 (2019-02)
Learned Step Size Quantization
1904.01355 (2019-04)
FCOS: Fully Convolutional One-Stage Object Detection
and 92 more not named here
softmax_entropy 22 other papers
22 same year, order not determinable · 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
softmax_entropy 8 other papers
8 same year, order not determinable
2006.10726 (2020-06)
TENT: FULLY TEST-TIME ADAPTATION BY ENTROPY MINIMIZATION
2204.02610 (2022-04)
Efficient Test-Time Model Adaptation without Forgetting
2311.14402 (2023-11)
TEA: Test-time Energy Adaptation
and 5 more not named here
update_model_probs 8 other papers
8 same year, order not determinable
2204.02610 (2022-04)
Efficient Test-Time Model Adaptation without Forgetting
2309.14949 (2023-09)
Towards Real-World Test-Time Adaptation: Tri-Net Self-Training with Balanced Normalization
2311.14402 (2023-11)
TEA: Test-time Energy Adaptation
and 5 more not named here
forward_and_adapt 5 other papers
5 same year, order not determinable
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
2306.04344 (2023-06)
ViDA: Homeostatic Visual Domain Adapter for Continual Test Time Adaptation
and 2 more not named here
update_ema 5 other papers
5 same year, order not determinable
2302.12400 (2023-02)
Towards Stable Test-Time Adaptation in Dynamic Wild World
2311.14402 (2023-11)
TEA: Test-time Energy Adaptation
2408.13983 (2024-08)
Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation
and 2 more not named here
softmax_entropy 4 other papers
4 same year, order not determinable
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2207.10792 (2022-07)
Test-Time Adaptation via Self-Training with Nearest Neighbor Information
2304.12566 (2023-04)
AdaNPC: Exploring Non-Parametric Classifier for Test-Time Adaptation
and 1 more not named here
tensor_rot_180 3 other papers
3 same year, order not determinable
1909.11825 (2019-09)
Unsupervised Domain Adaptation through Self-Supervision
2404.01650 (2024-04)
Test-Time Model Adaptation with Only Forward Passes
2408.13983 (2024-08)
Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation
tensor_rot_90 3 other papers
3 same year, order not determinable
1909.11825 (2019-09)
Unsupervised Domain Adaptation through Self-Supervision
2404.01650 (2024-04)
Test-Time Model Adaptation with Only Forward Passes
2408.13983 (2024-08)
Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation
forward_and_adapt_sar 2 other papers
2 same year, order not determinable
2302.12400 (2023-02)
Towards Stable Test-Time Adaptation in Dynamic Wild World
2311.14402 (2023-11)
TEA: Test-time Energy Adaptation
tensor_rot_270 2 other papers
2 same year, order not determinable
2404.01650 (2024-04)
Test-Time Model Adaptation with Only Forward Passes
2408.13983 (2024-08)
Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation
collect_params 1 other paper
1 same year, order not determinable
2601.16240 (2026-01)
Test-Time Adaptation for Speech Emotion Recognition
collect_params 1 other paper
1 same year, order not determinable
2403.07366 (2024-03)
Entropy is not Enough for Test-Time Adaptation: From the Perspective of Disentangled Factors
forward_and_adapt_deyo 1 other paper
1 same year, order not determinable
2403.07366 (2024-03)
Entropy is not Enough for Test-Time Adaptation: From the Perspective of Disentangled Factors
generate_sample_indices_and_ys 1 other paper
1 same year, order not determinable
2408.13983 (2024-08)
Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation
generate_test_probs_and_ys 1 other paper
1 same year, order not determinable
2408.13983 (2024-08)
Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation
monotone_shift_constructor 1 other paper
1 same year, order not determinable
2408.13983 (2024-08)
Dual-Path Adversarial Lifting for Domain Shift Correction in Online 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-24.

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 reconcile model generalization in the presence of distribution shifts. Current TTA methods usually leverage sample uncertainty to select reliable samples for model adjustment via entropy minimization (EM). However, sample uncertainty often relies on a plausible metric and leaves many unreliable samples in the EM process, potentially leading to model collapse. Importantly, these excluded samples incur biased data features of the shifted distribution in TTA. This paper introduces SaTeen, a Structural Alignment-based Test-Time Adaptation method that performs two-fold alignment the structures of test samples with the reliable reference structures. Specifically, the two-fold alignments are 1) Intra-sample structure alignment, where SaTeen maximizes cross-entropy discrepancy between a sample (reference) and its structure-disrupted counterpart, with the assumption of stable dominant features; 2) Inter-sample structure alignment, where SaTeen minimizes the reconstruction error of test samples in the reference subspace spanned by the Incremental PCA on reliable samples, with the assumption of stable intrinsic data manifold. Our extensive experiments demonstrate that SaTeen achieves the stateof-the-art performance across various scenarios for both TTA and continual TTA.

For agents

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

get_harvested_code_for_paper("openreview_QYPKLGyz7K")
get_code_for_paper("openreview_QYPKLGyz7K")
have("openreview_QYPKLGyz7K")

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

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

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

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

Connect an agent — have() is free.