SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Zhang_Lightweight_Image_Super-Resolution_with_Superpixel_Token_Interaction_ICCV_2023_paper · ICCV · 2023

Lightweight Image Super-Resolution with Superpixel Token Interaction

Yi Liu, Xiaochun Cao, Wenqi Ren, Aiping Zhang

Open in the Atlas

Code that ran

5 of 6 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, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/Zhang_Lightweight_Image_Super-Resolution_with_Superpixel_Token_Interaction_ICCV_2023_paper.json · badge: /api/ran/Zhang_Lightweight_Image_Super-Resolution_with_Superpixel_Token_Interaction_ICCV_2023_paper.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
ArcticHare105/SPIN canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
calc_init_centroid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ArcticHare105/SPIN/models/spin.py
code served (permissive licence) · get_code("6bd1a66575521714")
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. 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

torch.manual_seed(0)

# Create a small batch of images: (B=2, C=3, H=8, W=6)
images = torch.randn(2, 3, 8, 6)

# Define superpixel grid dimensions
num_spixels_width = 2
num_spixels_height = 3

ARGS = {
    "images": images,
    "num_spixels_width": num_spixels_width,
    "num_spixels_height": num_spixels_height,
}
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 — 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: none by the harness; any seed is in the setup block
get_abs_indices Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ArcticHare105/SPIN/models/spin.py
code served (permissive licence) · get_code("fa8a3696baf4dd80")
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 (3, 216) 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)

# Construct arguments for get_abs_indices
# Parameters needed: init_label_map, num_spixels_width

# init_label_map: shape (b, n_pixel) - batch of label maps
# The function uses it to get batch size b, pixel count n_pixel, device, and treats values as superpixel indices
b = 2
n_pixel = 12
# Create label map with superpixel indices (should be reasonable indices given num_spixels_width)
init_label_map = torch.randint(0, 8, (b, n_pixel), dtype=torch.long)

# num_spixels_width: used to compute relative_spix_indices offsets
# Should be a reasonable superpixel grid width
num_spixels_width = 4

ARGS = {
    "init_label_map": init_label_map,
    "num_spixels_width": num_spixels_width,
}
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 (3, 216) — shape (3, 216) 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
import_module Ran
ran; our contract draft was wrong, not the code
ArcticHare105/SPIN/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from csslc/ea-adam, is pointer only (licence: NONE) · get_code("e3e66322a0bb58d4")
How it ran

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

prepare_qat Ran
ran; our contract draft was wrong, not the code
ArcticHare105/SPIN/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from csslc/ea-adam, is pointer only (licence: NONE) · get_code("619f528df767c8e0")
How it ran

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

rgb_to_ycbcr Ran
ran; our contract draft was wrong, not the code
ArcticHare105/SPIN/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from csslc/ea-adam, is pointer only (licence: NONE) · get_code("066d640151f9a162")
How it ran

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

create_model Not yet run
unverified (harvested, no recorded run)
ArcticHare105/SPIN/models/spin.py
code served (permissive licence) · get_code("59b3b03b02bdc48e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 1 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
get_abs_indices 2 other papers
1 dated earlier, 1 later
1807.10174 (2018-07)
Superpixel Sampling Networks
2407.07307 (2024-07)
Dual-stage Hyperspectral Image Classification Model with Spectral Supertoken
calc_init_centroid 1 other paper
1 dated earlier
1807.10174 (2018-07)
Superpixel Sampling Networks
import_module 1 other paper
1 same year, order not determinable
2312.15408 (2023-12)
Perception-Distortion Balanced Super-Resolution: A Multi-Objective Optimization Perspective
prepare_qat 1 other paper
1 same year, order not determinable
2312.15408 (2023-12)
Perception-Distortion Balanced Super-Resolution: A Multi-Objective Optimization Perspective
rgb_to_ycbcr 1 other paper
1 same year, order not determinable
2312.15408 (2023-12)
Perception-Distortion Balanced Super-Resolution: A Multi-Objective Optimization Perspective

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Transformer-based methods have demonstrated impressive results on single-image super-resolution (SISR) task. However, self-attention mechanism is computationally expensive when applied to the entire image. As a result, current approaches divide low-resolution input images into small patches, which are processed separately and then fused to generate high-resolution images. Nevertheless, this conventional regular patch division is too coarse and lacks interpretability, resulting in artifacts and non-similar structure interference during attention operations. To address these challenges, we propose a novel super token interaction network (SPIN). Our method employs superpixels to cluster local similar pixels to form the explicable local regions and utilizes intra-superpixel attention to enable local information interaction. It is interpretable because only similar regions complement each other and dissimilar regions are excluded. Moreover, we design a superpixel cross-attention module to facilitate information propagation via the surrogation of superpixels. Extensive experiments demonstrate that the proposed SPIN model performs favorably against the state-of-the-art SR methods in terms of accuracy and lightweight. Code is available at https://github.com/ArcticHare105/SPIN .

For agents

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

get_harvested_code_for_paper("Zhang_Lightweight_Image_Super-Resolution_with_Superpixel_Token_Interaction_ICCV_2023_paper")
get_code_for_paper("Zhang_Lightweight_Image_Super-Resolution_with_Superpixel_Token_Interaction_ICCV_2023_paper")
have("Zhang_Lightweight_Image_Super-Resolution_with_Superpixel_Token_Interaction_ICCV_2023_paper")

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

curl https://syntology.ai/api/ran/Zhang_Lightweight_Image_Super-Resolution_with_Superpixel_Token_Interaction_ICCV_2023_paper.json

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

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

Connect an agent — have() is free.