SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.10886 · CVPR · 2022

ELIC: Efficient Learned Image Compression with Unevenly Grouped Space-Channel Contextual Adaptive Coding

Yan Wang, Dailan He, Hongwei Qin, Rui Ma, Ziming Yang, Weikun Peng

arXiv · PDF · Open in the Atlas

Code that ran

12 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 6 failures of our instrument; 0 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/2203.10886.json · badge: /api/ran/2203.10886.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
JiangWeibeta/ELIC community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
Nikolai10/ELIC community
Papers with Code archive
4 ran · 0 no recorded run
orange-opensource/cool-chic community
Papers with Code archive
2 ran · 0 no recorded run
FunctionStatusWhere it lives
Arm Ran
ran on a synthesized input
orange-opensource/cool-chic/coolchic/component/core/arm.py
code served (permissive licence) · get_code("e4616463356b16ce")
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, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch import Tensor

# First, define the ArmLinear class
from typing import List, Literal, Optional, OrderedDict, Tuple
import torch.nn.functional as F

class ArmLinear(nn.Module):
    """Create a Linear layer of the Auto-Regressive Module (ARM)."""

    def __init__(self, in_channels: int, out_channels: int, residual: bool=False):
        super().__init__()
        self.residual = residual
        self.in_channels = in_channels
        self.out_channels = out_channels
        self.weight = nn.Parameter(torch.empty(out_channels, in_channels), requires_grad=True)
        self.bias = nn.Parameter(torch.empty(out_channels), requires_grad=True)
        self.initialize_parameters()

    def initialize_parameters(self) -> None:
        self.bias = nn.Parameter(torch.zeros_like(self.bias), requires_grad=True)
        if self.residual:
            self.weight = nn.Parameter(torch.zeros_like(self.weight), requires_grad=True)
        else:
            out_channel = self.weight.size()[0]
            self.weight = nn.Parameter(torch.randn_like(self.weight) / out_channel ** 2, requires_grad=True)

    def forward(self, x: Tensor) -> Tensor:
        if self.residual:
            return F.linear(x, self.weight, bias=self.bias) + x
        else:
            return F.linear(x, self.weight, bias=self.bias)


LOG_SCALE_MAX = 5
LOG_SCALE_MIN = -5

class Arm(nn.Module):
    """Autoregressive probability module."""

    def __init__(self, dim_arm: int, n_hidden_layers_arm: int, n_out_features: int=2, flag_linear_stabiliser: bool=True):
        super().__init__()
        self.dim_arm = dim_arm
        self.n_hidden_layers_arm = n_hidden_layers_arm
        self.n_out_features = n_out_features
        self.flag_linear_stabiliser = flag_linear_stabiliser
        
        # Build MLP with ArmLinear layers
        layers = []
        
        # First layer: input to hidden
        layers.append(ArmLinear(dim_arm, dim_arm, residual=False))
        layers.append(nn.ReLU())
        
        # Hidden layers with residual connections
        for _ in range(n_hidden_layers_arm - 1):
            layers.append(ArmLinear(dim_arm, dim_arm, residual=True))
            layers.append(nn.ReLU())
        
        # Output layer
        layers.append(ArmLinear(dim_arm, n_out_features, residual=False))
        
        self.mlp = nn.Sequential(*layers)

    def forward(self, x: Tensor) -> Tensor:
        """Forward pass through the ARM MLP.
        
        Args:
            x: Input tensor of shape [B, dim_arm]
            
        Returns:
            Tensor of shape [B, n_out_features]
        """
        return self.mlp(x)


# Define initialization arguments
INIT_ARGS = {
    'dim_arm': 4,
    'n_hidden_layers_arm': 2,
    'n_out_features': 2,
    'flag_linear_stabiliser': True,
}

# Define forward pass arguments
ARGS = {
    'x': torch.randn(2, 4),  # batch_size=2, dim_arm=4
}
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, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ArmLinear Ran
ran on a synthesized input
orange-opensource/cool-chic/coolchic/component/core/arm.py
code served (permissive licence) · get_code("0dc405659bf46083")
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, shape (2, 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
from torch import Tensor

class ArmLinear(nn.Module):
    """Create a Linear layer of the Auto-Regressive Module (ARM). This is a
    wrapper around the usual ``nn.Linear`` layer of PyTorch, with a custom
    initialization. It performs the following operations:

    * :math:`\\mathbf{x}_{out} = \\mathbf{W}\\mathbf{x}_{in} + \\mathbf{b}` if
      ``residual`` is ``False``

    * :math:`\\mathbf{x}_{out} = \\mathbf{W}\\mathbf{x}_{in} + \\mathbf{b} +
      \\mathbf{x}_{in}` if ``residual`` is ``True``.

    The input  :math:`\\mathbf{x}_{in}` is a :math:`[B, C_{in}]` tensor, the
    output :math:`\\mathbf{x}_{out}` is a :math:`[B, C_{out}]` tensor.

    The layer weight and bias shapes are :math:`\\mathbf{W} \\in
    \\mathbb{R}^{C_{out} \\times C_{in}}` and :math:`\\mathbf{b} \\in
    \\mathbb{R}^{C_{out}}`.
    """

    def __init__(self, in_channels: int, out_channels: int, residual: bool=False):
        """
        Args:
            in_channels: Number of input features :math:`C_{in}`.
            out_channels: Number of output features :math:`C_{out}`.
            residual: True to add a residual connection to the layer. Defaults to False.
        """
        super().__init__()
        self.residual = residual
        self.in_channels = in_channels
        self.out_channels = out_channels
        self.weight = nn.Parameter(torch.empty(out_channels, in_channels), requires_grad=True)
        self.bias = nn.Parameter(torch.empty(out_channels), requires_grad=True)
        self.initialize_parameters()

    def initialize_parameters(self) -> None:
        """Initialize **in place** the weight and the bias of the linear layer.

        * Biases are always set to zero.

        * Weights are set to zero if ``residual == True``. Otherwise, sample
          from the Normal distribution: :math:`\\mathbf{W} \\sim \\mathcal{N}(0,
          \\tfrac{1}{C_{out}^4})`.
        """
        self.bias = nn.Parameter(torch.zeros_like(self.bias), requires_grad=True)
        if self.residual:
            self.weight = nn.Parameter(torch.zeros_like(self.weight), requires_grad=True)
        else:
            out_channel = self.weight.size()[0]
            self.weight = nn.Parameter(torch.randn_like(self.weight) / out_channel ** 2, requires_grad=True)

    def forward(self, x: Tensor) -> Tensor:
        """Perform the forward pass of this layer.

        Args:
            x: Input tensor of shape :math:`[B, C_{in}]`.

        Returns:
            Tensor with shape :math:`[B, C_{out}]`.
        """
        import torch.nn.functional as F
        if self.residual:
            return F.linear(x, self.weight, bias=self.bias) + x
        else:
            return F.linear(x, self.weight, bias=self.bias)


INIT_ARGS = {
    "in_channels": 4,
    "out_channels": 3,
    "residual": False,
}

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

if __name__ == "__main__":
    layer = ArmLinear(**INIT_ARGS)
    output = layer(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: (2, 3)")
    assert output.shape == (2, 3), f"Shape mismatch: {output.shape} != (2, 3)"
    print("Test passed!")
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, shape (2, 3) — shape (2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ElicAnalysis Ran
ran on a synthesized input · constructed an object; no result was computed
Nikolai10/ELIC/elic_transforms.py
code served (permissive licence) · get_code("3f24fa2beccb4c2d")
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, ElicAnalysis: 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 tensorflow as tf
import functools

# Define build_conv and helper classes since they're needed
def build_conv(output_channels=0, kernel_size=3, strides=1, act='relu', up_or_down='down', name=None):
    """Builds either an upsampling or downsampling conv layer."""
    layer_cls = dict(up=tf.keras.layers.Conv2DTranspose, down=tf.keras.layers.Conv2D)[up_or_down]
    return layer_cls(filters=output_channels, kernel_size=kernel_size, strides=strides, activation=act, use_bias=True, padding='same', name=name)

class ResidualBlock(tf.keras.layers.Layer):
    """Residual block from (Cheng 2020) and ELIC."""

    def __init__(self, activation='relu', **kwargs):
        super().__init__(**kwargs)
        self._activation = activation

    def build(self, input_shape):
        c = input_shape[-1]
        self._block = tf.keras.Sequential([build_conv(output_channels=c // 2, kernel_size=1, act=self._activation), build_conv(output_channels=c // 2, kernel_size=3, act=self._activation), build_conv(output_channels=c, kernel_size=1, act=None)])

    def call(self, x):
        x += self._block(x)
        return x

class SimpleAttention(tf.keras.layers.Layer):
    """Simplified attention block from (Cheng 2020)."""

    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self._trunk = tf.keras.Sequential([ResidualBlock('relu') for _ in range(3)], name='trunk')
        self._branch_layers = [ResidualBlock('relu') for _ in range(3)]

    def build(self, input_shape):
        conv = build_conv(output_channels=input_shape[-1], kernel_size=1, act=tf.nn.sigmoid)
        self._attention_branch = tf.keras.Sequential(self._branch_layers + [conv], name='attention_branch')

    def call(self, x):
        trunk = self._trunk(x)
        attention = self._attention_branch(x)
        return x + tf.multiply(trunk, attention, name='gating')

class ElicAnalysis(tf.keras.layers.Layer):
    """Analysis transform from ELIC."""

    def __init__(self, num_residual_blocks=3, channels=(128, 160, 192, 192), output_channels=None, name='ElicAnalysis', **kwargs):
        super().__init__(name=name, **kwargs)
        if len(channels) != 4:
            raise ValueError(f'ELIC uses 4 conv layers (not {channels}).')
        if output_channels is not None and output_channels != channels[-1]:
            raise ValueError(f'output_channels specified but does not match channels: {output_channels} vs. {channels}')
        self._output_depth = channels[-1]
        conv = functools.partial(build_conv, kernel_size=5, strides=2, act=None, up_or_down='down')
        convs = [conv(output_channels=c) for c in channels]
        rb = functools.partial(ResidualBlock, activation='relu')

        def build_act():
            return [rb() for _ in range(num_residual_blocks)]
        blocks = [tf.keras.layers.Lambda(lambda x: x / 255.0), convs[0], *build_act(), convs[1], *build_act(), SimpleAttention(), convs[2], *build_act(), convs[3], SimpleAttention()]
        blocks = list(filter(None, blocks))
        self._transform = tf.keras.Sequential(blocks)

    def call(self, x, training=None):
        del training
        return self._transform(x)

    @property
    def output_depth(self):
        return self._output_depth

    def compute_output_shape(self, input_shape):
        shape = tf.TensorShape(input_shape).as_list()
        h, w = (shape[-3], shape[-2])
        shape[-3:] = [h // 16, w // 16, self.output_depth]
        return tf.TensorShape(shape)

# Setup arguments for ElicAnalysis
ARGS = {
    'num_residual_blocks': 3,
    'channels': (128, 160, 192, 192),
    'output_channels': None,
    'name': 'ElicAnalysis',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ElicAnalysis — 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 ElicAnalysis 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
ResidualBlock Ran
ran on a synthesized input
Nikolai10/ELIC/elic_transforms.py
code served (permissive licence) · get_code("31694f6a2955716c")
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 EagerTensor, ndim 4, 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 tensorflow as tf
import numpy as np

def build_conv(output_channels=0, kernel_size=3, strides=1, act='relu', up_or_down='down', name=None):
    """Builds either an upsampling or downsampling conv layer."""
    layer_cls = dict(up=tf.keras.layers.Conv2DTranspose, down=tf.keras.layers.Conv2D)[up_or_down]
    return layer_cls(filters=output_channels, kernel_size=kernel_size, strides=strides, activation=act, use_bias=True, padding='same', name=name)

class ResidualBlock(tf.keras.layers.Layer):
    """Residual block from (Cheng 2020) and ELIC.

    (Cheng 2020) = https://arxiv.org/abs/2001.01568

    Reference PyTorch code from CompressAI:
    https://github.com/InterDigitalInc/CompressAI/blob/master/compressai/layers/layers.py#L208

    Reference TF code from Cheng:
    https://github.com/ZhengxueCheng/Learned-Image-Compression-with-GMM-and-Attention/blob/master/network.py#L41
    """

    def __init__(self, activation='relu', **kwargs):
        super().__init__(**kwargs)
        self._activation = activation

    def build(self, input_shape):
        c = input_shape[-1]
        self._block = tf.keras.Sequential([build_conv(output_channels=c // 2, kernel_size=1, act=self._activation), build_conv(output_channels=c // 2, kernel_size=3, act=self._activation), build_conv(output_channels=c, kernel_size=1, act=None)])

    def call(self, x):
        x += self._block(x)
        return x


INIT_ARGS = {
    'activation': 'relu',
}

ARGS = {
    'x': tf.random.normal((2, 4, 3, 8)),
}

if __name__ == '__main__':
    block = ResidualBlock(**INIT_ARGS)
    output = block(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output dtype: {output.dtype}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py could not observe it (read:AttributeError)
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)
SimpleAttention Ran
ran on a synthesized input
Nikolai10/ELIC/elic_transforms.py
code served (permissive licence) · get_code("6638cfe8b2d2bf1b")
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 EagerTensor, ndim 4, 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 tensorflow as tf
import numpy as np

# Define INIT_ARGS for SimpleAttention
INIT_ARGS = {}

# Create a small input tensor for ARGS
input_shape = (2, 8, 6, 4)  # batch=2, height=8, width=6, channels=4
input_tensor = tf.convert_to_tensor(np.random.randn(*input_shape).astype(np.float32))

# Define ARGS for SimpleAttention.call
ARGS = {'x': input_tensor}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, 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)
build_conv Ran
ran; our contract draft was wrong, not the code
Nikolai10/ELIC/elic_transforms.py
code served (permissive licence) · get_code("24226e51f5b91550")
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 Conv2D. 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 tensorflow as tf

ARGS = {
    'output_channels': 32,
    'kernel_size': 3,
    'strides': 1,
    'act': 'relu',
    'up_or_down': 'down',
    'name': 'conv_layer'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2D — a Conv2D output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2D 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
ckbd_anchor Ran
ran; our contract draft was wrong, not the code
JiangWeibeta/ELIC/utils/ckbd.py
code served (permissive licence) · get_code("1dea6f2b887daaba")
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 4, dtype family float, shape (2, 4, 6, 6) 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)

# Create a small 4D tensor with batch=2, channels=4, height=6, width=6
# The function uses indexing with 0::2 (even indices) and 1::2 (odd indices)
# so we need dimensions that support this slicing
y = torch.randn(2, 4, 6, 6)

ARGS = {
    "y": y
}
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 4, dtype family float, shape (2, 4, 6, 6) — shape (2, 4, 6, 6) 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
ckbd_merge Ran
ran, honoured the contract we drafted
JiangWeibeta/ELIC/utils/ckbd.py
code served (permissive licence) · get_code("efa4e736eee3e7b0")
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 float, shape (2, 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

torch.manual_seed(0)

# The function simply adds two arguments together
# So both anchor and nonanchor should be tensors of the same shape
anchor = torch.randn(2, 4)
nonanchor = torch.randn(2, 4)

ARGS = {
    "anchor": anchor,
    "nonanchor": nonanchor,
}
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 float, shape (2, 4) — shape (2, 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
ckbd_split Ran
ran; our contract draft was wrong, not the code
JiangWeibeta/ELIC/utils/ckbd.py
code served (permissive licence) · get_code("3d11f5d280825fed")
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 5, 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

torch.manual_seed(0)

# The function ckbd_split takes a tensor y and splits it into anchor and non-anchor
# based on checkerboard pattern indexing. It requires:
# - y: a 4D tensor (batch, channels, height, width) with height and width >= 2

y = torch.randn(2, 3, 4, 5)  # batch=2, channels=3, height=4, width=5

ARGS = {
    "y": y
}
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 5, 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
conv Ran
ran; our contract draft was wrong, not the code
JiangWeibeta/ELIC/modules/layers/conv.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from micmic123/qmapcompression, is pointer only (licence: NONE) · get_code("f2cea3e9848ae52d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from micmic123/qmapcompression, 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.

conv1x1 Ran
ran; our contract draft was wrong, not the code
JiangWeibeta/ELIC/modules/layers/conv.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from UnoC-727/NeFIC, is pointer only (licence: NONE) · get_code("15eae621014906be")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from UnoC-727/NeFIC, 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.

deconv Ran
ran; our contract draft was wrong, not the code
JiangWeibeta/ELIC/modules/layers/conv.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from micmic123/qmapcompression, is pointer only (licence: NONE) · get_code("1afd37c576493fea")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from micmic123/qmapcompression, 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.

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, 7 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 7 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
conv 14 other papers
3 dated earlier, 1 the same month, 9 later, 1 same year, order not determinable · 1 only as an assembly brick
Deng_Deep_Homography_for_Efficient_Stereo_Image_Compression_CVPR_2021_paper (2021 (year only))
Deep Homography for Efficient Stereo Image Compression
2108.03690 (2021-08)
Enhanced Invertible Encoding for Learned Image Compression
2108.09551 (2021-08)
Variable-Rate Deep Image Compression through Spatially-Adaptive Feature Transform
and 11 more not named here
conv1x1 12 other papers
1 the same month, 10 later, 1 same year, order not determinable
aaai_19890 (2022 (year only))
OoDHDR-Codec: Out-of-Distribution Generalization for HDR Image Compression
2203.08450 (2022-03)
The Devil Is in the Details: Window-based Attention for Image Compression
2204.11448 (2022-04)
High-Efficiency Lossy Image Coding Through Adaptive Neighborhood Information Aggregation
and 9 more not named here
deconv 7 other papers
1 dated earlier, 6 later · 1 only as an assembly brick
2108.09551 (2021-08)
Variable-Rate Deep Image Compression through Spatially-Adaptive Feature Transform
2306.05085 (2023-06)
TransTIC: Transferring Transformer-based Image Compression from Human Perception to Machine Perception
2307.15421 (2023-07)
MLIC ++ : Linear Complexity Multi-Reference Entropy Modeling for Learned Image Compression
and 4 more not named here
build_conv
brick of this paper's assembly: helper
1 other paper
1 later
2212.13824 (2022-12)
Multi-Realism Image Compression with a Conditional Generator
ckbd_anchor 1 other paper
1 later
2603.15129 (2026-03)
Next-Frame Decoding for Ultra-Low-Bitrate Image Compression with Video Diffusion Priors
ckbd_merge 1 other paper
1 later
2603.15129 (2026-03)
Next-Frame Decoding for Ultra-Low-Bitrate Image Compression with Video Diffusion Priors
ckbd_split 1 other paper
1 later
2603.15129 (2026-03)
Next-Frame Decoding for Ultra-Low-Bitrate Image Compression with Video Diffusion Priors

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

Recently, learned image compression techniques have achieved remarkable performance, even surpassing the best manually designed lossy image coders. They are promising to be large-scale adopted. For the sake of practicality, a thorough investigation of the architecture design of learned image compression, regarding both compression performance and running speed, is essential. In this paper, we first propose uneven channel-conditional adaptive coding, motivated by the observation of energy compaction in learned image compression. Combining the proposed uneven grouping model with existing context models, we obtain a spatial-channel contextual adaptive model to improve the coding performance without damage to running speed. Then we study the structure of the main transform and propose an efficient model, ELIC, to achieve state-ofthe-art speed and compression ability. With superior performance, the proposed model also supports extremely fast preview decoding and progressive decoding, which makes the coming application of learning-based image compression more promising.

For agents

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

get_harvested_code_for_paper("2203.10886")
get_code_for_paper("2203.10886")
have("2203.10886")

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

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

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

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

Connect an agent — have() is free.