Foundations to Frontier
Tests
E. Deep Learning › E18 Geometric and Equivariant Networks

Spherical CNNs

Spherical CNNs (Cohen, Geiger, Köhler and Welling, ICLR 2018; Esteves et al., ECCV 2018) handle signals that live on a sphere. Examples are 360° camera images, global weather and climate fields, molecular surfaces and the sky. They replace the planar convolution with spherical correlation, which is equivariant to 3-D rotations, and compute it quickly with spherical-harmonic transforms. Rotation-invariant outputs follow from per-degree power spectra or pooling over rotations. This page covers spherical harmonics, convolution on S² and SO(3), Fourier-space computation, invariant readouts and sampling issues. In the exercises you implement the Legendre recurrence, a near-uniform sphere grid and zonal spherical convolution. You then classify bump patterns on the sphere, training in one orientation and testing in random orientations. Spherical CNN features (zonal convolutions, ReLU, power spectra) scored 1.00 on rotated tests. Planar-style features fell from 1.00 to 0.42, and rotation augmentation reached 0.958.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Convolution for round data

A 360° camera image or a global weather map lives on a sphere. Flattening it into a rectangle (like a world map) stretches the poles and puts a seam at the date line, so a pattern looks different depending on where it is. Spherical CNNs slide filters over the sphere itself by rotating them, so a pattern is recognised wherever it appears and however the sphere is turned. The math uses spherical harmonics, the sphere’s version of sines and cosines; the demo counts how many there are up to degree L.

Geometric deep learning lab
Spherical harmonics up to degree 3: 16 functions, (L + 1)². Degree-ℓ features transform by (2ℓ + 1)-dimensional Wigner matrices under 3-D rotation.
Why engineers care

Spherical signals are everywhere in aerospace: global weather and climate fields, the celestial sphere for star trackers, omnidirectional cameras on drones and rovers, and antenna radiation patterns.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Flattening a sphere to a rectangle…
  2. 2. Spherical CNNs move filters by…
  3. 3. The sphere's version of sines and cosines:

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

By hand

  • Spherical harmonics: functions on the sphere expand as f = Σ_ℓ Σ_m f_ℓm Y_ℓm. Up to bandwidth L there are (L + 1)² coefficients (81 for L = 8).
  • Rotations act per degree: rotating f mixes the 2ℓ + 1 coefficients of each degree by a Wigner D-matrix and never mixes degrees.
  • Power spectrum: P_ℓ = Σ_m |f_ℓm|² is rotation-invariant. By the addition theorem, P_ℓ = (2ℓ + 1)/(4π) ∫∫ f(x) f(y) P_ℓ(x·y) dx dy, with Legendre polynomials P_ℓ.
  • Spherical correlation:
    • S² → SO(3): (f ⋆ ψ)(R) = ∫ f(x) ψ(R⁻¹x) dx gives a function of rotations;
    • SO(3) → SO(3) layers follow;
    • in Fourier space it is a per-degree matrix product, computed with fast transforms.
  • Zonal filters: a rotation-symmetric filter k(x·y) gives an S² → S² convolution with per-degree scalar multipliers (Esteves et al.; isotropic, so less expressive).
  • Grids: equiangular (2B)² samples on S², (2B)³ on SO(3) for bandwidth B.
📝 Quick check (Level 1)
0/3 answered
  1. 1. Coefficients up to L = 8:
  2. 2. Rotations mix coefficients…
  3. 3. The power spectrum is…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

Spherical CNNs in code

Exercise 1.

  • The Legendre recurrence matches the closed forms.
  • The Fibonacci grid is nearly uniform.
  • Zonal convolution of a constant gives 4π.

Practice.

  • Use e3nn (spherical-harmonic transforms), the s2cnn reference code, or DeepSphere (graph-based on HEALPix grids) for large data such as climate fields.
  • HEALPix gives equal-area pixels.
  • Bandwidth limits resolution and cost: SO(3) features are cubic in B, so many models keep S² features and use zonal or graph-based filters.
  • Pointwise nonlinearities on sampled grids break exact equivariance slightly; measure the error.
import torch, e3nn.o3 as o3
grid = o3.ToS2Grid(lmax=8, res=(32, 64)); back = o3.FromS2Grid(res=(32, 64), lmax=8)
x = back(signal_on_grid)                         # spherical-harmonic coefficients
x = x * radial_weights_per_degree                # zonal convolution = per-degree scaling
y = torch.relu(grid(x))                          # nonlinearity on the grid
🐍 Exercise 1: Legendre, grids and zonal convolution
Implement the Legendre recurrence, zonal spherical convolution and a Fibonacci sphere grid.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Equal-area sphere pixels:
  2. 2. Zonal convolution in Fourier space is…
  3. 3. Pointwise nonlinearities on a grid make equivariance…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

Equivariance. Spherical correlation satisfies (L_Q f) ⋆ ψ = (f ⋆ ψ)(Q⁻¹R): rotating the input shifts the output on SO(3). This is the generalised Fourier theorem: in the spectral domain, correlation becomes a per-degree product of coefficient matrices, and rotation multiplies each degree by D^ℓ(Q).

Funk–Hecke theorem. A zonal kernel k(x·y) acts on degree-ℓ components as multiplication by λ_ℓ = 2π ∫ k(t) P_ℓ(t) dt. So zonal convolution commutes with rotations and is cheap, but it cannot detect oriented patterns.

Invariance and sampling. Power spectra (and bispectra) of equivariant feature maps give rotation-invariant descriptors. No finite sphere grid is exactly rotation-symmetric, so invariance holds only up to sampling and bandwidth error.

📝 Quick check (Level 3)
0/3 answered
  1. 1. Rotating the input of S² correlation…
  2. 2. Zonal kernels act on degree ℓ by…
  3. 3. Zonal filters cannot detect…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

Do spherical features recognise patterns in orientations never seen in training?

History.

  • T. S. Cohen, M. Geiger, J. Köhler and M. Welling, “Spherical CNNs” (ICLR 2018; best paper).
  • C. Esteves, C. Allen-Blanchette, A. Makadia and K. Daniilidis, “Learning SO(3) equivariant representations with spherical CNNs” (ECCV 2018).

Exercise 2.

  • Data: signals on a 300-point Fibonacci sphere grid. Each is a sum of bumps exp(8(x·c − 1)) plus noise 0.05.
  • Classes: 4 bump layouts (antipodal pair, perpendicular pair, equatorial triangle, single bump).
  • Protocol: train on 800 near-canonical signals (small random tilt); test on 400 near-canonical and 400 randomly rotated signals.
  • Features:
    • planar-style: grid samples through 512 random ReLU features (with or without rotation-augmented training);
    • spherical CNN: 4 zonal convolutions, ReLU, then log power spectra up to degree 8 for the input and every channel (45 invariants).
  • Classifier: linear.
features canonical test rotated test
planar 1.000 0.422
planar, augmented training 0.993 0.958
spherical CNN 1.000 1.000
  • Sampling error: rotating a noiseless signal changed its sampled power spectrum by 0.15%. Invariance is approximate on a finite grid, but far below the class differences.
  • Spherical features generalise to every orientation: the rotated test matches the canonical test, because the readout is invariant.
  • Planar features memorise orientation: perfect on poses like training, 0.42 on random rotations.
  • Augmentation nearly closes the gap here (0.958), but needs rotated training data and gives no guarantee.
  • Seeds: seeds 1 and 2 gave planar rotated 0.405/0.365, augmented 0.955/0.965 (canonical 0.99/0.892), spherical 1.0/1.0.
  • Caveat: zonal filters are the simplest spherical convolution (Esteves-style); Cohen-style SO(3) correlation can also detect oriented patterns.
🐍 Exercise 2 (research): do spherical features recognise patterns in orientations never seen in training?
Classify bump patterns on the sphere with planar-style features (with and without augmentation) and spherical CNN features; test on randomly rotated signals.

Spherical CNNs in AI, robotics and aerospace

  • Weather and climate: global forecasting and downscaling on spherical grids (DeepSphere, spherical U-Nets).
  • Astronomy and attitude: cosmic microwave background analysis and star-pattern recognition on the celestial sphere.
  • Omnidirectional vision: 360° cameras on drones and rovers.
  • Design lesson: respect the domain’s geometry; flattening a sphere introduces distortions the network must waste capacity undoing.

References

  1. T. S. Cohen, M. Geiger, J. Köhler and M. Welling (2018). “Spherical CNNs.” Proc. ICLR.
  2. C. Esteves, C. Allen-Blanchette, A. Makadia and K. Daniilidis (2018). “Learning SO(3) equivariant representations with spherical CNNs.” Proc. ECCV.
  3. N. Perraudin, M. Defferrard, T. Kacprzak and R. Sgier (2019). “DeepSphere: efficient spherical convolutional neural network with HEALPix sampling for cosmological applications.” Astronomy and Computing 27.