SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.10589 · 2022

EdgeNeXt: Efficiently Amalgamated CNN-Transformer Architecture for Mobile Vision Applications

arXiv · PDF · Open in the Atlas

Code that ran

7 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, 1 violated it and 6 have no contract verdict; 0 failures of our instrument; 3 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/2206.10589.json · badge: /api/ran/2206.10589.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
alibaba-miil/solving_imagenet community (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
MS-Mind/MS-Code-02 community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
FunctionStatusWhere it lives
checkpoint_filter_fn Ran
ran on a synthesized input
alibaba-miil/solving_imagenet/models/cait.py
code served (permissive licence) · get_code("990768f15029c37e")
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 dict. 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 model that the function might use
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create sample state dicts to test the function
# Test case 1: state_dict with 'model' key
state_dict_with_model_key = {
    'model': {
        'module.linear.weight': torch.randn(3, 4),
        'module.linear.bias': torch.randn(3),
        'module.conv.weight': torch.randn(2, 4, 3, 3)
    }
}

# Test case 2: state_dict without 'model' key but with 'module.' prefixes
state_dict_without_model_key = {
    'module.linear.weight': torch.randn(3, 4),
    'module.linear.bias': torch.randn(3),
    'module.conv.weight': torch.randn(2, 4, 3, 3)
}

# Create a model instance
model = MinimalModel()

# Define ARGS with both parameters
ARGS = {
    'state_dict': state_dict_with_model_key,
    'model': model
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
checkpoint_filter_fn Ran
ran on a synthesized input
alibaba-miil/solving_imagenet/models/coat.py
code served (permissive licence) · get_code("de23eca1d0c4deda")
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 dict. 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 model that has norm2 and norm3 attributes
class MinimalModel(nn.Module):
    def __init__(self, norm2_present=True, norm3_present=True):
        super().__init__()
        # norm2 and norm3 can be None or a module
        self.norm2 = nn.LayerNorm(4) if norm2_present else None
        self.norm3 = nn.LayerNorm(4) if norm3_present else None
    
model = MinimalModel(norm2_present=True, norm3_present=True)

# Create a state_dict with various keys
# The function filters out keys starting with 'norm1', 
# and conditionally filters 'norm2' and 'norm3' based on model attributes
state_dict = {
    'norm1.weight': torch.randn(4),
    'norm1.bias': torch.randn(4),
    'norm2.weight': torch.randn(4),
    'norm2.bias': torch.randn(4),
    'norm3.weight': torch.randn(4),
    'layer.weight': torch.randn(3, 4),
    'layer.bias': torch.randn(3),
}

ARGS = {
    'state_dict': state_dict,
    'model': model,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
gen_relative_position_index Ran
ran on a synthesized input
alibaba-miil/solving_imagenet/models/beit.py
code served (permissive licence) · get_code("99272339ad32648c")
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 Tensor, ndim 2, dtype family int, shape (13, 13) 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)

ARGS = {
    "window_size": (4, 3),
}
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 Tensor, ndim 2, dtype family int, shape (13, 13) — shape (13, 13) 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
insert_cls Ran
ran on a synthesized input
alibaba-miil/solving_imagenet/models/coat.py
code served (permissive licence) · get_code("dd4963bc37f4070b")
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 Tensor, ndim 3, dtype family float, shape (2, 6, 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)

# x: a batch of tokens with shape (batch_size, seq_len, embedding_dim)
# We use distinct sizes: batch=2, seq_len=5, embedding_dim=4
x = torch.randn(2, 5, 4)

# cls_token: a single CLS token with shape (1, 1, embedding_dim)
# This will be expanded to match batch size
cls_token = torch.randn(1, 1, 4)

ARGS = {
    "x": x,
    "cls_token": cls_token,
}
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 Tensor, ndim 3, dtype family float, shape (2, 6, 4) — shape (2, 6, 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
interleave_blocks Ran
ran on a synthesized input
alibaba-miil/solving_imagenet/models/byobnet.py
code served (permissive licence) · get_code("d2f354582c2bc6f9")
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 torch.nn as nn
from dataclasses import dataclass
from typing import Tuple, List, Dict, Optional, Union, Any, Callable, Sequence

torch.manual_seed(0)

# Build the ByoBlockCfg dataclass as defined
@dataclass
class ByoBlockCfg:
    type: Union[str, nn.Module]
    d: int
    c: int
    s: int = 2
    gs: Optional[Union[int, Callable]] = None
    br: float = 1.0
    attn_layer: Optional[str] = None
    attn_kwargs: Optional[Dict[str, Any]] = None
    self_attn_layer: Optional[str] = None
    self_attn_kwargs: Optional[Dict[str, Any]] = None
    block_kwargs: Optional[Dict[str, Any]] = None

# Define the interleave_blocks function
def interleave_blocks(types: Tuple[str, str], d, every: Union[int, List[int]]=1, first: bool=False, **kwargs) -> Tuple[ByoBlockCfg]:
    """ interleave 2 block types in stack
    """
    assert len(types) == 2
    if isinstance(every, int):
        every = list(range(0 if first else every, d, every + 1))
        if not every:
            every = [d - 1]
    set(every)
    blocks = []
    for i in range(d):
        block_type = types[1] if i in every else types[0]
        blocks += [ByoBlockCfg(type=block_type, d=1, **kwargs)]
    return tuple(blocks)

# Construct valid arguments for interleave_blocks
ARGS = {
    'types': ('conv', 'attn'),
    'd': 4,
    'every': 2,
    'first': False,
    'c': 64,
    's': 2,
    'gs': None,
    'br': 1.0,
    'attn_layer': None,
    'attn_kwargs': None,
    'self_attn_layer': None,
    'self_attn_kwargs': None,
    'block_kwargs': 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 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
remove_cls Ran
ran on a synthesized input
alibaba-miil/solving_imagenet/models/coat.py
code served (permissive licence) · get_code("ccdb9b1e0c522c8d")
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 Tensor, ndim 3, dtype family float, shape (2, 3, 3) 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

torch.manual_seed(0)

# The function removes the CLS token (first token in sequence dimension)
# It expects a 3D tensor with shape (batch, sequence, embedding_dim)
# It slices [:, 1:, :] to remove the first token in the sequence dimension

x = torch.randn(2, 4, 3)  # batch=2, sequence=4, embedding_dim=3

ARGS = {
    "x": x
}
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 Tensor, ndim 3, dtype family float, shape (2, 3, 3) — shape (2, 3, 3) 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
str2bool Ran
ran, violated the contract we drafted
MS-Mind/MS-Code-02/config.py
code served (permissive licence) · get_code("17061f7e01a6fc86")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned bool, 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 argparse

def str2bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', '1'):
        return True
    elif v.lower() in ('no', 'false', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Test with a string that should return True
ARGS = {'v': 'true'}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 bool, 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
checkpoint_filter_fn Not yet run
unverified (harvested, no recorded run)
alibaba-miil/solving_imagenet/models/convnext.py
code served (permissive licence) · get_code("490b21bf78e1dd8c")
How it ran

no invocation recorded.

create_stem Not yet run
unverified (harvested, no recorded run)
alibaba-miil/solving_imagenet/models/cspnet.py
code served (permissive licence) · get_code("ec39382a920dc48d")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
MS-Mind/MS-Code-02/config.py
code served (permissive licence) · get_code("eb0a3a17d4e9e9a1")
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, 5 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 2 later) and 5 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
checkpoint_filter_fn 2 other papers
2 later
2311.05589 (2023-11)
A Coefficient Makes SVRG Effective
2507.00585 (2025-07)
Similarity Memory Prior is All You Need for Medical Image Segmentation
str2bool 2 other papers
2 dated earlier
2007.00992 (2020-07)
Rethinking Channel Dimensions for Efficient Model Design
2104.01136 (2021-04)
LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference
checkpoint_filter_fn 1 other paper
1 later
ijcai2023_0106 (2023 (year only))
SWAT: Spatial Structure Within and Among Tokens
gen_relative_position_index 1 other paper
1 dated earlier
2204.08958 (2022-04)
MANIQA: Multi-dimension Attention Network for No-Reference Image Quality Assessment
interleave_blocks 1 other paper
1 dated earlier
2204.08958 (2022-04)
MANIQA: Multi-dimension Attention Network for No-Reference Image Quality Assessment

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

In the pursuit of achieving ever-increasing accuracy, large and complex neural networks are usually developed. Such models demand high computational resources and therefore cannot be deployed on edge devices. It is of great interest to build resource-efficient general purpose networks due to their usefulness in several application areas. In this work, we strive to effectively combine the strengths of both CNN and Transformer models and propose a new efficient hybrid architecture EdgeNeXt. Specifically in EdgeNeXt, we introduce split depth-wise transpose attention (STDA) encoder that splits input tensors into multiple channel groups and utilizes depth-wise convolution along with self-attention across channel dimensions to implicitly increase the receptive field and encode multi-scale features. Our extensive experiments on classification, detection and segmentation tasks, reveal the merits of the proposed approach, outperforming state-of-the-art methods with comparatively lower compute requirements. Our EdgeNeXt model with 1.3M parameters achieves 71.2% top-1 accuracy on ImageNet-1K, outperforming MobileViT with an absolute gain of 2.2% with 28% reduction in FLOPs. Further, our EdgeNeXt model with 5.6M parameters achieves 79.4% top-1 accuracy on ImageNet-1K. The code and models are available at https://t.ly/_Vu9.

For agents

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

get_harvested_code_for_paper("2206.10589")
get_code_for_paper("2206.10589")
have("2206.10589")

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

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

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

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

Connect an agent — have() is free.