SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.10866 · ECCV · 2022

Cost Aggregation with 4D Convolutional Swin Transformer for Few-Shot Segmentation

Stephen Lin, Seungryong Kim, Jisu Nam, Seokju Cho, Sunghwan Hong

arXiv · PDF · Open in the Atlas

Code that ran

12 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 4 failures of our instrument; 8 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/2207.10866.json · badge: /api/ran/2207.10866.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
Seokju-Cho/Volumetric-Aggregation-Transformer marked official in Papers with Code
Papers with Code archive
10 ran · 8 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
FunctionStatusWhere it lives
Conv4d Ran
ran on a synthesized input · constructed an object; no result was computed
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("a689dd29d10a5588")
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 an instance of its own class, Conv4d: the run constructed the object and did not call it, so no result was computed. 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.nn.functional as F
from einops import rearrange

torch.manual_seed(0)

ARGS = {
    'in_channels': 4,
    'out_channels': 8,
    'kernel_size': (3, 3, 3, 3),
    'stride': (1, 1, 1, 1),
    'padding': (1, 1, 1, 1),
    'bias': True,
    'transposed_query': False,
    'transposed_supp': False,
    'target_size': None,
    'output_padding': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv4d — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Conv4d 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
Correlation Ran
ran on a synthesized input
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("d957466bd907d3e2")
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 list. 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

class Correlation:

    @classmethod
    def multilayer_correlation(cls, query_feats, support_feats, stack_ids):
        eps = 1e-05
        corrs = []
        for idx, (query_feat, support_feat) in enumerate(zip(query_feats, support_feats)):
            bsz, ch, hb, wb = support_feat.size()
            support_feat = support_feat.view(bsz, ch, -1)
            support_feat = support_feat / (support_feat.norm(dim=1, p=2, keepdim=True) + eps)
            bsz, ch, ha, wa = query_feat.size()
            query_feat = query_feat.view(bsz, ch, -1)
            query_feat = query_feat / (query_feat.norm(dim=1, p=2, keepdim=True) + eps)
            corr = torch.bmm(query_feat.transpose(1, 2), support_feat).view(bsz, ha, wa, hb, wb)
            corr = corr.clamp(min=0)
            corrs.append(corr)
        corr_l4 = torch.stack(corrs[-stack_ids[0]:]).transpose(0, 1).contiguous()
        corr_l3 = torch.stack(corrs[-stack_ids[1]:-stack_ids[0]]).transpose(0, 1).contiguous()
        corr_l2 = torch.stack(corrs[-stack_ids[2]:-stack_ids[1]]).transpose(0, 1).contiguous()
        return [corr_l4, corr_l3, corr_l2]


INIT_ARGS = {}

ARGS = {
    'query_feats': [
        torch.randn(2, 4, 5, 6),
        torch.randn(2, 4, 7, 8),
        torch.randn(2, 4, 9, 10),
    ],
    'support_feats': [
        torch.randn(2, 4, 3, 4),
        torch.randn(2, 4, 5, 6),
        torch.randn(2, 4, 7, 8),
    ],
    'stack_ids': [1, 2, 3],
}

METHOD = 'multilayer_correlation'

if __name__ == '__main__':
    corr_instance = Correlation(**INIT_ARGS)
    result = getattr(corr_instance, METHOD)(**ARGS)
    print("Result type:", type(result))
    print("Number of correlation layers:", len(result))
    for i, corr in enumerate(result):
        print(f"Correlation layer {i} shape: {corr.shape}")
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 list — a list 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Interpolate4d Ran
ran on a synthesized input · constructed an object; no result was computed
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("97b275801cca78fc")
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 an instance of its own class, Interpolate4d: the run constructed the object and did not call it, so no result was computed. 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.nn.functional as F
from einops import rearrange

torch.manual_seed(0)

# Create a small 6D tensor with distinct dimensions for each axis
# B=2, L=3, H_q=4, W_q=5, H_s=6, W_s=7
x = torch.randn(2, 3, 4, 5, 6, 7)

# The size parameter is used in F.interpolate, which expects a tuple/list
# For bilinear interpolation on 4D tensors (after rearrange), size should be 2D
size = (8, 9)

# The dim parameter should be either 'support' or 'query'
dim = 'support'

ARGS = {
    'size': size,
    'dim': dim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Interpolate4d — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Interpolate4d 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
MaxPool4d Ran
ran on a synthesized input · constructed an object; no result was computed
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("b966405e9e7c94fc")
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 an instance of its own class, MaxPool4d: the run constructed the object and did not call it, so no result was computed. 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
from einops import rearrange

torch.manual_seed(0)

ARGS = {
    'kernel_size': 2,
    'stride': 1,
    'padding': 0,
    'dim': 'support'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MaxPool4d — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MaxPool4d 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
PatchMerging Ran
ran on a synthesized input · constructed an object; no result was computed
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("688a7c109b6a8925")
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 an instance of its own class, PatchMerging: the run constructed the object and did not call it, so no result was computed. 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)

# PatchMerging expects:
# - input_resolution: tuple of (H, W) where both are even
# - dim: int for input channels
# - norm_layer: nn.Module class for normalization (default nn.LayerNorm)

ARGS = {
    'input_resolution': (4, 6),  # H=4, W=6 (both even)
    'dim': 4,  # Number of input channels
    'norm_layer': nn.LayerNorm,  # Normalization layer class
}
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 PatchMerging — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PatchMerging 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
TransformerWarper Ran
ran on a synthesized input · constructed an object; no result was computed
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("9f47dd1aa3379e7a")
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 an instance of its own class, TransformerWarper: the run constructed the object and did not call it, so no result was computed. 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 transformer that takes input of shape (B, seq_len, L)
# and returns output of same shape
class MinimalTransformer(nn.Module):
    def __init__(self, input_dim=1):
        super().__init__()
        self.linear = nn.Linear(input_dim, input_dim)
    
    def forward(self, x):
        # x shape: (B, seq_len, L)
        # Just apply a linear transformation across the L dimension
        return self.linear(x)

# Create transformer instance
transformer = MinimalTransformer(input_dim=1)

# Create input tensor with shape (B, L, H_q, W_q, H_s, W_s)
# Using distinct sizes: B=2, L=1, H_q=4, W_q=3, H_s=2, W_s=5
x = torch.randn(2, 1, 4, 3, 2, 5)

ARGS = {
    "transformer": transformer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TransformerWarper — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TransformerWarper 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
TransformerWarper2d Ran
ran on a synthesized input · constructed an object; no result was computed
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("3c9c3d947cf636e4")
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 an instance of its own class, TransformerWarper2d: the run constructed the object and did not call it, so no result was computed. 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
from einops import rearrange

torch.manual_seed(0)

class SimpleTransformer(nn.Module):
    """Minimal transformer that takes (B, N, C) and returns (B, N, C)"""
    def __init__(self, dim):
        super().__init__()
        self.linear = nn.Linear(dim, dim)
    
    def forward(self, x):
        # x shape: (B, N, C)
        return self.linear(x)

# Create a minimal transformer
transformer = SimpleTransformer(dim=4)

ARGS = {
    "transformer": transformer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TransformerWarper2d — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TransformerWarper2d 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
WindowAttention Ran
ran on a synthesized input · constructed an object; no result was computed
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("c45ba97aae362041")
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 an instance of its own class, WindowAttention: the run constructed the object and did not call it, so no result was computed. 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
from timm.models.layers import DropPath, to_2tuple, trunc_normal_

torch.manual_seed(0)

ARGS = {
    "dim": 4,
    "window_size": (2, 2),
    "num_heads": 2,
    "qkv_bias": True,
    "qk_scale": None,
    "attn_drop": 0.0,
    "proj_drop": 0.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WindowAttention — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a WindowAttention 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
extract_feat_res Ran
ran; our contract draft was wrong, not the code
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("5e71dad5278d69a0")
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 list. 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 ResNet-like backbone that satisfies the function's usage
class MinimalBottleneck(nn.Module):
    def __init__(self, in_channels, out_channels, has_downsample=False):
        super().__init__()
        self.conv1 = nn.Conv2d(in_channels, out_channels, 1)
        self.bn1 = nn.BatchNorm2d(out_channels)
        self.relu = nn.ReLU(inplace=True)
        self.conv2 = nn.Conv2d(out_channels, out_channels, 3, padding=1)
        self.bn2 = nn.BatchNorm2d(out_channels)
        self.conv3 = nn.Conv2d(out_channels, out_channels, 1)
        self.bn3 = nn.BatchNorm2d(out_channels)
        
        if has_downsample:
            self.downsample = nn.Sequential(
                nn.Conv2d(in_channels, out_channels, 1),
                nn.BatchNorm2d(out_channels)
            )
        else:
            self.downsample = nn.Identity()

class MinimalResNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 64, 7, stride=2, padding=3)
        self.bn1 = nn.BatchNorm2d(64)
        self.relu = nn.ReLU(inplace=True)
        self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1)
        
        # Create layer1, layer2, layer3, layer4 with bottleneck blocks
        self.layer1 = nn.ModuleList([
            MinimalBottleneck(64, 64, has_downsample=False),
            MinimalBottleneck(64, 64, has_downsample=False)
        ])
        self.layer2 = nn.ModuleList([
            MinimalBottleneck(64, 128, has_downsample=True),
            MinimalBottleneck(128, 128, has_downsample=False)
        ])
        self.layer3 = nn.ModuleList([
            MinimalBottleneck(128, 256, has_downsample=True),
            MinimalBottleneck(256, 256, has_downsample=False)
        ])
        self.layer4 = nn.ModuleList([
            MinimalBottleneck(256, 512, has_downsample=True),
            MinimalBottleneck(512, 512, has_downsample=False)
        ])

# Create backbone
backbone = MinimalResNet()
backbone.eval()

# Create input image tensor (batch=2, channels=3, height=4, width=4)
img = torch.randn(2, 3, 4, 4)

# feat_ids: indices to collect features from
feat_ids = [1, 3]

# bottleneck_ids: which bottleneck block in each layer
bottleneck_ids = [0, 1, 0, 1]

# lids: which layer (1, 2, 3, or 4)
lids = [1, 1, 2, 2]

ARGS = {
    'img': img,
    'backbone': backbone,
    'feat_ids': feat_ids,
    'bottleneck_ids': bottleneck_ids,
    'lids': lids
}
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 list — a list 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
extract_feat_vgg Ran
ran; our contract draft was wrong, not the code
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("cda8eb3e776a0591")
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 list. 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 minimal VGG-like backbone
class MinimalVGG(nn.Module):
    def __init__(self):
        super().__init__()
        self.features = nn.Sequential(
            nn.Conv2d(3, 16, kernel_size=3, padding=1),
            nn.ReLU(inplace=True),
            nn.Conv2d(16, 32, kernel_size=3, padding=1),
            nn.ReLU(inplace=True),
            nn.MaxPool2d(kernel_size=2, stride=2),
            nn.Conv2d(32, 64, kernel_size=3, padding=1),
            nn.ReLU(inplace=True),
        )
    
    def forward(self, x):
        return self.features(x)

# Create input image tensor (batch_size=2, channels=3, height=4, width=4)
img = torch.randn(2, 3, 4, 4)

# Create backbone model
backbone = MinimalVGG()

# Define feature layer indices to extract
feat_ids = [1, 4, 6]

# Optional parameters (not used in function body but part of signature)
bottleneck_ids = None
lids = None

ARGS = {
    "img": img,
    "backbone": backbone,
    "feat_ids": feat_ids,
    "bottleneck_ids": bottleneck_ids,
    "lids": lids,
}
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 list — a list 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
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from mv-lab/swin2sr
pointer only · get_code("f9fd6241d935f07b")
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.

window_reverse Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from mv-lab/swin2sr
pointer only · get_code("fb32094c6dbece71")
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.

BasicLayer Not yet run
unverified (harvested, no recorded run)
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("30c94d4ce2dcc31b")
How it ran

no invocation recorded.

Encoder4D Not yet run
unverified (harvested, no recorded run)
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("f753e1094cc84a3f")
How it ran

no invocation recorded.

OurModel Not yet run
unverified (harvested, no recorded run)
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("fcf09c7f87136ef1")
How it ran

no invocation recorded.

SwinTransformer Not yet run
unverified (harvested, no recorded run)
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("211001493120f0e2")
How it ran

no invocation recorded.

SwinTransformer2d Not yet run
unverified (harvested, no recorded run)
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("4390e9116e6b7b05")
How it ran

no invocation recorded.

SwinTransformerBlock Not yet run
unverified (harvested, no recorded run)
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("cf7fdf758691ee4a")
How it ran

no invocation recorded.

VAT Not yet run
unverified (harvested, no recorded run)
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("09ecea11a241565f")
How it ran

no invocation recorded.

VATLearner Not yet run
unverified (harvested, no recorded run)
Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py
code served (permissive licence) · get_code("616c158398e06b3e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 8 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 8 later) and 12 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
window_reverse
brick of this paper's assembly: helper
227 other papers
60 dated earlier, 2 the same month, 163 later, 2 same year, order not determinable · 34 only as an assembly brick
1608.03983 (2016-08)
SGDR: Stochastic Gradient Descent with Warm Restarts
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 224 more not named here
window_partition
brick of this paper's assembly: helper
223 other papers
56 dated earlier, 2 the same month, 163 later, 2 same year, order not determinable · 32 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 220 more not named here
WindowAttention
brick of this paper's assembly: helper
15 other papers
6 dated earlier, 9 later · 5 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2108.10257 (2021-08)
SwinIR: Image Restoration Using Swin Transformer
2203.13963 (2022-03)
Transformer-empowered Multi-scale Contextual Matching and Aggregation for Multi-contrast MRI Super-resolution
and 12 more not named here
BasicLayer
brick of this paper's assembly: model
7 other papers
4 dated earlier, 3 later · 2 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2203.15350 (2022-03)
End-to-End Transformer Based Model for Image Captioning
2204.03610 (2022-04)
Unified Contrastive Learning in Image-Text-Label Space
and 4 more not named here
PatchMerging
brick of this paper's assembly: helper
7 other papers
5 dated earlier, 2 later · 5 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2203.15350 (2022-03)
End-to-End Transformer Based Model for Image Captioning
2204.03610 (2022-04)
Unified Contrastive Learning in Image-Text-Label Space
and 4 more not named here
SwinTransformerBlock
brick of this paper's assembly: model
7 other papers
4 dated earlier, 3 later · 2 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2203.15350 (2022-03)
End-to-End Transformer Based Model for Image Captioning
2204.03610 (2022-04)
Unified Contrastive Learning in Image-Text-Label Space
and 4 more not named here
extract_feat_res
brick of this paper's assembly: helper
3 other papers
3 later
2308.13469 (2023-08)
RestNet: Boosting Cross-Domain Few-Shot Segmentation with Residual Transformation Network
2405.15265 (2024-05)
Cross-Domain Few-Shot Semantic Segmentation via Doubly Matching Transformation
2409.06305 (2024-09)
High-Performance Few-Shot Segmentation with Foundation Models: An Empirical Study
extract_feat_vgg
brick of this paper's assembly: helper
3 other papers
3 later
2308.13469 (2023-08)
RestNet: Boosting Cross-Domain Few-Shot Segmentation with Residual Transformation Network
2405.15265 (2024-05)
Cross-Domain Few-Shot Semantic Segmentation via Doubly Matching Transformation
2409.06305 (2024-09)
High-Performance Few-Shot Segmentation with Foundation Models: An Empirical Study

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

This paper presents a novel cost aggregation network, called Volumetric Aggregation with Transformers (VAT), for few-shot segmentation. The use of transformers can benefit correlation map aggregation through self-attention over a global receptive field. However, the tokenization of a correlation map for transformer processing can be detrimental, because the discontinuity at token boundaries reduces the local context available near the token edges and decreases inductive bias. To address this problem, we propose a 4D Convolutional Swin Transformer, where a high-dimensional Swin Transformer is preceded by a series of small-kernel convolutions that impart local context to all pixels and introduce convolutional inductive bias. We additionally boost aggregation performance by applying transformers within a pyramidal structure, where aggregation at a coarser level guides aggregation at a finer level. Noise in the transformer output is then filtered in the subsequent decoder with the help of the query's appearance embedding. With this model, a new state-of-the-art is set for all the standard benchmarks in few-shot segmentation. It is shown that VAT attains state-of-the-art performance for semantic correspondence as well, where cost aggregation also plays a central role. Code and trained models are available at https://seokju-cho.github.io/VAT/.

For agents

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

get_harvested_code_for_paper("2207.10866")
get_code_for_paper("2207.10866")
have("2207.10866")

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

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

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

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

Connect an agent — have() is free.