Point Transformer
Lecturer 1
Hao-Yu Hsu
Problem Formulation
Point Cloud
Downstream Application
Quick recap of previous point-based networks
Qi, Charles R., et al. "Pointnet: Deep learning on point sets for 3d classification and segmentation." CVPR. 2017.
Qi, Charles Ruizhongtai, et al. "Pointnet++: Deep hierarchical feature learning on point sets in a metric space." NeurIPS. 2017.
Wang, Yue, et al. "Dynamic graph cnn for learning on point clouds." ACM ToG. 2019.
Li, Guohao, et al. "Deepgcns: Can gcns go as deep as cnns?." ICCV. 2019.
Wang, Shenlong, et al. "Deep parametric continuous convolutional neural networks." CVPR. 2018.
Wu, Wenxuan, Zhongang Qi, and Li Fuxin. "Pointconv: Deep convolutional networks on 3d point clouds." CVPR. 2019.
Thomas, Hugues, et al. "Kpconv: Flexible and deformable convolution for point clouds." ICCV. 2019.
Li, Yangyan, et al. "Pointcnn: Convolution on x-transformed points." NeurIPS. 2018.
Quick recap of Transformer
Transformer → multi-head self-attention layers → self-attention layers
Vaswani, A. "Attention is all you need." NeurIPS. 2017.
ML Courses: https://speech.ee.ntu.edu.tw/~tlkagk/courses/ML_2019/Lecture/Transformer%20(v5).pdf
ML Courses: https://speech.ee.ntu.edu.tw/~tlkagk/courses/ML_2019/Lecture/Transformer%20(v5).pdf
ML Courses: https://speech.ee.ntu.edu.tw/~tlkagk/courses/ML_2019/Lecture/Transformer%20(v5).pdf
ML Courses: https://speech.ee.ntu.edu.tw/~tlkagk/courses/ML_2019/Lecture/Transformer%20(v5).pdf
ML Courses: https://speech.ee.ntu.edu.tw/~tlkagk/courses/ML_2019/Lecture/Transformer%20(v5).pdf
ML Courses: https://speech.ee.ntu.edu.tw/~tlkagk/courses/ML_2019/Lecture/Transformer%20(v5).pdf
ML Courses: https://speech.ee.ntu.edu.tw/~tlkagk/courses/ML_2019/Lecture/Transformer%20(v5).pdf
ML Courses: https://speech.ee.ntu.edu.tw/~tlkagk/courses/ML_2019/Lecture/Transformer%20(v5).pdf
Point Transformer Layer & Positional Encoding
Key & Query
Value
P.E.
Value
Value
P.E.
P.E.
Key
Key
Query
Query
P.E.
relation op.
mlp
mlp
relation op.
softmax
softmax
Network Architecture (overall structure)
Zhao, Hengshuang, et al. "Point transformer." ICCV. 2021.
Network Architecture (overall structure)
Qi, Charles Ruizhongtai, et al. "Pointnet++: Deep hierarchical feature learning on point sets in a metric space." NeurIPS. 2017.
Network Architecture (layer design)
PTv1 Results
Wu, Zhirong, et al. "3d shapenets: A deep representation for volumetric shapes." CVPR. 2015.
PTv1 Results
Armeni, Iro, et al. "3d semantic parsing of large-scale indoor spaces." CVPR. 2016.
PTv1 Ablations on P.E.
Takeaway
Point Transformer v2/v3
Rachel Moan
The story so far
PTv1 | PTv2 | PTv3 |
Introduces attention networks for point clouds | … | … |
PTv1 Limitations
PTv2 Solution
PTv2: GVA and Position Encoding
PTv2: Partition based pooling
PTv1
PTv2
V2 Results
S3DIS
ScanNet
The story so far
PTv1 | PTv2 | PTv3 |
Introduces attention networks for point clouds | Improves on PTv1 architecture, better performance | … |
PTv3: Efficiency and Scalability
Point Cloud Serialization
PTv3 Results: Efficiency
PTv3 Results: Scalability
Blue dot indicates training with multi-dataset joint training (increasing the scale of the model)
The End
PTv1 | PTv2 | PTv3 |
Introduces attention networks for point clouds | Improves on PTv1 architecture, better performance | Addresses the scalability issue, maintains performance |
Archaeologist 1
Kulbir
Previous work
Figure: Attention is applied to k-nearest neighbors of each point� [Reference: Peng-Shuai Wang. 2023. OctFormer: Octree-based Transformers for 3D Point Clouds.]
Window attention
Figure: Window attention on a point cloud with front and back view. Each color represents a window.
Refer: Stratified Transformer for 3D Point Cloud Segmentation. (CVPR 2022)
Octree attention
Figure: Octree attention on a point cloud with front and back view. Note that each window has the same number of points. Each color represents a window.
Window attention v/s Octree attention
| Window attention | Octree attention |
Partition type | Cubic windows | Irregular windows |
Number of points | Unequal no. of points/window | Equal number of points/window, Parallelizable |
Attention | Local attention within each window | Local attention within each window |
Data adaptability | Limited for non-uniform data | Highly adaptable for sparse/irregular data |
Test SAM 2! : Automatic Mask Generation
OctFormer
Figure: OctFormer architecture
Figure: Window partition for the octree attention.
Refer: Peng-Shuai Wang. 2023. OctFormer: Octree-based Transformers for 3D Point Clouds. ACM Trans. Graph. (SIGGRAPH) 42, 4 (August 2023)
Why choose Octree attention?
Strengths:
Limitations:
Figure: Octree Attention [Refer: Peng-Shuai Wang. 2023. OctFormer: Octree-based Transformers for 3D Point Clouds. ACM Trans. Graph. (SIGGRAPH) 42, 4 (August 2023)]
Improvements in Point Transformer - v3
Figure: Point Transformer-v3 architecture
Why use “Structured point clouds”?
Figure: Z-order point cloud serialization space filling curve, grouped patches for local attention
Figure: Trans Z-order point cloud serialization and other additional space filling curve can help capture various spatial relationships and contexts
Archaeologist 2
Wenqi Jia
Impact of Point Transformer
| Publish Year | Citations | GitHub Stars |
Point Transformer V1 | ICCV 2021 | 1,992 | 496 |
Point Transformer V2 | NeurIPS 2022 | 250 | 349 |
Point Transformer V3 | CVPR 2024 | 59 | 738 |
Stratified Transformer for 3D Point Cloud Segmentation
Lai, Xin, et al. "Stratified transformer for 3d point cloud segmentation." (CVPR, 2022). https://openaccess.thecvf.com/content/CVPR2022/papers/Lai_Stratified_Transformer_for_3D_Point_Cloud_Segmentation_CVPR_2022_paper.pdf
Fast Point Transformer
Park, Chunghyun, et al. "Fast point transformer." (CVPR, 2022).
Debate Over Architecture Design:
is transformer really all you need?
PointMLP
Ma, Xu, et al. "Rethinking network design and local geometry in point cloud: A simple residual MLP framework." (ICLR, 2022).
PointConvFormer: a hybrid architecture
Wu, Wenxuan, Li Fuxin, and Qi Shan. "Pointconvformer: Revenge of the point-based convolution." (CVPR, 2023). https://openaccess.thecvf.com/content/CVPR2023/papers/Wu_PointConvFormer_Revenge_of_the_Point-Based_Convolution_CVPR_2023_paper.pdf
Private Investigator
David Yao
Zhao Hengshuang
Wu Xiaoyang
Industrial Practitioner
Steven Gao
Infrastructure Inspection
Non-Destructive Inspection
Why RGB sometimes aren’t enough?
Non-Destructive Inspection
Attach to a drone
Analyzing collected data is laborious!
Automating Non-Destructive Inspection
Automating Non-Destructive Inspection
Segmentation of damages and anomalies for further inspection
Natural Language Interactions
PointTransformer
Point Cloud
Supervised Fine-Tuning
User: Identify the structure damages in this bridge
Assistant: [paste in curated NTSB report]
RLHF
User: Identify the structure damages in this bridge. For each point of damage, reason step by step on how you arrived at your conclusion. Finally, provide an overall rating of the bridge.
Assistant: [Correctly itemized damages and overall assessment] 👍
Assistant: What’s a bridge? 👎
Critic
Haozhen
Point Transformer V1
Hu, Qingyong, et al. "Towards semantic segmentation of urban-scale 3D point clouds: A dataset, benchmarks and challenges." Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2021.
Point Transformer V2
OpenReview:
https://openreview.net/forum?id=I3mLa12s_H
Point Transformer V2
OpenReview:
https://openreview.net/forum?id=I3mLa12s_H
Graduate Student
Junzhe Wu
Multiple modalities
Point cloud serialization provides a robust methodology for transforming n-dimensional data into a structured 1D format. This technique can similarly be applied to image data, enabling its conversion into a language-style 1D structure that PTv3 can efficiently encode.
Multiple modalities
This encoding method for both image and pointcloud enables the development of multimodal models that bridge 2D and 3D spaces, integrates both image and point cloud data to get a better segmentation result.
Autonomous Off-Road Vehicles with 3D Terrain Adaptation
Point Transformer V3 could be applied to autonomous off-road vehicles (e.g., self-driving trucks, ATVs, or exploratory robots) to handle unstructured and unpredictable terrains. By processing detailed 3D point cloud data of rugged landscapes, these vehicles can make real-time navigation decisions and adapt to dynamic environments like forests, mountains, or desert dunes.
Hacker 1
Tianhang Cheng
Data Preparation
randomly sample 2d point cloud in image where the pixel value > 0
Result
Experiment 1: train on 30 sparse points
Input dimension: 30*2, Accuracy: 2743/10000 (27%), #Params: 25610
Experiment 2: train on sparse points, with z-ordered (row * 28 + column)
Input dimension: 30*2, Accuracy: 6662/10000 (67%), #Params: 25610
Result
Experiment 3: train on 100 sparse points
Input dimension: 100*2, Accuracy: 2056/10000 (21%), #Params: 43530
Experiment 4: train on sparse points, with z-ordered (row * 28 + column)
Input dimension: 100*2, Accuracy: 8195/10000 (82%) , #Params: 43530
Result
Experiment 3: train on 300 sparse points
Input dimension: 100*2, Accuracy: 2513/10000 (25%), #Params: 94730
Experiment 4: train on sparse points, with z-ordered (row * 28 + column)
Input dimension: 100*2, Accuracy: 8237/10000 (82%) , #Params: 94730
Summary
From bottom to up:
More point, less accuray
When there are no order
Summary
From up to bottom:
More point, more accuracy (may saturate)
When there exists an order
Hacker 2
Shaowei Liu
Short recap of KNN used in Point Transformer
Short recap of KNN used in Point Transformer
Short recap of KNN used in Point Transformer
KNN efficiency
Interactive demo of different KNN methods
KD Tree
Ball Tree
KNN methods comparison
Benchmark 5 algorithms
Number of points
Number of points
Number of points
Number of dim
Number of dim
Number of dim
Number of dim
Open-benchmarks
Conclusion