SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.12348 · NeurIPS · 2023

ResShift: Efficient Diffusion Model for Image Super-resolution by Residual Shifting

Chen Loy, Zongsheng Yue, Jianyi Wang

arXiv · PDF · Open in the Atlas

Code that ran

14 of 20 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 6 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/2307.12348.json · badge: /api/ran/2307.12348.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
zsyOAOA/ResShift canonical (classifier label)
classifier basis not recorded on the link
14 ran · 3 no recorded run
zsyoaoa/resshift community
Papers with Code archive
0 ran · 3 no recorded run
FunctionStatusWhere it lives
approx_standard_normal_cdf Ran
ran; our contract draft was wrong, not the code
zsyOAOA/ResShift/models/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cfd76fd0d89574a4")
How it ran

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

batch_inpainging_from_grad Ran
ran; our contract draft was wrong, not the code
zsyOAOA/ResShift/models/solvers.py
pointer only (licence: NONE); the stored copy get_code serves, from wyf0912/sinsr, is pointer only (licence: NOASSERTION) · get_code("b1222f0a2b9b12cf")
How it ran

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

discretized_gaussian_log_likelihood Ran
ran; our contract draft was wrong, not the code
zsyOAOA/ResShift/models/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cd33283d615fb3d7")
How it ran

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

fill_image_from_gradx Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zsyOAOA/ResShift/models/solvers.py
pointer only (licence: NONE); the stored copy get_code serves, from wyf0912/sinsr, is pointer only (licence: NOASSERTION) · get_code("328ccd09e308cea4")
How it ran

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

get_named_beta_schedule Ran
ran, honoured the contract we drafted
zsyOAOA/ResShift/models/gaussian_diffusion.py
pointer only (licence: NONE); the stored copy get_code serves, from freemasti/diffo, is pointer only (licence: NONE) · get_code("0b038dff8f46da2e")
How it ran

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

get_named_eta_schedule Ran
ran, honoured the contract we drafted
zsyOAOA/ResShift/models/gaussian_diffusion.py
pointer only (licence: NONE); the stored copy get_code serves, from freemasti/diffo, is pointer only (licence: NONE) · get_code("f5813dc998fd36ae")
How it ran

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

inpainting_from_grad Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zsyOAOA/ResShift/models/solvers.py
pointer only (licence: NONE); the stored copy get_code serves, from wyf0912/sinsr, is pointer only (licence: NOASSERTION) · get_code("19401265ecad449a")
How it ran

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

make_master_params Ran
ran; our contract draft was wrong, not the code
zsyOAOA/ResShift/models/fp16_util.py
pointer only (licence: NONE); the stored copy get_code serves, from freemasti/diffo, is pointer only (licence: NONE) · get_code("a863803cdd5f3ce6")
How it ran

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

normal_kl Ran
ran, honoured the contract we drafted
zsyOAOA/ResShift/models/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/agrol, is pointer only (licence: NOASSERTION) · get_code("cf2798b666b231ca")
How it ran

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

space_timesteps Ran
ran; our contract draft was wrong, not the code
zsyOAOA/ResShift/models/respace.py
pointer only (licence: NONE); the stored copy get_code serves, from freemasti/diffo, is pointer only (licence: NONE) · get_code("623a410ceb89e7f3")
How it ran

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

unflatten_master_params Ran
ran; our contract draft was wrong, not the code
zsyOAOA/ResShift/models/fp16_util.py
pointer only (licence: NONE); the stored copy get_code serves, from freemasti/diffo, is pointer only (licence: NONE) · get_code("30e43bcf12d042b0")
How it ran

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

window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zsyOAOA/ResShift/models/swin_transformer.py
pointer only (licence: NONE); the stored copy get_code serves, from wyf0912/sinsr, is pointer only (licence: NOASSERTION) · get_code("9ecac3983260d58d")
How it ran

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

window_reverse Ran
ran; our contract draft was wrong, not the code
zsyOAOA/ResShift/models/swin_transformer.py
pointer only (licence: NONE); the stored copy get_code serves, from wyf0912/sinsr, is pointer only (licence: NOASSERTION) · get_code("07fc5a1c675639fb")
How it ran

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

zero_module Ran
ran; our contract draft was wrong, not the code
zsyOAOA/ResShift/models/basic_ops.py
pointer only (licence: NONE) · get_code("129b804760b3115f")
How it ran

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

GaussianDiffusion Not yet run
unverified (harvested, no recorded run)
zsyoaoa/resshift/models/gaussian_diffusion.py
pointer only (licence: NOASSERTION) · get_code("d0f3854e960315c0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zsyoaoa/resshift (NOASSERTION). 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.

LossType Not yet run
unverified (harvested, no recorded run)
zsyoaoa/resshift/models/gaussian_diffusion.py
pointer only (licence: NOASSERTION) · get_code("5a5c1057ed2b86c8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zsyoaoa/resshift (NOASSERTION). 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.

ModelMeanType Not yet run
unverified (harvested, no recorded run)
zsyoaoa/resshift/models/gaussian_diffusion.py
pointer only (licence: NOASSERTION) · get_code("eb2b278c1aab645e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zsyoaoa/resshift (NOASSERTION). 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.

avg_pool_nd Not yet run
unverified (harvested, no recorded run)
zsyOAOA/ResShift/models/basic_ops.py
pointer only (licence: NONE) · get_code("ecd0fc28815b65ae")
How it ran

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

conv_nd Not yet run
unverified (harvested, no recorded run)
zsyOAOA/ResShift/models/basic_ops.py
pointer only (licence: NONE) · get_code("fe4eb545bbb728e0")
How it ran

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

create_named_schedule_sampler Not yet run
unverified (harvested, no recorded run)
zsyOAOA/ResShift/models/resample.py
pointer only (licence: NONE); the stored copy get_code serves, from freemasti/diffo, is pointer only (licence: NONE) · get_code("744d8fd5890b0002")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zsyOAOA/ResShift 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 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 17 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 7 the same month, 17 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
zero_module 196 other papers
55 dated earlier, 5 the same month, 135 later, 1 same year, order not determinable · 49 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
and 193 more not named here
normal_kl 160 other papers
47 dated earlier, 3 the same month, 108 later, 2 same year, order not determinable · 19 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 157 more not named here
approx_standard_normal_cdf 154 other papers
45 dated earlier, 3 the same month, 104 later, 2 same year, order not determinable · 17 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 151 more not named here
discretized_gaussian_log_likelihood 128 other papers
45 dated earlier, 3 the same month, 78 later, 2 same year, order not determinable · 16 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 125 more not named here
conv_nd 121 other papers
48 dated earlier, 3 the same month, 69 later, 1 same year, order not determinable · 32 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 118 more not named here
avg_pool_nd 113 other papers
49 dated earlier, 3 the same month, 60 later, 1 same year, order not determinable · 31 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2110.11291 (2021-10)
Likelihood Training of Schrödinger Bridge using Forward-Backward SDEs Theory
and 110 more not named here
create_named_schedule_sampler 45 other papers
16 dated earlier, 2 the same month, 27 later
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
and 42 more not named here
make_master_params 16 other papers
6 dated earlier, 10 later
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
2206.07696 (2022-06)
Diffusion Models for Video Prediction and Infilling
and 13 more not named here
unflatten_master_params 15 other papers
6 dated earlier, 9 later
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
2206.07696 (2022-06)
Diffusion Models for Video Prediction and Infilling
and 12 more not named here
get_named_beta_schedule 2 other papers
2 later
2311.14760 (2023-11)
SinSR: Diffusion-Based Image Super-Resolution in a Single Step
2506.16572 (2025-06)
Single-step Diffusion for Image Compression at Ultra-Low Bitrates
get_named_eta_schedule 2 other papers
2 later
2311.14760 (2023-11)
SinSR: Diffusion-Based Image Super-Resolution in a Single Step
2506.16572 (2025-06)
Single-step Diffusion for Image Compression at Ultra-Low Bitrates
space_timesteps 2 other papers
2 later
2311.14760 (2023-11)
SinSR: Diffusion-Based Image Super-Resolution in a Single Step
2506.16572 (2025-06)
Single-step Diffusion for Image Compression at Ultra-Low Bitrates
batch_inpainging_from_grad 1 other paper
1 later
2311.14760 (2023-11)
SinSR: Diffusion-Based Image Super-Resolution in a Single Step
fill_image_from_gradx 1 other paper
1 later
2311.14760 (2023-11)
SinSR: Diffusion-Based Image Super-Resolution in a Single Step
inpainting_from_grad 1 other paper
1 later
2311.14760 (2023-11)
SinSR: Diffusion-Based Image Super-Resolution in a Single Step
window_partition 1 other paper
1 later
2311.14760 (2023-11)
SinSR: Diffusion-Based Image Super-Resolution in a Single Step
window_reverse 1 other paper
1 later
2311.14760 (2023-11)
SinSR: Diffusion-Based Image Super-Resolution in a Single Step

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

Diffusion-based image super-resolution (SR) methods are mainly limited by the low inference speed due to the requirements of hundreds or even thousands of sampling steps. Existing acceleration sampling techniques inevitably sacrifice performance to some extent, leading to over-blurry SR results. To address this issue, we propose a novel and efficient diffusion model for SR that significantly reduces the number of diffusion steps, thereby eliminating the need for post-acceleration during inference and its associated performance deterioration. Our method constructs a Markov chain that transfers between the high-resolution image and the low-resolution image by shifting the residual between them, substantially improving the transition efficiency. Additionally, an elaborate noise schedule is developed to flexibly control the shifting speed and the noise strength during the diffusion process. Extensive experiments demonstrate that the proposed method obtains superior or at least comparable performance to current state-of-the-art methods on both synthetic and real-world datasets, even only with 15 sampling steps. Our code and model are available at https://github.com/zsyOAOA/ResShift. 37th Conference on Neural Information Processing Systems (NeurIPS 2023).

For agents

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

get_harvested_code_for_paper("2307.12348")
get_code_for_paper("2307.12348")
have("2307.12348")

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

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

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

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

Connect an agent — have() is free.