Contrastive Learning for 3D Point Clouds Classification and Shape Completion

Danish Nazir, Muhammad Zeshan Afzal, Alain Pagani, Marcus Liwicki, Didier Stricker

TL;DR

This paper introduces a novel self-supervised learning approach for 3D point cloud analysis by integrating contrastive learning into an AutoEncoder architecture. This method effectively learns both global and local features, significantly improving shape completion and classification accuracy, especially for datasets with more similar object classes.

What Problem Does This Paper Address?

Processing raw 3D point cloud data from sensors like LiDAR is challenging due to its unstructured nature and missing data. Traditional deep learning methods, particularly Convolutional Neural Networks (CNNs), struggle with this data format because they require ordered, grid-like inputs. While Graph Convolutional Neural Networks (GCNNs) and methods like PointNet have shown promise, they often rely on large, labeled datasets, which are expensive and difficult to obtain for 3D point clouds. Furthermore, existing methods tend to focus on either global or local feature learning, leaving room for a combined approach that leverages both for improved performance in tasks like shape completion and classification.

Methods

The core of this work is a contrastive AutoEncoder. The AutoEncoder serves as the backbone for learning feature representations. The novelty lies in augmenting the standard AutoEncoder with contrastive learning for global feature learning and Chamfer distance for local feature learning.

  • AutoEncoder: This unsupervised network consists of an encoder that compresses the input point cloud into a lower-dimensional embedding and a decoder that reconstructs the original point cloud from this embedding.
  • Contrastive Learning (Triplet Loss): This component is used to learn global feature representations. The intuition is that similar objects (positive pairs) should have embeddings closer in feature space than dissimilar objects (negative pairs). The paper employs a triplet loss, where an anchor sample, a positive sample (similar to the anchor), and a negative sample (dissimilar to the anchor) are used to train the network. This encourages the network to learn discriminative features that capture class-level similarities.
  • Chamfer Distance: This function is used to learn local feature representations. It measures the average distance between the points of two point clouds, ensuring that the reconstructed shape preserves the symmetry and topology of the original shape.

The proposed objective function is a combination of the triplet loss (for global features) and the Chamfer distance (for local features), trained end-to-end.

Datasets

The experiments were conducted on the ShapeNetCore dataset. The authors created two subsets:

  • A 4-class subset (Airplane, Chair, Table, Car).
  • A 10-class subset, extending the 4-class set with Bench, Lamp, Speaker, Rifle, Sofa, and Vessel.

To simulate real-world scenarios, incomplete shapes were generated by removing 20% of points uniformly at random from the original shapes.

Key Insights and Ideas

  • Synergy of Global and Local Features: The paper demonstrates that combining contrastive learning for global features with Chamfer distance for local features leads to superior performance compared to methods focusing on only one aspect. This is particularly crucial for distinguishing between semantically similar object classes.
  • Self-Supervised Learning for 3D: The work highlights the effectiveness of self-supervised learning for 3D point clouds, reducing the reliance on expensive labeled data.
  • Contrastive Learning for Discriminative Embeddings: The contrastive loss effectively pushes embeddings of different classes apart, making them more separable, which is vital for classification tasks, especially when classes are visually similar.
  • Online Triplet Mining: The authors opted for online triplet mining, which dynamically selects triplets from each batch during training. This approach is more efficient and avoids the computational overhead of offline mining.

Key Results

  • Shape Completion: The proposed contrastive AutoEncoder achieved competitive shape completion results, with the naive AutoEncoder (trained only on Chamfer distance) performing slightly better in terms of mean Chamfer distance. However, this metric doesn't fully capture the quality for classification.
  • Classification:
    • For the 4-class dataset, all methods achieved high accuracy, with the naive AutoEncoder and contrastive AutoEncoder performing similarly (around 97.3%). This suggests that for highly distinct classes, the benefit of contrastive learning is less pronounced.
  • For the 10-class dataset, the contrastive AutoEncoder achieved state-of-the-art classification accuracy of 84.9%, outperforming the naive AutoEncoder (84.2%) and RL-GAN (58%). This significant improvement underscores the value of contrastive learning in distinguishing between more similar object classes.

Limitations and Future Work

  • Sensitivity to Missing Data: The paper notes that increasing the percentage of missing data beyond 20% adversely affects performance. This is because contrastive learning relies on learning discriminative features, which becomes harder with more data loss.
  • Future Directions: The authors suggest exploring other pretext tasks that can extract useful global features. They also aim to further investigate the combination of local and global features for more complex 3D tasks.

Summary updated

BibTeX
@inproceedings{nazir2021contrastive,
  author = {Danish Nazir and Muhammad Zeshan Afzal and Alain Pagani and Marcus Liwicki and Didier Stricker},
  title = {{Contrastive Learning for 3D Point Clouds Classification and Shape Completion}},
  booktitle = {Sensors},
  year = {2021},
  url = {https://openreview.net/forum?id=YwULIbRab5Cm},
}
Figure