All models

dat_x4

A ×4 super-resolution Transformer that alternates spatial window and channel-wise self-attention.

Diffusion and generative · 82 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 (18 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
59.6K
Operations
82
Framework
PyTorch
Recurrent
No
Published
ICCV (arXiv 2023)
Cited by
496 (as of 29 October 2026)
Authors
Zheng Chen, Yulun Zhang, Jinjin Gu 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
m11764
Graph hash
f8f95dfeebc17516a000d71f287a2051dcb8605e84406d0bb5f52e55049bdbd8
Skeleton hash
6889b02735f24fa93cd8f55a55ee036882e0a1a8f268eea1e8f97a58874d624e
Architecture hash
7d22c659cf767162edfc37ee144d09e10c2d61f0e22ac42c586d47e8ba59801b
Diagram SHA-256
c352c01084895832e3f697a03648291e2a2569aa413ecb7cce5736fbda63cc79
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.dat_x4:build_dat_x4: build({})

What it is

DAT, the Dual Aggregation Transformer, is a Transformer model for image super-resolution. The task is to recover a high-resolution image from a low-resolution counterpart. Earlier super-resolution Transformers applied self-attention along one dimension, spatial or channel, and the authors set out to combine the two.

The network alternates two kinds of Transformer block, one based on spatial window self-attention and one on channel-wise self-attention. Because self-attention models global information, each block also runs a convolution in parallel to add locality. The adaptive interaction module (AIM) then re-weights the feature maps of the two branches. In the feed-forward part, the spatial-gate feed-forward network (SGFN) adds a gate made of a depth-wise convolution and an element-wise multiplication.

After the Transformer blocks, a reconstruction module upsamples the deep feature with pixel shuffle. The paper builds two sizes, DAT-S and DAT. Both are trained on DIV2K and Flickr2K. It reports that DAT performs better than the methods it was compared with, except for PSNR on Urban100 at ×4 against CAT-A.

Key idea. The paper builds a super-resolution Transformer that aggregates spatial and channel features across blocks, by alternating two attention types, and within blocks, through AIM and SGFN.

  • DAT
  • Dual Aggregation Transformer
  • image super-resolution
  • super-resolution transformer
  • adaptive interaction module
  • spatial-gate feed-forward network
  • channel-wise self-attention
  • x4 upscaling

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}, 
}