Self-Contrastive Learning with Hard Negative Sampling for Self-supervised Point Cloud Learning

Bi'an Du, Xiang Gao, Wei Hu, Xin LiACM Multimedia 2021

Abstract

Deep learning on 3D point clouds typically necessitates extensive human-annotated datasets. This paper introduces a "self-contrastive" learning framework that extracts training signals from within a single 3D point cloud by exploiting its inherent geometric self-similarity. By actively sampling "hard negatives"—patches that appear geometrically similar but are semantically distinct—the model learns highly discriminative features. Our method achieves state-of-the-art performance in self-supervised 3D segmentation and classification on standard benchmarks like ModelNet40 and ShapeNet Part, while exhibiting robust performance under noise and sparsity.

Introduction

The acquisition of large-scale annotated 3D data is a significant bottleneck in point cloud research. While self-supervised learning (SSL) offers a solution via pretext tasks, most existing 3D contrastive methods focus on inter-object or inter-view comparisons. These approaches often overlook a fundamental property of 3D shapes: nonlocal self-similarity. Many 3D objects, such as airplanes or chairs, contain repeating geometric structures (e.g., wings, legs).

Conceptual overview of self-similarity and hard negative sampling within a single point cloud.

This research proposes leveraging these internal repetitions to learn robust feature representations. The core innovation lies in the identification of "hard negatives"—patches that share geometric characteristics with an anchor patch but belong to different semantic parts. Forcing the model to distinguish between these subtle differences drives the learning of finer, more detailed representations.

Methodology

The proposed framework operates in two primary stages: Similarity Learning and Self-Contrastive Learning.

1. Self-Similarity Training

The model first learns to quantify the similarity between patches within a point cloud. An encoder (DGCNN) maps patches into a feature space, and a discriminator scores the similarity of patch pairs. Training is supervised by "known" relationships: a patch and its rotated version are considered similar, while two randomly sampled patches are generally treated as dissimilar.

The two-stage training pipeline consisting of similarity learning and self-contrastive learning.

2. Positive and Hard Negative Sampling

  • Positives: Positive pairs are formed using "dilated" patches (patches with increased receptive fields) or patches identified as highly similar by the pre-trained similarity network.
  • Hard Negatives: The model identifies "hard" negatives—patches that yield high similarity scores from the discriminator but are distinct from the anchor. These examples are crucial for preventing the model from learning trivial features.

3. Self-Contrastive Learning

The final stage employs the InfoNCE loss to minimize the distance between positive pairs in the feature space while maximizing the distance to negative pairs. To ensure training stability, a linear annealing strategy is used, gradually increasing the difficulty of negative samples as the encoder matures.

Experiments and Results

The framework was evaluated on two major benchmarks: ModelNet40 (classification) and ShapeNet Part (segmentation).

Transfer Learning and Classification

When pre-trained on ShapeNet and transferred to ModelNet40, the model achieved a classification accuracy of 89.6%. This surpasses previous state-of-the-art (SOTA) self-supervised methods, including GraphTER (89.1%) and PointCapsNet (88.9%).

Unsupervised Part Segmentation

In an unsupervised setting on ShapeNet Part, the model reached a mean Intersection-over-Union (mIoU) of 82.3%. This performance is remarkably competitive with fully supervised models, which typically range between 82.3% and 86.2% mIoU. Ablation studies highlighted the importance of hard negative sampling, which improved segmentation performance by an average of 6.35%.

Robustness

The model demonstrates superior resilience to environmental challenges. It maintains higher accuracy than competitors when subjected to Gaussian noise or significant point cloud sparsity (e.g., 50% point removal), indicating that the learned features are grounded in stable geometric structures.

Discussion and Conclusion

This work demonstrates that the internal structural information of a single 3D object is sufficient for learning high-quality, transferable features. By leveraging geometric inductive biases—specifically symmetry and repetition—the self-contrastive framework turns a natural property of 3D data into a powerful supervision signal.

While the two-stage process introduces some computational overhead compared to single-stage SSL, the gains in accuracy and robustness are substantial. Future work may explore extending this nonlocal self-similarity approach to other 3D tasks such as denoising, shape reconstruction, and generative modeling.

Summary updated

BibTeX
@inproceedings{du2021self,
  author = {Bi'an Du and Xiang Gao and Wei Hu and Xin Li},
  title = {{Self-Contrastive Learning with Hard Negative Sampling for Self-supervised Point Cloud Learning}},
  booktitle = {ACM Multimedia},
  year = {2021},
  doi = {10.1145/3474085.3475458},
}
Figure