KNN Local Attention for Image Restoration
Recent works attempt to integrate the non-local operation with CNNs or Transformer, achieving remarkable performance in image restoration tasks. The global similarity, however, has the problems of the lack of locality and the high computational complexity that is quadratic to an input resolution. The local attention mechanism alleviates these issues by introducing the inductive bias of the locality with convolution-like operators. However, by focusing only on adjacent positions, the local attention suffers from an insufficient receptive field for image restoration. In this paper, we propose a new attention mechanism for image restoration, called k-NN Image Transformer (KiT), that rectifies above mentioned limitations. Specifically, the KiT groups k-nearest neighbor patches with locality sensitive hashing (LSH), and the grouped patches are aggregated into each query patch by performing a pair-wise local attention. In this way, the pair-wise operation establishes non-local connectivity while maintaining the desired properties of the local attention, i.e., inductive bias of locality and linear complexity to input resolution. The proposed method outperforms state-of-the-art restoration approaches on image denoising, deblurring and deraining benchmarks. The code will be available at https://sites.google.com/view/cvpr22-kit.
Code (0)
등록된 구현이 없습니다.
Tasks
DeblurringDenoisingImage DenoisingImage RestorationInductive BiasRain RemovalMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
DiNAT-IR: Exploring Dilated Neighborhood Attention for High-Quality Image Restoration
Transformers, with their self-attention mechanisms for modeling long-range dependencies, have become a dominant paradigm in image restoration tasks. However, the high computational cost of self-attention limits scalabili…
Image RestorationCOLA-Net: Collaborative Attention Network for Image Restoration
Local and non-local attention-based methods have been well studied in various image restoration tasks while leading to promising performance. However, most of the existing methods solely focus on one type of attention me…
CoLADenoisingImage DenoisingImage RestorationSnowFormer: Context Interaction Transformer with Scale-awareness for Single Image Desnowing
Due to various and complicated snow degradations, single image desnowing is a challenging image restoration task. As prior arts can not handle it ideally, we propose a novel transformer, SnowFormer, which explores effici…
Image RestorationSingle Image DesnowingSnow RemovalEfficient and Explicit Modelling of Image Hierarchies for Image Restoration
The aim of this paper is to propose a mechanism to efficiently and explicitly model image hierarchies in the global, regional, and local range for image restoration. To achieve that, we start by analyzing two important p…
Image DeblurringImage Defocus DeblurringImage RestorationImage Super-ResolutionResidual Non-local Attention Networks for Image Restoration
In this paper, we propose a residual non-local attention network for high-quality image restoration. Without considering the uneven distribution of information in the corrupted images, previous methods are restricted by …
DemosaickingDenoisingImage DenoisingImage Restoration+1