Neural Nearest Neighbors Networks

10/30/2018
by   Tobias Plötz, et al.
0

Non-local methods exploiting the self-similarity of natural signals have been well studied, for example in image analysis and restoration. Existing approaches, however, rely on k-nearest neighbors (KNN) matching in a fixed feature space. The main hurdle in optimizing this feature space w.r.t. application performance is the non-differentiability of the KNN selection rule. To overcome this, we propose a continuous deterministic relaxation of KNN selection that maintains differentiability w.r.t. pairwise distances, but retains the original KNN as the limit of a temperature parameter approaching zero. To exploit our relaxation, we propose the neural nearest neighbors block (N3 block), a novel non-local processing layer that leverages the principle of self-similarity and can be used as building block in modern neural network architectures. We show its effectiveness for the set reasoning task of correspondence classification as well as for image restoration, including image denoising and single image super-resolution, where we outperform strong convolutional neural network (CNN) baselines and recent non-local models that rely on KNN selection in hand-chosen features spaces.

READ FULL TEXT

page 7

page 12

research
06/30/2020

Cross-Scale Internal Graph Neural Network for Image Super-Resolution

Non-local self-similarity in natural images has been well studied as an ...
research
06/07/2018

Non-Local Recurrent Network for Image Restoration

Many classic methods have shown non-local self-similarity in natural ima...
research
09/14/2021

Dynamic Attentive Graph Learning for Image Restoration

Non-local self-similarity in natural images has been verified to be an e...
research
03/04/2022

Adaptive Cross-Layer Attention for Image Restoration

Non-local attention module has been proven to be crucial for image resto...
research
08/22/2020

PNEN: Pyramid Non-Local Enhanced Networks

Existing neural networks proposed for low-level image processing tasks a...
research
06/24/2020

Self-Convolution: A Highly-Efficient Operator for Non-Local Image Restoration

Constructing effective image priors is critical to solving ill-posed inv...
research
05/25/2023

High-Similarity-Pass Attention for Single Image Super-Resolution

Recent developments in the field of non-local attention (NLA) have led t...

Please sign up or login with your details

Forgot password? Click here to reset