All models

hit_sr_x4

A hierarchical-window transformer for 4x image super-resolution with linear-cost spatial-channel attention.

Diffusion and generative · 67 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 (29 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
27.3K
Operations
67
Framework
PyTorch
Recurrent
No
Published
Lecture Notes in Computer Science (arXiv 2024)
Cited by
3 (as of 5 October 2026)
Authors
Xiang Zhang, Yulun Zhang, Fisher Yu
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
m11911
Graph hash
54238e90c20f90a3179a531fe998e2a6b5f4273ff54b026ade9bc80130767549
Skeleton hash
2d2c970fe9d0cb30f53d53d4923c8a29b5663c3631eeea9c6778a17a333a5aee
Architecture hash
1ae5a3eae3e5057d96dcad946476e32ac9fa1e375cd90f4d051bc3f116f606f3
Diagram SHA-256
f687182044ea2738df49de58a6766ab58eb71a20aed115539b6db6a2260f9f47
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.hit_sr_x4:build_hit_sr_x4: build({})

What it is

HiT-SR is a recipe for turning a transformer-based super-resolution network into a hierarchical transformer, gaining multi-scale features while keeping the design efficient. The problem it addresses: popular transformer SR methods use window self-attention whose cost grows quadratically with window size, so they settle for fixed small windows and limited receptive fields. The fix has two parts: expanding hierarchical windows replace the fixed small ones, aggregating features at different scales and establishing long-range dependencies. Because large windows are expensive, a spatial-channel correlation method with linear complexity in window size gathers spatial and channel information from those hierarchical windows.

Applied to SwinIR-Light, SwinIR-NG, and SRFormer-Light, the improved versions are reported to reach state-of-the-art results with fewer parameters, fewer FLOPs, and faster speeds.

Key idea. A general strategy that converts transformer SR networks into hierarchical transformers, pairing expanding hierarchical windows with linear-complexity spatial-channel correlation.

  • hit-sr
  • hit_sr_x4
  • hierarchical transformer
  • image super-resolution
  • 4x super-resolution
  • swinir
  • srformer
  • efficient sr

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

Cite the paper

@misc{zhang2024hitsrhierarchicaltransformerefficient,
      title={HiT-SR: Hierarchical Transformer for Efficient Image Super-Resolution}, 
      author={Xiang Zhang and Yulun Zhang and Fisher Yu},
      year={2024},
      eprint={2407.05878},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2407.05878}, 
}