# PointPillars: Fast Encoders for Object Detection from Point Clouds

PointPillars learns point cloud features for fast lidar object detection

Alex H. Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, Oscar Beijbom · arXiv · 2018-12-14

- **Problem** Lidar detectors either hand-craft a bird's eye view encoding or use slow 3D convolutions. Fixed encodings are fast but less accurate, while learned 3D pipelines like VoxelNet run at only 4.4 Hz.
- **Method** PointPillars groups points into vertical pillars and runs a PointNet on each one. Instead of 3D convolutions, it scatters the features into a pseudo-image and applies a fast 2D convolutional detector.
- **Results** PointPillars reaches 59.20 mAP on the KITTI test 3D benchmark at 62 Hz using lidar only. That beats SECOND at 56.69 mAP and VoxelNet at 49.05 mAP.

## Why lidar encoders trade speed for accuracy

Lidar returns form a sparse set of unordered 3D points, whereas the convolutional detectors that work well on images expect a dense, regular grid. A common workaround projects the points onto a bird's eye view, fills a regular ground-plane grid, and applies a hand-crafted feature encoding to the points in each cell. That fixed encoding may not carry over to new sensor configurations without substantial engineering work.

VoxelNet replaced the fixed encoding with PointNet features learned per voxel, which made the pipeline end-to-end, but its 3D convolutional middle layer makes it slow, at 4.4 Hz. Its single-point-cloud inference takes 225 ms. SECOND sped up VoxelNet, yet it kept the 3D convolutions, which remain the bottleneck.

The question is whether a learned encoder can feed a 2D convolutional detector directly, keeping the accuracy of learned features and the speed of fixed encodings. Organizing the learned features by vertical pillars rather than voxels also removes the need to hand-tune the binning in the vertical direction.

## From points to pillars and a pseudo-image

The encoder discretizes the x-y plane into an evenly spaced grid, which gives a set of pillars with \\(\|P\| = B\\). Each lidar point carries coordinates x, y, z and a reflectance r, and the grid has no binning parameter along z. Every point is augmented with x\_c, y\_c, z\_c, x\_p and y\_p, where the c offsets are measured from the mean of the points in its pillar and the p offsets from the pillar's x-y centre, so each augmented point has D = 9 dimensions.

Most pillars are empty, and the occupied ones usually hold few points; at 0.162 m2 bins, an HDL-64E point cloud in the KITTI range gives 6k-9k non-empty pillars, about 97% sparsity. The number of non-empty pillars P and the number of points per pillar N are capped, so the data fits a dense tensor of size (D, P, N). Pillars or samples with too much data are randomly subsampled, and those with too little are zero padded.

A simplified PointNet then applies a linear layer, BatchNorm and ReLU to every point, which yields a (C, P, N) tensor, and a max operation collapses the point dimension to give (C, P). The encoded features are scattered back to their pillar locations, forming a pseudo-image of size (C, H, W) that the backbone processes.

## Backbone and detection head

The backbone has a top-down path whose spatial resolution decreases, and a second path that upsamples those features and concatenates them. Each top-down block, written Block(S, L, F), runs L 3x3 2D convolutions with F output channels, each followed by BatchNorm and a ReLU, and operates at stride S relative to the input pseudo-image. The first convolution of a block takes the input stride S\_in so that the block lands on stride S, and the remaining convolutions keep stride 1.

Each block output is upsampled by a transposed 2D convolution, Up(S\_in, S\_out, F), followed by BatchNorm and ReLU, and the upsampled maps are concatenated. The encoder produces C = 64 features. The car network's first block has stride 2, the pedestrian and cyclist network's first block has stride 1, and each network has three blocks. The three upsampled maps are concatenated into 6C features for the detection head.

The detection head follows the Single Shot Detector setup, matching prior boxes to ground truth by 2D Intersection over Union. Matching ignores the box height and elevation; after a 2D match, those two values become extra regression targets.

## Regression targets, losses and optimization

Each ground truth box and anchor is parametrized by (x, y, z, w, l, h, θ), and the horizontal position residuals are divided by the anchor's diagonal \\(d\_a = \\sqrt{(w\_a)^2 + (l\_a)^2}\\). The residuals are \\(\\Delta x = (x\_{gt}-x\_a)/d\_a\\), \\(\\Delta z = (z\_{gt}-z\_a)/h\_a\\), \\(\\Delta w = \\log(w\_{gt}/w\_a)\\) and \\(\\Delta\\theta = \\sin(\\theta\_{gt}-\\theta\_a)\\), with the y, l and h terms defined in the same pattern.

The localization loss sums SmoothL1 over these seven residuals.

The sine of the angle difference cannot tell a box from its flipped version, so a softmax classification loss over discretized directions, \\(L\_{dir}\\), is added to learn the heading. The classification loss is the focal loss, \\\[ L\_{cls} = -\\alpha\_a (1-p\_a)^{\\gamma} \\log p\_a \\\] where \\(p\_a\\) is the class probability of an anchor, with \\(\\alpha = 0.25\\) and \\(\\gamma = 2\\).

The total loss is \\\[ L = \\frac{1}{N\_{pos}} (\\beta\_{loc} L\_{loc} + \\beta\_{cls} L\_{cls} + \\beta\_{dir} L\_{dir}) \\\] with \\(N\_{pos}\\) the number of positive anchors, \\(\\beta\_{loc} = 2\\), \\(\\beta\_{cls} = 1\\) and \\(\\beta\_{dir} = 0.2\\). Training uses Adam with an initial learning rate of 2∗10−4, which is multiplied by 0.8 every 15 epochs, for 160 epochs.

The batch size is 2 for the validation experiments and 4 for the test submission, and the weights start from a uniform random initialization as in \[8\] rather than pre-training.

## Data split, anchors and augmentation

For experiments the official training set is split into 3712 training and 3769 validation samples, while the test submission uses a minival set of 784 validation samples and trains on the remaining 6733. Only lidar points that project into the image are used, following the usual KITTI convention, and one network is trained for cars and another for pedestrians and cyclists together.

The default settings use an xy resolution of 0.16 m, at most 12000 pillars and at most 100 points per pillar. Each class has an anchor with a width, length, height and z centre, placed at two orientations, 0 and 90 degrees, and matched to ground truth by 2D IoU with positive and negative thresholds. For cars the x, y, z range is \[(0, 70.4), (-40, 40), (-3, 1)\] m, the anchor is 1.6, 3.9 and 1.5 m with a z centre of -1 m, and the thresholds are 0.6 and 0.45.

For pedestrians and cyclists the range is \[(0, 48), (-20, 20), (-2.5, 0.5)\] m, the anchors are 0.6 by 0.8 by 1.73 m and 0.6 by 1.76 by 1.73 m, and the thresholds are 0.5 and 0.35. Inference applies axis-aligned non maximum suppression with an overlap threshold of 0.5 IoU, which the authors report performs similarly to rotated NMS and runs faster.

Ground truth boxes and their lidar points are stored in a lookup table, and each sample receives 15 car, 0 pedestrian and 8 cyclist ground truth boxes copied into it. Each box is rotated by an angle drawn uniformly from \[−π/20, π/20\] and translated by offsets drawn from N(0, 0.25), and the whole scene is then mirrored along x, rotated, scaled and translated with offsets from N(0, 0.2).

## KITTI test results across BEV, 3D and orientation

Against methods that fuse lidar and images, the paper reports wins on cars and cyclists, while pedestrians are the exception.

On the KITTI test 3D benchmark, PointPillars reaches 59.20 mAP at 62 Hz, against 56.69 at 20 Hz for SECOND and 49.05 at 4.4 Hz for VoxelNet. Its moderate car AP is 74.99 and its moderate cyclist AP is 59.07. The 3D gap to the fusion methods is smaller than the BEV gap, in line with the authors' statement that the advantage is similar on the 3D metric.

Orientation is scored by AOS, which projects the 3D box into the image and matches 2D detections before judging orientation. PointPillars reaches a moderate cyclist AOS of 68.16 and a mAOS of 68.86, against 63.41 for SubCNN on the same moderate cyclist entry. Its AOS exceeds that of AVOD-FPN and SECOND in all strata, and these two are the only other 3D detectors in the table that predict orientation.

On the validation split, the moderate AP values for cars, pedestrians and cyclists are 87.98, 63.55 and 69.71 in BEV, and 77.98, 57.86 and 66.02 in 3D.

## Where the runtime goes

Loading and filtering the point cloud takes 1.4 ms and organizing and decorating the pillars takes 2.7 ms; uploading the pillar tensor to the GPU takes 2.9 ms, encoding 1.3 ms, scattering 0.1 ms, and the backbone with detection heads 7.7 ms. NMS on the CPU takes 0.1 ms, giving a total of 16.2 ms.

The encoder takes 1.3 ms, whereas the VoxelNet encoder is cited at 190 ms. SECOND's total network runtime is 50 ms, and in its open-source implementation its encoder takes 48 ms.

Reducing the first block to 64 dimensions to match the encoder output saved 4.5 ms, and halving the upsampled feature outputs to 128 saved another 3.9 ms, with no change in detection performance.

The final GPU kernels for encoding, backbone and detection head were built with TensorRT, which gave a 45.5% speedup over the PyTorch pipeline that ran at 42.4 Hz.

## Resolution, encoder and augmentation ablations

The grid sweep covers 0.122, 0.162, 0.22, 0.242 and 0.282 m2 bins on KITTI val, with the maximum number of pillars set to 16000, 12000, 12000, 8000 and 8000 for those sizes in order. Larger bins give faster networks, and at 0.282 m2 the sweep reaches 105 Hz with performance similar to earlier methods.

With the same network and training procedure, only the encoder and xy resolution change, and the learned encoders beat the fixed encoders at each tested resolution. At 0.162, the fixed MV3D encoder reaches 72.8 and PointPillars reaches 73.7; at 0.282, the best fixed entry is 67.6 and PointPillars reaches 72.0. VoxelNet's learned encoder scores slightly higher than PointPillars among learned encoders, but the authors note that it is much slower and has far more parameters.

The MV3D and PIXOR encoders also learn pedestrians and cyclists well, despite notes in their original papers that they only work on cars.

Minimal per-box augmentation works better in these experiments, and pedestrian detection degrades markedly with more box augmentation. The authors hypothesize that ground truth sampling makes extensive per-box augmentation unnecessary. Adding the x and y offset decorations to the lidar points raised final detection performance by 0.5 mAP and made the experiments more reproducible.

Ground truth database sampling raised mAP by around 3% in the authors' encoder implementations.

## Limitations

Runtime was measured on a high-power desktop GPU, and the authors note that an operational vehicle may use embedded GPUs or embedded compute with lower throughput, which was not measured. Only lidar points that project into the front image are used because of how the KITTI ground truth is annotated, which covers about 10% of the point cloud; the authors argue that a full view would raise the runtime.

The reimplemented encoders beat their published results by 1 to 10 mAP, but this is not an apples-to-apples comparison because only the encoders were swapped into the same setup. The authors list untested causes of the remaining differences, including network design, anchor design, the localization and classification losses, and the optimizer, and state that a more careful study is needed.

Pedestrians and cyclists are often confused with each other, pedestrians are confused with poles and tree trunks, and false negatives occur on partly occluded or distant objects.

## Paper info

- **Authors**: Alex H. Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, Oscar Beijbom
- **Venue**: arXiv · Preprint
- **First published**: 2018-12-14
- **Added**: 2026-11-12
- **Updated**: 2019-5-7
- **Version**: v2
- **arXiv**: 1812.05784
- **Category**: cs.LG · cs.CV · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1812.05784v2) · [PDF ↗](https://arxiv.org/pdf/1812.05784v2)

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

Alex H. Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, Oscar Beijbom (2018). PointPillars: Fast Encoders for Object Detection from Point Clouds. arXiv:1812.05784v2. https://arxiv.org/abs/1812.05784v2

**BibTeX**

```
@misc{lang2018pointpillars,
  title = {{PointPillars: Fast Encoders for Object Detection from Point Clouds}},
  author = {Alex H. Lang and Sourabh Vora and Holger Caesar and Lubing Zhou and Jiong Yang and Oscar Beijbom},
  year = {2018},
  eprint = {1812.05784},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.05784v2}
}
```

## Other paper commentary

- [Instant Neural Graphics Primitives with a Multiresolution Hash Encoding](https://refivu.com/en/papers/b4180f7f-7d22-475c-8add-12309c2b51a3-instant-neural-graphics-primitives-with-a-multiresolution.md)
- [Medical Image Segmentation: Foundation Model Adaptation versus Task-Specific Training](https://refivu.com/en/papers/d5e6d956-8d45-41ee-a229-cfa12c77a62f-medical-image-segmentation-foundation-model-adaptation.md)
- [Semantic Image Segmentation with Deep Convolutional Nets and Fully Connected CRFs](https://refivu.com/en/papers/551829fd-0dd3-4274-8bd3-cb4438cd4b78-semantic-image-segmentation-with-deep-convolutional-nets-and.md)
- [VoxelNet: End-to-End Learning for Point Cloud Based 3D Object Detection](https://refivu.com/en/papers/96419e97-366d-4b0f-b7db-232e374f7e8c-voxelnet-end-to-end-learning-for-point-cloud.md)
- [The Kinetics Human Action Video Dataset](https://refivu.com/en/papers/a2b572fe-2c51-40af-87d9-956918d52119-the-kinetics-human-action-video-dataset.md)
- [Billion-scale similarity search with GPUs](https://refivu.com/en/papers/e02b0778-dbc6-4a4a-9b69-43dee7ffbd0c-billion-scale-similarity-search-with-gpus.md)
- [Spectral Networks and Locally Connected Networks on Graphs](https://refivu.com/en/papers/c8d7ac6f-ca53-43f2-b5f6-9ac71d5ca32d-spectral-networks-and-locally-connected-networks-on-graphs.md)
- [An Introduction to Convolutional Neural Networks](https://refivu.com/en/papers/6b236b8c-8750-484a-8c31-87433f51f2eb-an-introduction-to-convolutional-neural-networks.md)
- [Matching Networks for One Shot Learning](https://refivu.com/en/papers/b9fc7556-8641-4de5-90e9-278f5122412f-matching-networks-for-one-shot-learning.md)

## Terms in this paper

- [mAP](https://refivu.com/en/terms/477dad058d88-map)
- [focal loss](https://refivu.com/en/terms/55a77da0ac9c-focal-loss)
- [KITTI](https://refivu.com/en/terms/300e3e1e2f51-kitti)
- [PointNet](https://refivu.com/en/terms/15325fd356e5-pointnet)
- [NMS](https://refivu.com/en/terms/c36344a53ebf-nms)
- [BatchNorm](https://refivu.com/en/terms/c1d81c43c87f-batchnorm)
- [Backbone](https://refivu.com/en/terms/e898be69b9af-backbone)
- [MV3D](https://refivu.com/en/terms/738108cc1b04-mv3d)
- [PointPillars](https://refivu.com/en/terms/acb1b1398383-pointpillars)
- [SECOND](https://refivu.com/en/terms/e37034d8f393-second)
- [TensorRT](https://refivu.com/en/terms/3b72c3b211c1-tensorrt)
- [V oxelNet](https://refivu.com/en/terms/cb60dd6eb685-v-oxelnet)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/93807b29-2d87-4d5c-b316-3d54142077f5-pointpillars-fast-encoders-for-object-detection-from-point)
