Abstract
Many computer vision challenges require continuous outputs, but tend to be solved by discrete classification. The reason is classification's natural containment within a probability n-simplex, as defined by the popular softmax activation function. Regular regression lacks such a closed geometry, leading to unstable training and convergence to suboptimal local minima. Starting from this insight we revisit regression in convolutional neural networks. We observe many continuous output problems in computer vision are naturally contained in closed geometrical manifolds, like the Euler angles in viewpoint estimation or the normals in surface normal estimation. A natural framework for posing such continuous output problems are n-spheres, which are naturally closed geometric manifolds defined in the $R^{n+1}$ space. By introducing a spherical exponential mapping on n-spheres at the regression output, we obtain well-behaved gradients, leading to stable training. We show how our spherical regression can be utilized for several computer vision challenges, specifically viewpoint estimation, surface normal estimation and 3D rotation estimation. For all these problems our experiments demonstrate the benefit of spherical regression.
Introduction
In deep learning, core computer vision tasks like estimating car viewpoints, surface orientations, or 3D object rotations require continuous numerical outputs. Paradoxically, researchers often find that discretizing these problems into classification tasks (e.g., grouping angles into 360 bins) yields better performance than direct regression. This paper identifies the culprit as the geometry of the output space.
While classification is naturally constrained within a probability $n$-simplex by the softmax function—keeping gradients well-behaved—standard regression is typically unconstrained. Without a "closed" geometry to bound outputs, backpropagated gradients can exhibit high variance, leading to unstable training and suboptimal local minima. To solve this, the authors propose Spherical Regression, a framework that maps continuous outputs onto $n$-spheres ($S^n$).
The Spherical Regression Framework
The key innovation is the Spherical Exponential Activation Function ($S_{exp}$). Instead of directly regressing coordinates, the network produces a latent embedding $O$, which the $S_{exp}$ function maps to the surface of an $n$-sphere using an exponential map followed by $\ell_2$ normalization:
$$p_j = \frac{e^{o_j}}{\sqrt{\sum_k (e^{o_k})^2}}$$
This formulation "detaches" the gradient from the raw magnitude of the network's output, ensuring stable parameter updates similar to the softmax function. Because the exponential function is always positive, the authors employ a dual-head architecture: a Regression Branch for absolute values via $S_{exp}$, and a Classification Branch to predict the signs of the coordinates.
Applications and Benchmarks
The authors demonstrate the versatility of spherical regression across three distinct manifold types:
- $S^1$ (Circle): Viewpoint Estimation. Evaluated on Pascal3D+, the method achieved a state-of-the-art accuracy of 88.2% (Acc@$\pi/6$), significantly outperforming both standard regression (83.6%) and classification (85.9%).
- $S^2$ (Sphere): Surface Normal Estimation. On the NYU Depth v2 dataset, the framework reduced mean error to 19.7°, surpassing the previous best of 21.7°.
- $S^3$ (Quaternions): 3D Rotation Estimation. Using a new benchmark, ModelNet10-SO3, spherical regression improved accuracy from 46.7% (direct regression) to 70.9%.
Conclusion
Spherical regression acts as a bridge, providing the continuous resolution of regression with the mathematical robustness of a softmax-like constraint. By forcing the output onto a closed manifold, models inherit the training stability usually reserved for classification. While the dual-head architecture adds some complexity, the empirical results across viewpoint, surface normal, and rotation estimation suggest that respecting the underlying geometry of the output space is critical for high-performance computer vision.
Summary updated