Paper commentary
PCT: Point cloud transformer
PCT adapts Transformer attention to unordered point clouds
- Problem Transformers rely on token order encoding, but point clouds are unordered and unstructured, so attention cannot be applied to them directly.
- Method PCT drops positional encoding and embeds each point from its own coordinates instead. Offset-attention then feeds the difference between input and attention features into the network.
- Results PCT reaches 93.2% overall accuracy on ModelNet40 classification, above 91.0% for NPCT.
Why attention needs adapting for point clouds
Point clouds are disordered and unstructured, which makes convolution-style or sequence-style network designs awkward to apply to them. The Transformer works with a sequence in which position is encoded explicitly, and each word's attention feature is a weighted sum over all words, so it captures global context. A point has no fixed position in an ordering, so a positional code adds nothing useful, and the design has to rely on each point's own coordinates instead.
The PCT framework therefore keeps the attention machinery of the Transformer, drops the order-dependent encoding, and changes the input embedding and attention layer so that the model works on unordered sets. The paper also argues that attention by itself may miss local geometric detail, which motivates the neighbor embedding module.
Coordinate input and self-attention in the naïve PCT
Each point's three coordinates form its input feature, and a shared network made of two cascaded LBR layers maps it to a 128-dimensional embedding. Positional encoding is discarded in this design because the coordinates already carry each point's position.
From the embedding \(F_{in}\), three linear projections give the query, key and value matrices, with \(Q, K \in \mathbb{R}^{N\times d_a}\) and \(V \in \mathbb{R}^{N\times d_e}\). The dimension \(d_a\) is set to \(d_e/4\) for computational efficiency, so the key dimension is smaller than the embedding dimension. The attention scores are the dot products \(Q K^{T}\), scaled by \(\sqrt{d_a}\) and normalized with a softmax, and the self-attention feature is the weighted sum \(F_{sa}=AV\).
The authors argue that this chain is permutation-invariant, since the projections, the softmax and the weighted sum do not depend on the order of the points. The self-attention layer then outputs \(F_{out}=\mathrm{LBR}(F_{sa})+F_{in}\), which is a residual connection around an LBR network.
Offset-attention and its Laplacian reading
Offset-attention keeps the same attention computation but feeds the LBR network with the element-wise difference \(F_{in}-F_{sa}\) rather than \(F_{sa}\). The layer output becomes \(F_{out}=\mathrm{LBR}(F_{in}-F_{sa})+F_{in}\). The authors relate this difference to a discrete Laplacian operator, drawing on the use of \(L=D-E\) in graph convolution networks.
Under the approximation that the value projection \(W_v\) is ignored and the attention matrix \(A\) plays the role of the adjacency matrix, the offset becomes \((I-A)F_{in}\), which is treated as \(LF_{in}\). Here \(I\) stands in for the diagonal degree matrix, and this identity holds only under that approximation, which the authors use as a motivation rather than a proof.
Because each attention row is normalized to sum to 1, the degree matrix can be treated as the identity, which the authors use to justify the Laplacian reading.
Offset-attention also changes the normalization: the softmax runs over the first dimension of the attention scores, and an l1-norm over the second dimension rescales the rows. The authors say this sharpens the attention weights and reduces the influence of noise, which they consider useful for downstream tasks. The example attention maps in the paper vary across query points yet remain semantically meaningful, which is the only evidence offered for this behaviour.
Neighbor embedding for local context
The neighbor embedding module contains two LBR layers and two sampling-and-grouping layers, which enlarge the receptive field step by step. Each sampling-and-grouping layer downsamples the input with farthest point sampling and groups each sampled point with its k nearest neighbors found by Euclidean distance.
For each sampled point, the difference between each neighbor's feature and the point's own feature is concatenated with the point's feature repeated k times. The concatenated vectors pass through two LBR layers and a max-pooling operator to give the output feature of the sampled point. The concatenation of neighbor differences follows EdgeConv, which the authors draw on, and the module is later combined with the attention stack in the full PCT.
For classification, the point count is reduced to 512 and then 256 points across the two sampling-and-grouping layers. For segmentation and normal estimation, the point count is kept at N, so the module only extracts local features.
From encoder features to task decoders
The encoder applies four stacked attention modules, and their outputs are concatenated along the feature dimension and mixed by a linear layer. A global feature is formed by concatenating a max-pooling and an average-pooling of the point-wise features.
The classification decoder has two LBR layers, each with a dropout probability of 0.5, followed by a linear layer that outputs one score per object category. Normal estimation reuses the segmentation design with three output channels and no object category code, and the output is read as the predicted normal.
ModelNet40 classification and normal estimation
The official split uses 9,843 training objects and 2,468 evaluation objects, and objects are sampled to 1,024 points as in PointNet. Training used mini-batch size 32 for all three models, 250 epochs, and an initial learning rate of 0.01 with cosine annealing, and no augmentation or voting was applied at test time.
The full PCT with neighbor embedding is the highest entry in the comparison table, but this comparison includes the neighbor embedding module together with offset-attention, so the gain is not attributed to either part alone.
For normal estimation on ModelNet40 with 1k points, the average cosine-distance error is lower for each step toward the full model: 0.47 for PointNet, 0.24 for NPCT, 0.23 for SPCT and 0.13 for PCT, where lower is better. These normal estimation runs used a batch size of 32 and 200 epochs with the same learning rate schedule as classification.
ShapeNet part segmentation
ShapeNet Parts contains 16,880 3D models with 14,006 for training and 2,874 for testing, and models were downsampled to 2,048 points. The metric is part-average Intersection-over-Union, reported overall and per object category, and testing used multi-scale inputs with scales in [0.7, 1.4] at a step of 0.1.
SPCT improves part-average Intersection-over-Union by 2.1% over PointNet and by 0.6% over NPCT. PCT reaches 86.4% part-average Intersection-over-Union, the highest value in the reported table.
S3DIS semantic segmentation and computational cost
S3DIS is an indoor scene dataset with 13 point categories, and the authors use the same data processing as PointNet. The paper reports that PCT achieves superior performance on S3DIS compared with previously published methods.
SPCT has 1.36M parameters and 1.82 GFLOPs, which the authors describe as a low load suitable for a mobile device. PCT is described as having modest computational and memory requirements, and adding a neighbor embedding layer is presented as an option when more computation is acceptable.
Limitations
The current PCT does not take point normals as input, and the authors suggest that adding them could in principle improve performance. The normal estimation comparison uses only ModelNet40 with 1k points, and the segmentation comparisons use only ShapeNet Parts and S3DIS. The text states the computational costs of SPCT and PCT only in relative terms, so no cost values are given for the 3-layer variant.
Paper info
- Authors
- Guo, Meng-Hao, Cai, Jun-Xiong, Liu, Zheng-Ning, Mu, Tai-Jiang, Martin, Ralph R., Hu, Shi-Min
- Venue
- arXiv · Preprint
- First published
- 2020-12-17
- Added
- 2026-11-12
- Updated
- 2021-6-7
- Version
- v4
- arXiv
- 2012.09688
- DOI
- 10.1007/s41095-021-0229-5
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Guo, Meng-Hao, Cai, Jun-Xiong, Liu, Zheng-Ning, Mu, Tai-Jiang, Martin, Ralph R., Hu, Shi-Min (2020). PCT: Point cloud transformer. arXiv:2012.09688v4. https://doi.org/10.1007/s41095-021-0229-5
BibTeX
@article{menghao2020point,
title = {{PCT: Point cloud transformer}},
author = {Guo, Meng-Hao and Cai, Jun-Xiong and Liu, Zheng-Ning and Mu, Tai-Jiang and Martin, Ralph R. and Hu, Shi-Min},
year = {2020},
eprint = {2012.09688},
archivePrefix = {arXiv},
doi = {10.1007/s41095-021-0229-5},
url = {https://arxiv.org/abs/2012.09688v4}
}