Contrastive Learning of Features between Images and LiDAR

Peng Jiang, Srikanth Saripalli

Abstract

Image and Point Clouds provide different information for robots. Finding the correspondences between data from different sensors is crucial for various tasks such as localization, mapping, and navigation. Learning-based descriptors have been developed for single sensors; there is little work on cross-modal features. This work treats learning cross-modal features as a dense contrastive learning problem. We propose a Tuple-Circle loss function for cross-modality feature learning. Furthermore, to learn good features and not lose generality, we developed a variant of widely used PointNet++ architecture for point cloud and U-Net CNN architecture for images. Moreover, we conduct experiments on a real-world dataset to show the effectiveness of our loss function and network structure. We show that our models indeed learn information from both images as well as LiDAR by visualizing the features.

Introduction

Robotic systems frequently utilize both cameras and LiDAR sensors to perceive their environment. While cameras offer high-resolution visual data, they are sensitive to illumination changes and lack inherent depth information. Conversely, LiDAR provides precise 3D geometry but results in sparse data lacking color. Effective sensor fusion for tasks like SLAM or navigation requires establishing dense correspondences—identifying which image pixels correspond to specific 3D points.

This cross-modal matching is challenging due to the fundamental differences in data structures: 2D grids versus sparse 3D point clouds. Existing methods often focus on a single modality or rely on patch-based approaches that struggle with LiDAR sparsity. This paper introduces a dense contrastive learning framework using a novel Tuple-Circle loss and optimized architectures to bridge this gap.

Methodology

The proposed framework employs a dual-stream architecture to map images and point clouds into a unified feature space.

Tuple-Circle Loss

Standard contrastive losses often struggle with the inherent differences between modalities. The authors propose representing features as a $k$-tuple: $[x_{shared}, x_{private}]$. The shared features are optimized for cross-modal similarity, while private features allow the model to retain modality-specific information (e.g., color for images, geometry for LiDAR) that cannot be directly mapped. This separation prevents the model from being forced to align unalignable information. The loss also utilizes self-paced weights to prioritize "hard" samples, accelerating convergence.

Optimized Architectures

To generate high-quality dense descriptors, the authors modified standard backbones:

  • 3D PointNet++: Standard PointNet++ uses simple interpolation for upsampling. This work introduces a Set-Abstraction layer before each propagation layer, making the upsampling process learnable and improving point-level feature quality.
  • 2D U-Net: A ResNet-based U-Net is enhanced with Deformable Convolutions, allowing the network's receptive field to adapt more flexibly to the geometric structures present in the 3D data.
Overview of the dual-stream architecture for 2D image and 3D point cloud feature extraction.

Experiments and Results

The models were evaluated on the KITTI360 dataset, using synchronized images and LiDAR scans. Images were processed at $256 \times 512$ resolution, and LiDAR scans were downsampled to 10,000 points.

Performance and Convergence

The Tuple-Circle loss demonstrated superior performance compared to standard Circle loss. It achieved high matching accuracy within modalities (99.9% for images, 97.3% for LiDAR) and reached approximately 67.4% accuracy for cross-modal (Image-to-LiDAR) matching using shared features. Notably, the proposed loss function significantly accelerated convergence.

Comparison of accuracy over training epochs for Tuple-Circle loss versus standard Circle loss.

Ablation and Visualization

Ablation studies confirmed that both the learnable upsampling in PointNet++ and the deformable convolutions in the U-Net were critical for performance. Qualitative analysis through K-Means clustering of learned features showed that the shared feature space effectively encoded both visual position and geometric depth, confirming successful cross-modal alignment.

Discussion and Conclusion

By explicitly separating shared and private feature components, the model avoids the pitfalls of forcing total alignment between disparate sensors. While a gap remains between single-modality and cross-modal matching accuracy—likely due to the "low entropy" of shared information—this work provides a robust foundation for dense cross-modal correspondence. Future improvements could involve incorporating semantic labels to resolve ambiguities between geometrically similar objects.

Summary updated

BibTeX
@inproceedings{jiang2022contrastive,
  author = {Peng Jiang and Srikanth Saripalli},
  title = {{Contrastive Learning of Features between Images and LiDAR}},
  booktitle = {Case},
  year = {2022},
  doi = {10.1109/case49997.2022.9926589},
}
Figure