Projective Manifold Gradient Layer for Deep Rotation Regression

Jiayi Chen, Yingda Yin, Tolga Birdal, Baoquan Chen, Leonidas J. Guibas, He Wang

Abstract

This paper introduces the Regularized Projective Manifold Gradient (RPMG) layer, a novel "plug-and-play" module designed to enhance deep learning for 3D rotation regression. By reformulating the backward pass using Riemannian geometry, the RPMG layer provides a mathematically grounded gradient that significantly improves convergence speed and accuracy across multiple rotation representations, including 6D, 9D, and Quaternions.

Introduction

Orientation estimation is a fundamental task in computer vision and robotics. Rotations naturally reside on the SO(3) manifold, a curved mathematical space, whereas neural networks typically produce outputs in flat Euclidean space ($\mathbb{R}^n$). While recent research has focused on finding effective forward-pass representations (e.g., 6D or 9D vectors) to map network outputs to valid rotation matrices, these methods often rely on standard Euclidean backpropagation. The authors argue that ignoring the manifold's curvature during the backward pass introduces noise and leads to inefficient training and sub-optimal convergence.

Methodology

The proposed RPMG layer modifies only the network's backward pass, making it an efficient addition to existing architectures. The process involves three key steps:

  1. Riemannian Goal Rotation ($R_g$): Instead of a direct comparison with the ground truth, the layer identifies a "goal rotation" on the steepest geodesic path toward the target using Riemannian optimization.
  2. Back-Projection: The layer finds a point $x_{gp}$ in the network's raw output space that maps most directly to $R_g$. This "Projective" step aligns the gradient with the network's native output space, effectively finding the shortest path in the network's "language" to reach the desired rotation.
  3. Regularization and Scheduling: To prevent "length vanishing"—where output norms shrink and cause gradient explosions—a regularization term ($\lambda$) is added. Additionally, a ramping schedule for the step size ($\tau$) ensures stability during early training phases.
Figure 1: Overview of the RPMG pipeline, showing the transition from raw network output to the rotation manifold and the subsequent Riemannian-based backward pass.

Experimental Results

The RPMG layer was evaluated on diverse benchmarks, including ModelNet40/10 for 3D pose estimation, PASCAL3D+ for real-world image pose estimation, and the Cambridge Landscape dataset for camera relocalization.

Key results include:

  • State-of-the-Art Performance: On the ModelNet40 "Airplane" task, adding the RPMG layer to a standard 6D representation slashed the mean error from 5.5° to 2.6°.
  • Robustness: The method remained stable in self-supervised tasks where other high-performing methods (like 9D-Inf) failed to converge.
  • Efficiency: The layer adds virtually zero cost to inference and has a negligible impact on training time (less than 2% increase).

Key Insights: The "Shrinking" Problem

A critical discovery was the "shrinking" problem inherent in naive projections. Without regularization, the network's raw output vectors naturally shorten over time. This "length vanishing" acts like an uncontrolled, massive increase in the effective learning rate, which destabilizes training. The RPMG layer's regularization term ($\lambda$) is essential for maintaining stable output norms.

Figure 6: Comparison of output vector norms during training. Without regularization (lambda=0), norms vanish, leading to instability. With regularization (lambda=0.01), norms remain stable across different representation dimensions.

Conclusion and Future Work

The RPMG layer demonstrates that the backward pass is a vital, yet often overlooked, component in geometric deep learning. It is representation-agnostic, adds negligible computational overhead, and consistently improves performance across various tasks. While the method introduces new hyperparameters ($\lambda$ and $\tau$), it is robust to their values. Future work may extend this projective gradient logic to more complex manifolds beyond SO(3) and $S^2$.

Summary updated

BibTeX
@inproceedings{chen2021projective,
  author = {Jiayi Chen and Yingda Yin and Tolga Birdal and Baoquan Chen and Leonidas J. Guibas and He Wang},
  title = {{Projective Manifold Gradient Layer for Deep Rotation Regression}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr52688.2022.00653},
}
Figure