SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2201.03794 · AAAI · 2022

Efficient Non-local Contrastive Attention for Image Super-resolution

Jie Zhou, Yapeng Tian, Bin Xia, Wenming Yang, Qingmin Liao, Yucheng Hang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2201.03794.json · badge: /api/ran/2201.03794.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
zj-binxia/enlca marked official in Papers with Code
Papers with Code archive
5 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ENLA Ran
ran on a synthesized input · constructed an object; no result was computed
zj-binxia/enlca/src/model/ENLA.py
pointer only (licence: NONE) · get_code("630017fbfd183bd2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zj-binxia/enlca 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.

gaussian_orthogonal_random_matrix Ran
ran, honoured the contract we drafted
zj-binxia/enlca/src/model/ENLA.py
pointer only (licence: NONE) · get_code("dfaec139b0b89cc3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zj-binxia/enlca 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.

generalized_kernel Ran
ran; our contract draft was wrong, not the code
zj-binxia/enlca/src/model/ENLA.py
pointer only (licence: NONE) · get_code("3098ab3648cec16a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zj-binxia/enlca 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.

linear_attention Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from pkuzengqi/Skyformer
pointer only; the stored copy get_code serves, from pkuzengqi/Skyformer, is pointer only (licence: NONE) · get_code("285e3997b7d7c24b")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

orthogonal_matrix_chunk Ran
ran, honoured the contract we drafted
zj-binxia/enlca/src/model/ENLA.py
pointer only (licence: NONE) · get_code("b2edd96923818916")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zj-binxia/enlca 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.

softmax_kernel Ran
ran; our contract draft was wrong, not the code
zj-binxia/enlca/src/model/ENLA.py
pointer only (licence: NONE) · get_code("64fe070397373d0f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zj-binxia/enlca 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 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, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 3 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
linear_attention
brick of this paper's assembly: helper
3 other papers
3 dated earlier · 2 only as an assembly brick
2009.14794 (2020-09)
Rethinking Attention with Performers
2102.12122 (2021-02)
Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
2111.00035 (2021-11)
Skyformer: Remodel Self-Attention with Gaussian Kernel and Nyström Method
gaussian_orthogonal_random_matrix
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later
2009.14794 (2020-09)
Rethinking Attention with Performers
2310.13225 (2023-10)
Scalable Neural Network Kernels
generalized_kernel
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 2 only as an assembly brick
2009.14794 (2020-09)
Rethinking Attention with Performers
2102.12122 (2021-02)
Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions

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

Repositories linked to this paper

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

Abstract

Non-Local Attention (NLA) brings significant improvement for Single Image Super-Resolution (SISR) by leveraging intrinsic feature correlation in natural images. However, NLA gives noisy information large weights and consumes quadratic computation resources with respect to the input size, limiting its performance and application. In this paper, we propose a novel Efficient Non-Local Contrastive Attention (ENLCA) to perform long-range visual modeling and leverage more relevant non-local features. Specifically, ENLCA consists of two parts, Efficient Non-Local Attention (ENLA) and Sparse Aggregation. ENLA adopts the kernel method to approximate exponential function and obtains linear computation complexity. For Sparse Aggregation, we multiply inputs by an amplification factor to focus on informative features, yet the variance of approximation increases exponentially. Therefore, contrastive learning is applied to further separate relevant and irrelevant features. To demonstrate the effectiveness of ENLCA, we build an architecture called Efficient Non-Local Contrastive Network (ENLCN) by adding a few of our modules in a simple backbone. Extensive experimental results show that ENLCN reaches superior performance over state-of-the-art approaches on both quantitative and qualitative evaluations.

For agents

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

get_harvested_code_for_paper("2201.03794")
get_code_for_paper("2201.03794")
have("2201.03794")

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

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

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

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

Connect an agent — have() is free.