All models

RGT

An image super-resolution Transformer that adds global context through attention to small aggregated feature maps.

6,055 operations Structure only

Structure-only capture: TorchLens recorded this graph without running real numbers through the model, so shapes and data types on the diagram are hypotheses, not measurements.

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 6,055 operations (35 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

Parameters
13.2M
Operations
6,055
Framework
PyTorch
Recurrent
No
Published
ICLR 2024
Cited by
42 (as of 27 October 2026)
Authors
Zheng Chen, Yulun Zhang, Jinjin Gu and others
License
Apache-2.0
Checked
Structure only: shapes and data types are hypotheses, not measurements.

Files

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

Details
Stable ID
m19644
Graph hash
bb76ba3324a85fcd3c37ced5f2adf4f65ed5c360f6592d8d778b2f27a3bc9cb1
Skeleton hash
6b99086b90943901d73fba8ba466824613da9f86102e9d435b07b71e8a4e76f5
Architecture hash
61882e3b660710cd1c4253f38d61187b2342cea3b0f4f8c133793b8ef58201d4
Diagram SHA-256
2b8ba48bb21b02b96be34ef430d03df19ef018f1a888cdcff1e9fcbbcdcdca02
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3

What it is

RGT, the Recursive Generalization Transformer, is an image super-resolution model that can use global spatial information and is suited to high-resolution images. Earlier Transformer methods for this task tend to apply self-attention only in a local region to limit its quadratic cost, and the paper argues that this local design restricts the use of global context.

RGT's answer is recursive-generalization self-attention (RG-SA), which keeps linear computational complexity while capturing global information. It first compresses the input features into small representative feature maps by recursively reusing a single depth-wise convolution. Cross-attention is then computed between the input features and those maps, so each token obtains a global receptive field. RG-SA blocks alternate with local self-attention blocks, because the aggregation loses some local details. A step called hybrid adaptive integration (HAI) then adds each block's input, scaled by a learnable adaptor, to the block's output.

The paper sets two versions: RGT-S has 6 residual groups of 6 Transformer blocks each, and RGT raises the number of groups to 8. On the Urban100 dataset at ×2, the paper reports that RGT outperforms CAT-A by 0.21 dB.

Key idea. RGT introduces recursive-generalization self-attention, which aggregates input features into small representative maps and uses cross-attention to them to capture global information at linear complexity.

  • rgt
  • recursive generalization transformer
  • image super-resolution
  • super resolution
  • image sr
  • rg-sa
  • recursive-generalization self-attention
  • hybrid adaptive integration
  • rgt-s

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

Cite the paper

@misc{chen2024recursivegeneralizationtransformerimage,
      title={Recursive Generalization Transformer for Image Super-Resolution}, 
      author={Zheng Chen and Yulun Zhang and Jinjin Gu and Linghe Kong and Xiaokang Yang},
      year={2024},
      eprint={2303.06373},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2303.06373}, 
}