Scaling Spherical CNNs

Carlos Esteves, Jean-Jacques E. Slotine, Ameesh Makadia

Standard Convolutional Neural Networks (CNNs) are the undisputed champions of flat, 2D grids like images. However, they struggle significantly with spherical data. Whether analyzing the Earth’s atmosphere or the 3D environment surrounding an atom, "flattening" a sphere into a rectangle introduces severe distortions—much like how Greenland appears unnaturally massive on a standard Mercator projection map.

Spherical CNNs solve this distortion by performing convolutions directly on the sphere using the spectral domain (essentially a 3D version of a Fourier Transform). Historically, however, these models have been mathematically elegant but computationally prohibitive. Limited to tiny datasets and shallow architectures, Spherical CNNs lacked a "VGG moment"—a scalable, deep architecture capable of handling industrial-scale data.

A recent paper changes this paradigm, introducing a suite of architectural and implementation breakthroughs that finally allow Spherical CNNs to scale to large, real-world scientific problems.

A Principled Recipe for Scaling

The authors achieved this scaling milestone through four primary innovations:

  1. Hardware-Aware Implementation: The framework was rewritten in JAX, specifically optimized for Google’s Tensor Processing Units (TPUs). In a surprising twist, the authors found that at the resolutions typically used in deep learning, computing Fourier transforms via direct matrix multiplication (DFT) is actually faster than the "Fast" Fourier Transform (FFT). This is because TPUs are purpose-built to execute massive matrix operations with extreme efficiency.
  2. Spectral-First Architecture: Previous models suffered from a "ping-pong" effect, constantly switching between the spectral domain (for convolutions) and the spatial domain (for operations like Batch Normalization or Pooling). This switching is slow and introduces interpolation errors. By introducing Spectral Batch Normalization and Spectral Pooling, the model remains in the Fourier-like space much longer, improving both speed and accuracy.
  3. Phase Collapse Nonlinearity: Processing spherical data often involves complex numbers. The authors adapted a "phase collapse" activation function that eliminates phase shifts caused by rotations. This makes the model robust to an object's spatial orientation without discarding critical structural information.
  4. Novel Molecular Representation: For chemistry tasks, the team developed a physically grounded input representation. Using an inverse power law to model Coulomb and van der Waals forces, they successfully mapped 3D atomic structures onto spherical functions.

Key Insights: Rethinking Conventional Wisdom

The research challenges several established norms in machine learning:

  • Equivariance as a Data Efficiency Hack: The laws of physics remain constant regardless of how a molecule is rotated. Because Spherical CNNs are "rotationally equivariant" by design, they inherently understand that a rotated molecule is the same object. This allows them to outperform Graph Neural Networks (GNNs), which typically have to learn these symmetries from scratch.
  • The "Big-O" Notation Can Be Misleading: Computer science fundamentals teach that $O(n \log n)$ (FFT) is strictly better than $O(n^2)$ (DFT). This paper demonstrates that on modern AI accelerators, constant factors and hardware architecture matter more than asymptotic complexity at practical deep learning resolutions.
  • Stay in the Frequency Domain: Moving Batch Norm and Residual connections to the spectral domain wasn't just a speed trick; it actually improved accuracy by reducing the interpolation errors that happen when mapping data back onto a pixelated grid.

Empirical Triumphs in Chemistry and Weather

The researchers evaluated their scaled-up models on two massive, high-stakes domains:

  • Quantum Chemistry (QM9): On this standard benchmark for molecular property regression—containing 134,000 molecules, roughly 18 times larger than what previous spherical CNNs could handle—the model achieved state-of-the-art performance. It outperformed dominant models like PaiNN and TorchMD-Net on the majority of targets.
  • Global Weather Forecasting (WeatherBench/ERA5): Testing on geopotential height and temperature forecasting at resolutions up to $256 \times 256$, the model proved to be a highly viable Neural Weather Model. It nearly matched the performance of specialized architectures like GenNet, even when utilizing significantly fewer input predictors.

Crucially, their JAX implementation is 3x faster than previous versions on a single device and scales efficiently across dozens of TPUs to achieve a 100x+ speedup, unlocking datasets that were previously untouchable.

Limitations and the Path Forward

Despite these massive speedups, Spherical CNNs remain compute-hungry. Training the best weather models required up to four days on 32 TPUv4s, making them significantly more expensive to train than some GNN baselines that run on a single GPU.

Furthermore, while global rotation equivariance is a perfect inductive bias for freely rotating molecules, it may be too strict for Earth's weather. The Earth has a fixed orientation and specific topography (like the Himalayas) that break perfect spherical symmetry. Future work may involve "relaxing" this equivariance to better account for the Earth's specific, non-rotating features while retaining the local benefits of spherical convolutions.

Summary updated

BibTeX
@inproceedings{esteves2023scaling,
  author = {Carlos Esteves and Jean-Jacques E. Slotine and Ameesh Makadia},
  title = {{Scaling Spherical CNNs}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=HiKPaeowPB},
}
Figure