All models

dat_sr_x4

Super-resolution Transformer that alternates spatial window attention and channel attention, here at x4 upscaling.

Diffusion and generative · 5,131 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 5,131 operations (40 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
14.8M
Operations
5,131
Framework
PyTorch
Recurrent
No
Published
ICCV 2023
Cited by
489 (as of 20 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
m4084
Graph hash
74ce5d52ffa59c3450c22f30fcdf525dab561a69d45b03aaa73a2af2f4ed18f2
Skeleton hash
de0347bc3c4191624af331b040869f872c4c9fae37f5581692c0978ca72b1802
Architecture hash
be9b201deeb8cec5d7b03b99172fd3af4e6877cfe1ed4fe9312bd25fc9b30409
Diagram SHA-256
469c06b2483a1d53d7c789eaeee6ec10a32ccdc8316b62846caf61ca0fefc872
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3

What it is

DAT, the Dual Aggregation Transformer, is a Transformer model for image super-resolution, the task of recovering a high-resolution image from a low-resolution one. Earlier restoration Transformers applied self-attention along one dimension, spatial or channel, and the paper sets out to combine the two.

The network is built from pairs of Transformer blocks that alternate: one block computes self-attention inside spatial windows, the next computes it across channels. Inside each block a convolution branch runs in parallel with the attention to add local detail. The adaptive interaction module (AIM) sits between the two branches and re-weights their features along the spatial or the channel dimension. The feed-forward part changes as well: the spatial-gate feed-forward network (SGFN) adds a gate made of a depth-wise convolution and an element-wise multiplication. The output image is produced at the end by pixel shuffle upsampling.

The paper builds two variants, DAT-S and DAT, and the larger DAT uses a channel expansion factor of 4 and an 8×32 attention window. Both have 6 residual groups with 6 attention heads and a channel dimension of 180. The authors report that DAT outperforms the methods they compare against while keeping lower complexity and model size.

Key idea. DAT alternates spatial window and channel-wise self-attention across consecutive Transformer blocks and adds two modules, AIM and SGFN, that mix spatial and channel information within each block.

  • DAT
  • Dual Aggregation Transformer
  • DAT-SR
  • image super-resolution
  • x4 upscaling
  • single image super-resolution
  • AIM
  • SGFN
  • channel self-attention
  • dat_sr_x4

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

Cite the paper

@misc{chen2023dualaggregationtransformerimage,
      title={Dual Aggregation Transformer for Image Super-Resolution}, 
      author={Zheng Chen and Yulun Zhang and Jinjin Gu and Linghe Kong and Xiaokang Yang and Fisher Yu},
      year={2023},
      eprint={2308.03364},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2308.03364}, 
}