SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper · CVPR · 2025

Maintaining Consistent Inter-Class Topology in Continual Test-Time Adaptation

Fan Lyu, Tao Zhou, Fuyuan Hu, Rui Yao, Chenggong Ni, Jiayao Tan

Open in the Atlas

Code that ran

13 of 14 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 1 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/Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper.json · badge: /api/ran/Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper.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
Successybbdwm/TCA canonical (classifier label)
classifier basis: census
13 ran · 1 no recorded run
FunctionStatusWhere it lives
complete_data_dir_path Ran
ran; our contract draft was wrong, not the code
Successybbdwm/TCA/classification/conf.py
code served (permissive licence) · get_code("90a409b5445a7d95")
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 str. 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 os

# Construct valid arguments for complete_data_dir_path
ARGS = {
    'data_root_dir': '/tmp/datasets',
    'dataset_name': 'imagenet'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
create_file_list Ran
ran; our contract draft was wrong, not the code
Successybbdwm/TCA/classification/datasets/imagenet_subsets.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("0c4495cb2187be84")
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 AIGNLAI/GOLD, 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.

ds_name2pytorch_ds_name Ran
ran; our contract draft was wrong, not the code
Successybbdwm/TCA/classification/conf.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("22a042db3ce6f8bb")
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 AIGNLAI/GOLD, 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.

forward_decorator Ran
ran; our contract draft was wrong, not the code
Successybbdwm/TCA/classification/methods/base.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("ef670fd2920b7ce2")
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 AIGNLAI/GOLD, 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.

get_num_classes Ran
ran, honoured the contract we drafted
Successybbdwm/TCA/classification/conf.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("4d83f34a9766b4a9")
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 AIGNLAI/GOLD, 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.

kernel Ran
ran, honoured the contract we drafted
Successybbdwm/TCA/classification/methods/cmf.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("b086cfc2dfe368f4")
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 AIGNLAI/GOLD, 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.

refine_predictions Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Successybbdwm/TCA/classification/methods/adacontrast.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("6c5a8d4a69a975c2")
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 AIGNLAI/GOLD, 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.

setup_adacontrast_optimizer Ran
ran; our contract draft was wrong, not the code
Successybbdwm/TCA/classification/methods/adacontrast.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("ba822e549de6a087")
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 AIGNLAI/GOLD, 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.

soft_k_nearest_neighbors Ran
ran; our contract draft was wrong, not the code
Successybbdwm/TCA/classification/methods/adacontrast.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("110b394c4d611e0b")
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 AIGNLAI/GOLD, 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_cifar Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Successybbdwm/TCA/classification/methods/cotta.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("991d0f3401682804")
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 AIGNLAI/GOLD, 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_imagenet Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Successybbdwm/TCA/classification/methods/cotta.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("6bdfed740b3da7ce")
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 AIGNLAI/GOLD, 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_model_probs Ran
ran; our contract draft was wrong, not the code
Successybbdwm/TCA/classification/methods/eata.py
code served (permissive licence) · get_code("f4a71b97346fb88d")
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 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

torch.manual_seed(0)

# Case 1: current_model_probs is None, new_probs is non-empty
# This tests the first branch
current_model_probs_1 = None
new_probs_1 = torch.randn(2, 4)

# Case 2: current_model_probs is not None, new_probs is empty
# This tests the second branch
current_model_probs_2 = torch.randn(4)
new_probs_2 = torch.randn(0, 4)

# Case 3: both are non-empty
# This tests the third branch
current_model_probs_3 = torch.randn(4)
new_probs_3 = torch.randn(2, 4)

# Use case 1 as the primary test case
ARGS = {
    "current_model_probs": current_model_probs_1,
    "new_probs": new_probs_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 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
update_model_probs Ran
ran, honoured the contract we drafted
Successybbdwm/TCA/classification/methods/cmf.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("073ab5af80ddbe36")
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 AIGNLAI/GOLD, 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.

create_imagenet_subset Not yet run
unverified (harvested, no recorded run)
Successybbdwm/TCA/classification/datasets/imagenet_subsets.py
pointer only (licence: MIT); the stored copy get_code serves, from AIGNLAI/GOLD, is pointer only (licence: NONE) · get_code("b723ea0fcdc2c948")
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 AIGNLAI/GOLD, 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. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 13 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 13 later) and 1 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
update_model_probs 8 other papers
5 dated earlier, 2 later, 1 undated
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
create_file_list 3 other papers
1 dated earlier, 2 later
2401.08328 (2024-01)
Un-Mixing Test-Time Normalization Statistics: Combatting Label Temporal Correlation
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
2609.02507 (2026-09)
Rethinking the Teacher-Student Framework for Test-Time Adaptation
create_imagenet_subset 3 other papers
1 dated earlier, 2 later
2401.08328 (2024-01)
Un-Mixing Test-Time Normalization Statistics: Combatting Label Temporal Correlation
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
2609.02507 (2026-09)
Rethinking the Teacher-Student Framework for Test-Time Adaptation
refine_predictions 3 other papers
1 dated earlier, 2 later
2310.20199 (2023-10)
In Search of Lost Online Test-time Adaptation: A Survey
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
2609.02507 (2026-09)
Rethinking the Teacher-Student Framework for Test-Time Adaptation
soft_k_nearest_neighbors 3 other papers
1 dated earlier, 2 later
2310.20199 (2023-10)
In Search of Lost Online Test-time Adaptation: A Survey
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
2609.02507 (2026-09)
Rethinking the Teacher-Student Framework for Test-Time Adaptation
softmax_entropy_cifar 3 other papers
1 dated earlier, 2 later
2401.08328 (2024-01)
Un-Mixing Test-Time Normalization Statistics: Combatting Label Temporal Correlation
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
2609.02507 (2026-09)
Rethinking the Teacher-Student Framework for Test-Time Adaptation
softmax_entropy_imagenet 3 other papers
1 dated earlier, 2 later
2401.08328 (2024-01)
Un-Mixing Test-Time Normalization Statistics: Combatting Label Temporal Correlation
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
2609.02507 (2026-09)
Rethinking the Teacher-Student Framework for Test-Time Adaptation
update_model_probs 2 other papers
1 dated earlier, 1 later
2306.00650 (2023-06)
Universal Test-time Adaptation through Weight Ensembling, Diversity Weighting, and Prior Correction
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
ds_name2pytorch_ds_name 1 other paper
1 later
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
forward_decorator 1 other paper
1 later
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
get_num_classes 1 other paper
1 later
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
kernel 1 other paper
1 later
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in Continual Test-Time Adaptation
setup_adacontrast_optimizer 1 other paper
1 later
2603.21928 (2026-03)
The Golden Subspace: Where Efficiency Meets Generalization in 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-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

This paper introduces Topological Consistency Adaptation (TCA), a novel approach to Continual Test-time Adaptation (CTTA) that addresses the challenges of domain shifts and error accumulation in testing scenarios. TCA ensures the stability of inter-class relationships by enforcing a class topological consistency constraint, which minimizes the distortion of class centroids and preserves the topological structure during continuous adaptation. Additionally, we propose an intra-class compactness loss to maintain compactness within classes, indirectly supporting inter-class stability. To further enhance model adaptation, we introduce a batch imbalance topology weighting mechanism that accounts for class distribution imbalances within each batch, optimizing centroid distances and stabilizing the inter-class topology. Experiments show that our method demonstrates improvements in handling continuous domain shifts, ensuring stable feature distributions and boosting predictive performance. Our code is available at: https://github.com/Successybbdwm/TCA.

For agents

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

get_harvested_code_for_paper("Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper")
get_code_for_paper("Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper")
have("Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper")

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

curl https://syntology.ai/api/ran/Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper.json

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

[![Syntology run record](https://syntology.ai/api/ran/Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper.svg)](https://syntology.ai/paper/Ni_Maintaining_Consistent_Inter-Class_Topology_in_Continual_Test-Time_Adaptation_CVPR_2025_paper)

Connect an agent — have() is free.