SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2105.03889 · ICCV · 2021

Conformer: Local Features Coupling Global Representations for Visual Recognition

Lingxi Xie, Wei Huang, Yaowei Wang, Qixiang Ye, Jianbin Jiao, Zhiliang Peng, Shanzhi Gu

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 5 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/2105.03889.json · badge: /api/ran/2105.03889.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
vasgaowei/TS-CAM community
Papers with Code archive
6 ran · 2 no recorded run
pengzhiliang/Conformer marked official in Papers with Code
Papers with Code archive
1 ran · 2 no recorded run
vasgaowei/ts-cam-voc community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input
vasgaowei/TS-CAM/lib/models/conformer.py
code served (permissive licence) · get_code("6dcea70dafba08f4")
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 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

INIT_ARGS = {
    'dim': 4,
    'num_heads': 2,
    'qkv_bias': False,
    'qk_scale': None,
    'attn_drop': 0.0,
    'proj_drop': 0.0,
    'vis': False,
}

ARGS = {
    'x': torch.randn(2, 3, 4),
}

attention = nn.Module()
attention.__class__ = type('Attention', (nn.Module,), {
    '__init__': lambda self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0.0, proj_drop=0.0, vis=False: (
        nn.Module.__init__(self),
        setattr(self, 'num_heads', num_heads),
        setattr(self, 'scale', qk_scale or (dim // num_heads) ** (-0.5)),
        setattr(self, 'qkv', nn.Linear(dim, dim * 3, bias=qkv_bias)),
        setattr(self, 'attn_drop', nn.Dropout(attn_drop)),
        setattr(self, 'proj', nn.Linear(dim, dim)),
        setattr(self, 'proj_drop', nn.Dropout(proj_drop)),
        setattr(self, 'vis', vis),
    )[-1],
    'forward': lambda self, x: (
        (lambda B, N, C, qkv, q, k, v, attn, x: (x, attn))(
            *x.shape,
            self.qkv(x).reshape(x.shape[0], x.shape[1], 3, self.num_heads, x.shape[2] // self.num_heads).permute(2, 0, 3, 1, 4),
            *(lambda qkv: (qkv[0], qkv[1], qkv[2]))(
                self.qkv(x).reshape(x.shape[0], x.shape[1], 3, self.num_heads, x.shape[2] // self.num_heads).permute(2, 0, 3, 1, 4)
            ),
            *(lambda q, k, v: (
                lambda attn: (
                    self.proj_drop(self.proj((attn @ v).transpose(1, 2).reshape(x.shape[0], x.shape[1], x.shape[2]))),
                    attn
                )
            )(
                self.attn_drop((q @ k.transpose(-2, -1) * self.scale).softmax(dim=-1))
            ))(
                *(lambda qkv: (qkv[0], qkv[1], qkv[2]))(
                    self.qkv(x).reshape(x.shape[0], x.shape[1], 3, self.num_heads, x.shape[2] // self.num_heads).permute(2, 0, 3, 1, 4)
                )
            )
        )
    )
})

from types import MethodType

def forward(self, x):
    B, N, C = x.shape
    qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
    q, k, v = qkv[0], qkv[1], qkv[2]
    attn = q @ k.transpose(-2, -1) * self.scale
    attn = attn.softmax(dim=-1)
    attn = self.attn_drop(attn)
    x = (attn @ v).transpose(1, 2).reshape(B, N, C)
    x = self.proj(x)
    x = self.proj_drop(x)
    return (x, attn)

def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0.0, proj_drop=0.0, vis=False):
    super(type(self), self).__init__()
    self.num_heads = num_heads
    head_dim = dim // num_heads
    self.scale = qk_scale or head_dim ** (-0.5)
    self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
    self.attn_drop = nn.Dropout(attn_drop)
    self.proj = nn.Linear(dim, dim)
    self.proj_drop = nn.Dropout(proj_drop)
    self.vis = vis

Attention = type('Attention', (nn.Module,), {'__init__': __init__, 'forward': forward})

model = Attention(**INIT_ARGS)
output = model(**ARGS)
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 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Block Ran
ran on a synthesized input · constructed an object; no result was computed
vasgaowei/TS-CAM/lib/models/conformer.py
code served (permissive licence) · get_code("4f37b2a82fa6afcf")
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, Block: 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 functools import partial
from timm.models.layers import DropPath

torch.manual_seed(0)

ARGS = {
    'dim': 4,
    'num_heads': 2,
    'mlp_ratio': 4.0,
    'qkv_bias': False,
    'qk_scale': None,
    'drop': 0.0,
    'attn_drop': 0.0,
    'drop_path': 0.0,
    'act_layer': nn.GELU,
    'norm_layer': partial(nn.LayerNorm, eps=1e-06),
    'vis': False,
}
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 Block — 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 Block 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
Block Ran
ran on a synthesized input
pengzhiliang/Conformer/conformer.py
code served (permissive licence) · get_code("40b891c254ce0189")
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 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
import torch.nn as nn
from functools import partial
from timm.models.layers import DropPath, trunc_normal_

class Attention(nn.Module):

    def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0.0, proj_drop=0.0):
        super().__init__()
        self.num_heads = num_heads
        head_dim = dim // num_heads
        self.scale = qk_scale or head_dim ** (-0.5)
        self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
        self.attn_drop = nn.Dropout(attn_drop)
        self.proj = nn.Linear(dim, dim)
        self.proj_drop = nn.Dropout(proj_drop)

    def forward(self, x):
        B, N, C = x.shape
        qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
        q, k, v = (qkv[0], qkv[1], qkv[2])
        attn = q @ k.transpose(-2, -1) * self.scale
        attn = attn.softmax(dim=-1)
        attn = self.attn_drop(attn)
        x = (attn @ v).transpose(1, 2).reshape(B, N, C)
        x = self.proj(x)
        x = self.proj_drop(x)
        return x

class Mlp(nn.Module):

    def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0):
        super().__init__()
        out_features = out_features or in_features
        hidden_features = hidden_features or in_features
        self.fc1 = nn.Linear(in_features, hidden_features)
        self.act = act_layer()
        self.fc2 = nn.Linear(hidden_features, out_features)
        self.drop = nn.Dropout(drop)

    def forward(self, x):
        x = self.fc1(x)
        x = self.act(x)
        x = self.drop(x)
        x = self.fc2(x)
        x = self.drop(x)
        return x

class Block(nn.Module):

    def __init__(self, dim, num_heads, mlp_ratio=4.0, qkv_bias=False, qk_scale=None, drop=0.0, attn_drop=0.0, drop_path=0.0, act_layer=nn.GELU, norm_layer=partial(nn.LayerNorm, eps=1e-06)):
        super().__init__()
        self.norm1 = norm_layer(dim)
        self.attn = Attention(dim, num_heads=num_heads, qkv_bias=qkv_bias, qk_scale=qk_scale, attn_drop=attn_drop, proj_drop=drop)
        self.drop_path = DropPath(drop_path) if drop_path > 0.0 else nn.Identity()
        self.norm2 = norm_layer(dim)
        mlp_hidden_dim = int(dim * mlp_ratio)
        self.mlp = Mlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)

    def forward(self, x):
        x = x + self.drop_path(self.attn(self.norm1(x)))
        x = x + self.drop_path(self.mlp(self.norm2(x)))
        return x

INIT_ARGS = {
    'dim': 4,
    'num_heads': 2,
    'mlp_ratio': 4.0,
    'qkv_bias': False,
    'qk_scale': None,
    'drop': 0.0,
    'attn_drop': 0.0,
    'drop_path': 0.0,
    'act_layer': nn.GELU,
    'norm_layer': partial(nn.LayerNorm, eps=1e-06)
}

ARGS = {
    'x': torch.randn(2, 3, 4)
}

if __name__ == '__main__':
    block = Block(**INIT_ARGS)
    output = block(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: {ARGS['x'].shape}")
    assert output.shape == ARGS['x'].shape, "Output shape mismatch"
    print("Success!")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
timm, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ConvBlock Ran
ran on a synthesized input · constructed an object; no result was computed
vasgaowei/TS-CAM/lib/models/conformer.py
code served (permissive licence) · get_code("9a7e248223caba16")
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, ConvBlock: 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 functools import partial

torch.manual_seed(0)

# Create a minimal drop_block implementation that has __call__ method
class DropBlock(nn.Module):
    def forward(self, x):
        return x

# Create a minimal drop_path implementation that has __call__ method
class DropPath(nn.Module):
    def forward(self, x):
        return x

# Define ARGS dict with all parameters for ConvBlock
ARGS = {
    'inplanes': 16,
    'outplanes': 64,
    'stride': 1,
    'res_conv': False,
    'act_layer': nn.ReLU,
    'groups': 1,
    'norm_layer': partial(nn.BatchNorm2d, eps=1e-06),
    'drop_block': None,
    'drop_path': None,
}
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 ConvBlock — 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 ConvBlock 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
FCUDown Ran
ran on a synthesized input · constructed an object; no result was computed
vasgaowei/TS-CAM/lib/models/conformer.py
code served (permissive licence) · get_code("96b1105f90d5364e")
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, FCUDown: 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 functools import partial

torch.manual_seed(0)

# Examine the forward method to understand what's needed:
# - x: input tensor that goes through Conv2d(inplanes, outplanes), then AvgPool2d, flatten(2), transpose(1,2)
#   Conv2d expects (batch, inplanes, height, width)
#   After conv: (batch, outplanes, height, width)
#   After avgpool with dw_stride: (batch, outplanes, height//dw_stride, width//dw_stride)
#   After flatten(2): (batch, outplanes, -1)
#   After transpose(1,2): (batch, -1, outplanes)
# - x_t: tensor where x_t[:, 0][:, None, :] is extracted and concatenated
#   This means x_t has shape (batch, seq_len, dim) and we take the first token

# Set up small but distinct dimensions
batch_size = 2
inplanes = 3
outplanes = 4
dw_stride = 2
height = 4
width = 5
seq_len_t = 6
dim_t = 4

# Create input tensor x: (batch, inplanes, height, width)
x = torch.randn(batch_size, inplanes, height, width)

# Create input tensor x_t: (batch, seq_len, outplanes)
# After conv_project, the spatial dims will be (height, width)
# After avgpool with stride dw_stride: (height//dw_stride, width//dw_stride)
# After flatten(2) and transpose: (batch, height//dw_stride * width//dw_stride, outplanes)
# This gets concatenated with x_t[:, 0][:, None, :] which adds 1 token at dim 1
# So x_t should have outplanes as the last dimension
x_t = torch.randn(batch_size, seq_len_t, outplanes)

# Define standard layer parameters
act_layer = nn.GELU
norm_layer = partial(nn.LayerNorm, eps=1e-06)

ARGS = {
    "inplanes": inplanes,
    "outplanes": outplanes,
    "dw_stride": dw_stride,
    "act_layer": act_layer,
    "norm_layer": norm_layer,
}
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 FCUDown — 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 FCUDown 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
FCUUp Ran
ran on a synthesized input · constructed an object; no result was computed
vasgaowei/TS-CAM/lib/models/conformer.py
code served (permissive licence) · get_code("8c8f0d76b23e394f")
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, FCUUp: 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 functools import partial

torch.manual_seed(0)

class FCUUp(nn.Module):
    """ Transformer patch embeddings -> CNN feature maps
    """

    def __init__(self, inplanes, outplanes, up_stride, act_layer=nn.ReLU, norm_layer=partial(nn.BatchNorm2d, eps=1e-06)):
        super(FCUUp, self).__init__()
        self.up_stride = up_stride
        self.conv_project = nn.Conv2d(inplanes, outplanes, kernel_size=1, stride=1, padding=0)
        self.bn = norm_layer(outplanes)
        self.act = act_layer()

    def forward(self, x, H, W):
        B, _, C = x.shape
        x_r = x[:, 1:].transpose(1, 2).reshape(B, C, H, W)
        x_r = self.act(self.bn(self.conv_project(x_r)))
        return F.interpolate(x_r, size=(H * self.up_stride, W * self.up_stride))


ARGS = {
    "inplanes": 16,
    "outplanes": 32,
    "up_stride": 2,
    "act_layer": nn.ReLU,
    "norm_layer": partial(nn.BatchNorm2d, eps=1e-06),
}
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 FCUUp — 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 FCUUp 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
Med_ConvBlock Ran
ran on a synthesized input · constructed an object; no result was computed
vasgaowei/TS-CAM/lib/models/conformer.py
code served (permissive licence) · get_code("091a9a2477f8498d")
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, Med_ConvBlock: 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 functools import partial

torch.manual_seed(0)

# Create a minimal drop_block that implements __call__
class MinimalDropBlock:
    def __call__(self, x):
        return x

# Create a minimal drop_path that implements __call__
class MinimalDropPath:
    def __call__(self, x):
        return x

ARGS = {
    "inplanes": 16,
    "act_layer": nn.ReLU,
    "groups": 1,
    "norm_layer": partial(nn.BatchNorm2d, eps=1e-06),
    "drop_block": MinimalDropBlock(),
    "drop_path": MinimalDropPath(),
}
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 Med_ConvBlock — 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 Med_ConvBlock 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
Conformer Not yet run
unverified (harvested, no recorded run)
vasgaowei/TS-CAM/lib/models/conformer.py
code served (permissive licence) · get_code("60988e98d48434bd")
How it ran

no invocation recorded.

Conformer Not yet run
unverified (harvested, no recorded run)
vasgaowei/ts-cam-voc/lib/models/conformer.py
code served (permissive licence) · get_code("9a8608e4e9d68c55")
How it ran

no invocation recorded.

Conformer Not yet run
unverified (harvested, no recorded run)
pengzhiliang/Conformer/conformer.py
code served (permissive licence) · get_code("1d063bc04388e460")
How it ran

no invocation recorded.

ConvTransBlock Not yet run
unverified (harvested, no recorded run)
vasgaowei/TS-CAM/lib/models/conformer.py
code served (permissive licence) · get_code("a957868ace3bde4d")
How it ran

no invocation recorded.

ConvTransBlock Not yet run
unverified (harvested, no recorded run)
pengzhiliang/Conformer/conformer.py
code served (permissive licence) · get_code("0f5a4cd482b2ec56")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 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 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.

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

Within Convolutional Neural Network (CNN), the convolution operations are good at extracting local features but experience difficulty to capture global representations. Within visual transformer, the cascaded self-attention modules can capture long-distance feature dependencies but unfortunately deteriorate local feature details. In this paper, we propose a hybrid network structure, termed Conformer, to take advantage of convolutional operations and selfattention mechanisms for enhanced representation learning. Conformer roots in the Feature Coupling Unit (FCU), which fuses local features and global representations under different resolutions in an interactive fashion. Conformer adopts a concurrent structure so that local features and global representations are retained to the maximum extent. Experiments show that Conformer, under the comparable parameter complexity, outperforms the visual transformer (DeiT-B) by 2.3% on ImageNet. On MSCOCO, it outperforms ResNet-101 by 3.7% and 3.6% mAPs for object detection and instance segmentation, respectively, demonstrating the great potential to be a general backbone network. Code is available at github.com/pengzhiliang/Conformer.

For agents

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

get_harvested_code_for_paper("2105.03889")
get_code_for_paper("2105.03889")
have("2105.03889")

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

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

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

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

Connect an agent — have() is free.