FBPT: A Fully Binary Point Transformer

Zhixing Hou, Yuzhang Shang, Yan Yan · DOI

Introduction

Transformer architectures have revolutionized 3D point cloud processing, enabling significant advancements in robotics and autonomous driving. However, these models are notoriously resource-intensive, characterized by massive memory footprints and high computational demands (FLOPs). Such requirements make them difficult to deploy on edge devices, such as mobile phones or small-scale robotic platforms.

While binarization—the process of compressing 32-bit floating-point numbers into 1-bit values (+1 or -1)—is considered the "holy grail" of model compression, it has historically struggled with Transformer architectures. In this paper, we present FBPT (Fully Binary Point Transformer), the first framework to successfully binarize both weights and activations of a Point Cloud Transformer to 1-bit, achieving extreme efficiency with minimal performance degradation.

The Challenge: Attention Collapse

The primary obstacle in binarizing Transformers is the sensitivity of the self-attention mechanism. The authors identify a specific "bottleneck": in a binary transformer, the distribution of attention scores often becomes nearly uniform after the softmax operation. This "attention collapse" means the model loses its ability to focus on important features, effectively becoming a random feature extractor. Standard binarization methods eliminate the "outliers" in data distribution that the self-attention mechanism relies on to function correctly.

Methodology

FBPT introduces three key innovations to enable effective 1-bit point cloud processing:

1. Dynamic-Static Hybridization

The framework distinguishes between parameters that can be fixed and those that must adapt to input data:

  • Static Binarization: This is used for weights and less sensitive activations. These parameters are learned during training and remain constant during inference.
  • Dynamic Binarization: This is applied to data-sensitive components, specifically the Query (Q), Key (K), and Value (V) matrices. These parameters are calculated in real-time during inference to adapt to specific input data, preventing the uniform distribution collapse and preserving the model's representational power.

2. Fine-grained Binarization for Self-attention

Instead of applying a blunt 1-bit approach to all components, FBPT uses a higher granularity for highly sensitive activations. By partitioning the activation range and utilizing multiple binary masks, the model effectively expands the internal bit-width to 2 or 3 bits for critical operations while still utilizing efficient binary bitwise math.

3. Hierarchical Training Scheme

To ensure stability, the authors propose a three-stage training process rather than binarizing the entire network at once:

  • Stage 1: Binarize non-transformer modules, such as local feature extractors.
  • Stage 2: Binarize the weights of the transformer modules.
  • Stage 3: Finally, binarize the activations of the transformer modules using the dynamic approach.

Experimental Evaluation

The model was evaluated on two primary tasks: 3D object classification and large-scale place recognition.

Efficiency Gains

FBPT achieves massive reductions in resource requirements:

  • Model Size: Slashed by 87.2% (from 8.6M to 1.1M parameters).
  • Computational Complexity: FLOPs dropped by 80.2% (from 1.36G to 0.27G).

Performance Benchmarks

  • ModelNet40 (Classification): On this gold-standard dataset of 12,311 CAD models, FBPT achieved 90.9% accuracy. This is only a 2.3% drop from the full-precision PCT baseline and significantly outperforms previous binary point cloud networks like BiPointNet (86.4%).
  • Oxford RobotCar (Place Recognition): In complex navigation tasks, the model achieved a 91.02% top 1% recall, proving that the compressed model retains sufficient spatial understanding for real-world localization.

Discussion and Future Work

A notable finding of this research is that binarized self-attention can actually act as a form of extreme regularization, helping to suppress overfitting in certain scenarios. However, some limitations remain. Current general-purpose CPUs and GPUs are not yet fully optimized to exploit 1-bit math to its theoretical maximum speedup (often cited as 32x-58x). Furthermore, following common practice, the initial input embedding layers remain in full precision to avoid losing raw data information. Future work will explore scaling this binarization approach to even larger, multi-modal transformer architectures.

Conclusion

FBPT demonstrates that "fully binary" does not have to mean "uniformly binary." By treating weights (static) and data-flow (dynamic) differently, FBPT captures the speed of XNOR/bitcount operations while maintaining the flexibility of high-precision models, providing a viable path for sophisticated 3D vision on the edge.

Summary updated

BibTeX
@inproceedings{hou2024fbpt,
  author = {Zhixing Hou and Yuzhang Shang and Yan Yan},
  title = {{FBPT: A Fully Binary Point Transformer}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra57147.2024.10611616},
}
Figure