Delving into Discrete Normalizing Flows on SO(3) Manifold for Probabilistic Rotation Modeling

Yulin Liu, Haoran Liu, Yingda Yin, Yang Wang, Baoquan Chen, He Wang · OpenReview

TL;DR

This paper introduces a novel discrete normalizing flow tailored specifically for the $SO(3)$ manifold to model complex 3D rotation distributions. By alternating between a Möbius transformation-based coupling layer on rotation matrices and an affine transformation on quaternions, the model captures arbitrary, multi-modal distributions (like those caused by object symmetries) without introducing discontinuities or breaking the bijective requirements of normalizing flows.

What Problem Does This Paper Address?

Predicting 3D rotations is a fundamental task in computer vision, robotics, and graphics. However, rotations are notoriously difficult to model probabilistically because the space of 3D rotations—the $SO(3)$ manifold—is non-Euclidean and topologically complex.

When objects exhibit continuous or discrete symmetries (like a symmetric plastic cup or a multi-faceted cube), or when they are heavily occluded, a single image can correspond to multiple valid orientations. This requires a probabilistic model capable of representing complex, multi-modal distributions.

While Normalizing Flows (NFs) are excellent at mapping simple base distributions to complex target distributions via invertible, differentiable mappings, existing NFs struggle on $SO(3)$. Prior methods either:

  1. Map from flat Euclidean spaces to $SO(3)$ using many-to-one projections, which breaks the strict mathematical rules of normalizing flows.
  2. Suffer from topological discontinuities and numerical instabilities during training.

This paper tackles these challenges by designing a discrete normalizing flow that operates natively and bijectively on the geometry of $SO(3)$.

Methods

The authors propose a composite architecture that iteratively alternates between two primary building blocks, switching between rotation matrix and quaternion representations to maximize expressivity.

Figure 1. Pipeline overview. Our flow model takes rotations as input and outputs transformed rotations and log determinants of Jacobian, transforming a base distribution to a target one. Our flow is done by iteratively alternating Mobius coupling on Rotation matrix representa- tion and affine transformation on quaternion for N times. For probability inference, data are fed into the flow to the corresponding rotation which is of base distribution and predicts log-likelihood; while in the sampling process, our flow runs inversely, generating new data by transforming samples from the base distribution. The distribution visualization is borrowed from [25] where SO(3) is projected to a 2D sphere by Hopf fibration, points on the 2D sphere indicate the direction of a canonical z-axis, the colors represent the tilt angle about that axis, the direction of a canonical z-axis and the sizes of points show the probability density.

1. Möbius Coupling Layer (Rotation Matrix Space)

Operating on 3x3 rotation matrices, this layer splits the matrix columns into a conditioner (one column held fixed) and a transformer (the remaining columns). The transformer column undergoes a Möbius transformation on a circle ($S^1$) within the plane perpendicular to the conditioner column.

To increase expressivity, multiple Möbius transformations are linearly combined. However, naively combining them introduces massive angular jump discontinuities at the boundaries ($\pm\pi$). To fix this, the authors introduce a geometric $\sqrt{2}/2$ trick, constraining the transformation parameters to a safe semi-circle neighborhood, which stabilizes neural network training.

2. Quaternion Affine Transformation (Quaternion Space)

To complement the local changes of the Möbius layer, the authors introduce a global transformation using unit quaternions ($S^3$). The transformation is defined as:

$$g(q) = \frac{Wq}{\|Wq\|}$$

where $W$ is an invertible $4 \times 4$ matrix. Crucially, because quaternions possess antipodal symmetry ($q$ and $-q$ represent the exact same 3D rotation), any valid transformation must map $-q$ to $-g(q)$. This formulation naturally satisfies this property, ensuring a true diffeomorphism on $SO(3)$ that can globally rotate, dilate, or condense the distribution.

Illustration of the quaternion affine transformation mechanism

Datasets

The model was evaluated across a variety of synthetic and real-world benchmarks:

  • Synthetic Distributions: Four challenging target shapes on $SO(3)$ designed to simulate various symmetries: a sharp peak, a cone-like circle, a 24-peaked cube symmetry, and a line distribution.
  • SYMSOL I & II: Datasets containing images of 3D geometric solids with high-order symmetries (e.g., cones, cylinders, tetrahedrons), some featuring small markers to break regular symmetry.
  • ModelNet10-SO3: A synthetic dataset rendered from CAD models, widely used for evaluating unimodal rotation regression from single images.
  • Pascal3D+: A benchmark consisting of real-world images of daily objects (cars, planes, etc.) without structural symmetries.

Key Insights and Ideas

  • Representation Interchange is Key: Local conditioning is clean in rotation matrix space, but global distribution rotation is highly difficult. Conversely, quaternion space handles global transformations and scaling elegantly. Alternating between them yields a much more expressive flow than staying in a single representation.
  • Diffeomorphism Preservation: Unlike previous methods that map $\mathbb{R}^N \to SO(3)$ via many-to-one projections (making exact likelihood computation intractable), this method maintains strict bijectivity, allowing exact log-likelihood evaluation and efficient exact sampling.
  • The Discontinuity Trap: When blending circular distributions, minor parameter updates can cause massive probability jumps due to the periodic nature of angles. Restricting the parameter space via the $\sqrt{2}/2$ trick is essential for stable gradient descent.

Key Results

  • State-of-the-Art Density Estimation: On synthetic and SYMSOL datasets, the proposed method consistently outperformed strong baselines like Implicit-PDF and Riemannian Continuous Normalizing Flows in log-likelihood.
  • Superior Precision (Spread Metric): On SYMSOL, the model achieved a significantly lower "spread" (measuring how tightly the probability mass centers around true equivalent poses), dropping from Implicit-PDF's 4.0 down to 0.7.
  • Massive Speedups: For single-value rotation predictions on ModelNet10, the proposed flow generated accurate predictions in 1.2 minutes for the entire test set, whereas grid-based evaluation methods (like Implicit-PDF) took up to 9.5 hours due to the need for dense manifold sampling.

Limitations and Future Work

While the $\sqrt{2}/2$ trick successfully prevents training instabilities, it inherently restricts the expressivity of any single Möbius coupling layer to a semi-circle. The authors overcome this by stacking multiple blocks ($N=24$), but this increases the depth of the network.

For future work, the authors note that their Möbius coupling approach can be mathematically interpreted as a bundle isomorphism. This insight could potentially open doors for designing efficient normalizing flows on other complex fiber bundles and Lie groups beyond $SO(3)$.

Summary updated

BibTeX
@misc{liu2023delving,
  author = {Yulin Liu and Haoran Liu and Yingda Yin and Yang Wang and Baoquan Chen and He Wang},
  title = {{Delving into Discrete Normalizing Flows on SO(3) Manifold for Probabilistic Rotation Modeling}},
  year = {2023},
  eprint = {2304.03937},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.03937},
}
Figure