SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.06234 · NeurIPS · 2023

Efficient Adaptation of Large Vision Transformer via Adapter Re-Composing

Peng Wang, Wei Dong, Dawei Yan, Zhijun Lin

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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 1 has no contract verdict; 4 failures of our instrument; 1 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/2310.06234.json · badge: /api/ran/2310.06234.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
DavidYanAnDe/ARC canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
davidyanande/arc canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ARC_adapter Ran
ran on a synthesized input
davidyanande/arc/Model/ARC_ViT.py
code served (permissive licence) · get_code("a0901740b20e9382")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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

# INIT_ARGS: parameters for ARC_adapter.__init__
INIT_ARGS = {
    'adapter_dim': 8,
    'hidden_dim': 12,
    'dropout': 0.1,
    'position': 'att'
}

# Create the projection matrices that will be passed to forward()
# down_projection: (hidden_dim, adapter_dim) -> (12, 8)
# up_projection: (adapter_dim, hidden_dim) -> (8, 12)
down_projection = torch.randn(12, 8)
up_projection = torch.randn(8, 12)

# ARGS: parameters for ARC_adapter.forward()
ARGS = {
    'x': torch.randn(2, 12),  # batch_size=2, hidden_dim=12
    'down_projection': down_projection,
    'up_projection': up_projection
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
default_flist_reader Ran
ran; our contract draft was wrong, not the code
DavidYanAnDe/ARC/Data_process/VTAB_loader.py
pointer only (licence: MIT); the stored copy get_code serves, from xlgsyzp/cvpt, is pointer only (licence: NONE) · get_code("a2d01766b58dccb1")
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 xlgsyzp/cvpt, 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.

default_loader Ran
ran, honoured the contract we drafted
DavidYanAnDe/ARC/Data_process/VTAB_loader.py
pointer only (licence: MIT); the stored copy get_code serves, from xlgsyzp/cvpt, is pointer only (licence: NONE) · get_code("ac269a0e4b8d946e")
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 xlgsyzp/cvpt, 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_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DavidYanAnDe/ARC/Data_process/VTAB_loader.py
code served (permissive licence) · get_code("c5363b397021e658")
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, 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 tempfile
import os
from PIL import Image

torch.manual_seed(0)

# Create temporary directory structure with fake image files and flist files
temp_dir = tempfile.mkdtemp()
data_name = "test_dataset"
dataset_dir = os.path.join(temp_dir, data_name)
os.makedirs(dataset_dir, exist_ok=True)

# Create a few dummy images
for i in range(4):
    img = Image.new('RGB', (224, 224), color=(73, 109, 137))
    img.save(os.path.join(dataset_dir, f"image_{i}.jpg"))

# Create flist files with image paths and labels
train800val200_content = "\n".join([f"image_{i}.jpg {i % 2}" for i in range(4)])
train800_content = "\n".join([f"image_{i}.jpg {i % 2}" for i in range(3)])
val200_content = "image_3.jpg 1"
test_content = "image_3.jpg 1"

with open(os.path.join(dataset_dir, "train800val200.txt"), "w") as f:
    f.write(train800val200_content)

with open(os.path.join(dataset_dir, "train800.txt"), "w") as f:
    f.write(train800_content)

with open(os.path.join(dataset_dir, "val200.txt"), "w") as f:
    f.write(val200_content)

with open(os.path.join(dataset_dir, "test.txt"), "w") as f:
    f.write(test_content)

ARGS = {
    "data_path": temp_dir,
    "name": data_name,
    "evaluate": True,
    "batch_size": 2,
    "few_shot": False,
    "shot": 1,
    "seed": 1,
    "mean": [0.485, 0.456, 0.406],
    "std": [0.229, 0.224, 0.225],
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, timm, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DavidYanAnDe/ARC/Model/ARC_swin_b.py
pointer only (licence: MIT); the stored copy get_code serves, from heekhero/DTL, is pointer only (licence: NONE) · get_code("993ae96666b00cb5")
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 heekhero/DTL, 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.

window_reverse Ran
ran; our contract draft was wrong, not the code
DavidYanAnDe/ARC/Model/ARC_swin_b.py
pointer only (licence: MIT); the stored copy get_code serves, from heekhero/DTL, is pointer only (licence: NONE) · get_code("609922bd93c75117")
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 heekhero/DTL, 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.

simple_accuracy Not yet run
unverified (harvested, no recorded run)
DavidYanAnDe/ARC/FGVC_ARC_train.py
code served (permissive licence) · get_code("3c241ecfe3749a6d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 5 later) and 2 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
simple_accuracy 59 other papers
49 dated earlier, 2 the same month, 5 later, 3 same year, order not determinable
1506.05865 (2015-06)
LCSTS: A Large Scale Chinese Short Text Summarization Dataset
1509.01626 (2015-09)
Character-level Convolutional Networks for Text Classification *
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 56 more not named here
window_partition 31 other papers
8 dated earlier, 1 the same month, 18 later, 4 same year, order not determinable
2111.11418 (2021-11)
MetaFormer Is Actually What You Need for Vision
2203.12119 (2022-03)
Visual Prompt Tuning
2204.03645 (2022-04)
DaViT: Dual Attention Vision Transformers
and 28 more not named here
default_loader 27 other papers
21 dated earlier, 5 later, 1 same year, order not determinable
1710.03463 (2017-10)
Learning to Generalize: Meta-Learning for Domain Generalization
1803.08669 (2018-03)
Pyramid Stereo Matching Network
1810.11408 (2018-10)
Anytime Stereo Image Depth Estimation on Mobile Devices
and 24 more not named here
window_reverse 6 other papers
3 dated earlier, 2 later, 1 same year, order not determinable
2203.12119 (2022-03)
Visual Prompt Tuning
2210.08823 (2022-10)
Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuning
Guo_Improving_Robustness_of_Vision_Transformers_by_Reducing_Sensitivity_To_Patch_CVPR_2023_paper (2023 (year only))
Improving Robustness of Vision Transformers by Reducing Sensitivity to Patch Corruptions
and 3 more not named here
default_flist_reader 2 other papers
1 dated earlier, 1 later
1710.03463 (2017-10)
Learning to Generalize: Meta-Learning for Domain Generalization
2408.14961 (2024-08)
CVPT: Cross Visual Prompt Tuning

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

The advent of high-capacity pre-trained models has revolutionized problem-solving in computer vision, shifting the focus from training task-specific models to adapting pre-trained models. Consequently, effectively adapting large pre-trained models to downstream tasks in an efficient manner has become a prominent research area. Existing solutions primarily concentrate on designing lightweight adapters and their interaction with pre-trained models, with the goal of minimizing the number of parameters requiring updates. In this study, we propose a novel Adapter Re-Composing (ARC) strategy that addresses efficient pre-trained model adaptation from a fresh perspective. Our approach considers the reusability of adaptation parameters and introduces a parameter-sharing scheme. Specifically, we leverage symmetric down-/up-projections to construct bottleneck operations, which are shared across layers. By learning low-dimensional re-scaling coefficients, we can effectively re-compose layer-adaptive adapters. This parameter-sharing strategy in adapter design allows us to further reduce the number of new parameters while maintaining satisfactory performance, thereby offering a promising approach to compress the adaptation cost. We conduct experiments on 24 downstream image classification tasks using various Vision Transformer variants to evaluate our method. The results demonstrate that our approach achieves compelling transfer learning performance with a reduced parameter count. Our code is available at https://github.com/DavidYanAnDe/ARC.

For agents

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

get_harvested_code_for_paper("2310.06234")
get_code_for_paper("2310.06234")
have("2310.06234")

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

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

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

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

Connect an agent — have() is free.