Modify Self-Attention via Skeleton Decomposition for Effective Point Cloud Transformer

Jiayi Han, Longbin Zeng, Liang Du, Xiaoqing Ye, Weiyang Ding, Jianfeng Feng

Abstract

Transformers have emerged as a powerful architecture for 3D point cloud processing, leveraging self-attention to capture global spatial relationships. However, the quadratic computational and memory complexity of standard self-attention ($O(n^2)$) presents a significant bottleneck for large-scale point clouds and resource-constrained edge devices. This paper introduces Skeleton Decomposition-based Self-Attention (SD-SA), a novel method that approximates the attention matrix using a low-rank "skeleton" of representative landmark points. By employing CUR factorization and a stabilized numerical approximation, SD-SA reduces memory usage by up to 82% and improves inference speed while maintaining or exceeding the accuracy of baseline models on standard 3D benchmarks.

Introduction: The Quadratic Bottleneck

The primary challenge in applying Transformers to 3D point clouds is the self-attention (SA) mechanism. While SA provides a global receptive field—essential for understanding unordered sets of points—its costs scale quadratically with the number of points ($n$). For instance, processing 2,048 points can require over 1GB of GPU memory for a single attention map. Existing "efficient" Transformers designed for NLP or 2D vision often rely on sequence ordering or grid structures, which do not translate well to the irregular, unordered nature of 3D point clouds.

Methodology: Skeleton Decomposition-based Self-Attention (SD-SA)

The authors observe that the attention matrices in point cloud tasks are typically low-rank. This insight allows for the use of Skeleton Decomposition (SD), or CUR factorization, to approximate the full $n \times n$ matrix $A$.

1. Skeleton Selection

Instead of computing all $n^2$ interactions, the model samples $k$ landmark points ($k \ll n$). The selection is guided by importance scoring based on $l_1$ or $l_2$ norms, ensuring that the most representative points are chosen to form the "skeleton" of the matrix.

2. Matrix Approximation and Stability

The attention matrix is decomposed into $A \approx C U R$, where $C$ and $R$ are subsets of columns and rows, and $U$ is the pseudo-inverse of their intersection. To avoid numerical instability during the inversion of the intersection matrix, the authors utilize a permuted diagonal matrix approximation. This ensures the computation remains both fast and mathematically stable.

3. Structure-Free Operation

Unlike window-based or local attention methods, SD-SA is a "pure" set operator. It does not require point ordering or spatial partitioning, making it inherently suited for the flexible nature of 3D data.

Experimental Results

The proposed SD-SA was evaluated on ModelNet40 (classification), ShapeNet (part segmentation), and KITTI (3D object detection).

Efficiency and Performance

  • Memory Footprint: On the ShapeNet benchmark, SD-SA reduced GPU memory consumption from 4.5GB (baseline SPCT) to 0.8GB—an 82% reduction.
  • Inference Speed: The method achieved nearly 2x faster inference on CPUs compared to standard Transformers.
  • Accuracy: SD-SA achieved a mean accuracy (mAcc) of 92.2% on ModelNet40, surpassing the baseline Transformer (92.0%) and significantly outperforming other efficient variants like Linformer (90.0%) and Reformer (89.7%).

Qualitative Analysis

Qualitatively, SD-SA demonstrates superior performance in part segmentation tasks. The method produces sharper and more accurate boundaries between object components compared to other efficient attention mechanisms, which often struggle with boundary definition in sparse point sets.

Qualitative comparison of part segmentation results across different attention mechanisms. SD-SA (rightmost) shows clearer boundaries on the airplane model.

Conclusion

SD-SA addresses the fundamental scalability issue of Transformers in 3D vision. By leveraging the low-rank property of attention matrices through skeleton decomposition, the method enables high-performance 3D processing on edge devices and low-power hardware without sacrificing accuracy. Future work will focus on scaling this approach to massive LiDAR scenes containing hundreds of thousands of points, where the $O(n^2)$ problem is most severe.

Summary updated

BibTeX
@inproceedings{han2022modify,
  author = {Jiayi Han and Longbin Zeng and Liang Du and Xiaoqing Ye and Weiyang Ding and Jianfeng Feng},
  title = {{Modify Self-Attention via Skeleton Decomposition for Effective Point Cloud Transformer}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i1.19962},
}
Figure