SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.04970 · ICCV · 2023

LMR: A Large-Scale Multi-Reference Dataset for Reference-based Super-Resolution

Errui Ding, Xin Li, Fu Li, Zhaoxiang Zhang, Lin Zhang, Dongliang He

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 6 failures of our instrument; 1 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.04970.json · badge: /api/ran/2303.04970.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
wdmwhh/MRefSR canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
AttentionBlock Ran
ran; our contract draft was wrong, not the code
wdmwhh/MRefSR/basicsr/archs/dfdnet_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from RuoyuGuo/P-PatchDiff, is pointer only (licence: NONE) · get_code("8d3cd21cd5c3181a")
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 RuoyuGuo/P-PatchDiff, 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.

adaptive_instance_normalization Ran
ran; our contract draft was wrong, not the code
wdmwhh/MRefSR/basicsr/archs/dfdnet_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from RuoyuGuo/P-PatchDiff, is pointer only (licence: NONE) · get_code("b7c6741eed724350")
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 RuoyuGuo/P-PatchDiff, 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.

calc_mean_std Ran
ran; our contract draft was wrong, not the code
wdmwhh/MRefSR/basicsr/archs/dfdnet_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from RuoyuGuo/P-PatchDiff, is pointer only (licence: NONE) · get_code("a7e8af4ef5efc131")
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 RuoyuGuo/P-PatchDiff, 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.

get_part_location Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wdmwhh/MRefSR/inference/inference_dfdnet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from RuoyuGuo/P-PatchDiff, is pointer only (licence: NONE) · get_code("9adf4d768799f874")
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 RuoyuGuo/P-PatchDiff, 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.

reduce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wdmwhh/MRefSR/basicsr/losses/loss_util.py
code served (permissive licence) · get_code("a648a03a952822c0")
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 0, dtype family float, shape () 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.functional as F

torch.manual_seed(0)

# Create a small elementwise loss tensor (batch=2, elements=4)
loss = torch.tensor([[0.5, 1.2, 0.3, 0.8], [0.9, 0.4, 1.1, 0.6]], dtype=torch.float32)

# Test with 'mean' reduction
reduction = 'mean'

ARGS = {
    'loss': loss,
    'reduction': reduction,
}
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 0, dtype family float, shape () — shape () 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
weight_reduce_loss Ran
ran; our contract draft was wrong, not the code
wdmwhh/MRefSR/basicsr/losses/loss_util.py
code served (permissive licence) · get_code("1ba39317ea81871a")
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 0, dtype family float, shape () 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.functional as F

torch.manual_seed(0)

# Create a small loss tensor (batch_size=2, num_elements=4)
loss = torch.rand(2, 4)

# Create a weight tensor with matching dimensions
# weight.dim() == loss.dim() and weight.size(1) == loss.size(1)
weight = torch.rand(2, 4)

# Test different reduction modes
reduction = 'mean'

ARGS = {
    'loss': loss,
    'weight': weight,
    'reduction': reduction
}
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 0, dtype family float, shape () — shape () 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
weighted_loss Not yet run
unverified (harvested, no recorded run)
wdmwhh/MRefSR/basicsr/losses/loss_util.py
code served (permissive licence) · get_code("cf63f8afc13f62a7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 7 later) and 0 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
weighted_loss 44 other papers
5 dated earlier, 2 the same month, 34 later, 3 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 41 more not named here
reduce_loss 43 other papers
5 dated earlier, 2 the same month, 34 later, 2 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 40 more not named here
weight_reduce_loss 43 other papers
5 dated earlier, 2 the same month, 33 later, 3 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 40 more not named here
adaptive_instance_normalization 16 other papers
15 later, 1 same year, order not determinable
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
2305.07015 (2023-05)
Exploiting Diffusion Prior for Real-World Image Super-Resolution
and 13 more not named here
AttentionBlock 14 other papers
13 later, 1 same year, order not determinable
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
2305.07015 (2023-05)
Exploiting Diffusion Prior for Real-World Image Super-Resolution
and 11 more not named here
calc_mean_std 14 other papers
13 later, 1 same year, order not determinable
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
2305.07015 (2023-05)
Exploiting Diffusion Prior for Real-World Image Super-Resolution
and 11 more not named here
get_part_location 2 other papers
2 later
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
2609.01123 (2026-09)
P-PatchDiff: Progressive Patch Diffusion Models for Low-light Image Enhancement

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

It is widely agreed that reference-based super-resolution (RefSR) achieves superior results by referring to similar high quality images, compared to single image superresolution (SISR). Intuitively, the more references, the better performance. However, previous RefSR methods have all focused on single-reference image training, while multiple reference images are often available in testing or practical applications. The root cause of such trainingtesting mismatch is the absence of publicly available multireference SR training datasets, which greatly hinders research efforts on multi-reference super-resolution. To this end, we construct a large-scale, multi-reference superresolution dataset, named LMR. It contains 112,142 groups of 300×300 training images, which is 10× of the existing largest RefSR dataset. The image size is also some times larger. More importantly, each group is equipped with 5 reference images with different similarity levels. Furthermore, we propose a new baseline method for multireference super-resolution: MRefSR, including a Multi-Reference Attention Module (MAM) for feature fusion of an arbitrary number of reference images, and a Spatial Aware Filtering Module (SAFM) for the fused feature selection. The proposed MRefSR achieves significant improvements over state-of-the-art approaches on both quantitative and qualitative evaluations. Our code and data are available at: https://github.com/wdmwhh/MRefSR.

For agents

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

get_harvested_code_for_paper("2303.04970")
get_code_for_paper("2303.04970")
have("2303.04970")

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

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

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

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

Connect an agent — have() is free.