SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.11950 · CVPR · 2023

Learning A Sparse Transformer Network for Effective Image Deraining

Hao Li, Xiang Chen, Jinshan Pan, Mingqiang Li

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (8 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 3 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/2303.11950.json · badge: /api/ran/2303.11950.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
cschenxiang/drsformer marked official in Papers with Code
Papers with Code archive
8 ran · 3 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("50006ae54761f527")
How it ran

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

DilConv Ran
ran on a synthesized input · constructed an object; no result was computed
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("e2ef9c678fe3aa44")
How it ran

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

FeedForward Ran
ran on a synthesized input · constructed an object; no result was computed
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("5cfc302c76ee3b91")
How it ran

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

OALayer Ran
ran on a synthesized input · constructed an object; no result was computed
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("9ead1340d2ad5517")
How it ran

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

OperationLayer Ran
ran on a synthesized input · constructed an object; no result was computed
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("fffe92151028a264")
How it ran

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

ReLUConv Ran
ran on a synthesized input · constructed an object; no result was computed
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("b7c2f09ec69779da")
How it ran

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

SepConv Ran
ran on a synthesized input · constructed an object; no result was computed
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("7a5365697cfc3402")
How it ran

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

subnet Ran
ran on a synthesized input · constructed an object; no result was computed
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("1b2bc200cd85b70e")
How it ran

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

DRSformer Not yet run
unverified (harvested, no recorded run)
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("ae686cb3b8b5b1f9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, cschenxiang/drsformer 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. No invocation recorded.

GroupOLs Not yet run
unverified (harvested, no recorded run)
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("7b56e8b085b9944e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, cschenxiang/drsformer 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. No invocation recorded.

TransformerBlock Not yet run
unverified (harvested, no recorded run)
cschenxiang/drsformer/basicsr/models/archs/DRSformer_arch.py
pointer only (licence: NONE) · get_code("724b7c5be1319bc9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, cschenxiang/drsformer 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. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 10 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
TransformerBlock
brick of this paper's assembly: model
9 other papers
2 dated earlier, 2 the same month, 5 later · 5 only as an assembly brick
2102.02808 (2021-02)
Multi-Stage Progressive Image Restoration
2207.10040 (2022-07)
Single Frame Atmospheric Turbulence Mitigation: A Benchmark Study and A New Physics-Inspired Transformer Model
2303.06840 (2023-03)
DDFM: Denoising Diffusion Model for Multi-Modality Image Fusion
and 6 more not named here

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

Transformers-based methods have achieved significant performance in image deraining as they can model the non-local information which is vital for high-quality image reconstruction. In this paper, we find that most existing Transformers usually use all similarities of the tokens from the query-key pairs for the feature aggregation. However, if the tokens from the query are different from those of the key, the self-attention values estimated from these tokens also involve in feature aggregation, which accordingly interferes with the clear image restoration. To overcome this problem, we propose an effective DeRaining network, Sparse Transformer (DRSformer) that can adaptively keep the most useful self-attention values for feature aggregation so that the aggregated features better facilitate high-quality image reconstruction. Specifically, we develop a learnable top-k selection operator to adaptively retain the most crucial attention scores from the keys for each query for better feature aggregation. Simultaneously, as the naive feed-forward network in Transformers does not model the multi-scale information that is important for latent clear image restoration, we develop an effective mixed-scale feed-forward network to generate better features for image deraining. To learn an enriched set of hybrid features, which combines local context from CNN operators, we equip our model with mixture of experts feature compensator to present a cooperation refinement deraining scheme. Extensive experimental results on the commonly used benchmarks demonstrate that the proposed method achieves favorable performance against state-of-the-art approaches. The source code and trained models are available at https://github. com/cschenxiang/DRSformer.

For agents

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

get_harvested_code_for_paper("2303.11950")
get_code_for_paper("2303.11950")
have("2303.11950")

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

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

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

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

Connect an agent — have() is free.