Neighbourhood Consensus Networks

Ignacio Rocco, Mircea Cimpoi, Relja Arandjelovic, Akihiko Torii, Tomás Pajdla, Josef Sivic

Introduction

Establishing visual correspondences—identifying matching points between two images—is a fundamental challenge in computer vision, essential for tasks such as 3D reconstruction and autonomous localization. Traditional methods often rely on local descriptors, which frequently fail in environments with repetitive patterns (e.g., identical doors in a corridor) or textureless regions. Humans overcome these ambiguities by considering the surrounding context; we validate a match by ensuring its neighbors also align consistently. This paper introduces the Neighbourhood Consensus Network (NC-Net), a framework that formalizes this intuition into a differentiable deep learning architecture.

Methodology

The NC-Net architecture processes image pairs through a multi-stage pipeline designed to identify and refine matches within a high-dimensional space.

  1. Dense Feature Extraction: High-dimensional feature maps are extracted from both images using a pre-trained ResNet-101 backbone.
  2. 4D Correlation Map Construction: Similarity scores are computed between every point in Image A and every point in Image B, resulting in a 4D tensor ($h \times w \times h \times w$) where each entry represents a potential match score.
  3. Soft Mutual Nearest Neighbour Filtering: To maintain end-to-end differentiability, the model employs a "soft" version of reciprocal matching, downweighting correspondences that lack mutual strength.
  4. Neighbourhood Consensus via 4D Convolutions: The core innovation involves applying 4D convolutional filters to the correlation map. These filters learn to recognize patterns of "supporting" matches, boosting scores for geometrically consistent correspondences while suppressing outliers.
Overview of the NC-Net pipeline showing the transition from dense CNN features to a 4D filtered match space.

The model is trained using weak supervision, requiring only image-level labels (whether a pair matches or not) rather than expensive point-to-point ground truth. This allows the network to discover geometric constraints autonomously by maximizing scores for matching pairs.

Experimental Results

The effectiveness of NC-Net was evaluated across several challenging benchmarks, including the Indoor Venues Dataset (IVD) introduced by the authors to provide diverse training data from Google Maps.

  • Semantic Matching (PF-Pascal): In category-level matching (e.g., matching parts of different cats), NC-Net achieved a state-of-the-art 78.9% PCK (Percentage of Correct Keypoints), outperforming previous methods like WeakAlign.
  • Visual Localization (InLoc): In complex indoor environments, NC-Net significantly improved query success rates. At a strict 0.25-meter error threshold, it improved accuracy from 38.9% to 44.1%.
Comparison of NC-Net against other methods on the PF-Pascal dataset, showing superior PCK performance.

Discussion and Limitations

The primary strength of NC-Net lies in its transition from individual point matching to pattern recognition in 4D space. By making the entire process differentiable, the "consensus" logic directly informs feature extraction. However, the 4D approach introduces significant computational overhead, as memory requirements scale quadratically ($O(N^2)$) with the number of pixels. This currently necessitates downsampling for high-resolution images. Future research may focus on sparse 4D convolutions or multi-scale architectures to mitigate these bottlenecks while maintaining the robust matching capabilities demonstrated here.

Summary updated

BibTeX
@inproceedings{rocco2018neighbourhood,
  author = {Ignacio Rocco and Mircea Cimpoi and Relja Arandjelovic and Akihiko Torii and Tomás Pajdla and Josef Sivic},
  title = {{Neighbourhood Consensus Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=Sk4ZNwbdZH},
}
Figure