Foundations to Frontier
Tests
E. Deep Learning › E18 Geometric and Equivariant Networks

PointNet

PointNet (Qi, Su, Mo and Guibas, CVPR 2017) was the first deep network to consume raw point clouds, unordered sets of 3-D points from lidar, depth cameras or CAD sampling, without converting them to voxels or images. It applies the same small MLP to every point and combines the results with a symmetric function, max pooling, so the output does not depend on point order. The global feature depends only on a small set of 'critical points', which makes it robust to missing points. This page covers permutation invariance, shared MLPs, max pooling, critical points and alignment networks. In the exercises you implement a shared MLP and global max pooling and find the critical points. You then classify 2-D shape clouds with random-weight PointNet features. They scored 1.00 in any point order and 0.995 with half the points removed. Order-dependent flattened coordinates scored 0.51, falling to 0.27 when the points were shuffled.

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.

Geometric deep learning lab
Points processed in order 13, 7, 3, 10, 2, 1, …: sum of features 3.273, max 0.908. Any order gives the same values, which is why PointNet pools with a symmetric function.
Why engineers care

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.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A point cloud's point order…
  2. 2. PointNet applies to every point…
  3. 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.
📝 Quick check (Level 1)
0/3 answered
  1. 1. Orderings of 5 points:
  2. 2. Maximum critical points for a 1024-D global feature:
  3. 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)
🐍 Exercise 1: shared MLP and max pooling
Implement a shared per-point layer, the global max-pooled feature and the critical point set.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Shared MLPs are often implemented as…
  2. 2. Clouds are usually normalised to…
  3. 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.

📝 Quick check (Level 3)
0/3 answered
  1. 1. γ(max_i h(x_i)) is…
  2. 2. The sum-based analogue is…
  3. 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).
🐍 Exercise 2 (research): does symmetric pooling make point-cloud features order-free and robust?
Classify 2-D shape clouds with PointNet features (max and mean pooling) and flattened coordinates, testing shuffled and half-missing clouds.

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

  1. 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.
  2. M. Zaheer et al. (2017). “Deep sets.” NeurIPS.
  3. A. H. Lang et al. (2019). “PointPillars: fast encoders for object detection from point clouds.” Proc. CVPR.