HAT (Hybrid Attention Transformer for image restoration)
A super-resolution Transformer that mixes channel attention, window self-attention and overlapping cross-attention.
Diffusion and generative · 2,752 operations Checked
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
- 20.8M
- Operations
- 2,752
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2023
- Cited by
- 1,223 (as of 24 October 2026)
- Authors
- Xiangyu Chen, Xintao Wang, Jiantao Zhou and others
- Source
- GitHub: XPixelGroup/HAT
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17216
- Graph hash
- dcbf026b381677a8cffcdb7538c13bb0a1e65b2045ebb6c9c19309d625235737
- Skeleton hash
- 9081b76dcda015040e8ec2b2438945c8edc6ac0d6a4487175f4f6218ee02ea9b
- Architecture hash
- eaa2bb620b3a74451c1d87ac172c0fc69c5699df54a0d0c40f0bd1dc98327f90
- Diagram SHA-256
- 6ba103fa5d67cee5de17461d61a610aa0986f8355bf661c2361b5197b48c980c
- 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 standard HAT, with 6 residual hybrid attention groups of 6 hybrid attention blocks each and 180 channels.
HAT, the Hybrid Attention Transformer, is a network for image super-resolution, the task of rebuilding a high-resolution image from a low-resolution input. Its authors used attribution analysis and found that earlier Transformer networks for this task use only a limited spatial range of the input.
HAT combines channel attention with window-based self-attention so that more input pixels contribute to the result. An overlapping cross-attention module strengthens the interaction between neighboring window features. The network body is a series of residual hybrid attention groups, each containing several hybrid attention blocks, an overlapping cross-attention block and a 3 × 3 convolution layer with a residual connection.
For training, the authors pre-train on ImageNet for the same super-resolution task and then fine-tune on the target dataset. HAT-L doubles the depth of HAT by raising the number of groups from 6 to 12, and HAT-S is a small version with fewer parameters. An extended version of the paper applies HAT to real-world image super-resolution, Gaussian image denoising and image compression artifacts reduction.
Key idea. HAT combines channel attention, window-based self-attention and a new overlapping cross-attention module so that a super-resolution Transformer uses more input pixels for reconstruction.
- HAT
- Hybrid Attention Transformer
- image super-resolution
- image restoration
- HAT-L
- HAT-S
- Activating More Pixels
- super-resolution transformer
- overlapping cross-attention
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chen2023activatingpixelsimagesuperresolution,
title={Activating More Pixels in Image Super-Resolution Transformer},
author={Xiangyu Chen and Xintao Wang and Jiantao Zhou and Yu Qiao and Chao Dong},
year={2023},
eprint={2205.04437},
archivePrefix={arXiv},
primaryClass={eess.IV},
url={https://arxiv.org/abs/2205.04437},
}