Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.A bag of points has no order
A lidar scan is just a list of 3-D points, and the order of that list means nothing: shuffle it and the scene is the same. A network that reads the points in sequence would give different answers for different orders. PointNet processes every point with the same small network, then keeps, for each feature, the largest value over all points. That maximum is the same whatever the order. The demo shuffles the order of a point cloud and shows that summed and maxed features do not change.
Lidar on autonomous vehicles and drones, depth cameras on robots, and scanned CAD parts all produce point clouds. PointNet-style networks classify, segment and detect directly from them.
- 1. A point cloud's point order…
- 2. PointNet applies to every point…
- 3. The global feature uses…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.By hand
- Symmetric function: f(x₁, …, x_n) = γ(max_i h(x_i)), where h is a shared MLP and the max is per feature dimension. max(3, 1, 2) = max(2, 3, 1) = 3.
- Shared layer: weights d_in·d_out + d_out, independent of the number of points (3 → 64 needs 256).
- Orderings: n points can be listed in n! orders (3.6 million for 10). A network must not depend on which order it receives.
- Critical points: a d-dimensional max-pooled feature is determined by at most d points (the argmax of each dimension), so PointNet tolerates missing or extra non-critical points.
- T-Net: a small network predicts an alignment matrix applied to the input (and features), approximately normalising pose.
- Segmentation: concatenate each point’s local feature with the global feature and predict per-point labels.
- 1. Orderings of 5 points:
- 2. Maximum critical points for a 1024-D global feature:
- 3. Shared-layer weights 3 → 64 (with biases):
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.PointNet in code
Exercise 1.
- The global max-pooled feature was unchanged by shuffling.
- The critical points alone reproduced it.
Practice.
- Use PyTorch Geometric (
PointNetConv), Open3D-ML or the original PointNet code. Implement shared MLPs as 1 × 1 convolutions over the point dimension. - Normalise clouds (centre and scale to the unit sphere), sample a fixed number of points (for example 1024) and augment with rotations and jitter.
- PointNet captures global shape well but not local structure; for fine detail use PointNet++ or DGCNN (next pages).
class PointNet(nn.Module):
def __init__(self, k):
super().__init__()
self.mlp = nn.Sequential(nn.Conv1d(3, 64, 1), nn.ReLU(), nn.Conv1d(64, 1024, 1), nn.ReLU())
self.head = nn.Sequential(nn.Linear(1024, 256), nn.ReLU(), nn.Linear(256, k))
def forward(self, pts): # pts: (B, 3, N), any order
return self.head(self.mlp(pts).max(dim=2).values)- 1. Shared MLPs are often implemented as…
- 2. Clouds are usually normalised to…
- 3. PointNet's weakness is…
Level 3: Advanced
★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.Theory
Permutation invariance. A function on sets must give the same output for every ordering. Any function of the form γ(Σ or max of h(x_i)) has this property.
Universal approximation. Qi and colleagues proved that continuous set functions can be approximated arbitrarily well by γ(max_i h(x_i)) with sufficiently expressive h and γ. Zaheer and colleagues proved the analogous result for sums (Deep Sets). So restricting to symmetric pooling loses no generality.
Robustness through critical points. The max-pooled feature changes only if a critical point is removed or an extreme new point appears. Removing other points has no effect, which explains PointNet’s robustness to missing data and to sampling density. Mean pooling, by contrast, is affected by every point, but degrades gracefully with noise.
- 1. γ(max_i h(x_i)) is…
- 2. The sum-based analogue is…
- 3. Removing non-critical points…
Level 4: Expert
★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.Does symmetric pooling make point-cloud features order-free and robust?
History.
- C. R. Qi, H. Su, K. Mo and L. J. Guibas, “PointNet: deep learning on point sets for 3D classification and segmentation” (CVPR 2017).
- M. Zaheer et al., “Deep sets” (NeurIPS 2017).
Exercise 2.
- Data: 2-D point clouds of 64 points from 4 shapes (circle, square outline, line, two blobs), with random scale and noise.
- Features:
- random-weight PointNet features (shared MLP 2 → 32 → 64, max or mean pooling);
- flattened coordinates (order-dependent).
- Protocol: a linear classifier, tested in the original order, with points shuffled, and (PointNet only) with half the points removed.
| features | original order | shuffled | half the points |
|---|---|---|---|
| PointNet, max pooling | 1.000 | 1.000 | 0.995 |
| PointNet, mean pooling | 0.975 | 0.975 | 0.943 |
| flattened coordinates | 0.512 | 0.270 | — |
- Symmetric pooling makes order irrelevant: PointNet’s accuracy is identical for shuffled clouds, as the theory guarantees.
- Order-dependent features fail: flattened coordinates are poor even in the original (already random) sampling order, and near chance (0.27) when shuffled.
- Max pooling is robust to missing points: with half the points removed it still scores 0.995, because the critical points are mostly retained. Mean pooling degrades more (0.943).
- Seeds: seeds 1 and 2 gave the same picture (max: 1.00/1.00 and 0.998/1.000 with half the points; flattened 0.29 and 0.27 shuffled).
PointNet in AI, robotics and aerospace
- Autonomous driving and drones: lidar object classification and segmentation (PointNet is the backbone of PointPillars-style encoders).
- Robotic grasping: reasoning directly on depth-camera point clouds.
- Inspection: comparing scanned parts with CAD models.
- Design lesson: if the input is a set, use symmetric pooling; it removes an enormous source of irrelevant variation.
References
- C. R. Qi, H. Su, K. Mo and L. J. Guibas (2017). “PointNet: deep learning on point sets for 3D classification and segmentation.” Proc. CVPR.
- M. Zaheer et al. (2017). “Deep sets.” NeurIPS.
- A. H. Lang et al. (2019). “PointPillars: fast encoders for object detection from point clouds.” Proc. CVPR.