P4Contrast: Contrastive Learning with Pairs of Point-Pixel Pairs for RGB-D Scene Understanding

Yunze Liu, Li Yi, Shanghang Zhang, Qingnan Fan, Thomas A. Funkhouser, Hao Dong

TL;DR

P4Contrast is a self-supervised pretraining framework for RGB-D data that learns powerful representations by contrasting "pairs of point-pixel pairs." By introducing "disturbed" negatives—where color and geometry within a single pair are intentionally mismatched—the method forces neural networks to learn the synergistic relationships between 2D images and 3D point clouds, leading to state-of-the-art results in 3D semantic segmentation and object detection.

What Problem Does This Paper Address?

In computer vision, self-supervised learning allows models to learn from massive unlabeled datasets before being "fine-tuned" on specific tasks. While this has worked wonders for 2D images (e.g., SimCLR) and 3D point clouds (e.g., PointContrast), combining the two modalities—RGB-D data—has proven surprisingly difficult.

The authors observe a "lazy network" problem: when you simply append RGB values to 3D points, the model often ignores one modality in favor of the more discriminating one. Previous attempts at cross-modal embedding often resulted in the weaker modality simply regressing to the features of the stronger one, rather than learning something new from their interaction. The challenge is to design a pretext task that forces the model to fuse color and geometry effectively.

Methods

The core innovation is a pretext task called contrasting pairs of point-pixel pairs.

Instead of just comparing two points or two image patches, the model looks at a "point-pixel pair" $(g, c)$, where $g$ is a 3D point and $c$ is its corresponding 2D pixel.

Figure 2. The pretext task contrasting pairs of point-pixel pairs.

1. Disturbed Point-Pixel Pairing

To prevent the network from being "lazy," the authors introduce disturbed negatives. They create negative samples by taking a valid 3D point and pairing it with a pixel from the same scene that doesn't actually correspond to it. Because the point and pixel are from the same observation, the network cannot rely on global scene features to tell them apart; it must learn the fine-grained local relationship between geometry and color.

2. Progressive Hardness Increasing

Not all negatives are created equal. Mismatching a point with a pixel from the opposite side of a room is an "easy" negative. Mismatching it with a pixel just a few centimeters away is a "hard" negative. The authors use a scheduling strategy that gradually increases the hardness of these disturbed pairs during training, helping the model converge more effectively.

Figure 3. Disturbed point-pixel pairs with varying hardness.

3. Hybrid 2D-3D Backbone

The authors use a dual-branch architecture. One branch uses a Sparse Residual U-Net (SR-UNet) for 3D point cloud processing, and the other uses FuseNet for 2D image processing. The features from both are concatenated to form a final multi-modal representation.

Figure 4. 2D-3D context contrastive learning backbone.

Datasets

The model was pretrained on ScanNet, a large-scale indoor scene dataset with ~1,500 RGB-D scans. Evaluation was conducted on three major benchmarks:

  • ScanNetV2: For 3D semantic segmentation.
  • SUN RGB-D: For 3D object detection in single-view scans.
  • 3RScan: For semantic segmentation in naturally changing indoor environments.

Key Insights and Ideas

  • Synergy is Key: Simply adding RGB as a feature to a 3D point cloud (as in PointContrast) yields marginal gains. The "aha moment" here is that the network needs a reason to care about both modalities. Disturbed negatives provide that reason.
  • Data Augmentation Pitfalls: The authors found that standard 3D augmentations like random rigid transformations and scaling actually caused "mode collapse," where features clump together in latent space. They discovered that simple point jittering produced much more uniformly distributed and useful features.
Figure 5. The t-SNE visualization of the pretrained features with data augmentation strategies from PointContrast and P4Contrast. Features tend to collapse in space when data augmentation consists of random rigid transformation plus scaling. We only use point jittering as the augmentation strategy in P4Contrast, producing more uniformly distributed features.
  • The Power of Small Data: One of the most striking findings is that P4Contrast provides the biggest boost when labeled training data is scarce. When using only 10% of the ScanNet training set, P4Contrast improved mIoU by 4.5 points over the baseline.

Key Results

P4Contrast consistently outperformed both "from-scratch" training and the previous state-of-the-art, PointContrast:

  • ScanNet Semantic Segmentation: Achieved 75.0 mIoU, a +2.4 improvement over the from-scratch baseline and significantly better than PointContrast's 74.1.
  • SUN RGB-D Object Detection: Improved performance by +2.0 mAP over the ImVoteNet baseline.
  • 3RScan Semantic Segmentation: Saw a massive +4.4 mIoU boost over the from-scratch baseline.
Table 1. Semantic segmentation results on ScanNet validation set. mIoUK5 and mIoUK3 are mIoU obtained with backbones of convo- lution kernal size 5 and 3 respectively.

Limitations and Future Work

While P4Contrast is highly effective, the authors note a few areas for improvement:

  • Backbone Complexity: The hybrid 2D-3D backbone is more computationally expensive than single-modality models.
  • Augmentation Trade-offs: By switching from rigid transforms to jittering to avoid mode collapse, the model loses some inherent rotation and scale invariance.
  • Broader Modalities: The authors suggest that this "disturbed pairing" strategy could be extended to other multi-modal tasks, such as audio-visual scene understanding, though this remains to be tested.

Summary updated

BibTeX
@misc{liu2020p,
  author = {Yunze Liu and Li Yi and Shanghang Zhang and Qingnan Fan and Thomas A. Funkhouser and Hao Dong},
  title = {{P4Contrast: Contrastive Learning with Pairs of Point-Pixel Pairs for RGB-D Scene Understanding}},
  year = {2020},
  eprint = {2012.13089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.13089},
}
Figure