Skip to content

Tabular, time-series, scientific, and geometric deep learning · Sets, point clouds, and geometric learning · SPE007 · Architecture

PointNet

PointNet directly processes unordered three-dimensional points for classification and segmentation, avoiding voxelization. Shared pointwise features and a symmetric max operation create a global representation;

Partly runs in CodeSplash (Experimental) Component demo, not a trained model CodeSplash's run and the reference's record

In CodeSplash

A CodeSplash method covers part of this entry; some options or variants aren't built yet. The methods that run it are Experimental.

Do it in CodeSplash Run it on your own data. It's in the Experimental lane in the app.

Availability
Partly runs in CodeSplash (Experimental)
Code example
Component demo, not a trained model
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
Verified in Python and R through learn.set_model. The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

PointNet directly processes unordered three-dimensional points for classification and segmentation, avoiding voxelization. Shared pointwise features and a symmetric max operation create a global representation; segmentation combines local and global information.

Question / hypotheses

The operative question is whether the specified representation, symmetry, likelihood or physical constraint improves held-out behavior for this data domain. This is a learning framework, not a null-hypothesis test; losses, attention weights and predictive confidence are not statistical p-values.

Architecture / computational structure

Shared pointwise MLPs transform coordinates/features, optional learned transformation networks align inputs/features, and max pooling aggregates a global descriptor before task-specific heads.

Assumptions

Permutation invariance does not automatically imply rotation invariance. Independent point processing before global pooling has limited explicit local-neighborhood modeling. Sampling density, occlusion and outlier points can alter the descriptor.

Formula / computational definition

f({xi})=γ(max⁡ih(xi))f(\{x_i\})=\gamma(\max_i h(x_i)), with componentwise maximum and shared feature map hh. An optional transformation regularizer penalizes ∥I−AAT∥F2\|I-AA^T\|_F^2 for a learned feature transform AA.

Parameters and notation

Learned or estimated: Shared point-feature weights, transformation networks, global classifier and/or pointwise segmentation head.

Hyperparameters and effects: Point count, feature width, alignment regularization, augmentation, pooling, sampling and optimizer. Point subsampling trades resolution for compute; global max emphasizes a subset of critical points.

Fitting, fine-tuning, and adaptation

Train classification/segmentation loss with declared geometric augmentation. Transfer a frozen point encoder and new head, then unfreeze upper blocks with a smaller learning rate. Recheck coordinate units, orientation and feature channels before reuse; compare source and target performance to detect forgetting.

How to use and calibrate

Define the independent evaluation unit before preprocessing: row/entity, whole set/object, molecule/trajectory, input function or chronological forecasting origin. Keep target construction and normalization within permitted training data. Evaluate classification accuracy or segmentation IoU, permutation invariance, rotations, point dropout, noise and density shifts. Use object/scene-disjoint splits to avoid near-duplicate scans.

Example application

Classify scanned objects or assign part labels to an unordered point cloud. This is a proposed use case, not a claim of validated performance on supplied real data.

Interpretation / pitfalls

Watch out

Assess model error against domain baselines and the stated assumptions. Component-level mathematical correctness does not establish paper reproduction or scientific validity. Invariance/equivariance checks validate transformation behavior; they do not establish correct physical dynamics or chemical accuracy.

Python and R code examples

Scope: PointNet shared pointwise transform with componentwise max pooling. Use the shared setup. Dependencies: NumPy / base R. Validation: Python executed; R unexecuted.

Full-model route: Python: official PointNet or custom pointwise layers. R: native torch components or bridge. The example implements shared point features and max pooling, explicitly omitting learned alignment and a trained classifier.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Component demo, not a trained model — PointNet shared pointwise transform with componentwise max pooling. Use the shared setup.

Shared setup for this chapter
import numpy as np
def sm(x):
    x=np.asarray(x); e=np.exp(x-x.max(axis=-1,keepdims=True)); return e/e.sum(axis=-1,keepdims=True)
P=np.array([[0.,0.,0.],[1.,0.,0.],[0.,1.,.5]])
W=np.array([[.2,.4],[.5,-.1],[.3,.2]])
def pointnet(A): return np.maximum(A@W,0).max(axis=0)
assert np.allclose(pointnet(P),pointnet(P[[2,0,1]]))
print(pointnet(P))
R

Component demo, not a trained model — PointNet shared pointwise transform with componentwise max pooling. Use the shared setup.

Shared setup for this chapter
sm <- function(x) {
  if(is.null(dim(x))) { e<-exp(x-max(x)); return(e/sum(e)) }
  t(apply(x,1,function(v) { e<-exp(v-max(v)); e/sum(e) }))
}
P<-matrix(c(0,0,0,1,0,0,0,1,.5),3,byrow=TRUE)
W<-matrix(c(.2,.4,.5,-.1,.3,.2),3,byrow=TRUE)
pointnet<-function(A) apply(pmax(A%*%W,0),2,max)
stopifnot(max(abs(pointnet(P)-pointnet(P[c(3,1,2),])))<1e-12); print(pointnet(P))

Sources

From the CodeSplash reference, entry SPE007.