On the Continuity of Rotation Representations in Neural Networks
Yi ZhouConnelly BarnesJingwan LuJimei YangHao Li
Proves that widely used 3D rotation representations like quaternions and Euler angles are topologically discontinuous and introduces continuous 5D and 6D alternatives that substantially improve neural network learning across vision and graphics tasks.
Deep learning models are increasingly deployed to predict rotations in computer vision, robotics, and 3D animation, covering tasks such as object pose estimation, camera localization, and human motion synthesis. A persistent challenge in these applications is the occurrence of severe, unpredictable orientation errors—often reaching up to 180 degrees—even after extensive model training. The article set out to identify the mathematical source of these failures and demonstrate new rotation formats that prevent these large learning errors.
To address this issue, the article evaluated rotation formats through topological analysis and empirical experiments. The authors developed a formal definition of continuity tailored to neural networks and proved that representing the complete three-dimensional rotation space continuously in four or fewer dimensions is mathematically impossible. They constructed continuous five-dimensional and six-dimensional representations using Gram-Schmidt orthogonalization and stereographic projection, generalizing the concept to higher-dimensional rotations. To validate their approach, the authors benchmarked these continuous representations against standard methods (quaternions, Euler angles, axis-angle formats, and direct matrix prediction) across three tasks: an autoencoder sanity test, 3D point cloud rotation estimation, and human pose inverse kinematics using large motion-capture datasets.
Across all benchmarks, the findings show that standard three-dimensional and four-dimensional representations—including Euler angles, axis-angles, and quaternions—suffer from inherent mathematical discontinuities that cause models to converge slowly and generate massive errors near critical rotation boundaries. In the autoencoder sanity test, models using discontinuous representations exhibited mean errors between 6 and 14 times higher than continuous ones, frequently producing errors up to 180 degrees, whereas the proposed continuous representations capped maximum errors under 2 degrees. In the 3D point cloud experiment, the 6D representation produced a mean error of 2.85 degrees, outperforming quaternions (9.03 degrees) and Euler angles (14.13 degrees). Similarly, in human pose inverse kinematics, the 6D format yielded the lowest mean error (1.9 centimeters) and completely avoided the severe anatomical distortions caused by quaternions and direct matrix regression.
These findings indicate that large orientation failures in production models are frequently caused by mathematical mismatches in representation choice rather than inadequate network architectures or insufficient data. Adopting continuous formats provides substantial practical benefits, including faster training convergence, lower compute overhead, and the elimination of catastrophic flip errors in safety-critical robotics and automated vision systems. Furthermore, using a 6D representation directly inside the network resolves the orthogonality drift inherent in unconstrained 3x3 matrix prediction without requiring disruptive post-processing steps.
For technical leaders and engineering teams deploying neural networks for 3D rotation tasks, the article strongly recommends adopting the 6D continuous representation as the default training target. If downstream systems strictly require quaternions or Euler angles for storage or interpolation, pipelines should output the 6D format during network learning and perform downstream conversions afterward. While the 5D representation is mathematically continuous, it proved harder for networks to optimize due to projection-induced gradient distortion, making the 6D format the superior choice in practice. Given that these continuous mappings assume full, unconstrained rotation spaces, specialized applications operating within strictly limited angular ranges may still function with traditional formats, but standardizing on 6D removes edge-case failure risks with minimal computational overhead.
- Paper: Animating rotation with quaternion curves, Ken Shoemake (1985). This foundational paper establishes how 3D rotations can be parameterized and smoothly interpolated using unit quaternions on spherical manifolds, defining the classical continuous and discontinuous representations that the source paper analyzes.
- Paper: Least-Squares Estimation of Transformation Parameters Between Two Point Patterns, S. Umeyama (1991). It provides the fundamental closed-form SVD-based mathematical formulation for estimating proper 3D orthogonal rotation matrices, which informs the orthonormalization and continuous mapping techniques discussed in the source.
- Paper: PoseCNN: A Convolutional Neural Network for 6D Object Pose Estimation in Cluttered Scenes, Yu Xiang et al. (2017). It details standard deep learning practices for 3D rotation and 6D pose estimation that rely on discontinuous rotation representations such as quaternions, serving as a primary baseline and motivation for the source.
- Paper: Efficient Geometry-aware 3D Generative Adversarial Networks, Eric R. Chan et al. (2022). This paper advances 3D generative modeling and camera pose conditioning in neural networks, directly benefiting from continuous 3D rotation parameterizations during training.
- Paper: GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields, Michael Niemeyer et al. (2021). It builds upon continuous 3D coordinate and rotation parameterizations to compose and control disentangled 3D object poses and feature fields in generative networks.
