Density-Robust Spherical Coordinates from Persistent Cohomology

Nick Nordwald, Inés García-Redondo, Anthea MonodarXiv 2026

## TL;DR
This paper introduces the first density-robust method for constructing sphere-valued ($S^2$) topological coordinates from data using persistent cohomology. By breaking the dataset into uniform subsamples, aligning them via a novel spherical Procrustes framework, and merging them into a global consensus map, the authors eliminate the distortion caused by uneven data sampling. Crucially, this approach also bypasses a severe quartic ($O(n^4)$) memory bottleneck, allowing spherical coordinate mapping to scale to datasets that were previously computationally impossible.

## What Problem Does This Paper Address?
Topological Data Analysis (TDA) provides powerful tools like persistent cohomology to discover the underlying shape of high-dimensional data. If your data lives on a loop or a sphere, TDA can generate non-linear coordinate systems (like angles) that respect that geometry. 

However, these methods have a glaring weakness: they are highly sensitive to *sampling density*. If data points are clustered tightly in one region and sparse in another, the coordinate mapping gets severely warped. While researchers previously solved this for circle-valued ($S^1$) coordinates, extending the fix to spherical ($S^2$) coordinates has been an open challenge. 

Why? Because circular coordinates rely on linear equations where density weights are easy to inject. Spherical coordinates, by contrast, require solving a complex, non-linear optimization problem on a sphere. Furthermore, the classical pipeline for spherical coordinates suffers from a brutal $O(n^4)$ memory bottleneck, causing computations to crash on desktop computers for datasets with fewer than 1,000 points.

## Methods
Instead of trying to modify the messy non-linear optimization math directly, the authors use a clever **subsampling-and-alignment** strategy:

1. **Rejection Subsampling:** They use a local density estimator to thin out dense regions and keep sparse ones, creating multiple smaller, approximately *uniformly* sampled subsets of the data.
2. **Local Coordinate Generation:** They run the classical spherical coordinate pipeline on each uniform subsample. Because these subsamples are uniform, they don't suffer from density distortion.
3. **Kernel Extension:** They extend these local coordinates to the rest of the dataset using a nearest-neighbor approach with Gaussian weights, projecting the results back onto the sphere ($S^2$).
4. **Spherical Procrustes Alignment:** Because each subsample's coordinate system is defined only up to an arbitrary 3D rotation, they must be aligned. The authors formulate this as a *Spherical Procrustes problem*. To make it computationally efficient, they solve a fast Euclidean relaxation (using Singular Value Decomposition) to get a global initialization, and then mathematically prove that this relaxation is a highly accurate approximation of the true spherical optimum.
5. **Code Optimization:** They also introduce two engineering speedups: replacing brute-force triangle searching with a sparse adjacency algorithm and using Numba just-in-time (JIT) compilation for the optimization loops.

## Datasets
The method was evaluated using synthetic datasets designed to test specific geometric and density challenges:

* **Uniform Sphere:** Point clouds sampled uniformly from a unit sphere with added Gaussian noise (used as a control group).
* **Non-Uniform Sphere (von Mises-Fisher distribution):** Point clouds where data is heavily concentrated at the north pole and sparse at the equator.
* **Severe Bias Configurations:** Datasets concentrated in an equatorial band, and bimodal datasets split aggressively between both poles.
* **Scalability Benchmarks:** Synthetic datasets scaling up to 10,000 points to test memory and runtime limits.

## Key Insights and Ideas
* **The Root of the Distortion:** The authors pinpoint exactly *why* uneven density ruins classical spherical coordinates. To lock a spherical map in place, the baseline algorithm enforces a "Möbius centering" constraint (forcing the center of mass to the origin). When data is heavily clustered, this constraint warps the sphere non-rigidly, stretching and compressing it unevenly.
* **Divide and Conquer for Memory:** By running persistent cohomology *only* on fixed-size subsamples rather than the full dataset, the $O(n^4)$ memory ceiling completely vanishes. The peak memory depends on the subsample size, not the size of the entire dataset.
* **Provable Relaxation:** The math highlight is proving that aligning spheres in Euclidean space ($R^3$) and then projecting them back to $S^2$ provides a controlled, bounded approximation of the true geodesic alignment on the sphere.

## Key Results
* **Density Robustness:** On heavily biased datasets (e.g., pole-clustered data), the baseline method failed completely to recover accurate angles. The new subsampling method maintained near-perfect correlation with ground-truth azimuth and elevation angles.
* **Massive Speedups:** Thanks to JIT compilation and sparse triangle enumeration, the time required to process a 500-point dataset dropped from **10.5 hours down to under 4 minutes**—a gain of over two orders of magnitude.
* **Breaking the Scalability Barrier:** The baseline method consistently ran out of memory (on a 32 GB RAM machine) at around 850 points. The new subsampling method easily scaled to **10,000 points** with near-constant runtime and a fixed memory footprint.

Baseline Pipeline (500 points): ~10.5 hours (Crashes at ~850 points) Optimized Subsampling (500 points): < 4 minutes Optimized Subsampling (10,000 pts): Scales easily with flat memory usage

## Limitations and Future Work
* **Density Estimator Vulnerability:** The local counting density estimator can still be tricked by extreme outliers or isolated noise points, which might cause sparse noise regions to be over-represented in the subsamples.
* **Complex Geometries:** The Möbius centering step can still introduce slight bias if the underlying data shape is more complex than a single, simple sphere.
* **Lack of Analytical Proof for Robustness:** While the circular coordinate density fix is mathematically tied to the convergence of the discrete Laplacian operator, this spherical subsampling fix is currently justified geometrically and empirically rather than topologically.
* **Next Steps:** The authors suggest extending this framework to *projective coordinates* ($S^2 \cong \mathbb{CP}^1$), paving the way for a unified density-robust framework across higher-dimensional topological spaces.

Summary updated

BibTeX
@misc{nordwald2026density,
  author = {Nick Nordwald and Inés García-Redondo and Anthea Monod},
  title = {{Density-Robust Spherical Coordinates from Persistent Cohomology}},
  year = {2026},
  eprint = {2607.24650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.24650},
}
Figure