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.
★☆☆☆☆ 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. PointNet++ adds to PointNet…
2. Centres are chosen to be…
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. FPS of 512 centroids from 1024 points costs about…
2. Relative coordinates make the local feature…
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.
Implement farthest point sampling, ball query and relative coordinates.
📝 Quick check (Level 2)
0/3 answered
1. Neighbours per ball are usually…
2. MSG helps when…
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. Greedy FPS is within a factor of…
2. A ball covering the whole cloud gives…
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.
Scattered motifs: global PointNet 0.38; PointNet++ 0.96 at a motif-sized radius; 0.37 with a whole-cloud radius.
Practice
Show:
Level 0
Problem 1Level 0
Year PointNet++ was published?
2017.
Problem 2Level 0
Centroids after keeping half of 1024 and then a quarter of those?
128.
Problem 3Level 0
Grouped points for 512 centroids × 32 neighbours?
16384.
Level 1
Problem 4Level 1
Distance evaluations for FPS of 512 from 1024 points (n·k)?
524288.
Problem 5Level 1
MSG channels for widths 64, 128, 128?
320.
Problem 6Level 1
Fraction of a 2 × 2 square covered by a ball of radius 0.1 (π r² / 4)?
0.007854.
Problem 7Level 1
Approximation factor of greedy FPS for the k-centre radius?
2.
Level 2
Problem 8Level 2
Global PointNet accuracy in exercise 2?
0.38.
Problem 9Level 2
PointNet++ accuracy at r = 0.2?
0.96.
Problem 10Level 2
PointNet++ accuracy at r = 0.02?
0.59.
Problem 11Level 2
PointNet++ accuracy at r = 3?
0.373.
Problem 12Level 2
PointNet++ accuracy at r = 0.5?
0.73.
Problem 13Level 2
FPS centroids per cloud in exercise 2?
16.
Level 3
Problem 14Level 3
Prove that the local feature max over x_j in B(c, r) of h(x_j − c) is unchanged when the whole cloud is translated.
Translate every point by t. Centroids are chosen by distances, which are unchanged, so the centroid becomes c + t. Ball membership depends on ‖x_j − c‖, also unchanged. Each relative coordinate (x_j + t) − (c + t) = x_j − c, so h and the max are unchanged. ∎
Problem 15Level 3
Explain why a whole-cloud radius brought accuracy back to PointNet’s level.
With r = 3 every ball contains every point, so each centroid’s feature is a max of h over the whole cloud (shifted by the centroid). The local motif is no longer isolated, and the features depend mainly on where motifs were placed, as with global PointNet. ∎
Problem 16Level 3
Compare ball query with k-nearest-neighbour grouping.
A ball query fixes the spatial scale, so features mean the same thing everywhere, but sparse regions get few points. kNN fixes the number of neighbours, so every group is full, but its spatial extent varies with density. PointNet++ uses balls with a cap; DGCNN (next page) uses kNN in feature space. ∎
Problem 17Level 3
Advise on choosing radii for lidar segmentation on a drone.
Lidar density falls with range, so use multi-scale grouping with radii spanning the smallest objects of interest (poles, wires) up to buildings. Sweep radii on validation data split by range, cap neighbours, and check accuracy on far, sparse returns separately. ∎
Level 4
Problem 18Level 4
PointNet++ accuracy at r = 0.1?
0.957.
Problem 19Level 4
PointNet++ accuracy at r = 0.2, seed 2?
0.983.
Problem 20Level 4
Motifs per cloud in exercise 2?
8.
Coding practice
🐍 Code 1 (Level 0): centroids
Points left after successive layers.
🐍 Code 2 (Level 0): grouped points
k · K.
🐍 Code 3 (Level 0): ball area
π r² / side².
🐍 Code 4 (Level 0): MSG channels
Sum of widths.
🐍 Code 5 (Level 0): FPS cost
n · k.
Topic test
A timed test drawn at random from this topic's question bank. Each attempt gets new questions. For a longer test across the whole chapter, see the chapter test, or mix topics in the question bag.
PointNet++: topic test
10 questions, drawn at random from a bank of 21. Every attempt is different.
⏱ Time limit: 15 minutes. The test submits itself when time runs out.
Levels covered: 0, 1, 2, 3, 4. No hints or solutions until you submit.