All models

MASA

A reference-based super-resolution network with coarse-to-fine matching and spatially adaptive feature remapping.

Diffusion and generative · 1,201 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (999 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
4M
Operations
1,201
Framework
PyTorch
Recurrent
No
Published
CVPR 2021
Cited by
189 (as of 28 October 2026)
Authors
Liying Lu, Wenbo Li, Xin Tao and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m18036
Graph hash
0a9b447ed77bf7031bad68d5283d96054c8b89f530a67b332f99b7f164438292
Skeleton hash
cbc681bb3f02472afd46db462259da1388d9e5b5ceb890de0a62cd2cc2a55a0d
Architecture hash
ed5a7adef8bad4856ea8038c40ebe1724a1c18adea55be3c50dec77f2f170972
Diagram SHA-256
6d90a2a151744346fed95082b0fcd61928d87178bc161284c8351f7a69f27647
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

MASA-SR is a network for reference-based image super-resolution (RefSR), which uses an external reference image to help super-resolve a low-resolution image. Earlier patch-matching methods perform dense matching, which the paper says leads to very high computational cost and large memory usage. The paper adds that existing RefSR methods tend to ignore a potentially large difference in distribution between the low-resolution and reference images.

The Match & Extraction Module matches from coarse to fine: each block of low-resolution features first finds its most relevant block in the downsampled reference, and dense patch matching then runs only inside that pair of blocks. The Spatial Adaptation Module remaps the distribution of the reference features to that of the low-resolution features in a spatially adaptive way. A Dual Residual Aggregation Module then fuses the transferred reference features with the low-resolution features.

Unlike earlier methods that use a pre-trained VGG as the feature extractor, the encoder is trained from scratch along with the other parts of the network. The model is trained on the CUFED5 dataset with a ×4 upscale factor. The paper reports a two-orders-of-magnitude reduction, measured in FLOPS, in the cost of correspondence matching.

Key idea. MASA-SR pairs a coarse-to-fine Match & Extraction Module that cuts matching cost with a Spatial Adaptation Module that remaps reference features to the low-resolution image's distribution.

  • masa
  • masa-sr
  • reference-based super-resolution
  • refsr
  • image super-resolution
  • match & extraction module
  • spatial adaptation module
  • texture transfer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lu2021masasrmatchingaccelerationspatial,
      title={MASA-SR: Matching Acceleration and Spatial Adaptation for Reference-Based Image Super-Resolution}, 
      author={Liying Lu and Wenbo Li and Xin Tao and Jiangbo Lu and Jiaya Jia},
      year={2021},
      eprint={2106.02299},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2106.02299}, 
}