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

PointNet++

PointNet++ (Qi, Yi, Su and Guibas, NeurIPS 2017) adds local structure to PointNet. Each 'set abstraction' layer picks well-spread centroids by farthest point sampling and gathers the neighbours within a ball around each. It then runs a small PointNet on their coordinates relative to the centroid. Stacking layers builds a hierarchy, like a CNN's growing receptive field. Multi-scale grouping copes with uneven point density. This page covers sampling, grouping, the local PointNet, the hierarchy and density adaptation. In the exercises you implement farthest point sampling, ball queries and relative coordinates. You then classify clouds made of small rings, plus signs or blobs scattered at random positions. Random-weight global PointNet features scored 0.38 (chance 0.33). PointNet++ with a motif-sized ball scored 0.96. Too small a ball scored 0.59, and a ball covering the whole cloud scored 0.37.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Looking at neighbourhoods, not just the whole cloud

PointNet summarises a whole cloud in one step, so it can miss small details: the shape of a bolt head, the edge of a wing. PointNet++ works like a CNN on points. It picks a few well-spread centre points, looks at the neighbours within a small ball around each, and summarises each neighbourhood with a small PointNet. Then it repeats on the summaries with bigger balls. The demo draws each point’s nearest neighbours, the kind of local group PointNet++ processes.

Geometric deep learning lab
42 directed edges (3 per point). DGCNN rebuilds this graph in feature space after every layer, so "neighbours" change as features evolve.
Why engineers care

Fine local geometry matters in lidar segmentation (kerbs, poles, pedestrians), in inspecting scanned parts for defects, and in robot grasp planning. PointNet++ was the first point network to capture it.

📝 Quick check (Level 0)
0/3 answered
  1. 1. PointNet++ adds to PointNet…
  2. 2. Centres are chosen to be…
  3. 3. Each neighbourhood is summarised by…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

By hand

  • Set abstraction layer = sampling + grouping + local PointNet.
    • Sampling: farthest point sampling (FPS) picks k centroids, each the point farthest from those already chosen. Cost about n·k distance evaluations.
    • Grouping: a ball query collects up to K neighbours within radius r of each centroid (or k nearest neighbours).
    • Local PointNet: a shared MLP on coordinates relative to the centroid, x_j − c, then max pooling. Relative coordinates make the local feature translation-invariant.
  • Hierarchy: for example 1024 points → 512 centroids (r = 0.2) → 128 centroids (r = 0.4) → global feature. Radii grow like a CNN’s receptive field.
  • Density adaptation: multi-scale grouping (MSG) concatenates features from several radii; multi-resolution grouping (MRG) combines features from different levels. Both cope with sparse regions.
  • Segmentation: feature propagation interpolates features back to all points (inverse-distance weighting) with skip connections.
📝 Quick check (Level 1)
0/3 answered
  1. 1. FPS of 512 centroids from 1024 points costs about…
  2. 2. Relative coordinates make the local feature…
  3. 3. MSG concatenates widths 64, 128, 128 into…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

PointNet++ in code

Exercise 1.

  • FPS spreads centroids across the cloud.
  • Ball queries with relative coordinates give translation-invariant local groups.

Practice.

  • Use the CUDA kernels in the reference PointNet++ code, PyTorch Geometric (fps, radius, PointNetConv) or Open3D-ML.
  • Choose radii from the scale of the details you need (a sweep is worth it; see exercise 2).
  • Cap neighbours per ball (K = 32 or 64) and pad by repeating points.
  • Use MSG when density varies, as with lidar returns that thin out with distance.
from torch_geometric.nn import fps, radius, PointNetConv
idx = fps(pos, batch, ratio=0.5)                         # centroids
row, col = radius(pos, pos[idx], 0.2, batch, batch[idx], max_num_neighbors=32)
x = PointNetConv(local_nn, global_nn)(x, (pos, pos[idx]), torch.stack([col, row]))
🐍 Exercise 1: sampling and grouping
Implement farthest point sampling, ball query and relative coordinates.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Neighbours per ball are usually…
  2. 2. MSG helps when…
  3. 3. Radii should match…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

Hierarchical feature learning. A set-abstraction layer is a PointNet applied to each local region. It inherits permutation invariance within each region, and relative coordinates make it translation-invariant. Stacking layers gives features whose receptive field grows with depth, as in CNNs, but on irregular point sets.

Why FPS. Farthest point sampling covers the shape evenly regardless of where points are dense. Its greedy result is within a factor of 2 of the optimal k-centre covering radius.

Radius trade-off. A ball smaller than the local structure contains too few points to describe it. A ball much larger than the structure mixes many structures, and in the limit becomes a global PointNet again. Non-uniform density makes any single radius wrong somewhere, which is why MSG and MRG exist.

📝 Quick check (Level 3)
0/3 answered
  1. 1. Greedy FPS is within a factor of…
  2. 2. A ball covering the whole cloud gives…
  3. 3. Stacking set-abstraction layers grows…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

Do local neighbourhoods let point networks see small structures?

History.

  • C. R. Qi, L. Yi, H. Su and L. J. Guibas, “PointNet++: deep hierarchical feature learning on point sets in a metric space” (NeurIPS 2017).
  • Reported 90.7% on ModelNet40 (versus 89.2% for PointNet).

Exercise 2.

  • Data: 2-D clouds of 64 points made of 8 small motifs (size 0.08) at random positions in the unit square, each randomly rotated.
  • Classes: 3 classes by motif type (rings, plus signs, Gaussian blobs), so the class is only visible locally.
  • Features:
    • random-weight global PointNet;
    • one PointNet++ set-abstraction layer: 16 FPS centroids, ball radius r, local PointNet on relative coordinates, then the mean over centroids.
  • Classifier: linear.
features test accuracy
global PointNet 0.380
PointNet++, r = 0.02 (too small) 0.590
PointNet++, r = 0.1 0.957
PointNet++, r = 0.2 0.960
PointNet++, r = 0.5 0.730
PointNet++, r = 3 (whole cloud) 0.373
  • Global features cannot see local motifs: PointNet is near chance (0.33), because the extremes of its features depend on where motifs are placed, not what they are.
  • A motif-sized ball works: with r = 0.1–0.2, relative coordinates within each ball reveal the motif, and accuracy reaches 0.96.
  • The radius matters: too small (0.02) sees one or two points; too large (0.5) mixes motifs. A ball covering everything (r = 3) is a global PointNet again, back to 0.37.
  • Seeds: seeds 1 and 2 gave PointNet 0.31/0.36, r = 0.2 at 0.97/0.98, and r = 3 at 0.39/0.38.
🐍 Exercise 2 (research): do local neighbourhoods let point networks see small structures?
Classify clouds of scattered motifs with global PointNet features and PointNet++ set abstraction at several ball radii.

PointNet++ in AI, robotics and aerospace

  • Autonomous driving: lidar semantic segmentation and 3-D detection backbones (PointRCNN, VoteNet).
  • Robotics: grasp detection from local surface geometry.
  • Aerospace manufacturing: detecting dents and rivet defects in scanned fuselage panels.
  • Design lesson: match the neighbourhood size to the scale of the structure you need to see.

References

  1. C. R. Qi, L. Yi, H. Su and L. J. Guibas (2017). “PointNet++: deep hierarchical feature learning on point sets in a metric space.” NeurIPS.
  2. S. Shi, X. Wang and H. Li (2019). “PointRCNN: 3D object proposal generation and detection from point cloud.” Proc. CVPR.
  3. T. F. Gonzalez (1985). “Clustering to minimize the maximum intercluster distance.” Theoretical Computer Science.