OctFormer: Efficient Octree-Based Transformer for Point Cloud Compression with Local Enhancement

Mingyue Cui, Junhua Long, Mingjian Feng, Boyang Li, Kai HuangAAAI 2023

Abstract

OctFormer is a novel Transformer-based entropy model for point cloud compression that achieves state-of-the-art efficiency by processing octree nodes in non-overlapping context windows. By breaking the serial decoding dependencies found in previous attention-based models, it slashes decoding time by over 99% while improving compression ratios by up to 17% compared to voxel-based baselines.

Introduction

As LiDAR sensors become standard in autonomous driving and robotics, they generate staggering amounts of data—millions of points per second. Compressing this data is essential for storage and real-time transmission. Existing methods generally fall into two camps: voxel-based methods, which use 3D convolutions on grids and struggle with sparsity, and attention-based methods, which capture long-range dependencies but are notoriously slow due to serial decoding bottlenecks. OctFormer aims to bridge this gap by providing a high-compression Transformer model that is fast enough for practical applications.

Methodology

The core of OctFormer is built on representing point clouds as an octree and introducing three main innovations to the Transformer architecture to optimize for both speed and local geometric awareness.

Non-overlapped Context Windows

Unlike previous attention-based models like OctAttention that use sliding windows, OctFormer groups octree nodes into fixed-size, non-overlapping sequences. This design choice allows the model to decode all nodes within a context window in parallel, removing the primary speed bottleneck of previous models that relied on serial "sibling occupancy" status.

Comparison of context modeling methods: (a) VoxelContext-Net, (b) OctAttention, and (c) the proposed OctFormer method using non-overlapping windows.

OctFormer Architecture

The architecture incorporates specialized modules to handle the unique structure of octrees:

  • OctLeFF (Octree Locally-enhanced Feed-Forward Network): Replaces the standard point-wise MLP with a module using 1D convolutions to aggregate features from "sibling" nodes, capturing local geometric patterns that standard Transformers might miss.
  • OctPEG (Octree-based Positional Encoding Generator): Uses a depth-wise convolution-based generator to produce positional encodings, enhancing translation invariance and making the model more robust to geometric shifts.
The internal structure of the OctFormer block, highlighting the OctPEG and OctLeFF components.

Results

OctFormer was evaluated on SemanticKITTI and ScanNet benchmarks. It achieved up to 17% Bpp (Bits per point) savings compared to the state-of-the-art VoxelContext-Net. Most significantly, OctFormer is approximately 300x faster at decoding than OctAttention, representing a 99% reduction in coding time. Furthermore, compressed data maintained high performance in downstream tasks like semantic segmentation, outperforming industry standards like GPCC.

Conclusion

By prioritizing parallelism through non-overlapping windows and re-introducing local spatial awareness via specialized convolution-based modules, OctFormer sets a new standard for efficient and effective point cloud compression, making real-time LiDAR data processing more feasible for autonomous systems.

Summary updated

BibTeX
@inproceedings{cui2023octformer,
  author = {Mingyue Cui and Junhua Long and Mingjian Feng and Boyang Li and Kai Huang},
  title = {{OctFormer: Efficient Octree-Based Transformer for Point Cloud Compression with Local Enhancement}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25121},
}
Figure