NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

P2-Net: Joint Description and Detection of Local Features for Pixel and Point Matching

Bing Wang, Changhao Chen, Zhaopeng Cui, Jie Qin, Chris Xiaoxuan Lu, Zhengdi Yu, Peijun Zhao, Zhen Dong, Fan Zhu, Niki Trigoni, Andrew Markham

TL;DR

P2-Net is the first joint learning framework designed to directly match 2D pixels to 3D points by mapping them into a shared latent representation space. By bypassing the need for intermediate 3D reconstruction, it achieves state-of-the-art performance in indoor visual localization and robustly handles the inherent discrepancies between appearance-based images and structure-based point clouds.

What Problem Does This Paper Address?

Establishing correspondences between 2D images and 3D point clouds is a cornerstone of computer vision, essential for tasks like SLAM, autonomous navigation, and augmented reality. Traditionally, this is a two-step process: first, reconstruct a 3D model from an image sequence, then match new images to that model.

However, this approach has a major flaw: it treats images as "first-class citizens" and discounts sensors like LiDAR that capture 3D data directly. Furthermore, 3D reconstruction often fails under challenging lighting or extreme viewpoint changes. The fundamental challenge is that 2D pixels (encoding appearance) and 3D points (encoding structure) are mathematically heterogeneous. Existing methods that try to bridge this gap usually only produce "coarse-grained" patch-level matches, which aren't precise enough for high-resolution applications.

Methods

The authors propose P2-Net (Pixel and Point Network), a dual-branch fully convolutional framework that simultaneously describes and detects keypoints in both domains.

Figure 2: An overview of the proposed P2-Net framework. Our architecture is a two-branch fully convolutional network for the simultaneous 2D and 3D feature description (A) and keypoint detection (B). Such a network is jointly optimized with a descriptor loss Ldesc enforcing the similarity of corresponding representations as well as a detector loss Ldet encouraging higher detection scores for discriminative correspondences.

1. Dual-Branch Architecture

  • 2D Branch: Uses a series of nine $3 \times 3$ convolutional layers with progressively doubling dilation values (from 1 to 16). This "ultra-wide reception mechanism" allows a single pixel's descriptor to incorporate a larger spatial context, matching the naturally larger "footprint" of a 3D point local region.
  • 3D Branch: Utilizes a modified KPConv (Kernel Point Convolution) architecture to output 128D descriptors and detection scores for every point in a cloud.

2. P2-Loss: The Optimization Secret Sauce

Standard triplet or contrastive losses often fail to converge when matching such disparate data types. The authors introduce P2-Loss, which combines:

  • Circle-guided Descriptor Loss: Inspired by Circle Loss, it uses a circular decision boundary and weighting factors to optimize positive and negative matches in a self-paced manner, avoiding the ambiguity that plagues standard hard-triplet losses in cross-domain tasks.
  • Batch-hard Detector Loss: This explicitly encourages keypoints to be repeatable and distinctive by penalizing the difference between positive matches and the "globally hardest" negative matches across the entire batch.
Figure 2: An overview of the proposed P2-Net framework. Our architecture is a two-branch fully convolutional network for the simultaneous 2D and 3D feature description (A) and keypoint detection (B). Such a network is jointly optimized with a descriptor loss Ldesc enforcing the similarity of corresponding representations as well as a detector loss Ldet encouraging higher detection scores for discriminative correspondences.

Datasets

  • 7Scenes: The primary benchmark. Since no public 2D-3D correspondence labels existed, the authors manually annotated this dataset (consisting of 7 indoor scenes like "Chess" and "Stairs") to create ground-truth pixel-to-point matches.
  • HPatches: Used to evaluate the generalization of the 2D branch for standard image matching.
  • 3DMatch: Used to evaluate the 3D branch for point cloud registration.

Key Insights and Ideas

  • Information Density Mismatch: A single 3D point typically represents a larger physical area than a single 2D pixel. The "ultra-wide reception" (dilated convolutions) is crucial because it balances the receptive fields, allowing the network to "see" similar amounts of context in both domains.
  • Joint Learning Matters: The authors found that learning the detector and descriptor together strengthens both. The detector learns to bypass feature-less regions (like flat floors) and focus on geometrically meaningful areas (like corners), which in turn makes the descriptors more reliable.
  • Convergence through Circle Loss: In heterogeneous matching, initial descriptors are so different that standard losses provide poor gradients. The circle-guided loss manages this by dynamically adjusting the penalty strength, ensuring the network doesn't get stuck during early training phases.
Figure 3: To mitigate the intrinsic information variation (A) between 2D and 3D local regions, an ultra-wide reception mechanism (B) with progressively doubling dilation values, up to 16, is applied in the 2D branch of feature description.

Key Results

  • Visual Localization: On the 7Scenes dataset, P2-Net achieved a localization accuracy of 68.8% (within 5cm/5°), outperforming established baselines like InLoc (66.3%) and SAMatch (63.8%).
  • Robustness: P2-Net was the only method to maintain high performance in the "Stairs" scene, which is notoriously difficult due to its highly repetitive textures.
  • Cross-Domain Versatility: The model can perform "inverse matching"—localizing a 3D query point cloud within a 2D image map—reaching 65.1% accuracy, a task most existing baselines cannot even attempt.
  • Single-Domain Performance: Despite being designed for 2D-3D matching, the P2-Loss improved the performance of state-of-the-art 2D (ASLFeat) and 3D (D3Feat) networks when applied to their respective single-domain tasks.
Figure 1: Examples of 2D-3D matches obtained by the P2-Net. The proposed method can directly establish corre- spondences across images and point clouds by the jointly learned feature description and detection.

Limitations and Future Work

  • Indoor Focus: The current evaluation is limited to indoor environments (7Scenes). The performance in large-scale outdoor environments with sparser LiDAR data remains to be seen.
  • Data Annotation: The method relies on 2D-3D correspondence labels, which are difficult to obtain. Future work could explore self-supervised or weakly-supervised ways to generate these labels.
  • Computational Cost: While efficient in a single forward pass, the ultra-wide reception mechanism adds complexity to the 2D branch that might need optimization for mobile or real-time edge devices.

Summary updated

BibTeX
@inproceedings{wang2021p,
  author = {Bing Wang and Changhao Chen and Zhaopeng Cui and Jie Qin and Chris Xiaoxuan Lu and Zhengdi Yu and Peijun Zhao and Zhen Dong and Fan Zhu and Niki Trigoni and Andrew Markham},
  title = {{P2-Net: Joint Description and Detection of Local Features for Pixel and Point Matching}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01570},
}
Figure