Introduction
Finding "correspondences"—identifying which point in Image A represents the same physical object or part as a point in Image B—is a cornerstone of computer vision, essential for tasks like 3D reconstruction and visual localization. However, two major hurdles remain in the field:
- Ambiguity: Repetitive patterns (like windows on a building) or textureless regions make individual feature points look identical, leading to noisy or incorrect matches.
- Supervision Gap: Training deep models usually requires massive amounts of manually annotated point-to-point correspondences, which are incredibly expensive and difficult to produce for real-world scenes.
Traditional methods attempt to fix this by matching features first and then using a separate geometric filter (like RANSAC). Neighbourhood Consensus Networks (NC-Net) introduce a paradigm shift: treating matching as a pattern recognition problem in 4D space. By using 4D convolutions to learn spatial consistency, the model can disambiguate difficult matches and can be trained effectively using only weak, image-level supervision.
Methodology
The authors propose an end-to-end trainable architecture that avoids rigid global geometric models in favor of learning semi-local constraints.
The pipeline consists of several novel components:
- 4D Correlation Map: Instead of picking the best match for each pixel immediately, the network computes the similarity between every pixel in Image A and every pixel in Image B. This exhaustive comparison creates a 4D tensor ($h \times w \times h \times w$).
- 4D Convolutional Neural Network: This acts as the core "brain" of the model. The authors use 4D convolutions to analyze the correlation map. The intuition is that a correct match will be surrounded by other correct matches in 4D space (forming a "consensus"), while a random incorrect match will appear as isolated noise.
- Soft Mutual Nearest Neighbour Filtering: A differentiable layer enforces a "reciprocity" constraint: if point A thinks it matches point B, point B should also think it matches point A. This suppresses non-mutual matches without breaking the ability to backpropagate gradients during training.
- Weakly-Supervised Loss: The model does not need to know exactly which pixel matches which. It is trained using a loss function that only requires knowing if a pair of images should match (positive pair) or not (negative pair). It rewards the model for finding strong, consistent clusters of matches in positive pairs and punishes it for finding them in negative pairs.
Key Insights
- From Geometry to Patterns: Instead of relying on a rigid global geometric model (like an affine or perspective transform), NC-Net learns semi-local constraints. This allows it to handle non-rigid deformations, such as a cat stretching or a person bending.
- The Power of 4D: While 4D convolutions are computationally heavy, they are the natural way to process image-to-image correlations, allowing the network to see the context of a match in both images simultaneously.
- Late Commitment: By delaying the "hard assignment" (deciding exactly which point matches which) until the very end of the pipeline, the network can use global and local context to resolve ambiguities that would cause earlier, simpler methods to fail.
Datasets and Results
The model was evaluated on two distinct types of matching tasks: category-level matching (PF-Pascal) and instance-level matching/indoor visual localization (InLoc). To provide weak supervision for the localization task, the authors also introduced a new Indoor Venues Dataset, consisting of 3,861 positive image pairs from 89 different indoor venues collected via Google Maps.
- State-of-the-Art Performance: On the PF-Pascal dataset, NC-Net achieved a 78.9% PCK (Percentage of Correct Keypoints), representing a significant jump over the previous best of 75.8%.
- Robust Localization: In the challenging InLoc indoor localization benchmark, the method significantly outperformed existing baselines. At a strict 0.25-meter error threshold, NC-Net improved the localization rate from 38.9% to 44.1%.
- Handling Repetition: Qualitative results demonstrated the model successfully disambiguating matches in corridors with repetitive doors and windows—scenarios where traditional feature matchers typically fail.
Limitations and Future Work
The primary limitation of NC-Net is its computational complexity. The 4D correlation map and convolutions have a quadratic complexity $O(N^2)$ relative to the number of pixels. This restricts the resolution of the feature maps the network can process (the paper uses roughly $25 \times 25$ or $50 \times 50$ for the 4D stage). Additionally, while the model is robust to many changes, extreme variations in scale combined with repetitive patterns can still lead to failure.
Future directions suggest extending this framework to other tasks, such as 3D category-level matching or visual localization across extreme illumination changes (e.g., day versus night).
Summary updated