Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Neural Nearest Neighbors Networks

About

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.

Tobias Pl\"otz, Stefan Roth• 2018

Related benchmarks

TaskDatasetResultRank
Single Image Super-ResolutionUrban100
PSNR30.8
500
Image DenoisingBSD68
PSNR26.39
297
Image DenoisingUrban100
PSNR26.82
222
Single Image Super-ResolutionBSD100
PSNR31.98
211
Gray-scale image denoisingSet12
PSNR30.55
131
Image DenoisingBSD68 grayscale (test)
PSNR29.3
101
Image DenoisingSIDD
PSNR41.24
95
Image DenoisingSet12 (test)
PSNR33.16
89
Grayscale Image DenoisingUrban100
PSNR30.19
76
Grayscale Image DenoisingBSD68
PSNR29.3
75
Showing 10 of 24 rows

Other info

Code

Follow for update