Search

Search papers and lessons

PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation

Charles R. Qi, Hao Su, Kaichun Mo et al. · 2016

PointNet is a neural network that reads a 3D point cloud directly and labels the whole shape or each point, using one small network per point and max pooling so the answer ignores point order.

On this page

  • Colour = topic mix
  • Discrete math
  • Linear algebra
  • Neural network basics
  • Calculus
  • Architectures
  • Computer vision
  • ReadReady to readNot yet

TL;DR

PointNet is a neural network that takes a 3D point cloud, which is just a list of (x, y, z) positions with no grid and no connections between them, and outputs either one label for the whole object or one label for every point. Each point is first processed by the same small network on its own. A max-pooling step then keeps the largest value of each feature across all points, so the result does not change when the points are listed in a different order.

On the ModelNet40 classification benchmark PointNet reached 89.2 percent overall accuracy using raw points alone, which the paper reports as state of the art among methods that take 3D input. It was also much cheaper to run than the volumetric and multi-view networks it competed with.

Builds on: Point Cloud, Max Pooling, Permutation Invariance · Leads to: PointNet++

Why it mattered

3D sensors such as lidar and depth cameras produce point clouds, and robots, self-driving cars and augmented-reality systems use them every day. Before PointNet, most deep learning on 3D data first converted the points into a voxel grid (see voxels) or into a set of rendered 2D images, then ran a standard Convolutional Neural Network on that. Both conversions waste memory and lose detail. PointNet showed that a network can work on the points themselves.

Its ideas went straight into later work. The second PointNet paper, PointNet++, adds local neighbourhoods to the same design. Point-based networks now appear in part segmentation of manufactured objects, scene understanding for robots and mapping pipelines. The paper's central trick, a per-point network followed by a symmetric pooling, became the default template for any model whose input is an unordered set.

History

Before 2016, deep networks for 3D data mostly used voxel grids. Voxel convolution is expensive because memory grows with the cube of the resolution, and most of a voxel grid is empty. Multi-view methods reached high accuracy on shape classification by rendering images, but they needed many views and extra computation.

Researchers also knew that sets need special treatment. Vinyals and colleagues had published a sequence-to-set model in 2015 that used attention to read unordered inputs, and recurrent approaches were tried for point sets. None of these scaled to the thousands of points typical of 3D scans while staying efficient and simple.

The PointNet paper, by Charles Qi, Hao Su, Kaichun Mo and Leonidas Guibas, appeared in 2016 and was published at CVPR in 2017. Its combination of a shared per-point network, max pooling, a small alignment network and a theorem about set functions made it simple to train and fast to run. It caught on quickly because the code was easy to adapt, and because it gave the first clear recipe for learning directly on point clouds.

The problem

A point cloud breaks the assumptions that make ordinary networks work. An image is a grid, so a convolution can slide a small window over it and reuse the same weights everywhere. A sentence is a sequence, so a Recurrent Neural Network can read it left to right. A point cloud is neither. The points have no natural order, and any two orderings of the same points describe the same shape.

The network therefore has to give the same output for every ordering. That property is Permutation Invariance. The obvious fixes each fail in a different way:

  • Sort the points into a canonical order. In three or more dimensions no sorting rule stays stable when the points move a little, so two nearly identical shapes can get very different orders. The paper also shows in experiments that an ordinary network on sorted points performs poorly.
  • Feed the points to an RNN after random shuffling during training. The RNN has to learn invariance from data, and it becomes hard to train and slow when the list has thousands of points, which is typical for point clouds.
  • Use a symmetric function that combines all the points in a way that does not depend on order. This is what PointNet does.

The paper also asks for invariance to rigid motions, such as rotating the object, and for robustness to noise and missing points.

How it works

Take a tiny cloud of four points and walk through one forward pass. Each point has three coordinates, and the network has two features per point.

  1. Input. The cloud is four points: A = (2, 1, 0), B = (0, 3, 1), C = (1, 1, 2) and D = (3, 0, 1). Each point is an (x, y, z) triple. Nothing connects the points.
  2. Per-point features. The same small network runs on every point separately. For this toy case, feature 1 is the rectified value of x minus y, and feature 2 is the rectified value of y minus x, where "rectified" means negative values become 0. Point A gives (1, 0), B gives (0, 3), C gives (0, 0) and D gives (3, 0). Each point's result depends only on that point.
  3. Max pooling. For each feature, take the largest value over all points. Feature 1 is max(1, 0, 0, 3) = 3. Feature 2 is max(0, 3, 0, 0) = 3. The output is the global feature (3, 3), one vector for the whole cloud.
  4. Check the order. Shuffle the points to D, B, A, C and run the steps again. The per-point values are the same numbers in a different order, and the maximum of a list does not depend on that order. The global feature is still (3, 3).
  5. Output. Feed the global feature to a classifier, here a fully connected layer that gives one score per class. For segmentation, the paper concatenates this global vector onto each point's own features and predicts a label per point.

Every step is a per-point operation or a max over points, so the cost grows linearly with the number of points.

flowchart LR
  P[N points, each x y z] --> T[Input transform 3x3]
  T --> M1[Shared MLP per point]
  M1 --> M2[Feature transform 64x64]
  M2 --> M3[Shared MLP up to 1024 features]
  M3 --> MP[Max pool over points]
  MP --> G[Global feature]
  G --> C[Classifier MLP and class scores]
  G --> S[Concatenate with per-point features]
  S --> PS[Per-point labels]

Two more parts of the design appear in the diagram. The transform blocks are small networks that predict a matrix that aligns the input (or the features) before the main network sees it, so a rotated chair looks like the upright chair. The segmentation branch combines the global summary with each point's local features, so each point's label depends on both its neighbourhood and the whole shape.

The math

The paper's core claim is a formula. Let a point set be S={x1,…,xn}S = \{x_1, \dots, x_n\}, where each xix_i is a vector in R3\mathbb{R}^3.

Definition: PointNet approximation

A set function ff is approximated by

f({x1,…,xn})≈g(h(x1),…,h(xn)),f(\{x_1,\dots,x_n\}) \approx g\big(h(x_1),\dots,h(x_n)\big),

where hh is a neural network applied to each point on its own, and gg is a symmetric function: its output does not change when its inputs are reordered. In PointNet, gg is a max over the points, taken separately for each feature.

Step 2 in symbols: per-point features

Let h:R3→RKh:\mathbb{R}^{3}\rightarrow\mathbb{R}^{K} be a multilayer perceptron with shared weights. For point xix_i it gives a feature vector h(xi)=(h1(xi),…,hK(xi))h(x_i)=(h_1(x_i),\dots,h_K(x_i)). The same weights are used for every ii, which is what makes the network independent of point indexing. The paper's shared MLP uses layer sizes 64, 64, 64, 128 and 1024. Each layer is a feedforward layer followed by Batch Normalization and Rectified Linear Unit (ReLU).

Step 3 in symbols: max pooling

For each feature index kk the global feature is

Fk(S)=max⁡i=1,…,nhk(xi).F_k(S) = \max_{i=1,\dots,n} h_k(x_i).

A maximum does not care about order, so Fk(S)F_k(S) is the same for every permutation of the points. This is the Max Pooling step, applied across points rather than across pixels. Each FkF_k is "active" for the point that holds the maximum, which is why the paper calls these points critical points.

Step 4 in symbols: why order does not matter

Let π\pi be any permutation of 1,…,n1,\dots,n. Then the sequence (h(xπ(1)),…,h(xπ(n)))(h(x_{\pi(1)}),\dots,h(x_{\pi(n)})) contains the same numbers as (h(x1),…,h(xn))(h(x_1),\dots,h(x_n)), so

g(h(xπ(1)),…,h(xπ(n)))=g(h(x1),…,h(xn)).g\big(h(x_{\pi(1)}),\dots,h(x_{\pi(n)})\big) = g\big(h(x_1),\dots,h(x_n)\big).

This is the definition of a symmetric function, and it is the whole reason the design works.

Step 5 in symbols: alignment and regularisation

The input transform predicts a 3×33 \times 3 matrix TT from the points and applies xi↦Txix_i \mapsto T x_i. The feature transform applies a 64×6464 \times 64 matrix AA to the 64 per-point features. A large matrix is hard to learn, so the paper pushes AA towards an Orthogonal Matrix with the extra loss term

Lreg=∥I−AAT∥F2,L_{reg} = \|I - A A^{T}\|_{F}^{2},

where II is the identity matrix and ∥⋅∥F\|\cdot\|_F is the Frobenius norm. An orthogonal matrix keeps lengths and angles unchanged, so it cannot throw away information.

The universal approximation claim

The paper's main theorem says that for any continuous set function ff on sets of nn points, with continuity measured by the Hausdorff distance between sets, the form above can approximate ff to any accuracy. The statement is the set analogue of the Universal Approximation Theorem. It says the architecture is expressive enough, not how to train it.

Worked examples

Example
Example 1: tiny and hand-computable

Two points, each with two coordinates. Feature 1 is h1(p)=ReLU(px−py)h_1(p) = \mathrm{ReLU}(p_x - p_y). Compute the global feature F1F_1 for the set {P,Q}\{P, Q\} with P=(3,1)P = (3, 1) and Q=(1,2)Q = (1, 2).

  1. Compute h1(P)h_1(P): 3−1=23 - 1 = 2, and ReLU keeps positive values, so h1(P)=2h_1(P) = 2.
  2. Compute h1(Q)h_1(Q): 1−2=−11 - 2 = -1, and ReLU turns negatives into 0, so h1(Q)=0h_1(Q) = 0.
  3. Take the maximum: F1=max⁡(2,0)=2F_1 = \max(2, 0) = 2.
  4. Swap the order to {Q,P}\{Q, P\}. The values are now 00 and 22, and the maximum is still 22.

Interpretation: the feature answers "is there a point with x larger than y, and by how much?" The answer is the same whichever point is listed first.

Example
Example 2: the standard case, the four-point cloud

Use the cloud from "How it works": A = (2, 1, 0), B = (0, 3, 1), C = (1, 1, 2), D = (3, 0, 1), with h1(p)=ReLU(px−py)h_1(p) = \mathrm{ReLU}(p_x - p_y) and h2(p)=ReLU(py−px)h_2(p) = \mathrm{ReLU}(p_y - p_x).

  1. Feature 1 at each point: A gives 2−1=12 - 1 = 1, B gives 0−3=−30 - 3 = -3 which becomes 0, C gives 1−1=01 - 1 = 0, D gives 3−0=33 - 0 = 3. So h1h_1 values are (1,0,0,3)(1, 0, 0, 3).
  2. Max of feature 1: F1=max⁡(1,0,0,3)=3F_1 = \max(1, 0, 0, 3) = 3.
  3. Feature 2 at each point: A gives 1−2=−11 - 2 = -1 which becomes 0, B gives 3−0=33 - 0 = 3, C gives 00, D gives 0−3=−30 - 3 = -3 which becomes 0. So h2h_2 values are (0,3,0,0)(0, 3, 0, 0).
  4. Max of feature 2: F2=max⁡(0,3,0,0)=3F_2 = \max(0, 3, 0, 0) = 3.
  5. Global feature: (F1,F2)=(3,3)(F_1, F_2) = (3, 3).
  6. Reorder the points as C, A, D, B. The per-point values are the same numbers in a new order, and the maxima are still 3 and 3.

Interpretation: the point with the largest x minus y (D) decides feature 1, and the point with the largest y minus x (B) decides feature 2. These are the critical points for this toy shape.

Example
Example 3: realistic, the ModelNet40 classification numbers

The paper reports 89.2 percent overall accuracy on ModelNet40, and a baseline that uses hand-made features and an MLP reaches 77.4 percent. Work out the gap and the cost comparisons from the paper's tables.

  1. Accuracy gap between PointNet and the baseline: 89.2−77.4=11.889.2 - 77.4 = 11.8 percentage points.
  2. Parameter ratio against MVCNN, which uses 60.0 million parameters: 60.0/3.5≈17.160.0 / 3.5 \approx 17.1, so PointNet has about 17 times fewer parameters.
  3. Compute ratio against MVCNN, which uses 62057 million FLOPs per sample: 62057/440≈14162057 / 440 \approx 141, so PointNet is about 141 times cheaper per sample.
  4. Compute ratio against the volumetric Subvolume network, which uses 3633 million FLOPs: 3633/440≈8.33633 / 440 \approx 8.3, so about 8 times cheaper.
  5. Throughput: the paper reports more than one million points per second, which at 1024 points per object is about 1000 objects per second, consistent with its figure of roughly 1K objects per second.

Interpretation: PointNet is not the most accurate model on every measure (the multi-view MVCNN reaches 90.1 on average class accuracy using 80 views, against PointNet's 86.2 with one view), but it gets close while using far less memory and computation.

Try it: a PointNet classifier has 3.5 million parameters and uses 440 million FLOPs per sample. A new version runs at 880 million FLOPs. How many times more expensive is it than the original, and what does the ratio tell you about speed? Answer: 880/440=2880 / 440 = 2, so it is twice as expensive per sample, which roughly halves the number of objects processed per second on the same hardware. The parameter count does not change this ratio, because FLOPs measure the arithmetic done per sample, not the size of the stored weights.

Results

The paper evaluates PointNet on three tasks.

Shape classification on ModelNet40. The dataset has 12,311 CAD models in 40 categories, split into 9,843 for training and 2,468 for testing. Each shape is sampled at 1024 points. PointNet reaches 89.2 percent overall accuracy and 86.2 percent average per-class accuracy, using one view of the point cloud. The volumetric Subvolume network reaches the same 89.2 overall with 20 views, and the multi-view MVCNN reaches 90.1 average class accuracy with 80 views.

Part segmentation on ShapeNet. The dataset has 16,881 shapes in 16 categories, annotated with 50 parts in total. The metric is mean intersection over union (mIoU), computed on points. PointNet reaches 83.7 mean IoU, compared with 81.4 for the best earlier method in the table and 79.4 for the paper's 3D convolutional baseline.

Ablations and robustness. The basic max-pooling network reaches 87.1 percent on ModelNet40. Adding the input transform raises it to 87.9. Adding the feature transform with regularisation reaches 87.4, and using both transforms gives 89.2. Under random removal of 50 percent of the points the accuracy drops by 2.4 points with furthest-point sampling and by 3.8 points with random sampling. With 20 percent outlier points added and seen in training, accuracy stays above 80 percent.

These results are limited. They cover clean CAD shapes and indoor scenes at one resolution, and multi-view rendering remains more accurate on average class accuracy. The comparisons with other methods use each method's published numbers under its own protocol.

Common mistakes and tradeoffs

It is tempting to think that because PointNet works on unordered inputs it must ignore local shape. In fact the original PointNet only looks at each point alone before the max, so it has no explicit notion of a local neighbourhood. It works because the max-pooled features pick up the global layout, and the paper's visualisations show that the critical points trace the skeleton of the object. Local structure is what the follow-up PointNet++ adds.

It is tempting to think that max pooling loses almost everything, since only one value per feature survives. In fact, the network learns features whose maxima carry the information, and the paper shows that the set of critical points is small. Removing up to half of a 1024-point cloud at random cost only a few points of accuracy in the robustness test.

It is tempting to think that a transform network makes the model rotation-proof. In fact the input transform learns to align the cloud, and it helps (Table 5 of the paper shows about 0.8 points from the input transform alone), but the result is not perfect invariance to arbitrary rotations. Training with rotations as augmentation is still needed for good results.

When to use PointNet: when the input is a set of points with no useful connectivity, when speed and memory matter, and when the task is classification or per-point labelling of a single object or a scene. When not to use it: when local geometry matters a lot, such as fine surface detail or edges, where a neighbourhood-based design does better; when the points come with a known graph, where a Graph Convolutional Network may fit better; and when the data are dense images, where a standard convolutional network is already efficient.

Alternatives: voxel-based 3D convolutions, which keep spatial structure but cost much more memory; multi-view networks, which render the object and use 2D networks; and point-based methods with local neighbourhoods, which trade some speed for detail.

Reading guide

Read the paper in this order, with the lesson each section relies on.

  1. Abstract and Section 1 (Introduction). Needs Point Cloud and Permutation Invariance. The contributions list is short, so read it twice.
  2. Section 2 (Related work). Needs Convolutional Neural Network to follow the volumetric and multi-view comparisons, and Recurrent Neural Network for the sequence-based methods.
  3. The symmetry-function part of the method. Needs Permutation Invariance and Max Pooling. The three ordering strategies and why sorting fails are here.
  4. The joint alignment part of the method. Needs Rotation Matrix and Orthogonal Matrix for the transform and regularisation.
  5. The theoretical analysis section. Needs Universal Approximation Theorem for the form of the theorem, and the Hausdorff distance in its statement.
  6. Section 5 (Experiments). Needs Intersection over Union for the segmentation metric, and Feedforward Neural Network for the MLP sizes. Table 5 and the robustness figure are the ablation results.
  7. Section 5.3 (Visualising PointNet) and 5.4 (Complexity). Needs Voxel Grid for the comparison with volumetric methods.

Check yourself

QuestionWhy does sorting the points into a canonical order not solve the permutation problem in the paper's view?Show answer

In three or more dimensions, no ordering rule stays stable when the points move slightly. Two nearly identical clouds can be sorted into very different sequences, so a network fed the sorted list must learn a mapping that jumps. The paper shows this is hard to learn in practice, and sorted MLPs perform poorly in its experiments.

QuestionThree points have feature values 4, 7 and 2. What does max pooling output, and does the answer change if the points are reordered?Show answer

The output is max⁡(4,7,2)=7\max(4, 7, 2) = 7. Reordering the points gives the same three values in a new order, and the maximum of a list does not depend on the order, so the output stays 7.

QuestionWhy does the paper add the regularisation term ∥I−AAT∥F2\|I - A A^{T}\|_{F}^{2} to the feature transform, and not to the input transform?Show answer

The feature transform is a 64 by 64 matrix, which has many more entries than the 3 by 3 input transform, so it is much harder to optimise. The regularisation pushes it towards an orthogonal matrix, which preserves lengths and angles and so cannot discard information. The paper reports that without this term the higher-dimensional transform does not train well.

QuestionA PointNet-style model processes a cloud of 2048 points instead of 1024. The paper's design is linear in the number of points. Roughly how much more work does one forward pass do?Show answer

Work is linear in the number of points, so the work is about 2048/1024=22048 / 1024 = 2 times the original, ignoring the fixed cost of the classifier head. The per-point MLP and the max pool both scale with nn, so doubling the points doubles the per-point work.

QuestionYou are building a robot that must label each point of a lidar scan as ground, wall or object. Which part of PointNet would you keep, and what would you add?Show answer

Keep the shared per-point MLP and the max-pooled global feature, then concatenate the global feature onto each point's features and predict a label per point, as the paper's segmentation network does. Add local neighbourhood information if the scan has fine edges that a single global summary may blur, which is the change made in PointNet++.

Sources

Read the full paper

Charles R. Qi, Hao Su, Kaichun Mo et al., 2016. arXiv:1612.00593