Abstract: Geographic data is fundamentally local. Disease outbreaks cluster in population centers, ecological patterns emerge along coastlines, and economic activity concentrates within country borders. Machine learning models that encode geographic location, however, distribute representational capacity uniformly across the globe, struggling at the fine-grained resolutions that localized applications require. We propose a geographic location encoder built from spherical Slepian functions that concentrate representational capacity inside a region-of-interest and scale to high resolutions without extensive computational demands. For settings requiring global context, we present a hybrid Slepian-Spherical Harmonic encoder that efficiently bridges the tradeoff between local-global performance, while retaining desirable properties such as pole-safety and spherical-surface-distance preservation. Across five tasks spanning classification, regression, and image-augmented prediction, Slepian encodings outperform baselines and retain performance advantages across a wide range of neural network architectures.
Introduction
Geographic phenomena—from economic activity to disease outbreaks—are inherently non-uniform, clustering in specific regions. However, standard machine learning location encoders typically distribute representational capacity equally across the globe. Using global basis functions like Spherical Harmonics (SH) creates a restrictive trade-off: achieving high local resolution requires increasing the global frequency, which leads to quadratic growth in parameters and numerical instability at high frequencies.
Methodology: Spherical Slepian Functions
To address these limitations, we propose an encoder based on Spherical Slepian functions. These functions are band-limited yet mathematically optimized to concentrate their energy within a specific Region of Interest (ROI). This allows for high-resolution modeling where data is dense without wasting computational resources on empty regions like the open ocean.
The Hybrid Encoder
For tasks requiring both local detail and global context, we introduce a Hybrid Slepian-SH encoder. This architecture combines a low-resolution global SH backbone with high-resolution Slepian "magnifiers" focused on the ROI.
This approach preserves critical geometric properties, such as "pole-safety" and spherical surface distances, which are often lost when projecting the Earth onto a flat plane.
Key Insights
- Information Budgeting: We utilize the Shannon number to determine the optimal number of Slepian functions needed for a region. For example, representing Sri Lanka at high resolution requires only 9 Slepian modes, whereas a global SH approach would require over 66,000 modes for equivalent detail.
- Intrinsic Sparsity: Slepian functions have near-zero energy outside the ROI, enabling "multi-cap" configurations where multiple regions are modeled simultaneously without interference.
- Numerical Stability: By localizing the basis, we avoid the floating-point errors that plague high-frequency global harmonics, effectively breaking previous resolution barriers.
Experimental Results
We evaluated the Slepian encoder across diverse tasks, including regression (California Housing), classification (Japan Prefectures), and interpolation (Arctic Mean Sea Surface).
- Predictive Accuracy: In the California Housing task, the Slepian encoder improved $R^2$ performance by 19% over global baselines using only 3 well-concentrated modes.
- Computational Efficiency: The method achieved a 3x speedup in training and inference compared to SH at matched performance levels.
- High-Fidelity Reconstruction: In Arctic sea-surface modeling, Slepians successfully captured sharp localized gradients that global models typically smooth over.
- Temporal Generalization: A 1D version of the method (Discrete Prolate Spheroidal Sequences) outperformed standard Fourier transforms by 9% in climate modeling tasks.
Conclusion and Future Work
While the current implementation requires manual ROI selection, it demonstrates a significant leap in geographic representational efficiency. Future research will focus on adaptive-resolution encoders that automatically identify and allocate capacity to high-information regions, potentially serving as regional heads for large-scale pre-trained models.
Summary updated