BPT: Binary Point Cloud Transformer for Place Recognition

Zhixing Hou, Yuzhang Shang, Tian Gao, Yan YanarXiv 2023 · DOI

Introduction

In the field of robotics and autonomous driving, Simultaneous Localization and Mapping (SLAM) is a fundamental capability. A core component of SLAM is place recognition, also known as loop closure detection, which allows a robot to recognize previously visited locations to correct accumulated positioning errors. While Transformer architectures have recently achieved state-of-the-art performance in processing 3D point cloud data from LiDAR sensors, their high computational and memory requirements often preclude deployment on resource-constrained edge devices.

To bridge this gap, researchers have introduced the Binary Point Cloud Transformer (BPT), the first 1-bit quantized transformer architecture specifically optimized for point cloud place recognition. BPT significantly reduces model size and computational load while maintaining competitive accuracy.

Methodology: Efficient Binarization

BPT is built upon the Point Cloud Transformer (PCT) framework, but replaces standard 32-bit floating-point operations with 1-bit representations. The architecture employs several novel strategies to handle the irregular nature of point cloud data:

  1. Weight and Activation Binarization: Using a sign() function and a Straight-Through Estimator (STE) for training, weights and activations are squashed into 1-bit values (+1 or -1).
  2. Handling Non-Negativity: For layers like ReLU and Softmax that produce non-negative values, a specialized binarization function maps outputs to 0 or 1.
  3. Information Preservation: Weights are shifted to be zero-mean before binarization to maximize information retention.
  4. Bitwise Operations: The most significant efficiency gain comes from replacing complex floating-point matrix multiplications with fast bitwise operations, specifically xnor and bitcount.
The BPT architecture (a) and its constituent modules, comparing standard full-precision blocks (b, c) with their proposed binary counterparts (d, e).

By binarizing both the neighbor feature extraction and the transformer blocks, the model replaces traditional dot-product attention with binary operations. As illustrated below, the interaction between two binary vectors can be computed efficiently using bitwise logic, drastically reducing the hardware footprint.

Illustration of the bitwise XNOR and bitcount operations used to replace floating-point multiplications in the binary transformer.

Experimental Results

The BPT model was evaluated on the ModelNet40 benchmark and the real-world Oxford RobotCar dataset.

  • Accuracy: On ModelNet40, BPT achieved 93.43% accuracy, surprisingly outperforming the full-precision PCT (93.2%). This suggests that binarization may act as a regularizer against noise in point cloud data. On the Oxford RobotCar dataset, it achieved an average recall of 93.28% at top 1%, nearly matching full-precision performance.
  • Efficiency: The model size was reduced by 56.1% (from 12.9M to 5.7M parameters), and computational load (FLOPs) decreased by 34.1% (from 1.82G to 1.20G).

Conclusion

BPT demonstrates that it is possible to compress heavy-duty Transformer models into 1-bit representations for 3D point cloud tasks without significant loss in performance. By leveraging bitwise operations, BPT paves the way for deploying sophisticated place recognition systems on low-power robotic platforms and wearable devices, making high-accuracy SLAM more accessible for real-world edge applications.

Summary updated

BibTeX
@misc{hou2023bpt,
  author = {Zhixing Hou and Yuzhang Shang and Tian Gao and Yan Yan},
  title = {{BPT: Binary Point Cloud Transformer for Place Recognition}},
  year = {2023},
  eprint = {2303.01166},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.01166},
}
Figure