NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ShareFormer: Share Attention for Efficient Image Restoration

JiaKui Hu, Lujia Jin, Yanye LuOpenReview 2024 · Submission to ICLR 2024 · Rejected

Abstract

Transformer-based networks are gaining popularity due to their superior ability to handle long-range information. However, they come with significant drawbacks, such as long inference time, and challenging training processes. These limitations become even more pronounced when performing high-resolution image restoration tasks. We have noticed that there is a trade-off between models' latency time and their trainability. Including a convolutional module can improve the networks' trainability but not reduce their latency. Conversely, sparsification notably reduces latency but renders networks harder to optimize. To address these issues, a novel Transformer for image restoration called ShareFormer is proposed here. ShareFormer offers optimal performance with lower latency and better trainability than other Transformer-based methods. It achieves this by facilitating the sharing of the attention maps amongst neighboring blocks in the network, thereby considerably improving the inference speed. To maintain the model's information flow integrity, residual connections are added to the "Value" of self-attention. Several lesion studies indicate that incorporating residual connections on "Value" can aggregate the shallow transformers with shared attention, introducing a local inductive bias and making the network easier to optimize without the need for additional convolution. The effectiveness, efficiency, and easy-to-train of our ShareFormer is supported by numerous experimental results. Our code and pre-trained models will be open-sourced upon publication of the paper.
BibTeX
@misc{hu2024shareformer,
  author = {JiaKui Hu and Lujia Jin and Yanye Lu},
  title = {{ShareFormer: Share Attention for Efficient Image Restoration}},
  year = {2024},
  url = {https://openreview.net/forum?id=HXZK1Z8tHa},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2024},
}

Loading related content...

Figure