Alpha shapes and optimal transport on the sphere

We describe the main theoretical object from "Alpha shapes and optimal transport on the sphere." In that paper derive a spherical variant of the object defined in "Alpha shapes in kernel density estimation." We see that doing this requires considering general convex transforms in the sense of optimal transport theory.

Kernel density estimation on the sphere

We set up a type of "kernel density estimator" on the sphere.

For instance, here is a plot of \(\mathcal{X}(a)\) on the globe for a list of the 10000 largest world cities, scale parameter \(t=500\), all \(c_i=.0001\), and a particular density cutoff value \(a=-7.77\):

some text

Optimal transport map and the dual shape

Now, the terminology for the new concepts defined in the paper, following that of Villani's well known book. In this paper, we show that \(\psi\) is a \(c\)-convex function on the sphere, meaning that there exists a dual function \(\psi^c:\mathcal{Y}\rightarrow \mathbb{R} \cup \{-\infty\}\) satisfying \begin{equation} \label{eq:psic} \psi(x)=\sup_{y\in \mathcal{Y}} (\psi^c(y)-c(x,y)) \end{equation} given by \begin{equation} \label{eq:psicdef} \psi^c(y)=\inf_{x\in \mathcal{X}} (\psi(x)+c(x,y)) \end{equation} for all \(x\in \mathcal{X}\). Note that we automatically have \(\psi^c\leq \psi\) by taking \(y=x\) in \eqref{eq:psicdef}.

Here is an illustration of \(c\)-convexity in the one-dimensional case.

some text

The top curve is a choice of \(\psi:S^1\rightarrow \mathbb{R} \cup \{-\infty\}\) based on 10 points. The meaning of \(c\)-convexity is that we can trace the graph of \(\psi\) from below by functions whose graph is of the form \(b-c_t(\_,y)\), which are the downwards facing parabola-like graphs in angular coordinates. The particular graph which contacts \(\psi\) at the point \(x\) is given by \(b=\psi^c(y)\), where \(y\) is the unique maximizer of the supremum in \eqref{eq:psic}. The graph of \(\psi^c\) is the curve traversed by the peaks as \(x\) moves around the circle.

As a result, we have three new objects:

It is computationally difficult to evaluate \(\psi^c(y)\) at any given point \(y\in \mathcal{Y}\), since it involves taking the infimum in \eqref{eq:psicdef}. However, given \(x \in \mathcal{X}\), there is a closed formula for both \(T(x)\) and \(\psi^c(T(x))\), determined by calculating the curve \(b-c(\_,y)\) which agrees with \(\psi\) to first order at \(x\), as in the figure. Therefore, while we can't evaluate \(\psi^c(y)\) directly for a given \(y\), we can sample points from \(\mathcal{Y}(a)\) as follows:

It is not obvious, but this sampling scheme is stable with respect to isometric embeddings of \(\mathcal{D}\), such as adding extra coordinates of all zeros. Here is the result of doing this for the above point cloud of world cities:

some text

A direct consequence of \eqref{eq:psic} is that we may write \(\mathcal{X}(a)\) as the union of discs centered at the points of \(\mathcal{Y}(a)\): \begin{equation} \label{eq:union} \mathcal{X}(a)=\bigcup_{y\in \mathcal{Y}(a)} \{x:c(x,y)\leq \psi^c(y)-a\} \end{equation} Plotting a random subsample of these discs, overlayed on \(\mathcal{X}(a)\) looks like this:

some text

Statement and proof of the theorem

In the paper, we proved

Theorem We have
  1. \(\psi\) is \(c\)-convex, and the transport map \(T:\mathcal{X}\rightarrow \mathcal{Y}\) has an explicit formula.
  2. The dual shape \(\mathcal{Y}(a)\) is contained in the intersection of the linear span of \(\mathcal{D}\) with the sphere. The above contructions transform covariantly with respect to linear isometric embeddings.
  3. The inclusion map \(\iota:\mathcal{Y}(a)\rightarrow \mathcal{X}(a)\) induces a homotopy inverse. It inverse can be represented by the restriction of \(T\) to \(\mathcal{X}(a)\).

The meaning of the second part is that the shape is that, unlike \(\mathcal{X}(a)\), \(\mathcal{Y}(a)\) is isometrically "stable" with respect to adding new coordinates. This resolves a major issue with modeling \(\mathcal{X}(a)\) in higher dimension, which is that the \(\epsilon\)-covering of \(\mathcal{X}(a)\) grows exponentially with \(d\), even in the case of a single data point. This property is actually specific to this cost function, and would not be satisfied by other natural choices, such as taking a Gaussian along the tangent direction. On the other hand, the third item says that we lose no topological information by considering \(\mathcal{Y}(a)\) instead of \(\mathcal{X}(a)\).

The idea of the proof has a requires a similar trick as in the Gaussian case: the most obvious method would be to use \(T\) to define a deformation retraction from \(\mathcal{X}(a)\) to \(\mathcal{Y}(a)\). The problem is that the restriction of \(T\) to \(\mathcal{X}(a)\) does not surject onto \(\mathcal{Y}(a)\), and also does not act on the identity on \(\mathcal{Y}(a)\), and so does not obviously determine a retraction. Moreover, since \(\psi^c\) does not have a closed formula, it is hard to imagine a way of modifying it.

Instead, remember that we have a closed formula for \(\psi^c(T(x))\), given by definition by \(\psi^c(T(x))=\psi(x)+c(x,T(x))\). We may therefore consider a third space given by \(T^{-1}(\mathcal{Y}(a))\), which contains both \(\mathcal{X}(a)\) and \(\mathcal{Y}(a)\). Here is what this set looks like:

some text

We prove the third part of the theorem by showing that both \(\mathcal{X}(a)\) and \(\mathcal{Y}(a)\) are homotopy equivalent to \(T^{-1}(\mathcal{Y}(a))\), a key step being to determine a deformation retraction from \(T^{-1}(\mathcal{Y}(a))\) to \(\mathcal{X}(a)\). It turns out that this can be done using a straight-line homotopy, which moves along the arc connecting \(x\) to \(T(x)\) until coming in contact with the disc centered at \(T(x)\), as in the above figure. Here is an illustration of this retraction:

In this figure: