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

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

Abstract

Estimating 3D rotations is a cornerstone of robotics and computer vision, yet standard deep learning representations often suffer from mathematical discontinuities or lack inherent uncertainty measures. We present a novel representation using a symmetric $4 \times 4$ matrix that is both mathematically smooth and probabilistic. By treating rotation estimation as a differentiable optimization problem, our model naturally encodes a Bingham distribution. This allows for superior accuracy in large-rotation regression and provides "free" uncertainty quantification for out-of-distribution detection.

Introduction

The estimation of 3D rotations, represented by the special orthogonal group $SO(3)$, is fundamental to tasks such as drone navigation and robotic manipulation. Despite its importance, deep learning models face two significant hurdles:

  1. Discontinuity: Common representations like unit quaternions exhibit discontinuities (e.g., the "jump" at 180 degrees), which hinder the learning of arbitrary rotations. Research has shown that these topological constraints make it difficult for networks to learn effectively.
  2. Uncertainty Quantification: Safety-critical applications require models to signal their confidence. Traditional methods for uncertainty, such as Monte Carlo Dropout, are often too computationally demanding for real-time robotics.

We address these issues by introducing a continuous, probabilistic representation that leverages the properties of symmetric matrices and the Bingham distribution.

Methodology

The core of our approach is representing a rotation as a symmetric $4 \times 4$ matrix, denoted as $\mathbf{A}$.

The Differentiable QCQP Layer

Instead of directly regressing quaternions, the neural network outputs the 10 unique entries of the symmetric matrix $\mathbf{A}$. We define a differentiable "QCQP layer" where the estimated rotation (in quaternion form) is recovered as the eigenvector corresponding to the smallest eigenvalue of $\mathbf{A}$. This formulation ensures that the mapping from the network's output to the rotation space is smooth, satisfying the requirements for a "smooth global section."

Comparison between standard unit quaternion regression and the proposed symmetric matrix representation.

Probabilistic Interpretation

Mathematically, the matrix $\mathbf{A}$ defines a Bingham distribution on the unit 3-sphere. The eigenvalues of $\mathbf{A}$ provide information about the "spread" or dispersion of the belief. We utilize this property for Dispersion Thresholding (DT): if the eigenvalues are closely grouped (a small spectral gap), it indicates high uncertainty or an out-of-distribution (OOD) input. This allows the system to reject unreliable estimates without auxiliary models or stochastic sampling.

Experiments and Results

We evaluated the proposed representation across synthetic point clouds, ShapeNet airplane models, KITTI odometry, and MAV indoor-outdoor datasets.

Accuracy and Convergence

Our representation consistently outperformed both unit quaternions and the state-of-the-art "6D" continuous representation. The smoothness of the $\mathbf{A}$ matrix representation allows the network to learn large rotations more effectively, leading to faster convergence and lower mean angular errors, particularly for targets near 180 degrees.

Mean angular error across training epochs, comparing the proposed representation (A) against 6D and quaternion baselines.

Robustness and OOD Detection

On the KITTI dataset, Dispersion Thresholding successfully rejected 97-99% of corrupted image samples. In real-world MAV experiments involving transition between bright outdoor and dark indoor environments, our method maintained stable error rates by identifying and rejecting unreliable frames, significantly outperforming standard auto-encoder-based novelty detection.

Conclusion

By representing rotations through a symmetric $4 \times 4$ matrix, we achieve a continuous mapping that simplifies the learning process for neural networks while providing inherent uncertainty estimates. While the eigendecomposition adds some computational overhead, the benefits in accuracy and safety-critical reliability are substantial. Future work will explore training with direct Bingham likelihood losses and optimizing the layer for extremely lightweight architectures.

Summary updated

BibTeX
@inproceedings{peretroukhin2020smooth,
  author = {Valentin Peretroukhin and Matthew Giamou and W. Nicholas Greene and David M. Rosen and Jonathan Kelly and Nicholas Roy},
  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