Flat maps of the sphere, such as the familiar latitude–longitude image, stretch the poles. Networks that respect the sphere's true geometry avoid this distortion. DISCO convolutions, which use continuous filters on discrete spherical samples (DISCO), graph convolutions on the sphere (DeepSphere) and attention over the neighbours of an icosphere mesh (SphereUFormer) all do this. Each expresses its core operation as multiplication by a large sparse matrix: every point on the sphere interacts only with points inside a small angular disc. On paper these methods are cheap. On a GPU they are slow. SphereUFormer reports running about 30% slower than a flat-image transformer, and the DISCO authors attribute their wall-clock bottleneck to generic sparse libraries and ask for custom kernels.
This note argues that the distortion and the slowness come from the same cause. When the sphere is stored as a latitude–longitude grid, a disc of fixed angular size covers many more pixels near the poles. The sparse matrix therefore has wildly uneven row lengths, and its nonzeros are scattered across memory. That unevenness and scatter are exactly what sparse GPU kernels handle worst. If the sphere is instead sampled with an equal-area grid and the points are numbered along a nested, space-filling order, the same operator becomes nearly block-banded with uniform rows. It can then be executed as small dense tiles on tensor cores (the GPU's dense matrix-multiply units), with no data-dependent reordering step. The proposal builds and tests that kernel and measures whether the grid choice alone can close the speed gap without giving up accuracy or equivariance.
Core Claim
The claim has three parts. First, projection distortion appears in the sparse operator as a measurable irregularity: variance in row length and poor filling of fixed-size blocks. Second, an analytically chosen equal-area nested ordering removes most of that irregularity. It achieves block fill comparable to data-driven reordering, but costs nothing at preprocessing time and works at every resolution level of a U-Net. Third, a block-sparse tensor-core kernel built on this ordering makes spherical convolution competitive in wall-clock time with dense planar convolution at matched accuracy.
The first part can be made quantitative. Take a filter of angular radius $r$ on a latitude–longitude grid with angular spacings $\Delta\lambda$ (longitude) and $\Delta\phi$ (latitude). The number of nonzeros in the row for a point at latitude $\theta_i$ is approximately
$$ n_i \approx \frac{\pi r^2}{\Delta\lambda\,\Delta\phi\,\cos\theta_i}, $$
because a grid cell covers area $\Delta\lambda\,\Delta\phi\cos\theta_i$ on the unit sphere. Near the poles the formula is capped by the ring length. Row length on such a grid therefore diverges toward the poles. On an equal-area grid the cell area is constant, so $n_i$ is essentially constant. A standard sparse kernel assigns work row by row, so row-length variance translates directly into load imbalance across the GPU's threads.
One feature of DISCO makes this attractive. Its sparse matrices hold fixed basis-function values multiplied by quadrature weights, and only the small dense coefficient matrices are learned. The operator $Y=\sum_b A_b X W_b$ uses a static sparse matrix $A_b$ for each filter basis $b$, with node features $X$ and learned coefficients $W_b$. The expensive reordering problem that limits dynamic sparsity therefore does not arise, and the transpose $A_b^\top$ needed for training has the same block structure.
Relation to Prior Work
The spherical papers motivate the proposal by exposing the gap. DISCO formulates spherical convolution as a sparse–dense product with linear cost and reports 658k parameters against a 27M-parameter planar UNet on Pano3D. It runs on general-purpose sparse routines, and to avoid a 4× cost it falls back on approximate quadrature during upsampling. SphereUFormer attributes its 30% slowdown to missing kernels for mesh gather and scatter. DeepSphere runs Laplacian polynomials as generic sparse matrix–vector products. PEAR shows that equal-area HEALPix grids help weather forecasting, but it uses dense windowed attention with ring shifts and does not treat the operator as a sparse matrix. None of these papers asks how the sampling grid shapes the sparsity pattern.
The sparse-kernel papers supply the method, and one of them constrains it. Sputnik gets speedups from memory alignment, row load balancing, and the observation that deep-learning matrices have much more uniform row lengths than scientific ones. Our analysis predicts that latitude–longitude spherical operators break that regularity, which puts them back in the regime where Sputnik's balancing is necessary. SMaT groups rows by nonzero overlap (Jaccard similarity) and packs them into 16×8 blocks stored in block-compressed-sparse-row (BCSR) format to feed tensor cores. We replace this data-driven permutation with the sphere's own nested ordering, and SMaT is the benchmark that ordering has to match.
Structured $N{:}M$ sparsity (SR-STE, SAS) targets learned weights or activations at 50% density. It does not apply here: the spatial operator is fixed by geometry and far sparser than 50%. We therefore do not pursue $N{:}M$ patterns.
Research Program
The work has three stages. The first is a diagnostic study. We construct DISCO operators for several filter radii and resolutions, up to 4K panoramas, on three grids: equiangular latitude–longitude, HEALPix, and icosphere. For each grid we compare four orderings: row-major, HEALPix nested (Morton-like), reverse Cuthill–McKee, and SMaT's Jaccard permutation. For each combination we record row-length variance, the fraction of nonzeros captured by 16×8 blocks, the zero padding those blocks introduce, and the preprocessing time. This stage tests the equation above and determines whether nested ordering matches Jaccard ordering in block fill.
The second stage builds a kernel for static, geometry-ordered block-sparse matrices. It covers the forward product and a fused transpose product for gradients; Sputnik identifies the lack of the latter as a training bottleneck. Block layouts are precomputed from the grid index alone for every level of the U-Net, so multi-resolution models need no per-level reordering. The kernel uses asynchronous shared-memory staging as in SMaT. Because precomputing the block layout is cheap for every level, we also test whether the kernel makes exact quadrature affordable during upsampling, the trade-off DISCO had to accept.
The third stage integrates the kernel into DISCO-style networks. The operator counts as HEALPix sampling only if its quadrature keeps equivariance error near DISCO's reported 0.01–0.04% on Spherical MNIST. This is a real risk: DISCO relies on exact quadrature on equiangular grids, and HEALPix quadrature is only approximate.
Baselines
The naive reference is the DISCO operator run through the framework's built-in sparse tensor routines, as in the original implementation. No wall-clock figure for this configuration was found on Lacuna, so we measure it ourselves on the same A100.
The strongest planar competitor is a dense equirectangular UNet on cuDNN. On Pano3D, DISCO outperforms it in accuracy with 40× fewer parameters. The open question is time: the proposal succeeds if the spherical model reaches equal or better depth error at equal or lower training and inference wall-clock time.
For the perception tasks, SphereUFormer on Stanford2D3D sets the accuracy bar at depth MAE 0.165 and mIoU 72.2%, and PanoFormer at 60.6% mIoU sets the speed bar. SphereUFormer is roughly 30% slower than PanoFormer. We port its local attention to our kernel, splitting it into a sampled dense–dense product for the attention scores and a sparse–dense product for the aggregation. Closing that 30% gap at unchanged mIoU counts as a win.
The strongest sparse-kernel baselines are Sputnik and SMaT, each run on the identical operators and GPU and allowed its full preprocessing. Beating SMaT on latitude–longitude matrices would be a strong result. Our realistic target is to match SMaT's operator throughput with zero preprocessing, and to beat it end to end once multi-resolution and training (transpose) costs are counted.
The comparison uses a matched-compute gather-then-dense-matmul implementation, a strong threat discussed below. It also includes two ablations, each of which isolates one ingredient. The first ablation runs our kernel on a latitude–longitude grid, which separates the effect of the kernel from the effect of the grid. The second runs HEALPix with ring rather than nested ordering, which separates the effect of ordering from equal area. All models share data, schedule and tuning budget.
Why not just…?
Why not just keep the flat image and weight the loss by latitude? Loss weighting changes which errors count, not what a 3×3 filter sees. Cohen et al. show that a filter's physical footprint still warps with latitude. The seam where the image wraps from −π to +π and the singularities at the poles also remain (Rußwurm et al.). The dense UNet baseline measures this directly: if it matches our accuracy at lower cost, the proposal fails.
Why not just gather each point's fixed set of neighbours into a dense tensor and run an ordinary matrix multiply? This is the most serious alternative, and on an equal-area grid it may perform close to our kernel. Its cost is a memory-bound gather that copies each feature once for every neighbourhood it belongs to, roughly $n_i$ times. Nested ordering aims to make neighbourhoods contiguous, so tiles load without duplication. We run this alternative on identical grids. If it comes within about 10% of our kernel, we will report that the grid choice, not the kernel, is the contribution.
Why not just apply SMaT's reordering to the existing operator? For a single static matrix, it may be as good. Its costs are preprocessing at every resolution level, and it has been evaluated only on SuiteSparse and synthetic band matrices, not on training workloads that need transposes. The diagnostic study compares block fill directly. If Jaccard ordering beats nested ordering by a clear margin, we adopt it and reframe the work as spherical training support for SMaT.
Why not just use 2:4 hardware sparsity? The geometric operator is not sparse at 50%; it is far sparser. Pruning its weights would cut into the quadrature and harm equivariance. Structured sparsity methods such as SR-STE and SAS address a different matrix: the learned channel-mixing weights. Their result is orthogonal to ours and could be stacked on top.
Decisive Checks
The first check is whether measured row-length variance on latitude–longitude grids follows the $1/\cos\theta$ prediction, and whether it predicts Sputnik's throughput loss relative to HEALPix. The second is whether nested HEALPix ordering reaches block fill within a small margin of SMaT's Jaccard ordering, at no preprocessing cost. The third is whether a HEALPix DISCO network trained with our kernel matches DISCO's equivariance error and Pano3D depth accuracy, and whether it beats the dense UNet in training throughput. The fourth is whether SphereUFormer-style attention on our kernel reaches 72.2% mIoU on Stanford2D3D without the 30% slowdown relative to PanoFormer. A negative result on the second check, where analytic ordering loses badly to data-driven ordering, would falsify the central claim that the sphere's geometry already contains the ordering the kernel needs.
References
- Scalable and Equivariant Spherical CNNs by Discrete-Continuous (DISCO) Convolutions
- DeepSphere: a graph-based spherical CNN
- SphereUFormer: A U-Shaped Transformer for Spherical 360 Perception
- PEAR: Equal Area Weather Forecasting on the Sphere
- Sparse GPU Kernels for Deep Learning
- High Performance Unstructured SpMM Computation Using Tensor Cores
- Learning N: M Fine-grained Structured Sparse Neural Networks From Scratch
- SAS: Structured Activation Sparsification
- Spherical CNNs
- Geographic Location Encoding with Spherical Harmonics and Sinusoidal Representation Networks