Efficient Generalized Spherical CNNs

Oliver J. Cobb, Christopher G. R. Wallis, Augustine N. Mavor-Parker, Augustin Marignier, Matthew A. Price, Mayeul d'Avezac, Jason D. McEwenICLR 2021

TL;DR

This paper introduces a highly efficient framework for Spherical Convolutional Neural Networks (CNNs) that achieves strict rotational equivariance without the prohibitive computational costs of previous methods. By rethinking how signal degrees are mixed and adopting a channel-wise architecture, the authors reduced computational complexity by up to 101x. This breakthrough allows these models to achieve state-of-the-art results on spherical benchmarks like 360° image classification and molecular energy prediction.

The Problem: Spherical Data and Rotational Equivariance

Many real-world datasets—from 360° VR video and planetary maps to the 3D structure of complex molecules—live on a sphere rather than a flat 2D plane. Standard CNNs struggle here because they are designed for flat, Euclidean grids. While we can project a sphere onto a flat map (like a Mercator projection), this introduces distortions that break the network's ability to recognize the same object if it is simply rotated.

To solve this, researchers developed Spherical CNNs that are "rotationally equivariant," meaning the network's internal representations rotate perfectly in tandem with the input. However, this has historically presented a severe trade-off:

  1. Fast but Approximate: Methods that work in "pixel space" are fast but lose the underlying continuous symmetries of the sphere, leading to aliasing errors.
  2. Strict but Slow: Methods that work entirely in "harmonic space" (using spherical harmonics, the spherical equivalent of a Fourier Transform) are mathematically perfect but computationally heavy. The best existing strictly equivariant model had a complexity of $\mathcal{O}(C^2L^5)$, where $L$ is the resolution (bandlimit) and $C$ is the capacity. This made high-resolution models practically impossible to train.

Methods: Bridging the Gap with Efficiency

The authors propose a generalized framework that bridges existing approaches and introduces key innovations to slash the computational and memory footprint.

Comparison of the prior tensor-product approach versus the proposed efficient architecture.

1. Channel-Wise Structure

Traditional harmonic models lumped all representational capacity into a single large vector. This paper adopts the standard CNN "channel" approach. By applying non-linearities to each channel separately, they reduced the complexity related to representational capacity from quadratic ($\mathcal{O}(C^2)$) to linear ($\mathcal{O}(C)$).

2. Constrained Generalized Convolutions

Inspired by "depthwise separable convolutions" used in mobile-efficient 2D CNNs, the authors decomposed their spherical linear operators into three steps: a linear projection, a channel-wise mixing, and a cross-channel mixing. This drastically reduces the number of learnable parameters.

3. Optimized Degree Mixing (MST & RMST)

In harmonic space, non-linearities work by mixing different "degrees" (frequencies) of the signal. Previously, every degree was mixed with every other degree, resulting in $\mathcal{O}(L^2)$ pairs. The authors realized that if you capture the relationship between degree A and B, and B and C, the relationship between A and C is already implicitly captured.

They used Minimum Spanning Trees (MST) to select a minimal set of degree pairs to mix. This graph-theory approach reduces spatial complexity from $\mathcal{O}(L^2)$ to $\mathcal{O}(L)$ or even $\mathcal{O}(\log L)$.

Visualizing the reduction in degree mixing pairs: from the full set to the optimized MST and RMST subsets.

4. Efficient Sampling

They utilized advanced sampling theorems that require half as many samples as the standard methods used in prior spherical CNNs, further boosting speed.

Key Insights

  • The "Aha" Moment on Degree Mixing: Treating the frequencies of a spherical signal as nodes in a graph and finding the most efficient "path" (MST) to spread information across the spectrum without redundant calculations is a standout idea.
  • Strict vs. Approximate Equivariance: The paper proves that "pointwise" activations (like ReLU) in real space actually break equivariance due to aliasing. By staying in harmonic space for the non-linear steps, they maintain mathematical "purity" while the MST optimization keeps it fast.
  • Hybridization is Key: The most effective models use standard, faster spherical convolutions for the early layers and their strictly equivariant "generalized" layers for the deeper parts of the network.

Results and Benchmarks

The authors evaluated their "Hybrid" models on three major benchmarks, demonstrating massive improvements in both speed and accuracy:

  • Massive Speedup: At a bandlimit of $L=128$, the new layers achieved a 101-fold reduction in FLOPs and a 29-fold reduction in memory compared to the previous state-of-the-art harmonic model.
  • Rotated MNIST on the Sphere: Achieved state-of-the-art accuracy on the difficult "NR/R" mode (trained on unrotated, tested on rotated data) at 99.34%, demonstrating superior generalization to unseen rotations.
  • QM7 (Molecular Energy): Smashed previous records for atomization energy prediction, achieving an RMS error of 3.16 (compared to the previous best of 7.97) while using significantly fewer parameters.
  • SHREC’17 (3D Object Retrieval): Achieved state-of-the-art performance on 3 out of 5 metrics while being much more parameter-efficient than competitors.

Limitations and Future Work

While $\mathcal{O}(L^4)$ is a massive improvement over $\mathcal{O}(L^5)$, it still scales steeply. For extremely high-resolution planetary data, further optimizations may be needed. Additionally, harmonic-based CNNs require specialized mathematical libraries, which may present a steeper learning curve for engineers used to standard PyTorch or TensorFlow operations. Future directions include exploring scattering transforms on the sphere to further improve scalability for complex natural science data.

Summary updated

BibTeX
@inproceedings{cobb2021efficient,
  author = {Oliver J. Cobb and Christopher G. R. Wallis and Augustine N. Mavor-Parker and Augustin Marignier and Matthew A. Price and Mayeul d'Avezac and Jason D. McEwen},
  title = {{Efficient Generalized Spherical CNNs}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure