Explicit Formulae to Interchangeably use Hyperplanes and Hyperballs using Inversive Geometry
Erik Thordsen, Erich Schubert
TL;DR
The paper tackles the limitation that many algorithms assume spherical geometry or hyperplane boundaries. It develops an inversive-geometry framework that embeds general Euclidean data onto a hypersphere via explicit maps $H_A(X,v,s)$, $S_A(X,v,s)$, and $S(X,v,s)$, and provides an inverse $S^{-1}$ to recover original coordinates. Central contributions include exact Cap-Ball and Cap-Ellipsoid dualities with closed-form center and radius formulas (e.g., $c = S^{-1}\left(\frac{p - \alpha v}{\left\Vert p - \alpha v \right\Vert}, v, s\right)$, $r = s\sqrt{\frac{2\alpha}{b+p_{d+1}}}$, $\alpha = \frac{1-b^2}{2(b+p_{d+1})}$), plus extensions to ellipsoids via Cap-Ellipsoid-Duality and practical guidance for parameter selection using ABID. The framework enables applying sphere-based methods to non-spherical data and vice versa, with kernelizable distance/dot-product translations and useful overhead reductions, demonstrated across machine-learning tasks and vector similarity search. Overall, the approach broadens the applicability of spherical-data techniques and provides concrete, reusable formulas for embedding, dualities, and distance computations in high dimensions.
Abstract
Many algorithms require discriminative boundaries, such as separating hyperplanes or hyperballs, or are specifically designed to work on spherical data. By applying inversive geometry, we show that the two discriminative boundaries can be used interchangeably, and that general Euclidean data can be transformed into spherical data, whenever a change in point distances is acceptable. We provide explicit formulae to embed general Euclidean data into spherical data and to unembed it back. We further show a duality between hyperspherical caps, i.e., the volume created by a separating hyperplane on spherical data, and hyperballs and provide explicit formulae to map between the two. We further provide equations to translate inner products and Euclidean distances between the two spaces, to avoid explicit embedding and unembedding. We also provide a method to enforce projections of the general Euclidean space onto hemi-hyperspheres and propose an intrinsic dimensionality based method to obtain "all-purpose" parameters. To show the usefulness of the cap-ball-duality, we discuss example applications in machine learning and vector similarity search.
