Enhancing Local Feature Learning for 3D Point Cloud Processing using Unary-Pairwise Attention

Haoyi Xiu, Xin Liu, Weiming Wang, Kyoung-Sook Kim, Takayuki Shinohara, Qiong Chang, Masashi Matsuoka

Introduction

Standard Self-Attention (SA) mechanisms, while transformative for natural language processing and 2D computer vision, encounter significant limitations when applied to 3D point clouds. This paper identifies a critical "blind spot" in standard SA: a tendency toward query-independent bias, where the model produces nearly identical attention maps regardless of the query point's location. This "global collapse" prevents the model from capturing the intricate local relationships essential for understanding 3D geometry. Furthermore, the $O(N^2)$ computational complexity of global SA makes it impractical for large-scale 3D scenes.

To address these challenges, the authors propose Unary-Pairwise Attention (UPA), a novel mechanism that disentangles attention into query-independent and query-dependent components while restricting operations to local neighborhoods to ensure efficiency and specificity.

The Unary-Pairwise Attention (UPA) Module

The core innovation of UPA is the reformulation of the attention score function into two parallel, complementary paths. By separating these components, the model can explicitly learn both the general importance of neighboring points and their specific relationship to the query point.

The UPA pipeline: from 3D space to local neighborhood processing using disentangled Unary and Pairwise attention.
  • Unary Component ($f_u$): This branch processes neighbor features in isolation ($W_u x_j$). It captures "query-independent" information—features that are intrinsically important to the local structure regardless of which point is initiating the query.
  • Pairwise Component ($f_e$): This branch focuses on the relative relationship between the query point and its neighbor ($W_e(x_j - x_i)$). By looking at the difference between features, the model is forced to learn "query-dependent" details that define the local shape relative to the query's position.

Architectural Refinements

Unlike standard global SA, UPA operates on $k$-nearest neighbors ($k$-NN). This design choice serves two purposes: it reduces computational complexity to linear ($O(N)$) and prevents the model from defaulting to a global average, thereby preserving local geometric detail. The module is designed as a "plug-and-play" residual block, allowing it to be easily integrated into established backbones like PointNet++ or PointConv.

Key Insights: Quantifying the Bias

To prove that standard SA suffers from a lack of query dependence, the authors utilized mean Jensen-Shannon Divergence (mJSD) to measure the similarity between attention maps. Low mJSD scores in standard SA confirmed that the maps were nearly identical across different queries. In contrast, UPA demonstrated significantly higher mJSD, proving that its attention maps are highly sensitive to the query point's location.

This suggests that for 3D point clouds, locality is a feature, not a bug. Restricting the receptive field actually forces the attention mechanism to work harder to find relevant local patterns, leading to more robust feature representations.

Experimental Results

UPA was evaluated across three major benchmarks: ModelNet40 (classification), ShapeNet (part segmentation), and S3DIS (scene segmentation). The results consistently showed that UPA outperforms both standard SA and other state-of-the-art attention methods.

Visualization of UPA attention maps for classification and part segmentation tasks, demonstrating high query-point sensitivity (stars indicate query points).
  • Scene Segmentation (S3DIS): UPA provided its most significant boost here, improving the PointNet++ baseline by +6.0 mIoU (reaching 63.3%). It also outperformed specialized networks like PointASNL.
  • Classification (ModelNet40): The module achieved 92.9% Overall Accuracy (OA), matching or exceeding the performance of more complex, specialized attention architectures.
  • Versatility: The "plug-and-play" nature of UPA was demonstrated by adding it to the original PointNet, which resulted in a staggering +9.5 mIoU improvement on the S3DIS dataset.

Conclusion

Unary-Pairwise Attention (UPA) effectively resolves the query-independent bias of standard self-attention in 3D point cloud processing. By disentangling the attention mechanism and enforcing local receptive fields, UPA achieves a superior balance between global context and local geometric detail. Its linear complexity and modular design make it a powerful tool for enhancing existing 3D deep learning architectures.

Summary updated

Abstract

We present a simple but effective attention named the unary-pairwise attention (UPA) for modeling the relationship between 3D point clouds. Our idea is motivated by the analysis that the standard self-attention (SA) that operates globally tends to produce almost the same attention maps for different query positions, revealing difficulties for learning query-independent and query-dependent information jointly. Therefore, we reformulate the SA and propose query-independent (Unary) and query-dependent (Pairwise) components to facilitate the learning of both terms. In contrast to the SA, the UPA ensures query dependence via operating locally. Extensive experiments show that the UPA outperforms the SA consistently on various point cloud understanding tasks including shape classification, part segmentation, and scene segmentation. Moreover, simply equipping the popular PointNet++ method with the UPA even outperforms or is on par with the state-of-the-art attention-based approaches. In addition, the UPA systematically boosts the performance of both standard and modern networks when it is integrated into them as a compositional module.
BibTeX
@inproceedings{xiu2021enhancing,
  author = {Haoyi Xiu and Xin Liu and Weiming Wang and Kyoung-Sook Kim and Takayuki Shinohara and Qiong Chang and Masashi Matsuoka},
  title = {{Enhancing Local Feature Learning for 3D Point Cloud Processing using Unary-Pairwise Attention}},
  booktitle = {BMVC},
  year = {2021},
  url = {https://openreview.net/forum?id=5QMOrdYroK},
}
Figure