A Smooth Representation of Belief over SO(3) for Deep Rotation Learning with Uncertainty

Valentin Peretroukhin, Matthew Giamou, David M. Rosen, W. Nicholas Greene, Nicholas Roy, Jonathan Kelly

Abstract

Estimating 3D rotations is a core task in robotics and computer vision, yet standard representations often suffer from mathematical discontinuities or lack inherent uncertainty quantification. We introduce a symmetric $4 \times 4$ matrix representation for SO(3) that provides a smooth, continuous mapping for deep learning. This representation implicitly defines a Bingham distribution, allowing models to estimate rotation while simultaneously providing a measure of belief. Our approach, implemented as a differentiable QCQP layer, achieves state-of-the-art performance in rotation regression and demonstrates robust out-of-distribution detection capabilities.

Introduction

Estimating 3D rotation is fundamental to robotics, from visual odometry to object pose estimation. However, deep learning models struggle with standard rotation representations due to two primary issues:

  1. Discontinuity: Common representations like unit quaternions or Euler angles possess "jumps" or singularities. Research has shown that any representation with fewer than five dimensions is discontinuous, which can impede neural network training and generalization.
  2. Lack of Uncertainty: Most models provide only a point estimate. In safety-critical applications, such as autonomous drones, it is vital for a model to quantify its own uncertainty or signal when it encounters out-of-distribution (OOD) data.

This paper proposes a representation that is both mathematically smooth and inherently uncertainty-aware by utilizing a symmetric $4 \times 4$ matrix.

Methodology: The Symmetric Matrix Representation

The authors propose representing a rotation as a symmetric $4 \times 4$ matrix, denoted as $\mathbf{A}$. The neural network is trained to output the 10 unique entries of this matrix. To derive the actual rotation in quaternion form, the problem is treated as a Quadratically-Constrained Quadratic Program (QCQP). The solution is the eigenvector associated with the smallest eigenvalue of $\mathbf{A}$.

Overview of the proposed symmetric matrix representation and differentiable QCQP layer compared to standard unit quaternions.

Because eigendecomposition is differentiable, this process can be integrated as a layer within any deep network. Mathematically, $\mathbf{A}$ defines a Bingham distribution over unit quaternions. The gaps between the eigenvalues of $\mathbf{A}$ indicate the concentration of probability mass, providing a natural measure of uncertainty. The authors introduce Dispersion Thresholding (DT)—using the trace of the dispersion matrix derived from these eigenvalues—to measure epistemic uncertainty and detect OOD inputs.

Experimental Evaluation

The method was evaluated across four scenarios:

  • Synthetic Wahba Problem: Testing rotation regression limits up to 180°.
  • ShapeNet: Rotation estimation on complex 3D airplane point clouds.
  • KITTI Odometry: Real-world imagery with manual corruptions to test OOD rejection.
  • MAV Indoor-Outdoor Dataset: Testing robustness across extreme lighting transitions.

Key Results and Discussion

The symmetric matrix representation consistently outperformed standard quaternions and the state-of-the-art "6D" continuous representation in terms of angular error.

Mean angular error comparison on training and test sets across different rotation representations, showing the superior stability and accuracy of the proposed matrix representation (A).

Key findings include:

  • Continuity and Stability: The 10-dimensional representation allows the network to learn rotations of any magnitude without gradient explosions, even for 180° flips.
  • Robust OOD Rejection: On the KITTI dataset, Dispersion Thresholding achieved 99% precision in identifying corrupted images. While other models' errors spiked on bad data, the proposed model maintained a nearly constant mean error by refusing to provide estimates for untrusted inputs.
  • Efficiency: The eigendecomposition layer adds negligible computational overhead compared to the cost of a standard convolutional backbone.

Conclusion

By leveraging the properties of symmetric matrices and the Bingham distribution, this work provides a robust framework for rotation learning that handles both large-scale rotations and uncertainty quantification. Future work may involve integrating a proper Bingham likelihood loss to further refine the probabilistic interpretation of the model's outputs.

Summary updated

BibTeX
@inproceedings{peretroukhin2020smooth,
  author = {Valentin Peretroukhin and Matthew Giamou and David M. Rosen and W. Nicholas Greene and Nicholas Roy and Jonathan Kelly},
  title = {{A Smooth Representation of Belief over SO(3) for Deep Rotation Learning with Uncertainty}},
  booktitle = {Robotics: Science and Systems},
  year = {2020},
  doi = {10.15607/rss.2020.xvi.007},
}
Figure