TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Neural Nearest Neighbors Networks

Neural Nearest Neighbors Networks

Tobias Plötz, Stefan Roth

2018-10-30NeurIPS 2018 12DenoisingSuper-ResolutionImage DenoisingImage Super-ResolutionImage Restoration
PaperPDFCodeCode(official)

Abstract

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.

Results

TaskDatasetMetricValueModel
Super-ResolutionSet5 - 3x upscalingPSNR33.84N3Net
Super-ResolutionSet5 - 2x upscalingPSNR37.57N3Net
DenoisingUrban100 sigma25PSNR30.19N3Net
DenoisingUrban100 sigma25SSIM0.892N3Net
DenoisingSet12 sigma50PSNR27.43N3Net
DenoisingUrban100 sigma50PSNR26.82N3Net
DenoisingBSD68 sigma70PSNR25.14N3Net
DenoisingBSD68 sigma25PSNR29.3N3Net
DenoisingUrban100 sigma70PSNR25.15N3Net
DenoisingSet12 sigma25PSNR30.55N3Net
DenoisingBSD68 sigma50PSNR26.39N3Net
DenoisingSet12 sigma70PSNR25.9N3Net
Image Super-ResolutionSet5 - 3x upscalingPSNR33.84N3Net
Image Super-ResolutionSet5 - 2x upscalingPSNR37.57N3Net
3D ArchitectureUrban100 sigma25PSNR30.19N3Net
3D ArchitectureUrban100 sigma25SSIM0.892N3Net
3D ArchitectureSet12 sigma50PSNR27.43N3Net
3D ArchitectureUrban100 sigma50PSNR26.82N3Net
3D ArchitectureBSD68 sigma70PSNR25.14N3Net
3D ArchitectureBSD68 sigma25PSNR29.3N3Net
3D ArchitectureUrban100 sigma70PSNR25.15N3Net
3D ArchitectureSet12 sigma25PSNR30.55N3Net
3D ArchitectureBSD68 sigma50PSNR26.39N3Net
3D ArchitectureSet12 sigma70PSNR25.9N3Net
3D Object Super-ResolutionSet5 - 3x upscalingPSNR33.84N3Net
3D Object Super-ResolutionSet5 - 2x upscalingPSNR37.57N3Net
16kSet5 - 3x upscalingPSNR33.84N3Net
16kSet5 - 2x upscalingPSNR37.57N3Net

Related Papers

fastWDM3D: Fast and Accurate 3D Healthy Tissue Inpainting2025-07-17Diffuman4D: 4D Consistent Human View Synthesis from Sparse-View Videos with Spatio-Temporal Diffusion Models2025-07-17SpectraLift: Physics-Guided Spectral-Inversion Network for Self-Supervised Hyperspectral Image Super-Resolution2025-07-17Similarity-Guided Diffusion for Contrastive Sequential Recommendation2025-07-16Unsupervised Part Discovery via Descriptor-Based Masked Image Restoration with Optimized Constraints2025-07-16HUG-VAS: A Hierarchical NURBS-Based Generative Model for Aortic Geometry Synthesis and Controllable Editing2025-07-15AirLLM: Diffusion Policy-based Adaptive LoRA for Remote Fine-Tuning of LLM over the Air2025-07-15IM-LUT: Interpolation Mixing Look-Up Tables for Image Super-Resolution2025-07-14