Compacter: A Lightweight Transformer for Image Restoration
Although deep learning-based methods have made significant advances in the field of image restoration (IR), they often suffer from excessive model parameters. To tackle this problem, this work proposes a compact Transformer (Compacter) for lightweight image restoration by making several key designs. We employ the concepts of projection sharing, adaptive interaction, and heterogeneous aggregation to develop a novel Compact Adaptive Self-Attention (CASA). Specifically, CASA utilizes shared projection to generate Query, Key, and Value to simultaneously model spatial and channel-wise self-attention. The adaptive interaction process is then used to propagate and integrate global information from two different dimensions, thus enabling omnidirectional relational interaction. Finally, a depth-wise convolution is incorporated on Value to complement heterogeneous local information, enabling global-local coupling. Moreover, we propose a Dual Selective Gated Module (DSGM) to dynamically encapsulate the globality into each pixel for context-adaptive aggregation. Extensive experiments demonstrate that our Compacter achieves state-of-the-art performance for a variety of lightweight IR tasks with approximately 400K parameters.
Authors
- Zhijian Wu (ORCID: https://orcid.org/0000-0002-3040-3287)
- Jun Li (ORCID: https://orcid.org/0000-0002-9781-8954)
- Dingjiang Huang
- Yang Hu
Institutions
- Nanjing Normal University (CN)
- New York University (US)
- East China Normal University (CN)
Publication Details
- Published
- 2024-10-26
- DOI
- https://doi.org/10.1145/3664647.3680811
- Primary Topic
- Advanced Image Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00