Ambiguity-Aware Point Cloud Segmentation by Adaptive Margin Contrastive Learning

Yang Chen, Yueqi Duan, Haowen Sun, Jiwen Lu, Yap‐Peng Tan

Abstract

Recent advancements in 3D semantic segmentation have significantly improved the processing of point cloud data. However, standard approaches often struggle with "point ambiguity," particularly in transition regions where different object classes meet. This paper introduces AMContrast3D++, a framework designed to explicitly model and manage point ambiguity through an adaptive margin contrastive learning strategy. By relaxing constraints on difficult boundary points while tightening them on clear, central points, the proposed method achieves more robust feature representations. Experimental results on the S3DIS and ScanNet datasets demonstrate that AMContrast3D++ achieves state-of-the-art performance with minimal computational overhead.

Introduction

In the domain of 3D semantic segmentation, the geometric complexity and inherent sparsity of point clouds present unique challenges. A critical observation is that not all points in a scene contribute equally to the learning process. Points located near the center of an object (e.g., the middle of a table) are typically easy to classify. Conversely, points in transition regions—where two different objects intersect—are often sparse, irregular, and highly ambiguous.

Most existing deep learning models apply a uniform penalty to every point, forcing the model to predict a single class with high certainty even when the data is indistinguishable. This "hard" boundary approach for "soft" data often leads to unstable training and sub-optimal feature discrimination. To address this, we propose an ambiguity-aware framework that adaptively adjusts the learning objective based on the local geometric and semantic context.

Methodology

The proposed framework evolves from a core logic, AMContrast3D, into a comprehensive training and inference system, AMContrast3D++. The architecture consists of four primary components:

1. Ambiguity Estimation Framework (AEF)

The AEF calculates an ambiguity score ($a_i$) for each point by analyzing its neighborhood. Utilizing the concept of "closeness centrality," the framework measures the discrepancy between a point's spatial position and its neighbors belonging to the same versus different semantic labels. Points located in regions with mixed labels are assigned high ambiguity scores, flagging them as transitional or noisy.

2. Adaptive Margin Contrastive Learning

Standard contrastive learning pulls similar features together and pushes dissimilar ones apart using a fixed margin. AMContrast3D introduces a Margin Generator (MG) that dynamically adjusts this margin based on the ambiguity score:

  • Low Ambiguity: A large positive margin is applied to enforce strict feature separation.
  • High Ambiguity: A small or even negative margin is utilized. This allows for feature overlap in regions where the data is genuinely confusing, preventing the model from over-fitting to unreliable boundary labels.

3. Ambiguity Prediction Module (APM)

Because ground-truth labels are unavailable during inference, AMContrast3D++ incorporates a lightweight APM branch. This module learns to predict the ambiguity score directly from point features and spatial positions, allowing the model to maintain ambiguity awareness during the deployment phase.

4. Masked Refinement (MR)

The MR mechanism leverages the predicted ambiguity to "clean" the learned features. During training, it filters out high-ambiguity anchor points to ensure the contrastive loss is driven by reliable data. During inference, it uses the features of low-ambiguity neighbors to refine the embeddings of more confusing points, leading to smoother and more accurate segmentation masks.

Experimental Evaluation

Datasets

The model was rigorously evaluated on two large-scale indoor benchmarks:

  • S3DIS (Stanford Large-Scale 3D Indoor Spaces): Comprising 271 rooms across 6 areas with 13 semantic classes.
  • ScanNet: A dataset of 1,613 indoor scans featuring 20 semantic classes, characterized by high levels of clutter and complexity.

Results

AMContrast3D++ consistently outperformed the baseline (PointNeXt) and other state-of-the-art methods across both benchmarks:

  • S3DIS (Area 5): The model achieved a Mean Intersection over Union (mIoU) of 71.4%, a significant improvement over the PointNeXt baseline of 69.8%.
  • ScanNet: The model reached a test mIoU of 71.7%, compared to 70.0% for the baseline.

Beyond raw accuracy, the framework demonstrated superior stability. Multiple random runs showed that AMContrast3D++ significantly reduced the standard deviation of results, suggesting that ambiguity awareness leads to more reliable training cycles. Furthermore, the model is highly efficient, adding only 0.03M parameters and 0.24G FLOPs to the base architecture.

Discussion and Key Insights

The Utility of Negative Margins

A counter-intuitive but vital finding of this research is the effectiveness of negative margins. By allowing features of different classes to overlap slightly in high-ambiguity regions, the model avoids the "gradient explosion" or instability caused by trying to solve impossible-to-distinguish boundary cases. This allows the network to prioritize learning the more discriminative features of the scene.

Ambiguity as a Meta-Feature

By training a dedicated branch to predict ambiguity, the model develops a meta-understanding of the scene's geometry. This awareness helps the segmentation branch focus on regions where it can be most effective, effectively treating noise and transitions as a known factor rather than an error.

Conclusion and Future Work

AMContrast3D++ provides a robust solution for 3D point cloud segmentation by acknowledging and modeling the inherent uncertainty in spatial data. While currently focused on static indoor scenes, future work could extend this logic to outdoor environments or dynamic scenes where temporal ambiguity (moving objects) plays a larger role. Additionally, the ambiguity estimates generated by this model could serve as a foundation for weakly supervised learning, where the model uses its own uncertainty to guide the generation of pseudo-labels for unlabeled datasets.

Summary updated

Abstract

This paper proposes an adaptive margin contrastive learning method for 3D semantic segmentation on point clouds. Most existing methods use equally penalized objectives, which ignore the per-point ambiguities and less discriminated features stemming from transition regions. However, as highly ambiguous points may be indistinguishable even for humans, their manually annotated labels are less reliable, and hard constraints over these points would lead to sub-optimal models. To address this, we first design AMContrast3D, a method comprising contrastive learning into an ambiguity estimation framework, tailored to adaptive objectives for individual points based on ambiguity levels. As a result, our method promotes model training, which ensures the correctness of low-ambiguity points while allowing mistakes for high-ambiguity points. As ambiguities are formulated based on position discrepancies across labels, optimization during inference is constrained by the assumption that all unlabeled points are uniformly unambiguous, lacking ambiguity awareness. Inspired by the insight of joint training, we further propose AMContrast3D++ integrating with two branches trained in parallel, where a novel ambiguity prediction module concurrently learns point ambiguities from generated embeddings. To this end, we design a masked refinement mechanism that leverages predicted ambiguities to enable the ambiguous embeddings to be more reliable, thereby boosting segmentation performance and enhancing robustness. Experimental results on 3D indoor scene datasets, S3DIS and ScanNet, demonstrate the effectiveness of the proposed method. Code is available at <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/YangChenApril/AMContrast3D</uri>.
BibTeX
@article{chen2026ambiguity,
  author = {Yang Chen and Yueqi Duan and Haowen Sun and Jiwen Lu and Yap‐Peng Tan},
  title = {{Ambiguity-Aware Point Cloud Segmentation by Adaptive Margin Contrastive Learning}},
  journal = {IEEE Trans. Multimedia},
  year = {2026},
  doi = {10.1109/tmm.2025.3623494},
}
Figure