Point-cloud learning: what should change when the points move?
点云学习
Train shared point features and two heads; inspect symmetry, neighborhoods, derivatives and a strong simple baseline.
point-cloudsThe chair stays a chair when the file rows move
A scanner records the same chair twice. Both files contain the same three-dimensional coordinates, but the second file lists them in a different order. A classifier should give the same chair score. A segmentation model should attach the same label to each physical point, even though the labels now occupy different rows.
This is the starting distinction in point-cloud learning: classification should be permutation invariant, while per-point prediction should be permutation equivariant. Neither property guarantees that turning the chair upside down, adding a distant outlier, or scanning only its back will preserve the answer. PointNet builds a shared pointwise representation and a symmetric aggregation around this distinction. PointNet++ introduces local neighborhoods and hierarchy; DGCNN recomputes neighborhoods in learned feature spaces. PointNet PointNet++ DGCNN
A point cloud is an unordered collection of sampled locations, often accompanied by color, intensity, normals, timestamps or sensor confidence. The sampling process matters. Missing glass surfaces, occluded legs and a moving person are not ordinary row permutations. A point cloud also does not automatically supply mesh faces, a watertight surface, free-space labels or an absolute unit of length.
Before fitting a network, write down the coordinate frame, units, extra channels, object or scene boundaries, and train/test split. A millimeter cloud interpreted as meters changes every physical-radius neighborhood. Splitting points from one scanned object across training and testing can leak its geometry; hold out whole objects or scenes when that is the intended generalization task.
| Question | Sensible first check | What the check cannot establish |
|---|---|---|
| Did file row order change? | Permute rows and compare predictions | Robustness to a different scan |
| Are the objects axis-aligned and differently stretched? | Compare coordinate variances | Recognition under arbitrary rotations |
| Is this neighborhood approximately planar? | Inspect covariance eigenvalues | A globally consistent normal direction |
| Did a model learn transferable geometry? | Evaluate separate objects, sensors and conditions | Deployment performance from one synthetic split |
Our complete NumPy example trains a small shared network for object classification and per-point labels. It also includes geometric preprocessing and one differentiable EdgeConv layer. It does not reproduce the full PointNet, PointNet++ or DGCNN architecture or their benchmarks. The non-neural variance baseline is part of the experiment, not a result to hide when it works well.
Order is a symmetry; geometry adds other choices
Specify the symmetry precisely
Represent one cloud as rows of a matrix and let a permutation matrix reorder them:
An object classifier F and per-point predictor G should satisfy:
The same shared function must process every point; a separate weight for row 17 would make the file position meaningful. Our model uses a tanh layer, channelwise maximum and a linear object head:
Here W has shape 3 by K, H has N rows and K channels, and C has shape K by 2 for the two toy classes. The code stores g and a as one-dimensional arrays. A permutation changes the rows of H but not the maximum of each column. The final linear map therefore receives the same g. This is an algebraic property of the fixed model, not something that training must discover. PointNet, shared features and symmetry
For segmentation, concatenate each local row with that same global summary:
Reordering points reorders the local rows while leaving g unchanged. Consequently the output rows follow the input permutation. The global summary allows a point’s label to depend on the rest of the object; it does not explicitly encode every pairwise geometric relation.
Max pooling: useful compression with narrow guarantees
For a unique maximum in channel k, its upstream derivative goes to the maximizing point. At a tie, the maximum is not differentiable; our program chooses an equal-share subgradient:
The hat marks a chosen subgradient at ties. It is not a claim that all frameworks choose the same derivative. The classification gradient enters only through the maxima; the segmentation loss adds direct local gradients to other points.
Choose one maximizer per channel and keep the union of those points. There are at most K distinct retained points, and they reproduce g for this fixed pointwise feature map. Adding a duplicate row also preserves g. Adding a point whose features exceed an existing maximum need not preserve it. These are exact statements about max pooling; they do not imply that arbitrary point removal or outlier addition is harmless. PointNet’s analysis relates critical points and an upper-bound set under stated conditions. Its universal-approximation result concerns continuous set functions on a specified bounded domain with fixed cardinality and sufficiently wide representations; it is not a guarantee that our trained K=12 model recognizes every shape. PointNet, section 4.3
There is another trap: preprocessing may depend on the whole set. Our zero-mean, unit-radius normalization is
It removes a common translation and positive uniform scale when r is nonzero. Duplicating only one point changes the mean and can change every normalized coordinate. A critical subset preserves the fixed normalized features only if it is not independently renormalized. Keep this boundary explicit when testing invariance.
Neighborhoods and normals
A voxel grid assigns each coordinate to an integer cell using floor, then can replace all points in that cell with their centroid. Negative coordinates require floor rather than truncation toward zero. Grid size has the same units as the coordinates; moving the grid origin can change which points share cells.
For a local neighborhood, principal-component analysis uses
For a sufficiently planar, non-collinear neighborhood, the smallest-eigenvalue eigenvector is a local normal estimate. Both n and −n fit equally well. A collinear neighborhood has multiple zero-variance directions; an isotropic neighborhood has no preferred normal. Our function rejects the former and returns an eigenvalue-gap diagnostic for the latter. An eigenvector always being available is not evidence that a meaningful surface was observed.
A k-nearest-neighbor query fixes the number of neighbors but changes its physical radius with density. A ball query fixes a radius but has a variable count. Farthest-point sampling repeatedly chooses the point with the largest distance to the already selected set, then local groups can be processed by shared point networks. PointNet++ builds this hierarchy and combines scales to address changing sampling density. PointNet++, sections 3.1–3.3
Implementation details can change strict symmetry. The inspected PointNet++ GPU code starts farthest-point sampling at input index zero and its ball query keeps the first matching points up to a cap. Permuting the input can therefore change the sampled centers or capped neighborhoods. Our teaching FPS also starts at index zero; unlike that kernel, it explicitly prevents selecting an already selected index when duplicate coordinates exhaust the distances. Our ball query uses an open radius and returns an empty array when there are no hits, rather than assuming padded indices are valid. These are stated conventions, not a bit-for-bit upstream reproduction. Fixed sampling code Grouping code
PointNet++ also propagates coarse features back to denser sets using distance-weighted interpolation and skip links. Its paper specifies three neighbors and inverse squared distance as defaults. Zero-distance handling needs an explicit implementation rule; this program does not implement the hierarchy or that interpolation, so it makes no claim to reproduce those components. PointNet++, section 3.4
EdgeConv learns relations, then may change the graph
For each center i, take neighbors in the current feature space and compute
The edge function combines the center’s features with the relative difference. This is a small tanh teaching instance of the edge-aggregation idea, not the paper’s full network. DGCNN updates nearest neighbors using the features produced at successive layers; spatially distant points can become neighbors in learned feature space. DGCNN, sections 3.1–3.3
The difference term cancels a common translation; the center term does not. If the weights on the center channels are zero, this particular layer becomes translation invariant with respect to its feature inputs, provided the neighbor graph stays the same. Including the center is useful information, so there is no reason to silently claim that invariance for the general layer.
Nearest-neighbor indices change discretely. Away from distance ties and neighbor-boundary crossings, differentiate the selected edges as a fixed graph; the code also checks this derivative with graph recomputation at a point where the graph stays unchanged. At a boundary, the same smooth derivative need not exist. Equal distances are broken by input index in our kNN, which can itself break exact permutation equivariance at ties.
Alignment penalties do not certify rotation invariance
PointNet predicts input and feature transformations with small networks. Its feature transform is softly encouraged toward orthogonality. Our standalone diagnostic computes the unhalved squared Frobenius penalty and derivative:
The trained toy model does not contain a transform network. In the inspected upstream classifier, the regularizer is implemented with TensorFlow’s l2_loss, which returns half the sum of squared entries; our standalone penalty omits that half. Equal numeric coefficients therefore do not mean equal penalties. TensorFlow operation definition The inspected transform heads initialize their final weights to zero and add an identity bias. We did not run the upstream TensorFlow model. PointNet paper Fixed classifier Transform heads
Even zero orthogonality penalty allows a reflection, because an orthogonal matrix can have determinant −1. A soft penalty, a learned alignment function and guaranteed invariance to every rotation are three different claims. Test the transformation actually relevant to the application.
Training objective and cost
The program averages object cross-entropy and adds one quarter of the mean per-point cross-entropy for each object:
It subtracts the largest logit before exponentiation. Object and part losses use separate heads but both update the shared W and b. Every weight, bias and input derivative is implemented directly in NumPy; finite differences provide a separate numerical check.
The shared gradient has two routes. Write U for the concatenated segmentation features, B for the pooling subgradient above, and e for a one-hot target. Treat head derivatives as row vectors and g as a column in the outer product below. The segmentation mean contributes the factor 1/N; object cross-entropy has one target for this object.
The head-bias gradients are D_c and the row sum of D_s. Broadcasting D_g back to all points and multiplying by B sends its contribution only to channel maxima. The local route adds a gradient before the tanh derivative. Averaging these per-object gradients gives the batch gradient used by train. Thus a point can receive segmentation supervision even when it wins no max-pool channel.
For N points, input dimension d and K hidden channels, the shared layer costs O(NdK), pooling O(NK), and hidden storage O(NK), with additional head costs determined by the number of classes. Our brute-force neighbor construction costs O(N²d) time and O(N²) distance storage, followed by full row sorting; it is not a scalable nearest-neighbor index. FPS costs O(MNd) for M centers. This small program makes intermediate arrays inspectable instead of claiming production memory efficiency.
Run a full model and a baseline on separate objects
Use Python 3.12 with NumPy 1.26.4. Save the following as points.py and run python points.py. It generates 24 training objects with seed 17 and 16 different test objects with seed 29, each with 24 sampled points. The two object classes are unit-sphere samples and x-axis-stretched ellipsoid samples, normalized per object. Per-point labels indicate positive normalized z. These labels create a transparent synthetic learning problem, not a semantic segmentation dataset.
The model has K=12, deterministic initialization, 120 full-batch gradient steps and learning rate 0.15. A fixed variance-ratio threshold provides the classification baseline. No threshold or hyperparameter is fitted to the test labels.
"""Original NumPy point-set teaching models; not a PointNet benchmark replica.
Known conventions: nonempty finite sets, channelwise max (ties share gradient),
FPS starts at input index zero, capped open-ball queries keep input order,
kNN excludes self and breaks distance ties by input index. Dense neighborhoods.
"""
import json
import numpy as np
def cloud(value, dim=None):
x=np.asarray(value,dtype=float)
if x.ndim!=2 or not len(x) or not x.shape[1] or not np.isfinite(x).all():
raise ValueError('A nonempty finite N by D cloud is required')
if dim is not None and x.shape[1]!=dim:raise ValueError('Wrong feature dimension')
return x
def count(value,maximum):
if isinstance(value,(bool,np.bool_)) or not isinstance(value,(int,np.integer)) or not 1<=value<=maximum:
raise ValueError('Count must be an integer in the available range')
return int(value)
def normalize(x):
x=cloud(x,3);center=x.mean(axis=0);y=x-center;scale=np.linalg.norm(y,axis=1).max()
if scale<1e-12:raise ValueError('A coincident cloud has no geometric scale')
return y/scale,center,scale
def voxel_centroids(x,size):
x=cloud(x,3)
if not np.isfinite(size) or size<=0:raise ValueError('Positive finite voxel size required')
cells=np.floor(x/size)
if np.max(np.abs(cells))>=2**52:raise ValueError('Voxel indices exceed reliable float precision')
keys,inverse=np.unique(cells.astype(np.int64),axis=0,return_inverse=True)
return keys,np.array([x[inverse==i].mean(axis=0) for i in range(len(keys))])
def normal_pca(x):
x=cloud(x,3)
if len(x)<3:raise ValueError('At least three neighbors required')
y=x-x.mean(axis=0);values,vectors=np.linalg.eigh(y.T@y/len(x))
if values[1]<=1e-12*max(values[2],1e-30):raise ValueError('Collinear or coincident neighborhood')
# Sign is intrinsically ambiguous; eigenvalue gap reports stability.
return vectors[:,0],values,float((values[1]-values[0])/max(values[2],1e-30))
def fps(x,m):
x=cloud(x);m=count(m,len(x));selected=[];distance=np.full(len(x),np.inf)
current=0
for _ in range(m):
selected.append(current)
distance=np.minimum(distance,np.sum((x-x[current])**2,axis=1))
# Unlike the upstream GPU kernel, ensure distinct indices on duplicates.
distance[selected]=-np.inf
current=int(np.argmax(distance))
return np.array(selected)
def ball_query(x,centers,radius,cap):
x=cloud(x);centers=cloud(centers,x.shape[1]);cap=count(cap,len(x))
if not np.isfinite(radius) or radius<=0:raise ValueError('Positive finite radius required')
groups=[]
for c in centers:
hits=np.flatnonzero(np.linalg.norm(x-c,axis=1)<radius)[:cap]
groups.append(hits) # Empty groups stay empty; no uninitialized padded indices.
return groups
def knn(x,k):
x=cloud(x);k=count(k,len(x)-1)
distance=np.sum((x[:,None]-x[None,:])**2,axis=2)
np.fill_diagonal(distance,np.inf)
return np.argsort(distance,axis=1,kind='stable')[:,:k]
def max_pool(h):
h=cloud(h);g=h.max(axis=0);mask=h==g
return g,mask/mask.sum(axis=0)
def orthogonal_penalty(a,weight=.01):
a=cloud(a)
if a.shape[0]!=a.shape[1] or not np.isfinite(weight) or weight<0:
raise ValueError('Square transform and nonnegative finite weight required')
error=a@a.T-np.eye(len(a))
return float(weight*np.sum(error**2)),4*weight*error@a
def edgeconv(x,weight,bias,k,adjacency=None):
"""One tanh EdgeConv; optional fixed graph for piecewise derivative checks."""
x=cloud(x);w=cloud(weight);b=np.asarray(bias,dtype=float)
if w.shape[0]!=2*x.shape[1] or b.shape!=(w.shape[1],) or not np.isfinite(b).all():
raise ValueError('Edge MLP dimensions must agree')
k=count(k,len(x)-1)
neighbors=knn(x,k) if adjacency is None else np.asarray(adjacency)
if neighbors.shape!=(len(x),k) or not np.issubdtype(neighbors.dtype,np.integer) or np.any(neighbors<0) or np.any(neighbors>=len(x)):
raise ValueError('Valid neighbor indices required')
center=np.broadcast_to(x[:,None],(len(x),k,x.shape[1]))
features=np.concatenate([center,x[neighbors]-center],axis=2)
hidden=np.tanh(features@w+b);out=hidden.max(axis=1)
mask=hidden==out[:,None];pool=mask/mask.sum(axis=1,keepdims=True)
return out,(x,w,neighbors,features,hidden,pool)
def edge_backward(upstream,cache):
x,w,neighbors,features,hidden,pool=cache
upstream=cloud(upstream,hidden.shape[-1])
if len(upstream)!=len(x):raise ValueError('One upstream row per center required')
dz=upstream[:,None]*pool*(1-hidden**2)
dw=np.einsum('nkd,nkh->dh',features,dz);db=dz.sum(axis=(0,1));df=dz@w.T
d=x.shape[1];dx=(df[:,:,:d]-df[:,:,d:]).sum(axis=1)
np.add.at(dx,neighbors.reshape(-1),df[:,:,d:].reshape(-1,d))
return dx,dw,db
def init_model(hidden=12,seed=13):
hidden=count(hidden,1024);rng=np.random.default_rng(seed)
return {'w':rng.normal(0,.5,(3,hidden)),'b':np.zeros(hidden),
'c':rng.normal(0,.2,(hidden,2)),'d':np.zeros(2),
's':rng.normal(0,.2,(2*hidden,2)),'t':np.zeros(2)}
def predict(x,p):
x=cloud(x,3)
if set(p)!={'w','b','c','d','s','t'} or np.ndim(p['b'])!=1:
raise ValueError('All six model parameter arrays are required')
shapes={'w':(3,len(p['b'])),'b':(len(p['b']),),'c':(len(p['b']),2),'d':(2,),
's':(2*len(p['b']),2),'t':(2,)}
if not len(p['b']) or set(p)!=set(shapes) or any(np.shape(p[key])!=shape or not np.isfinite(p[key]).all() for key,shape in shapes.items()):
raise ValueError('Finite model parameters with matching shapes required')
h=np.tanh(x@p['w']+p['b']);g,pool=max_pool(h)
combined=np.c_[h,np.broadcast_to(g,h.shape)]
return g@p['c']+p['d'],combined@p['s']+p['t'],(x,h,g,pool,combined)
def cross_entropy(logits,labels):
logits=cloud(logits);labels=np.asarray(labels)
if labels.shape!=(len(logits),) or not np.issubdtype(labels.dtype,np.integer) or np.any(labels<0) or np.any(labels>=logits.shape[1]):
raise ValueError('One valid integer class per row required')
shifted=logits-logits.max(axis=1,keepdims=True);logz=np.log(np.exp(shifted).sum(axis=1))
loss=np.mean(logz-shifted[np.arange(len(labels)),labels])
derivative=np.exp(shifted-logz[:,None]);derivative[np.arange(len(labels)),labels]-=1
return float(loss),derivative/len(labels)
def loss_grad(x,label,parts,p,seg_weight=.25):
if not np.isfinite(seg_weight) or seg_weight<0:raise ValueError('Nonnegative finite segmentation weight required')
cls,seg,(x,h,g,pool,combined)=predict(x,p)
lc,dc=cross_entropy(cls[None],np.asarray([label]));ls,ds=cross_entropy(seg,parts)
dc=dc[0];ds*=seg_weight
grad={'c':np.outer(g,dc),'d':dc,'s':combined.T@ds,'t':ds.sum(axis=0)}
dz=ds@p['s'].T;hidden=h.shape[1]
dg=dc@p['c'].T+dz[:,hidden:].sum(axis=0)
dh=dz[:,:hidden]+pool*dg;da=dh*(1-h*h)
grad.update(w=x.T@da,b=da.sum(axis=0))
return lc+seg_weight*ls,grad,da@p['w'].T
def dataset(objects,seed):
objects=count(objects,10000);rng=np.random.default_rng(seed);result=[]
for i in range(objects):
label=i%2;x=rng.normal(size=(24,3));x/=np.linalg.norm(x,axis=1,keepdims=True)
if label:x*=np.array([2.4,.6,.6])
x,_,_=normalize(x);parts=(x[:,2]>0).astype(int)
result.append((x,label,parts))
return result
def train(data,steps=120,rate=.15):
steps=count(steps,10000)
if not data or not np.isfinite(rate) or rate<=0:raise ValueError('Nonempty data and positive finite rate required')
p=init_model();history=[]
for _ in range(steps):
total=0.;grad={k:np.zeros_like(v) for k,v in p.items()}
for x,label,parts in data:
loss,d,_=loss_grad(x,label,parts,p);total+=loss
for key in p:grad[key]+=d[key]/len(data)
history.append(total/len(data))
for key in p:p[key]-=rate*grad[key]
return p,history
def evaluate(data,p):
obj=[];parts=[];baseline=[]
for x,label,truth in data:
a,b,_=predict(x,p);obj.append(int(a.argmax())==label);parts.extend(b.argmax(axis=1)==truth)
# Deliberately simple known orientation baseline, not fitted on test objects.
ratio=np.var(x[:,0])/np.mean(np.var(x[:,1:],axis=0))
baseline.append(int(ratio>2)==label)
return {'object_accuracy':float(np.mean(obj)),'part_accuracy':float(np.mean(parts)),
'axis_variance_baseline_accuracy':float(np.mean(baseline))}
def demo():
train_set=dataset(24,17);test_set=dataset(16,29);p,history=train(train_set)
x,label,parts=test_set[0];permutation=np.random.default_rng(1).permutation(len(x))
a,b,_=predict(x,p);ap,bp,_=predict(x[permutation],p)
critical=np.unique(np.argmax(np.tanh(x@p['w']+p['b']),axis=0))
reduced=predict(x[critical],p)[0]
return {'train_objects':len(train_set),'test_objects':len(test_set),'points_per_object':len(x),
'initial_train_loss':history[0],'final_train_loss':float(np.mean([loss_grad(*item,p)[0] for item in train_set])),
'test':evaluate(test_set,p),'critical_points_on_first_test_object':len(critical),
'critical_subset_classification_error':float(np.max(np.abs(a-reduced))),
'permutation_classification_error':float(np.max(np.abs(a-ap))),
'permutation_segmentation_error':float(np.max(np.abs(b[permutation]-bp))),
'training_losses':history}
if __name__=='__main__':print(json.dumps(demo(),indent=2))
The recorded run produced the following summary; the full JSON includes the training-loss sequence:
{
"train_objects": 24,
"test_objects": 16,
"points_per_object": 24,
"initial_train_loss": 1.0096980663785542,
"final_train_loss": 0.17448768695904268,
"test": {
"object_accuracy": 1.0,
"part_accuracy": 0.9140625,
"axis_variance_baseline_accuracy": 1.0
},
"critical_points_on_first_test_object": 9,
"critical_subset_classification_error": 0.0,
"permutation_classification_error": 0.0,
"permutation_segmentation_error": 0.0
}
The small model and the simple baseline both classify these 16 test objects correctly. That supports only the claim that both solve this easy, axis-aligned split. The model’s point-label accuracy is a different task and denominator: 351 of 384 points, or 0.9140625. It is not mean intersection-over-union, and the object baseline supplies no part labels.
For the first test object, nine critical points preserve the classification logits when their already normalized coordinates are kept fixed. The original cloud’s segmentation output follows a row permutation exactly in this run. The figure also duplicates the first normalized point and normalizes the enlarged set again: the change in the original 24 coordinate rows has Frobenius norm 0.159406, rounded to six decimals. That number measures coordinate change, not classification error. These are useful checks of the implementation; they are not robustness measurements on different observations.
A clean synthetic score can conceal the hard part
The variance baseline succeeds because orientation and aspect ratio separate the classes. Rotate the elongated objects into unfamiliar axes, add partial scans, change point density, or use real sensor noise and the task changes. Each change needs its own held-out evaluation. Per-object centering without labels is the stated preprocessing here and is allowed at inference; use the same rule in both splits. Dataset-level statistics or preprocessing choices must not be tuned using test labels.
Max pooling can ignore many points while preserving a fixed representation, but it can also lose details not captured by the channel maxima. Local methods expose neighborhoods to the model, at the cost of neighborhood construction, density choices and possible ordering effects from sampling and ties. Voxelization reduces point count but changes geometry at its chosen resolution. None is a universal replacement for the others.
This program omits learned transforms, deep hierarchies, batch normalization, dropout, full dynamic graph networks and large-scale spatial indexing. Its normal estimates are unsigned and local. It uses clean object boundaries and known labels, and does not solve scene separation, registration or acquisition. State these omissions before using it as the starting point for a project.
Four ways to check whether you understand the model
-
Explain the symmetry. If a cloud has N=100 points and produces one object label plus 100 part labels, what should a row permutation do to each output?
Answer: The object scores should stay the same. The part-score rows should follow the same permutation, so each physical point keeps its prediction. Requiring the whole part matrix to stay numerically identical in the old row order would be the wrong test.
-
Work through a pooling derivative. Two channels have point features (1,3), (1,2), (0,3). The upstream pooled gradient is (4,6). What gradient reaches each point under the program’s tie rule?
Answer: The maxima are (1,3). Channel one splits 4 between the first two points; channel two splits 6 between the first and third. The rows receive (2,3), (2,0), (0,3). This is a selected subgradient at ties, not a unique ordinary derivative. No gradient is sent to a non-maximal entry through this pooling path.
-
Test a preprocessing claim. Duplicate one point before normalization, then compare the original rows’ normalized coordinates and classification logits. Does max pooling guarantee that both stay unchanged?
Answer: No. The duplicated point changes the mean and possibly the maximum radius, so the other normalized coordinates can move. Max pooling’s duplicate invariance applies when the pointwise feature values are otherwise fixed. Repeat the experiment by duplicating an already normalized row to isolate that property; unchanged coordinates are then an explicit condition, not an assumption.
-
Design the next experiment. Both classifiers achieve 100% on the recorded test set. What would justify saying that the learned model handles shape variation better?
Answer: Specify the variation first, such as held-out rotations or partial observations. Freeze the training procedure and baseline, split at object level, evaluate both under identical observations and report class and part metrics separately. Include uncertainty across independent objects or seeds and inspect failures. The existing 16-object synthetic result alone establishes no superiority, so the correct next step is a harder controlled test rather than a stronger headline.
Read the progression without turning it into a leaderboard
PointNet’s first arXiv submission was on December 2, 2016; the CVPR paper used here is from 2017. PointNet++ was first submitted on June 7, 2017. DGCNN’s first arXiv submission was on January 24, 2018; this article’s method discussion follows its v1, so later publication dates or revised experiments should not be silently attached to that version. PointNet record PointNet++ record DGCNN record
Read PointNet for the separation between shared pointwise features and symmetric aggregation, then check the precise assumptions behind its set-function and critical-point arguments. Read PointNet++ for locality, sampling density and feature propagation. Read DGCNN for edge features and graph updates in learned space. The fixed source-code excerpts are useful for spotting conventions that a high-level architecture diagram leaves out. None of the original reported benchmark scores is reproduced by this teaching example.
Make a prediction, then check
A fixed shared point MLP plus max pool preserves classification when a normalized row is duplicated. Does duplicating a raw point before mean normalization guarantee the same result?
Learning objectives
- Distinguish point permutations from rotations, missing observations and outliers.
- Derive classification and segmentation gradients through shared features and max pooling.
- Check neighborhoods, normals and feature graphs under explicit conventions.
- Train a complete small point model and compare it with a non-neural baseline.
Prerequisites & connections
Explore related knowledge →References
- PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
Charles R. Qi; Hao Su; Kaichun Mo; Leonidas J. Guibas · 2017 - PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space
Charles R. Qi; Li Yi; Hao Su; Leonidas J. Guibas · 2017 - Dynamic Graph CNN for Learning on Point Clouds (v1)
Yue Wang; Yongbin Sun; Ziwei Liu; Sanjay E. Sarma; Michael M. Bronstein; Justin M. Solomon · 2018 - charlesq34/pointnet — models/pointnet_cls.py
charlesq34/pointnet contributors - charlesq34/pointnet — models/transform_nets.py
charlesq34/pointnet contributors - charlesq34/pointnet2 — tf_ops/sampling/tf_sampling_g.cu
charlesq34/pointnet2 contributors - charlesq34/pointnet2 — tf_ops/grouping/tf_grouping_g.cu
charlesq34/pointnet2 contributors - PointNet arXiv submission history
Charles R. Qi and colleagues - PointNet++ arXiv submission history
Charles R. Qi and colleagues - DGCNN v1 arXiv submission history
Yue Wang and colleagues - TensorFlow tf.nn.l2_loss API definition
TensorFlow contributors
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-08 · Codex single-AI-author technical check: scoped primary papers and pinned code, 30 formal numerical/bilingual/figure/review checks, 14 matching display equations per language, complete NumPy implementation and actual output, four explained exercises. Four SVG variants checked with four font families. Not human peer review or a real-data benchmark; detailed source and validation limits are recorded.
- 30 formal checks execute the production article program. The two-topic total is 64, including 49 core model checks plus manuscript, formula, figure and record checks; structural assertions are not independent model reproductions.
- Compared definitions, assumptions, 14 display equations, full code, actual output, four explained answers and scoped references across languages. AI-author review, not independent human expert review.
- Four original language/layout SVGs agree with program calculations and pass four-font bounds checks. Written-page language switching, copy, quiz, abbreviation search, three widths and actual long-formula scrolling were exercised; final checked-build verification is recorded separately.
- Checked 44 parameter and 21 input derivatives, 27 EdgeConv parameter/input derivatives, orthogonal penalty, critical points, tie subgradients, permutation/rotation/duplication/outlier counterexamples and sampling conventions. Both model and variance baseline score 100% on 16 synthetic test objects; part labels score 351/384, with no superiority claim. DGCNN date follows UTC 2018-01-24.
Source locations checked:
- PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation · Inspected physical PDF pages 3–5; introductory first-page excerpt only. Methods/conditions only; no original benchmark reproduced. SHA-256 7c4c69310de5130b079e80c5771322ed45ca8f032d592396303bc93b19bea3ec.
- PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space · Inspected physical PDF pages 2–5; introductory first-page excerpt only. Methods/conditions only; no original benchmark reproduced. SHA-256 5cd120458cd481078aaf927f0bfed0ef646423e107f5cc2750b9c59f5b8e3795.
- Dynamic Graph CNN for Learning on Point Clouds (v1) · Inspected physical PDF pages 3–6; introductory first-page excerpt only. Methods/conditions only; no original benchmark reproduced. SHA-256 7129c7b30fe70fdb6afad3ef22c97214aa9b457e424d36f6eda987900c2a0af1.
- charlesq34/pointnet — models/pointnet_cls.py · Pinned 2618f72bc1a0fd21b074096e748016960d44ef55; read lines 18–92; not executed. No source code copied into the original NumPy teaching implementation. File SHA-256 e93faded7148265047d5087930548718201e54422b3e003b77a09d5c54b04aad.
- charlesq34/pointnet — models/transform_nets.py · Pinned 2618f72bc1a0fd21b074096e748016960d44ef55; read lines 39–51 and 83–95; not executed. No source code copied into the original NumPy teaching implementation. File SHA-256 e40b99fcbb28bccd13656060daa2b5a9e2db84f8e3b9cef4b6192a3f5d30b378.
- charlesq34/pointnet2 — tf_ops/sampling/tf_sampling_g.cu · Pinned 42926632a3c33461aebfbee2d829098b30a23aaa; read lines 105–171; not executed. No source code copied into the original NumPy teaching implementation. File SHA-256 1e219433f2114182bc619b8fcbf0d62b4c10b4ef3ad40a5a34047bc3698032e4.
- charlesq34/pointnet2 — tf_ops/grouping/tf_grouping_g.cu · Pinned 42926632a3c33461aebfbee2d829098b30a23aaa; read lines 1–43; not executed. No source code copied into the original NumPy teaching implementation. File SHA-256 8b5e5625c366a13e829a6dce5c1c4c2bc06f51cf81194ae2ff89c73694c228da.
- PointNet arXiv submission history · Official metadata and v1 submission history read with web tool; first submission 2016-12-02 UTC, not later proceedings date.
- PointNet++ arXiv submission history · Official metadata and v1 submission history read with web tool; first submission 2017-06-07 UTC, not later proceedings date.
- DGCNN v1 arXiv submission history · Official metadata and v1 submission history read with web tool; first submission 2018-01-24 UTC, not later proceedings date.
- TensorFlow tf.nn.l2_loss API definition · Web lines 704–736, displayed v2.16.1; updated 2024-04-26. Definition returns half the sum of squared entries; v1 alias displayed. No TensorFlow runtime executed.
Related topics