All models

SRFormer x4 (permuted self-attention SR)

A Transformer for single image super-resolution built on permuted self-attention.

2,652 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

This diagram has 2,652 operations (33 KB) and is drawn when you ask.

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

Family
SRFormer
Parameters
10.5M
Operations
2,652
Framework
PyTorch
Recurrent
No
Published
ICCV 2023
Cited by
393 (as of 26 October 2026)
Authors
Yupeng Zhou, Zhen Li, Chun-Le Guo and others
License
CC-BY-NC-4.0
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
m2701
Graph hash
e73797cdb6c30ebbea29590e5e8bfcb3a92bacafc28410cbf3064431f1d3d42c
Skeleton hash
287205fc58d27ab7a94e675eb338327d6c183d5a8075cf84f506b9a6044746df
Architecture hash
e179789f689a8ed499e60abfd028184f7f98b0c40beab62285268472e9049e82
Diagram SHA-256
b9d160c925204bd58fb955368e9918573c07385687e3f96e7a31a555efa8e5c9
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

This model is the classical super-resolution configuration of SRFormer with 4x upscaling.

About this model's family

SRFormer is a Transformer-based model for single image super-resolution. It starts from an earlier finding: a larger attention window improves Transformer super-resolution models such as SwinIR, but the computation overhead is also considerable. SRFormer is designed to keep the benefit of large-window self-attention with a smaller computational burden.

Its core is permuted self-attention (PSA), which balances channel and spatial information inside self-attention. In the authors' code, PSA compresses the channel dimension of the keys and values and keeps the channel dimension of the queries. The authors say PSA can be applied to existing super-resolution networks based on window self-attention.

The paper reports a 33.86dB PSNR score on the Urban100 dataset, 0.46dB higher than SwinIR, with fewer parameters and computations. The code repository gives results for classical, lightweight and real-world image super-resolution. A later revision of the paper scales the model up with a larger window size and more channels and names the result SRFormerV2.

Key idea. SRFormer introduces permuted self-attention, which builds large-range pairwise correlations in a super-resolution Transformer with less computation than the window self-attention of SwinIR.

  • srformer
  • srformerv2
  • permuted self-attention
  • psa
  • single image super-resolution
  • image super-resolution
  • image sr
  • lightweight image sr
  • upscaling

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

Cite the paper

@article{srformer2023,
  title = {SRFormer: Permuted Self-Attention for Single Image Super-Resolution},
  author = {Yupeng Zhou and Zhen Li and Chun-Le Guo and Song Bai and Ming-Ming Cheng and Qibin Hou},
  year = {2023},
  journal = {ICCV 2023},
  eprint = {2303.09735}
}