SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.15430 · NeurIPS · 2024

BoostAdapter: Improving Vision-Language Test-Time Adaptation via Regional Bootstrapping

Shu-Tao Xia, Bin Chen, Hang Guo, Tao Dai, Taolin Zhang, Jinpeng Wang

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 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; 5 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/2410.15430.json · badge: /api/ran/2410.15430.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
taolinzhang/boostadapter canonical (classifier label)
classifier basis: classifier_2025
4 ran · 5 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
get_clip_logits Ran
ran; our contract draft was wrong, not the code
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("a428b4b908cd066e")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np

torch.manual_seed(0)

# Create a minimal CLIP-like model
class MockCLIPModel(nn.Module):
    def __init__(self, feature_dim=4):
        super().__init__()
        self.feature_dim = feature_dim
    
    def encode_image(self, images):
        # Return normalized features: (batch_size, feature_dim)
        batch_size = images.shape[0]
        features = torch.randn(batch_size, self.feature_dim)
        return features / features.norm(dim=-1, keepdim=True)

# Create mock images
images = torch.randn(2, 3, 32, 32)  # batch_size=2, 3 channels, 32x32

# Create clip model
clip_model = MockCLIPModel(feature_dim=4)

# Create clip weights: (feature_dim, num_classes)
num_classes = 5
clip_weights = torch.randn(4, num_classes)
clip_weights = clip_weights / clip_weights.norm(dim=0, keepdim=True)

ARGS = {
    "images": images,
    "clip_model": clip_model,
    "clip_weights": clip_weights,
    "infer_ori_image": False,
}
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 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
get_entropy Ran
ran; our contract draft was wrong, not the code
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("f61d80185edfb078")
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 float, ndim 0, dtype family float, shape () 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 math

torch.manual_seed(0)

# Analyze the function:
# - loss: used in division, should be a numeric value (float or tensor)
# - clip_weights: has .size(1) method called on it, so it's a torch.Tensor
#   The function accesses dimension 1, so it should be at least 2D

loss = torch.tensor(2.4)

clip_weights = torch.randn(2, 4)

ARGS = {
    "loss": loss,
    "clip_weights": clip_weights,
}
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 float, ndim 0, dtype family float, shape () — shape () 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_output_entropy Ran
ran; our contract draft was wrong, not the code
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("9592c9734205a85d")
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 (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

torch.manual_seed(0)

# The function expects 'outputs' which should be a tensor
# It performs logsumexp on dim=-1, then computes entropy
# So outputs should be a 2D tensor (batch_size, num_classes)

outputs = torch.randn(2, 4)

ARGS = {
    "outputs": outputs
}
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 (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
select_confident_samples Ran
ran; our contract draft was wrong, not the code
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("6460989d9e69e02f")
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

torch.manual_seed(0)

# Create small tensors
batch_size = 2
num_classes = 4
feat_dim = 3

# feat: used as feat[idxTPT], so needs to be indexable tensor
feat = torch.randn(batch_size, feat_dim)

# logits: used with .softmax(1), .log_softmax(1), .sum(1), .size()[0]
# so needs to be 2D tensor with shape (batch_size, num_classes)
logits = torch.randn(batch_size, num_classes)

# topTPT: used in int(batch_entropy.size()[0] * topTPT)
# should be a float between 0 and 1 to select a fraction of samples
topTPT = 0.5

ARGS = {
    "feat": feat,
    "logits": logits,
    "topTPT": topTPT,
}
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
softmax_entropy Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from EnnengYang/AdaMerging
pointer only · get_code("c2df94ca3de67eb0")
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.

ProgressMeter Not yet run
unverified (harvested, no recorded run)
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("80833faac85e0e96")
How it ran

no invocation recorded.

compute_cache_logits Not yet run
unverified (harvested, no recorded run)
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("ac93a0c3da40684b")
How it ran

no invocation recorded.

get_plpd_image Not yet run
unverified (harvested, no recorded run)
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("eee04b556a5a5f03")
How it ran

no invocation recorded.

run_test_tda Not yet run
unverified (harvested, no recorded run)
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("70dcf81e98e78237")
How it ran

no invocation recorded.

update_cache Not yet run
unverified (harvested, no recorded run)
taolinzhang/boostadapter/runner.py
code served (permissive licence) · get_code("352d6e9a9e3bc20d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 2 later) and 8 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
brick of this paper's assembly: helper
7 other papers
4 dated earlier, 1 the same month, 2 later
2310.02575 (2023-10)
AdaMerging: Adaptive Model Merging for Multi-Task Learning
2402.02705 (2024-02)
Representation Surgery for Multi-Task Model Merging
2407.07089 (2024-07)
Fine-Tuning Attention Modules Only: Enhancing Weight Disentanglement in Task Arithmetic
and 4 more not named here
get_entropy
brick of this paper's assembly: helper
1 other paper
1 later
ijcai2025_0115 (2025 (year only))
Reliable and Diverse Hierarchical Adapter for Zero-shot Video Classification

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

Adaptation of pretrained vision-language models such as CLIP to various downstream tasks have raised great interest in recent researches. Previous works have proposed a variety of test-time adaptation (TTA) methods to achieve strong generalization without any knowledge of the target domain. However, existing trainingrequired TTA approaches like TPT necessitate entropy minimization that involves large computational overhead, while training-free methods like TDA overlook the potential for information mining from the test samples themselves. In this paper, we break down the design of existing popular training-required and training-free TTA methods and bridge the gap between them within our framework. Specifically, we maintain a light-weight key-value memory for feature retrieval from instance-agnostic historical samples and instance-aware boosting samples. The historical samples are filtered from the testing data stream and serve to extract useful information from the target distribution, while the boosting samples are drawn from regional bootstrapping and capture the knowledge of the test sample itself. We theoretically justify the rationality behind our method and empirically verify its effectiveness on both the out-of-distribution and the cross-domain datasets, showcasing its applicability in real-world situations.

For agents

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

get_harvested_code_for_paper("2410.15430")
get_code_for_paper("2410.15430")
have("2410.15430")

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

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

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

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

Connect an agent — have() is free.