<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Fermat Distances: Metric Approximation, Spectral Convergence, and Clustering Algorithms</title></titleStmt>
			<publicationStmt>
				<publisher>Journal of Machine Learning Research</publisher>
				<date>06/30/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10527983</idno>
					<idno type="doi"></idno>
					<title level='j'>Journal of machine learning research</title>
<idno>1532-4435</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Nicolas Garcia Trillos</author><author>Anna Little</author><author>Daniel McKenzie</author><author>James M Murphy</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We analyze the convergence properties of Fermat distances, a family of density-drivenmetrics defined on Riemannian manifolds with an associated probability measure. Fermatdistances may be defined either on discrete samples from the underlying measure, in whichcase they are random, or in the continuum setting, where they are induced by geodesicsunder a density-distorted Riemannian metric. We prove that discrete, sample-based Fermatdistances converge to their continuum analogues in small neighborhoods with a precise ratethat depends on the intrinsic dimensionality of the data and the parameter governing theextent of density weighting in Fermat distances. This is done by leveraging novel geometricand statistical arguments in percolation theory that allow for non-uniform densities andcurved domains. Our results are then used to prove that discrete graph Laplacians based ondiscrete, sample-driven Fermat distances converge to corresponding continuum operators.In particular, we show the discrete eigenvalues and eigenvectors converge to their continuumanalogues at a dimension-dependent rate, which allows us to interpret the efficacy of discretespectral clustering using Fermat distances in terms of the resulting continuum limit. Theperspective afforded by our discrete-to-continuum Fermat distance analysis leads to newclustering algorithms for data and related insights into efficient computations associatedto density-driven spectral clustering. Our theoretical analysis is supported with numericalsimulations and experiments on synthetic and real image data.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Data-driven metrics and related dimensionality reduction methods are a widely used tool in statistics, data science, and machine learning for analyzing point cloud data X &#8834; R D . Seminal methods such as principal <ref type="bibr">(Hotelling, 1933)</ref> and independent <ref type="bibr">(Comon, 1994)</ref> component analysis, Laplacian eigenmaps <ref type="bibr">(Belkin and Niyogi, 2003)</ref>, diffusion maps <ref type="bibr">(Coifman et al., 2005;</ref><ref type="bibr">Coifman and Lafon, 2006)</ref>, Isomap <ref type="bibr">(Tenenbaum et al., 2000)</ref>, locally linear embedding <ref type="bibr">(Roweis and Saul, 2000)</ref>, and tSNE (van der <ref type="bibr">Maaten and Hinton, 2008)</ref> often capture important structural properties in data (e.g., cluster structure, concentration near low-dimensional sets) in a manner that is statistically efficient and robust to noise and outliers. In many cases, these methods first embed high-dimensional, noisy data into a lowdimensional Euclidean space so that Euclidean distances on the embedded points implicitly define a new metric. Working in these embedded spaces (or equivalently, analyzing with the induced metrics) has led to methods for unsupervised and semisupervised machine learning <ref type="bibr">(Ng et al., 2002)</ref>.</p><p>An alternative to this broad class of approaches is to consider weighted shortest path metrics. The idea is to construct a weighted graph associated to X , and then use shortest path distances in this graph to learn important structures in X . A particular class of density-weighted path metrics known as Fermat distances use powers of the Euclidean distance between points as weights <ref type="bibr">(Bijral et al., 2011;</ref><ref type="bibr">Hwang et al., 2016;</ref><ref type="bibr">Chu et al., 2020;</ref><ref type="bibr">Little et al., 2022;</ref><ref type="bibr">Groisman et al., 2022;</ref><ref type="bibr">Fern&#225;ndez et al., 2023)</ref>; in the discrete setting, we denote these distances as &#8467; p , where p is a parameter that determines the impact of data density. Fermat distances and related density-driven path metrics have been successfully applied to a range of problems in unsupervised and semisupervised machine learning <ref type="bibr">(Vincent and Bengio, 2003;</ref><ref type="bibr">Bousquet et al., 2004;</ref><ref type="bibr">Sajama and Orlitsky, 2005;</ref><ref type="bibr">Chang and Yeung, 2008;</ref><ref type="bibr">Bijral et al., 2011;</ref><ref type="bibr">Moscovich et al., 2017;</ref><ref type="bibr">Alamgir and Von Luxburg, 2012;</ref><ref type="bibr">Mckenzie and Damelin, 2019;</ref><ref type="bibr">Little et al., 2020)</ref>, as well as to topological data analysis for robust computation of persistent homology <ref type="bibr">(Fern&#225;ndez et al., 2023)</ref> and in high-dimensional signal processing <ref type="bibr">(Zhang and Murphy, 2021;</ref><ref type="bibr">Manousidaki et al., 2024)</ref>. When data points are sampled from a compact Riemannian manifold M, the discrete &#8467; p converges to a continuum metric L p , which can be interpreted as a density-weighted geodesic distance on M.</p><p>Existing works in the literature establishing discrete-to-continuum convergence of general data-driven distances include <ref type="bibr">Howard and Newman (2001)</ref>; <ref type="bibr">D&#237;az et al. (2016)</ref>; <ref type="bibr">Davis and Sethuraman (2019)</ref>; <ref type="bibr">Hwang et al. (2016)</ref>; <ref type="bibr">Bungert et al. (2022)</ref>, among many others. The papers <ref type="bibr">D&#237;az et al. (2016)</ref>; <ref type="bibr">Davis and Sethuraman (2019)</ref>; <ref type="bibr">Bungert et al. (2022)</ref>, for example, discuss convergence of distances defined on random geometric graphs (RGG), either in the i.i.d. setting or for Poisson point processes. In the RGG setting, admissible paths between two points must consist of consecutive short range (as specified by a connectivity parameter) hops between data, in contrast to Fermat distances, where arbitrarily large hops between points are admissible. The results from <ref type="bibr">Davis and Sethuraman (2019)</ref> are asymptotic, while the ones in <ref type="bibr">D&#237;az et al. (2016)</ref>; <ref type="bibr">Bungert et al. (2022)</ref> provide high probability convergence rates in terms of the RGG's connectivity parameter. The results in <ref type="bibr">Bungert et al. (2022)</ref>, for example, discuss the convergence of the ratio between certain expectations of distances at different scales. When combined with concentration inequalities, this allows the authors to prove rates of convergence, in sparse settings, for a semisuper-vised learning procedure known as Lipschitz learning. The works <ref type="bibr">Kesten (1993)</ref>; <ref type="bibr">Howard and Newman (2001)</ref>; <ref type="bibr">Hwang et al. (2016)</ref>; <ref type="bibr">Groisman et al. (2022)</ref>; <ref type="bibr">Little et al. (2022)</ref>; <ref type="bibr">Fern&#225;ndez et al. (2023)</ref> study Fermat distances on point clouds and are the most relevant references for our metric approximation results. Note <ref type="bibr">Hwang et al. (2016)</ref>; <ref type="bibr">Groisman et al. (2022)</ref>; <ref type="bibr">Fern&#225;ndez et al. (2023)</ref> only provide asymptotic convergence results, while <ref type="bibr">Howard and Newman (2001)</ref>; <ref type="bibr">Little et al. (2022)</ref> assume a uniform density. We provide the first local quantitative convergence results for Fermat distance in the manifold setting with a general density.</p><p>While there are several mathematical objects that can be constructed over these finite data-driven metric spaces, in this paper we will discuss as particularly important examples the Laplacian operators that these metrics induce on a collection of data points sampled from a distribution over a smooth and compact manifold M. Indeed, the metric &#8467; p can be used to define graph kernel functions which then lead to embeddings of X using, for example, the low-frequency eigenvectors of the graph Laplacian. These eigenvectors contain valuable information that can be used in machine learning tasks such as trend filtering, clustering, or dimensionality reduction. The difficulty in analyzing the induced Laplacians and their eigenvectors relies, particularly, on the fact that Fermat distances over data clouds are themselves random (in contrast to the more standard Euclidean metric). This difficulty has impeded full statistical and analytical understanding of the methods that utilize Fermatbased Laplacians.</p><p>Discrete-to-continuum convergence of Laplacian spectra on a manifold M is a welldeveloped area <ref type="bibr">(Belkin and Niyogi, 2007;</ref><ref type="bibr">Burago et al., 2015;</ref><ref type="bibr">Garc&#237;a Trillos et al., 2019)</ref>, at least for random geometric graphs built with the Euclidean distance. The main problem is, given a finite sample X &#8834; M, understanding how the sample-based graph Laplacian induced from X converges as |X | &#8594; &#8734; to an operator defined with respect to the intrinsic geometry of M (for example, the Laplace-Beltrami operator on M). This allows one to characterize with high probability the behavior of the spectrum of the graph Laplacian, thereby ensuring good performance in downstream tasks such as clustering. Existing results typically focus on the cases in which the graph Laplacian is constructed using Euclidean distances or the intrinsic geodesic distance on M. In the case of Fermat distances, there is a natural continuum analogue of &#8467; p on M, which we shall denote L p . The metric L p is in fact a geodesic distance function on M with respect to a certain density-dependent Riemannian metric parameterized by p. Unlike in the case of Euclidean distances, the underlying manifold geodesic L p must itself be estimated from samples using &#8467; p , requiring new tools of analysis.</p><p>The computational requirements for computing Fermat distances has also been studied in the literature. Given n data points, Fermat distances can with high probability be computed in a k-nearest-neighbors (kNN) graph <ref type="bibr">(Little et al., 2022;</ref><ref type="bibr">Chu et al., 2020;</ref><ref type="bibr">Groisman et al., 2022)</ref> as long as k &#8764; log(n). This implies all pairwise distances can be computed with the Floyd-Warshall algorithm with complexity O(n 2 log(n)). Furthermore, the Fermat kNN's of all points can be computed with complexity O((k 2 + CD)n log(n)), where C is a constant that depends exponentially on the intrinsic dimension of the data <ref type="bibr">(Mckenzie and Damelin, 2019)</ref>. This allows Fermat distance nearest neighbors (and consequently, graph Laplacians based on Fermat distance nearest neighbors) to be calculated relatively efficiently with quasi-linear complexity. Another quasi-linear approach is to compute Fermat distances on a set of landmarks and then extend quantities of interest using Nystrom-based methods <ref type="bibr">(Williams and Seeger, 2001;</ref><ref type="bibr">Ghojogh et al., 2020;</ref><ref type="bibr">Platt, 2005;</ref><ref type="bibr">Yu et al., 2012;</ref><ref type="bibr">Civril et al., 2006;</ref><ref type="bibr">Shamai et al., 2020)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Summary of Contributions</head><p>This paper makes several mathematical, statistical, and algorithmic contributions.</p><p>First, we establish precise local convergence rates of discrete Fermat distances to continuum Fermat distances defined with respect to a non-uniform density &#961; on M. These results are of independent interest for their connections to percolation theory and to a variety of applications in which machine learning tasks rely on the availability of a metric structure over a data point cloud.</p><p>Second, we develop spectral convergence results for graph Laplacians constructed with &#8467; p to operators on M with geodesic distance given by L p . These results leverage our metric convergence results and also new geometric results pertaining to the properties of M when endowed with L p . Importantly, our results quantify the impact of the underlying geometry of M, and we calculate explicit constants whenever possible. The large sample spectral analysis of Fermat-based graph Laplacians is thus an important application of our metric approximation results.</p><p>Third, we suggest new spectral clustering algorithms using &#8467; p . These algorithms enjoy robustness with respect to cluster elongation, a regime where standard spectral clustering fails. We highlight the connection of Fermat Laplacians with a broad family of Laplacian normalizations. Our results provide geometric insight into the choice of normalization parameters and also suggest statistically and computationally efficient methods of practical implementation. We evaluate our proposed methods on image data, showing the impact of the key parameters in Fermat distance spectral clustering; see Figure <ref type="figure">1</ref> for an illustration.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1.1">Outline of Paper</head><p>The remainder of the paper is organized as follows. Section 2 provides background on Fermat distances and Laplace operators. Section 3 summarizes our main results. Section 4 discusses the Fermat Riemannian metric, including computation of geodesics and discreteto-continuum metric approximation results. Section 5 utilizes the metric approximation to obtain spectral convergence results of Fermat graph Laplacians. Section 6 discusses some examples and numerical experiments supporting the paper. Section 7 concludes the article. The Appendix contains proofs of technical results and additional experiments. Code to reproduce numerical results is available at <ref type="url">https://github.com/JamesMMurphy11/</ref> FermatDistances.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Background</head><p>Throughout the paper, we will use the notation in Table <ref type="table">1</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Fermat Distances</head><p>Discrete Fermat distances can be understood as classical shortest paths on graphs but with edge lengths penalized according to a parameter p &#8712; [1, &#8734;). Definition 2.1 For p &#8712; [1, &#8734;), x, y &#8712; R D , and some finite set X &#8834; R D , the (discrete) p-weighted Fermat distance from x to y is:</p><p>where &#960; is a path of points in X &#8746; {x, y} with x 1 = x and x T = y and &amp; &#8226; &amp; is the Euclidean norm.</p><p>Note when there is no ambiguity about X , we will drop it from the notation and simply write &#8467; p (x, y). The case p &#8712; (0, 1) was studied in <ref type="bibr">Alamgir and Von Luxburg (2012)</ref> and shown to have counter-intuitive properties; we do not consider this parameter regime. While &#8467; p (x, y) depends on the point cloud X , a population formulation is possible, as follows.</p><p>Notation Definition ! &#8226; ! Euclidean 2-norm | &#8226; | Norm with respect to the Riemannian metric g M Data manifold m Intrinsic dimension of data manifold X Arbitrary point cloud in R D R Reach of M R Injectivity radius of M K Bounds on sectional curvature of M &#969; m Volume of the m-dimensional unit ball &#957; Probability measure supported on M &#961; Density function associated to data measure &#957; X n Set of n i.i.d. samples from distribution &#957; H n&#961; Poisson point process on M with intensity n&#961; N n Poisson random variable with mean n p Density weight parameter &#8467; p Discrete Fermat distance with parameter p; see (1) lp Normalized discrete Fermat distance with parameter p; see (4) L p Continuum Fermat distance with parameter p; see (2) g Arbitrary Riemannian metric &#7713; Euclidean metric g p Fermat Riemannian metric; see (3) &#961; p = &#961; p Density with respect to Fermat Riemannian metric d(x, y) Geodesic distance on (M, &#7713;) d g (x, y) Geodesic distance on (M, g) &#945; = 2(p -1)/m Reweighting constant &#181; Percolation time constant, depending on p, m &#8710; &#915; l,h Discrete random-walk Laplacian with metric lp p and bandwidth h; see (6) &#8710; 2,p Continuum random-walk Laplacian with metric L p p ; see Proposition 2.5 a Diffusion maps parameter &#951; Kernel function, generally taken as &#951; = 1 [0,1]</p><p>Table 1: Notation used throughout the paper.</p><p>Definition 2.2 Let (M, g) be a compact, m-dimensional Riemannian manifold and &#961; : M &#8594; R &gt;0 a continuous density function on M. For p &#8712; [1, &#8734;) and x, y &#8712; M, the (continuum) p-weighted Fermat distance from x to y is:</p><p>Note when M is embedded in R D and g is the Euclidean metric, one simply has</p><p>Then associated to L p p is a Riemannian metric, g p , defined as:</p><p>where &#945; := 2(p -1)/m <ref type="bibr">(Hwang et al., 2016)</ref>. Indeed, one easily observes</p><p>i.e., the distance function associated to g p is L p p . This interpretation of L p p as a Riemannian metric on M leads us to consider &#8467; p p rather than &#8467; p in the discrete setting. Suppose X is sampled from a distribution &#957; with density &#961; with respect to the volume form of M. A natural question is to characterize the convergence of &#8467; p p to L p p as |X | tends to infinity. Two concrete probabilistic models for X that are popular in the literature are:</p><p>&#8226; The i.i.d. setting, where we consider X = X n := {x 1 , . . . , x n } to be a collection of i.i.d. draws from &#957;.</p><p>&#8226; The Poisson point process (PPP) setting, where we consider X = H n&#961; to be the realization of a Poisson point process on M with intensity n&#961;.</p><p>In either case, one is naturally interested in the behavior of &#8467; p p as n tends to infinity. In this paper we obtain convergence results for both PPP models as well as for the i.i.d. setting, the latter being the model that is most often assumed in statistical learning theory.</p><p>Remark 2.3 The Poisson point process H n&#961; and the i.i.d. model X n are closely connected to each other. Indeed, from an infinite sequence x 1 , x 2 , . . . of i.i.d. samples from &#957; and from a Poisson random variable N n with mean n, independent from the x i , one can generate H n&#961; by setting H n&#961; = {x 1 , . . . , x Nn }. In particular, conditioned on N n , H n&#961; consists of N n i.i.d. points drawn from &#957;.</p><p>Informally, one of our main results (Theorem 4.3) states that, with high probability, the discrete Fermat distance (1) approximates locally the geodesic distance (2). We first derive a metric approximation result for PPPs on manifolds using results from percolation theory. We then extend the result to the i.i.d. case through a method typically known as de-Poissonization. We then explore some of the geometric implications of this convergence, including quantitative rates for the spectral convergence of normalized graph Laplacian operators induced by discrete Fermat distances toward weighted Laplace-Beltrami operators relative to the family of Riemannian metrics g p , a result of interest for its direct application to manifold learning. From the structure of the resulting continuum Laplacian operators, we extract theoretical insights on the role that data density plays in clustering and how, by picking p appropriately, we can accentuate or suppress the effect of density on the resulting data partitioning.</p><p>This paper is not the first to address the discrete-to-continuum convergence of Fermat distances. Precise statement of such results requires an appropriate normalization, to account for the fact that &#8467; p &#8594; 0 + as n &#8594; &#8734;. It can be shown <ref type="bibr">(Howard and Newman, 2001)</ref> that the correct scaling constant for &#8467; p is n (p-1)/pm , so that the relevant convergence question is that of lp <ref type="bibr">Hwang et al. (2016)</ref> establish that for M compact and &#961; continuous and bounded away from 0, there exists a constant &#181; &gt; 0, depending only on p and m, such that for all b, ' &gt; 0, there exists &#952; 0 &gt; 0 such that for n large enough,</p><p>i.e., lp p &#8594; &#181;L p p in probability for L p p &#8805; b. The uniform lower bound b &gt; 0 was removed by <ref type="bibr">Fern&#225;ndez et al. (2023)</ref>, significantly improving the convergence results. However, this type of convergence in probability is inadequate for our purposes as we need precise characterization of ' and &#952; 0 , at least locally. <ref type="bibr">Little et al. (2022)</ref> provide more precise convergence results, albeit in a limited setting. They show that if &#961; is uniform and M is convex, compact, and has m-dimensional unit volume, then for n sufficiently large and for all points x, y sufficiently far from &#8706;M,</p><p>While this result is precise, it applies only to uniform densities, and is thus inadequate for developing spectral convergence results for a large class of densities &#961;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Discrete Laplace Operators</head><p>Let X = {x 1 , . . . , x n } be a finite set of points on M &#8834; R D . Let &#951; : [0, &#8734;) &#8594; [0, &#8734;) be any non-increasing function with support contained in [0, 1] and &#951;(1/2) &gt; 0. For ease of exposition in all that follows, we take &#951; = 1 &#969;m 1 [0,1] where the normalizing factor &#969; m denotes the volume of the unit ball in R m and is chosen so that * R m &#951;(&amp;x&amp;)dx = 1. Choosing a distance function d 0 (&#8226;, &#8226;) on X and a bandwidth parameter h, we define a weighted graph &#915; d 0 ,h = (X , W d 0 ,h ) by setting</p><p>There are several popular definitions of Laplacian operators on &#915; d 0 ,h ; in this paper we focus on the random-walk Laplacian, defined for any u : X &#8594; R as</p><p>where m d 0 ,h,i := j w d 0 ,h ij is the degree of x i ; when the choices of metric d 0 and scaling parameter h are clear, we will simply write m i . Up to a normalization constant, the random walk Laplacian can be expressed in matrix form as &#8710; &#915; d 0 ,h = I -D -1 W , where D is a diagonal matrix containing the degrees and W is the matrix of weights. As is <ref type="bibr">well-known, (e.g., Garc&#237;a Trillos et al. (2019)</ref>), the eigenvalues of &#8710; &#915; d 0 ,h may equivalently be expressed in terms of the corresponding Dirichlet form,</p><p>Specifically,</p><p>where the minimization is over k-dimensional subspaces L k and &amp;u&amp; 2 m := 1 n i m i u 2 i . When d 0 (x, y) is the Euclidean distance &amp;x -y&amp; 2 , the eigenvectors of &#8710; &#915; d 0 ,h with smallest eigenvalues (which we will hereafter refer to as "low frequency" in analogy with Fourier analysis) have important applications in unsupervised machine learning. Indeed for connected graphs, the second lowest frequency eigenvector (and first eigenvector with eigenvalue greater than 0) is closely connected to normalized graph cuts <ref type="bibr">(Shi and Malik, 2000)</ref>. The problem of finding a partition (Z * , Z c * ) of X which minimizes</p><p>is NP-hard. One can relax the hard cluster assignments (which correspond to integer constraints in optimization of the Rayleigh quotient) in ( <ref type="formula">8</ref>), which leads to making partition assignments by thresholding the second lowest frequency eigenvector of &#8710; &#915; . This approach can be extended to more than 2 clusters by running K-means or Gaussian mixture modeling on a small number of the lowest frequency eigenvectors of &#8710; &#915; . These procedures-in which low-frequency Laplacian eigenfunctions are used as features in baseline clustering algorithms-are called spectral clustering and have been well-studied and extended in recent decades <ref type="bibr">(Ng et al., 2002;</ref><ref type="bibr">Von Luxburg, 2007;</ref><ref type="bibr">Schiebinger et al., 2015;</ref><ref type="bibr">Garc&#237;a Trillos et al., 2021)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.1">Alternative Graph Laplacian Normalizations</head><p>In the previous section we introduced the random walk Laplacian matrix, but Laplacian matrices can in fact be categorized as a three parameter family of various density normalizations. In particular, given j, q, r &#8712; R and an initial weight matrix W &#8712; R n&#215;n (for some n &#8712; N) together with its associated degree matrix D, let W q be the weight matrix defined as (W q ) ij := W ij /(D q i D q j ) and D q be its corresponding degree matrix. We then define the matrix:</p><p>Some popular choices of (j, r, q) are q = 1, which yields the standard unnormalized graph Laplacian; (j, q, r) = (2, 3, 1), which yields the symmetric normalized Laplacian; and (j, q, r) = (2, 2, 0), which yields the random walk Laplacian. We note moreover that the family of operators inducing diffusion maps <ref type="bibr">(Coifman et al., 2005;</ref><ref type="bibr">Coifman and Lafon, 2006)</ref> is obtained by taking (j, q, r) = (2(1 -a), 2(1 -a), 0) for a &#8712; [0, 1].</p><p>In <ref type="bibr">Hoffmann et al. (2022)</ref>, the base weights W ij over a data set X sampled from a distribution with density &#961; over M are constructed as in (5) using the Euclidean distance as d 0 (&#8226;, &#8226;). The resulting graph Laplacians are closely related to the family of differential operators discussed in Remark 2.8.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Continuum Laplace Operators</head><p>There is also a corresponding continuum Laplacian that is not based on point clouds, but instead is defined at the population level. We recall the definition of the s-weighted Laplacian from <ref type="bibr">Hein et al. (2007)</ref> (note we have changed the sign in Definition 2.4 for consistency with our notation).</p><p>Definition 2.4 Let (M, g) be a Riemannian manifold with probability measure &#957; and associated density &#961; defined with respect to dVol. Let &#8710; be the Laplace-Beltrami operator on (M, g). For s &#8712; R, we define the s th weighted Laplacian &#8710; s as</p><p>Note that s = 0 gives the negative Laplace-Beltrami operator under the geometry determined by g; s = 2 is the continuous version of the normalized random walk Laplacian.</p><p>The diffusion maps framework <ref type="bibr">(Coifman and Lafon, 2006)</ref> considers the family of operators s = 2(1 -a) for a &#8712; [0, 1]. If, in the construction described in Definition 2.4, one uses the Fermat metric g p as defined in (3) instead of g we arrive at a new operator defined on M, which we denote as &#8710; s,p . Explicitly,</p><p>where div p , &#8711; p are the divergence and gradient in the geometry induced by g p , and &#961; p is the density of the measure &#957; with respect to the volume form dVol p . For the latter, recall that any Riemannian metric g has an associated volume form, dVol, defined with respect to any local coordinates x 1 , . . . , x m as dVol = % det(g)dx 1 &#8226; &#8226; &#8226; dx m , or simply dVol = % det(g)dx. From this, one sees that</p><p>where the final equality comes from the definition of &#945;. Recall that &#961; is the density of the measure &#957; with respect to dVol. That is, for all U &#8834; M,</p><p>Thus &#961; p , the density of &#957; with respect to dVol p , is &#961; p = &#961; p .</p><p>To get a better intuition on how the parameters p, s affect the qualitative properties of the operators &#8710; s,p , specifically, properties of their spectra and implications for data clustering, it will be convenient to relate geometric quantities in (M, g p ) with those in (M, g); we will annotate the objects pertaining to the (M, g p )-geometry with the subscript p. First, gradients of smooth functions f : M &#8594; R under the different geometries are related according to &#8711; p f (x) = &#961; &#945; (x)&#8711;f (x), x &#8712; M. This standard identity is deduced by writing the first variation of f in a given direction as an inner product between the gradient of f (in each geometry) and the direction of variation. From the relations between gradients and volume forms for the two geometries g and g p one can also deduce a relation between the divergences of a smooth vector field under g and g p . For this, we recall the integration by parts formulae:</p><p>which hold for all smooth scalar functions f and all smooth vector fields V . From the above, one can readily obtain the following relation: div p (V ) = &#961; p-1 div(&#961; 1-p V ). We can also relate the second order geometries of (M, g) and (M, g p ). In particular, the sectional curvatures of (M, g p ) can be controlled in terms of those of (M, g) as stated precisely in Theorem B.2 in Appendix B.</p><p>With the above identities we can now rewrite &#8710; s,p in terms of differential operators in the geometry of (M, g).</p><p>Proposition 2.5 (Fermat s-Laplacian in Euclidean Coordinates) When M &#8838; R D is an embedded manifold and g = g = &#12296;&#8226;, &#8226;&#12297; is the Euclidean metric, we have:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>8</head><p>, where &#8710; is the Laplace-Beltrami operator on (M, g).</p><p>Proof To see (a), recall that the s-weighted Laplacian is &#8710; s,p = -1 &#961; ps div p (&#961; ps &#8711; p ). The desired formula for &#8710; s,p follows by using the fact that &#8711; p = &#961; &#945; &#8711;, div p (&#8226;) = &#961; p-1 div(&#961; 1-p &#8226;) (discussed in Section 4) and the product rule. Plugging in s = 2 yields (b). The operator &#8710; s,p is self-adjoint in an appropriately defined inner product space. For any s &#8805; 0 consider the function space:</p><p>Define an inner product on this space by &#12296;f, h&#12297; p,s :=</p><p>Also, consider the Dirichlet form D s,p defined as</p><p>Using (10) and the first line in (11) we can immediately deduce the following.</p><p>Proposition 2.6 In its domain of definition, &#8710; s,p is self-adjoint with respect to the inner product &#12296;&#8226;, &#8226;&#12297; p,s . Moreover, D s,p (f, h) = &#12296;&#8710; s,p f, h&#12297; p,s = &#12296;f, &#8710; s,p h&#12297; p,s , for all smooth f, h.</p><p>Remark 2.7 To intuitively interpret the role of &#961; on the operator &#8710; s,p , it is helpful to see &#8710; s,p , at least when we consider M = &#8486; to be a domain in Euclidean space for simplicity, as the generator of the following diffusion:</p><p>As p &gt; 1, the scalar coefficients in front of the drift and diffusion terms in the above SDE are large at points of high density. This means that a particle moving according to this SDE explores connected regions with high density very rapidly while being drifted away from regions where &#961; is small. Thus, low density barriers will be particularly difficult to cross, effectively inducing a separation of regions (clusters) of high density.</p><p>The problem of understanding for what choice of parameter scaling h does a discrete operator &#8710; &#915; built over samples from &#957; converge to &#8710; s as n &#8594; &#8734; is by now a classical problem <ref type="bibr">(Belkin and Niyogi, 2003;</ref><ref type="bibr">Garc&#237;a Trillos et al., 2019;</ref><ref type="bibr">Wormell and Reich, 2021;</ref><ref type="bibr">Calder and Garc&#237;a Trillos, 2022)</ref> when g is the metric induced by a Euclidean embedding of M. One of our contributions in this paper is to analyze the convergence of the discrete graph Laplacian built from Fermat distances to its appropriate continuum analogue.</p><p>Remark 2.8 It was informally argued in <ref type="bibr">Hoffmann et al. (2022)</ref> that the graph Laplacian L j,q,r from Section 2.2.1, built with base weights as in (5) for i.i.d. points x 1 , . . . , x n sampled from &#961; dVol and d 0 the Euclidean distance, approximates spectrally the family of differential operators</p><p>,, .</p><p>On the other hand, based on the relations between different geometric quantities under the geometries g and g p discussed above, the operator &#8710; s,p from (9) can be written as</p><p>where &#945; = 2(p -1)/m. This says that, in principle, the graph Laplacians discussed in <ref type="bibr">Hoffmann et al. (2022)</ref> can be used to recover the spectrum of &#8710; s,p , provided one chooses j = (s -1)p + 1, q = (s -1)p + 1 + &#945;, and r = 0, in which case L j,q,0 = &#8710; s,p . We will use this observation in our numerics Section 6.2 when comparing Fermat-based graph Laplacians with their degree-reweighted counterparts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Set-up and Main Results</head><p>In this section, we introduce some more technical background and state our main results. Background on Riemannian geometry is given in Appendix A. We assume that M is normalized so that it has volume 1 with respect to its canonical measure dVol (i.e., the measure given by the volume form associated to g).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Notation and Assumptions</head><p>We shall make the following standing assumptions on the manifold M and density &#961;.</p><p>Assumption 3.1 We assume M &#8834; R D is an embedded, smooth, compact manifold of dimension m and that &#961; satisfies:</p><p>Fix x &#8712; M and let log x = exp -1 x be the inverse of the exponential map at x. Let R = inj(M) be the injectivity radius, i.e., the largest radius such that log x is a diffeomorphism on B x (R) for all x, where B x (R) is a geodesic ball (in terms of geodesic distance d) of radius R centered at x. Let K be the maximal sectional curvature of M, and let R = reach(M). For v, w &#8712; T x M, let J x (v) = % det(g) be the Jacobian in the normal coordinates induced by the exponential map.</p><p>For all v, w &#8712; B 0 (R), we have: </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Statements of Main Results</head><p>In this section we state our main results, the first of which quantifies the discrepancy between Fermat distances at the continuum level and Fermat distances built from i.i.d. point clouds.</p><p>Let X n consist of n i.i.d. samples from &#961;. Then for n large enough:</p><p>, where</p><p>Here C ' , c ' are constants depending on ', C p,m,&#946; is a constant depending on p, m, &#946;, and C M,&#961;,p is a constant depending on &#961;, p, and the geometry of M.</p><p>Proof See Appendix G.</p><p>Theorem 3.2 follows from Theorem 4.3 (metric approximation for PPPs) and a de-Poissonization argument. As an application of this local distance approximation result, we obtain rates for the spectral convergence of Fermat-based graph Laplacians toward their continuum analogues. The graph Laplacians are built over realizations of an i.i.d. point cloud, as we state precisely below. For legibility, we write &#915; l,h instead of &#915; lp p ,h and &#915; L,h instead of &#915; &#181;L p p ,h when p is clear from context. We also denote constants by C or c, with subscripts indicating the primitive quantities (p, m, L 1 . . . ) upon which they depend.</p><p>Theorem 3.3 Let &#915; l,h denote the graph constructed using the discrete Fermat distance lp</p><p>). This is explained by the fact that in Theorem 3.3 the dominating source of error comes from the approximation lp p (&#8226;, &#8226;) &#8776; &#181;L p p (&#8226;, &#8226;) which decays more slowly than the &#8734;-optimal transport distance between the sample measure associated to X and population measure &#957;-the dominating source of error in Garc&#237;a <ref type="bibr">Trillos et al. (2019)</ref>.</p><p>We use Theorem 3.3 and combine it with some auxiliary estimates discussed in Sections 5.2 and 5.3 to prove the convergence of eigenvectors of &#8710; &#915; l,h toward eigenfunctions of &#8710; 2,p . While said results can be derived for arbitrary eigenvectors, we will focus on the consistency of the Fiedler eigenvector (i.e., the one with second smallest eigenvalue) for simplicity and refer the reader to works like <ref type="bibr">Burago et al. (2015);</ref><ref type="bibr">Garc&#237;a Trillos et al. (2019)</ref> for extensions; see also Remark 5.12 below. We will further assume that &#8710; 2,p 's Fiedler eigenvalue is simple. In order to compare the discrete and continuum eigenvectors, we use a discretization map that associates a function defined over the data set to every function defined over the manifold M; this operator is introduced in ( <ref type="formula">22</ref>). We prove that the difference between the discretization of the continuum Fiedler eigenfunction and its projection onto the graph-Laplacian Fiedler eigenspace tends to zero as n &#8594; &#8734;; we also quantify the rate of convergence. Other notions of consistency for eigenvectors of discrete graph Laplacians toward manifold counterparts are possible and we refer the reader to Garc&#237;a Trillos et al. ( <ref type="formula">2019</ref>) for more details.</p><p>Theorem 3.5 Let the assumptions and notation from Theorem 3.3 hold, and furthermore assume that the Fiedler eigenvalue &#955; 2 = &#955; 2 (&#8710; 2,p ) of &#8710; 2,p is simple. Let f be a normalized eigenfunction with eigenvalue &#955; 2 (&#8710; 2,p ) (which by assumption is unique up to sign). Then</p><p>where &#955; 3 = &#955; 3 (&#8710; 2,p ), P is the discretization map defined in (22), and</p><p>Although Theorem 3.3 guarantees that for n large enough &#955; 2 (&#915; l,h ) is also a simple eigenvalue, in the statement of Theorem 3.5 we talk about "one of the Fiedler eigenvectors of the graph Laplacian" since uniqueness only holds up to sign. In Section 5.4 we provide further remarks on the convergence stated in Theorem 3.5 and discuss other approaches in the literature to prove consistency of eigenvectors for Laplacian matrices built over data clouds.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Fermat Riemannian Metrics</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Fermat Geodesics and Local Euclidean Equivalence</head><p>In this section we derive a concrete, local expression for geodesics in the Fermat distance on a flat domain (i.e., an m-dimensional, open, connected subset of R m ), and then establish a higher order local equivalence between L p and Euclidean distance on a flat domain. These results will then be applied in the tangent plane of a general manifold to establish the local metric approximation results given in Section 4.2. To make clear that the domain lacks both intrinsic and extrinsic curvature, we denote it by &#8486; instead of M. </p><p>where H(y) denotes the Hessian matrix of &#961; evaluated at y and</p><p>As a numerical illustration of the local Fermat geodesics, consider the density function</p><p>, so that &#8711;&#961; = (1, 0), &#961;(0, 0) = 1. We consider p = 3, and since m = 2 we have &#945; = 2. We solve the geodesic equations appearing in the proof of Theorem 4.1 with a numerical solver for a collection of initial directions b and for total time T in order to produce the Fermat geodesic balls appearing in Figure <ref type="figure">2</ref>; note (15) gives a third order approximation of these curves, valid for small times. Intuitively, the L p p ball is elongated in the direction of the gradient because it costs less to travel in that direction. We can utilize the geodesic computation of Theorem 4.1 to establish a higher-order equivalence of Fermat distances with a density-warped Euclidean distance, depending both on &#961; and &#8711;&#961;.</p><p>Theorem 4.2 Let &#8486; &#8838; R m be an m-dimensional, open, connected domain and assume (&#8486;, &#961;) satisfies Assumption 3.1. Then for x, y &#8712; &#8486; with x &#8725; = y and unit vector u = (yx)/&amp;y -x&amp;, we can relate Euclidean and Fermat distance as follows:</p><p>for</p><p>Also:</p><p>Proof See Appendix D.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Discrete-to-Continuum Fermat Distance Approximation</head><p>We now utilize the results of Section 4.1 to establish that, locally, the discrete, computable metric lp p is well-approximated by the Fermat geodesic distance L p p . Following is the main result of this section, which quantifies the metric approximation for PPPs; we work with PPPs in order to utilize results from percolation theory. Recall H n&#961; denotes a nonhomogeneous Poisson point process on M with intensity n&#961;, and lp</p><p>Theorem 4.3 (Local Metric Approximation for PPP) Suppose (M, &#961;) satisfies Assumption 3.1. Let x, y &#8712; M, fix ' &#8712; (0, 1/(8p + 6)), and suppose that</p><p>Then for n large enough:</p><p>, where</p><p>Here C ' , c ' are constants depending on ', C p,d,&#946; is a constant depending on p, d, &#946;, and C M,&#961;,p is a constant depending on &#961;, p, and the geometry of M.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.1">Background and Outline for Proof of Theorem 4.3</head><p>We first establish some notation used in the proof of Theorem 4.3. Let r = d(x, y); we assume r is upper bounded by a constant C M,&#961;,p independent of n but depending on &#961;, p, and the geometry of M, but to simplify already long calculations we do not keep track of it. Let u = log x (y) so that &amp;u&amp; = r.</p><p>Fix any R &gt; 0 satisfying 4R &lt; R and define the function &#961; x (z) := &#961;(exp x (z))J x (z)1{z &#8712; B 0 (R)}, where 1{z &#8712; B 0 (R)} is 1 for z &#8712; B 0 (R), and 0 otherwise. We note that</p><p>where H n&#961;x (A) denotes the number of points of the PPP falling in A. The function &#961; x (thought of as the density &#961; lifted to the tangent plane) implicitly defines a tangent plane continuum Fermat distance between x, y:</p><p>where log x &#947; is a path in T x M connecting 0 and u. Let &#961; min , &#961; max be the min/max of &#961; x (z) over B 0 (2r</p><p>). Let H n&#961; min be the PPP obtained by replacing &#961; x with &#961; min on B 0 (2r) (no change outside of this ball), and similarly for H n&#961;max . Note that we can couple the PPPs so that H n&#961; min &#8838; H n&#961;x &#8838; H n&#961;max . Finally, let H n&#961; min = H n&#961; min &#8745; B 0 (2r), H n&#961;max = H n&#961;max &#8745; B 0 (2r). Note that H n&#961; min , H n&#961;max are homogeneous PPPs on B 0 (2r) with intensities n&#961; min , n&#961; max , while H n&#961;x is inhomogeneous and harder to analyze directly.</p><p>Our metric approximation consists of a series of Lemmas:</p><p>Intuitively, this means that optimal discrete Fermat paths between nearby points do not meander too much. This allows the paths on the manifold to be compared to those on the tangent plane.</p><p>2. Lemma E.2: lp p (x, y, H n&#961; &#8745; B x (R)) &#8776; lp p (0, u, H n&#961;x ). This means that optimal paths on the manifold are close to those on the tangent plane. The paths on the tangent plane are easier to analyze, because the domain is flat.</p><p>3. Lemma E.3: &#8467; p p (0, u, H n&#961; min ) = &#8467; p p (0, u, H n&#961; min ) w.h.p., and same for H n&#961;max This allows us to "trap" the Fermat distance for the nonhomogeneous PPP H n&#961;x as &#8467; p p (0, u, H n&#961;max ) &#8804; &#8467; p p (0, u, H n&#961;x ) &#8804; &#8467; p p (0, u, H n&#961; min ).</p><p>4. Lemma E.4: lp p (0, u, H n&#961;x ) &#8776; &#181;L p p (0, u, &#961; x ) w.h.p. This is a direct discrete-to-continuum metric approximation on the tangent plane.</p><p>5. Lemma E.5: L p p (0, u, &#961; x ) &#8776; L p p (x, y). This involves bounding the perturbation due to curvature for L p p .</p><p>See Appendix E for precise statements and proofs of the above lemmas. An important tool in our analysis is the following result from percolation theory, which is a direct result of Theorem 2.2 in <ref type="bibr">Howard and Newman (2001)</ref>.</p><p>Proposition 4.4 Let H n&#955; be a homogeneous PPP on R m with intensity n&#955; &gt; 1. Fix q &gt; 1 and ' &#8712; (0, 1/(8p + 6)). Suppose &amp;u&amp; &#8805; (n&#955;)</p><p>with probability at least</p><p>for constants C ' , c ' depending on '.</p><p>Proof By Theorem 2.2 in <ref type="bibr">Howard and Newman (2001)</ref>, for every '</p><p>with probability</p><p>We observe that (16) implies &amp;u&amp; &#8805; (n&#955;)</p><p>m(2q-1-2!) ; thus the right hand side of ( <ref type="formula">19</ref>) can be bounded by</p><p>2q-2 m(2q-1) , assuming n&#955; &gt; 1. Substituting this into (20) yields (18).</p><p>Remark 4.5 There is an interesting trade-off controlled by q. Taking q larger yields a faster rate of convergence in (17), but one that only applies to larger u in (16). As q &#8594; 1 + we approach a very natural lower bound, &amp;u&amp; &#8805; (n&#955;) -1/m , but the probability bound (18) becomes constant with respect to n, and the metric approximation error (17) becomes large. We shall focus exclusively on the q = 2 case henceforth, as this choice leads to the best spectral convergence rates.</p><p>Our PPP metric approximation result (Theorem 4.3) puts together the pieces discussed in the preceding sections to conclude that locally &#181;L p p (x, y) is well approximated by lp p (x, y, H n&#961; ):</p><p>Proof [Theorem 4.3] Let C1 , C2 be as in Lemma E.4 and let L denote L p p (x, y). We have, for &amp;u&amp; &#8804; C M,&#961;,p ,</p><p>and we have utilized &amp;u&amp; 2 = &#961;(x)</p><p>We note Theorem 4.3 is closely related to existing results in the Fermat distance literature, especially Theorem 1 in <ref type="bibr">Hwang et al. (2016)</ref> and Theorem 2.3 in <ref type="bibr">Groisman et al. (2022)</ref>. Our results are local (showing lp p (x i , x j ) &#8776; &#181;L p p (x i , x j ) when x i , x j are close) but quantitative, giving a sharp third order estimate on the local deviations. In contrast, <ref type="bibr">Hwang et al. (2016)</ref> and <ref type="bibr">Groisman et al. (2022)</ref> provide macroscale/global convergence results, i.e., x i , x j are arbitrary points in M, but of an asymptotic nature. At a more technical level, we note that from the proof of <ref type="bibr">(Hwang et al., 2016, Lemma 10)</ref>, a result similar to Lemma E.2 can be deduced:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Continuum Limits of Graph Laplace Operators</head><p>In this section we show that discrete graph Laplacians built from discrete Fermat distances converge to continuum Laplace operators built from continuum Fermat distances. While this analysis is similar to the arguments of <ref type="bibr">Burago et al. (2015)</ref> and Garc&#237;a Trillos et al. ( <ref type="formula">2019</ref>), new ideas are needed. Indeed:</p><p>1. In <ref type="bibr">Burago et al. (2015)</ref> convergence of eigenvectors of &#8710; &#915; dg ,h to eigenfunctions of &#8710; 0 associated to (M, g) is studied. Here, &#915; dg,h denotes the graph constructed using the kernel 1 &#969;m 1 [0,1] , bandwidth parameter h, and the geodesic distance d g . In this case the graph weights are degree-normalized and not chosen as in (5).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">In Garc&#237;a</head><p>Trillos et al. (2019) convergence of eigenvectors of &#8710; &#915; d 0 ,h to eigenfunctions of the random walk Laplacian &#8710; 2 associated to (M, g) is studied. Here, &#915; d 0 ,h denotes the graph constructed using a kernel &#951; satisfying certain mild assumptions, bandwidth parameter h, and Euclidean distance function d 0 (x, y) = &amp;x -y&amp; 2 . Like Garc&#237;a Trillos et al. (2019) our discrete and continuum operators are defined using two different metrics. Unlike Garc&#237;a Trillos et al. (2019), the relationship between these two metrics is not straightforward. Indeed, the key new ingredient is the refined approximation bounds &#181;L p p (x, y) &#8776; lp p (x, y) of Section 4.2. Nonetheless, we follow the approach outlined in Garc&#237;a Trillos et al. (2019). As many of the required technical lemmas can be applied with only minor modifications, instead of reproving them we indicate how the proof presented in Garc&#237;a Trillos et al. (2019) should be modified.</p><p>We begin by summarizing some relevant definitions and notation. Let &#957; n := 1 n n i=1 &#948; x i denote the empirical measure of X n . Let T : M &#8594; X denote a transportation map from &#957; to &#957; n , i.e., T # &#957; = &#957; n where the pushforward measure</p><p>Henceforth, we shall fix T to be a minimizer of ( <ref type="formula">21</ref>). Later we shall use <ref type="bibr">(Garc&#237;a Trillos et al., 2019</ref>, Theorem 2) to quantify d g &#8734; (&#957;, &#957; n ). For now, we note that we may assume</p><p>Using this partition, we define the discretization operator:</p><p>Finally, we define a non-local energy</p><p>which will be used to approximate the continuous Dirichlet energy.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Technical Results for Kernels and Degrees</head><p>We first derive some supporting results regarding Fermat kernels and degrees; see Appendix F for the proofs. The following corollary applies Theorem 3.2 to kernels and is critical for what follows.</p><p>Then for n large enough, with probability at least</p><p>, we have for all x i , x j &#8712; X :</p><p>where C ' , c ' are constants depending on ', &#951; = 1 &#969;m 1 [0,1] and h &#8805; 4&#181;&#946;</p><p>The following lemma is a minor modification of <ref type="bibr">(Garc&#237;a Trillos et al., 2019, Lemma 18</ref>) and bounds degrees computed with respect to the (discrete) Fermat distance.</p><p>Lemma 5.2 For C 1 , C 2 as in Theorem 3.2 and K p as in Theorem B.2:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Analysis of Discrete Dirichlet Energies</head><p>Next, we consider the relationship between the discrete Dirichlet energies induced by d g and d 0 respectively, where d 0 is any distance function approximating d g as quantified by the following assumption:</p><p>Assumption 5.3 Let d g be the geodesic distance function on (M, g) while d 0 is any distance function on X n . Suppose that, for appropriate kernel sizes h &gt; 0 there exists &#948; := &#948;(h) and &#949; n &#8594; 0 + such that for all x i , x j &#8712; X n :</p><p>For brevity, for c = 0, g we write w c,h i,j instead of w dc,h i,j and b c,h (&#8226;) instead of b dc,h (&#8226;); see Section 2.2 for definitions.</p><p>Theorem 5.4 (General Dirichlet Energy Perturbation) Suppose Assumption 5.3 holds for d 0 , d g and h &gt; 0. Then, for all u : X &#8594; R and with probability 1&#949; n ,</p><p>Proof We simply compare the Dirichlet energies:</p><p>where we use Assumption 5.3 in (a). For &#948; small enough (1&#948;) m+2 &#8804; 1 -Cm&#948; and the stated bound follows. The proof of the upper bound is similar.</p><p>Next, we relate the corresponding eigenvalues.</p><p>Theorem 5.5 Suppose Assumption 5.3 holds for d 0 , d g and h &gt; 0. Recall that &#955; k (&#8710; &#915; c,h ) denotes the k-th eigenvalue of the random walk Laplacian of the graph &#915; c,h := (X , W c,h ) for c = 0, g. Then with probability</p><p>where</p><p>Proof As discussed in Section 2.2,</p><p>for c = 0, g and h &#8242; &gt; 0.</p><p>First, we compare degrees, which we explicitly decorate with a value of h. From Assumption 5.3 we deduce that</p><p>and similarly m g, # h + ,i &#8805; (1 -Cm&#948;) m 0,h,i , where both hold with probability 1&#949; n . Using <ref type="bibr">(Garc&#237;a Trillos et al., 2019, Lemma 18)</ref> we get max i=1,...,n</p><p>So,</p><p>from ( <ref type="formula">24</ref>)</p><p>and similarly, m 0,h,i &#8804; (1 + E)m g, # h -,i , where we have ignored certain higher order terms. We now compare norms.</p><p>where we have used Theorem 5.4 in (a). But L k was arbitrary, and so</p><p>Simplifying (1 + E)(1 + Cm&#948;), ignoring higher order terms e.g. &#948;h 2 , &#948;d g &#8734; (&#957;, &#957; n ), and adjusting constants as necessary yields the stated upper bound. A similar argument yields the lower bound.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Discrete-to-Continuum Convergence of Eigenvalues</head><p>With d 0 as in Section 5.2 we now show the eigenvalues of &#8710; &#915; d 0 ,h converge to those of &#8710; 2 provided Assumption 5.3 holds. Later, we specialize this to d 0 = lp p and d g = &#181;L p p .</p><p>Lemma 5.6 (cf. Lemma 13, part (ii) Garc&#237;a Trillos et al. ( <ref type="formula">2019</ref>)) Suppose Assumption 5.3 holds. Then with probability 1&#949; n , for all f &#8712; H 1 (M),</p><p>where</p><p>Proof We indicate how to modify the proof. Recalling &#963; &#951; in their notation is 1 m+2 :</p><p>&#957;n) , where (27) is shown in the proof of Lemma 13, part (ii) Garc&#237;a Trillos et al. (2019), (28) follows from Assumption 5.3, (29) follows as the U i have diameter at most 2d g &#8734; (&#957;, &#957; n ), and (30) follows from the identity &#951; 9 (t-s) + r : = &#951; 9 t r+s : for r, t, s &gt; 0, see (Garc&#237;a Trillos et al., 2019, Lemma 10). From (Garc&#237;a Trillos et al., 2019, Lemma 5):</p><p>Simplifying as in Garc&#237;a Trillos et al. ( <ref type="formula">2019</ref>) and using</p><p>Proof [Proof of Theorem 3.3] By Corollary 5.1, as long as</p><p>Assumption 5.3 holds with d g = &#181;L p p and d 0 = lp p where</p><p>From Theorem 5.5,</p><p>where</p><p>From <ref type="bibr">(Garc&#237;a Trillos et al., 2019, Theorem 4</ref>, part 1) we have</p><p>where</p><p>and C depends only on m, &#946;, p and L 1 . We do not retain the term proportional to h 2 /R 2 in <ref type="bibr">(Garc&#237;a Trillos et al., 2019, eq. (1.16</ref>)), as &#915; L, # h + is constructed using geodesic distances between points, not Euclidean distances. More precisely, this discrepancy arises from using Lemma 5.6 in place of <ref type="bibr">(Garc&#237;a Trillos et al., 2019, Lemma 13)</ref>. Similarly, from <ref type="bibr">(Garc&#237;a Trillos et al., 2019, Theorem 4</ref>, part 2) we have</p><p>where</p><p>Combining ( <ref type="formula">35</ref>) and (33) yields:</p><p>Similarly, combining (37) and ( <ref type="formula">33</ref>)</p><p>Using ( <ref type="formula">32</ref>), ( <ref type="formula">34</ref>), ( <ref type="formula">36</ref>) and ( <ref type="formula">38</ref>) the error terms in ( <ref type="formula">39</ref>) and ( <ref type="formula">40</ref>) can be expressed as</p><p>From (Garc&#237;a Trillos et al., 2019, Theorem 2) we have . We cannot do so here as h must satisfy the lower bound of (31). Instead, we take h = 4&#181;&#946;</p><p>(p-1)</p><p>. Noting that K p may be bounded by an expression involving K, L 1 , L , m, and p (see Appendix B) we may write C &#946;,m,L 1 ,L 2 ,p,K,R instead of C &#946;,m,L 1 ,L 2 ,p,Kp,R . We now identify the leading and second-order terms in (39) and (40). Observe that</p><p>retaining only terms proportional to h and h 2 yields the stated error bounds.</p><p>Remark 5.7 The dependence of h on n is determined by Corollary 5.1, which is in turn determined by Proposition 4.4. One might enquire as to whether a better choice of q in Proposition 4.4 could result in a better error bound in Theorem 3.3. In fact it is straightforward (but tedious) to trace the dependency on q through Theorem 4.3 and Corollary 5.1 to the proof of Theorem 3.3, whence a straightforward computation reveals q = 2 is optimal.</p><p>Remark 5.8 Although we state the above theorem in terms of (discrete and continuous) Fermat distance, with superficial modifications it can be applied to any Riemannian distance d g (&#8226;, &#8226;) and any discrete approximation d 0 (&#8226;, &#8226;) satisfying Assumption 5.3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4">Discrete-to-Continuum Convergence of Eigenvectors</head><p>In this section we relate eigenvectors of the Fermat graph Laplacian &#8710; &#915; l,h to the eigenfunctions of the operator &#8710; 2,p by proving Theorem 3.5. The proof of this result relies on the relationship between Dirichlet energies that we established in previous sections as well as on the consistency of eigenvalues from Theorem 3.3. Throughout this section let &#968; n 1 , . . . , &#968; n n denote the eigenvectors of</p><p>Recall that, by assumption, this eigenfunction is unique up to sign. We shall use C decorated with subscripts to denote a constant depending on the indicated manifold or density related properties, but not on n.</p><p>Lemma 5.9 Define 1 X : X &#8594; R as 1 X (x i ) = 1 for all x i &#8712; X . Then</p><p>Proof As is well-known, the smallest eigenvalue of &#8710; &#915; l,h is 0, and the associated eigenvector is a multiple of 1 X . Up to sign,</p><p>Using the definition of the operator P and recalling that</p><p>where we have used the fact that f is orthogonal to 1 M -the first eigenfunction of &#8710; 2,pw.r.t. the inner product &#12296;</p><p>In turn, the error term c n can be bounded as</p><p>where we have used Lemma 5.2, the value of h given in the assumptions, simplified as in the proof of Theorem 3.3, and ignored higher order terms (i.e. those &#8810; n -2 3m + 2! m such as terms proportional to d g &#8734; (&#957;, &#957; n )). This proves (42). A similar computation reveals that</p><p>proving the lower bound of ( <ref type="formula">43</ref>). The upper bound follows similarly.</p><p>Lemma 5.10 Let v : X &#8594; R be the function v := P f -&#12296;P f, &#968; n 1 &#12297; m &#968; n 1 and let v := v/&amp;v&amp; m denote its normalization. Let P 2 : R X &#8594; R X denote the projection onto the eigenspace associated to &#955; 2 (&#915; l,h ). Then:</p><p>Proof By construction, &#12296;v, &#968; n 1 &#12297; m = 0. So, expanding in the eigenbasis yields</p><p>, and rearranging yields (45). As for (46),</p><p>From the proof of Lemma 13 in Garc&#237;a Trillos et al. ( <ref type="formula">2019</ref>) we know that</p><p>(47)</p><p>Appealing to Lemma 5.2 and ignoring higher order terms, as was done in the proof of Lemma 5.9, we obtain</p><p>Consequently we have</p><p>where the constants C &#946;,p,m,L 1 and C m,&#946;,p,L 1 ,L 2 ,K have changed to incorporate the bounds of ( <ref type="formula">42</ref>) and ( <ref type="formula">43</ref>) of Lemma 5.9.</p><p>Proof [Proof of Theorem 3.5] From Lemma 5.6, and the fact that D(f ) = &#955; 2 as f is an eigenvector, we know that</p><p>where we have assumed, as in Corollary 5.1, that h is sufficiently small so that &#948; &#8804; 1 2 and adjusted the constants C accordingly. Let v be as in Lemma 5.10. By the invariance of</p><p>where, as before, we have simplified by substituting in for h and ignoring higher order terms. Now observe that</p><p>and consequently</p><p>where (a) follows from Lemma 5.10 while (b) follows from the 2-homogeneity of b l h (&#8226;):</p><p>To conclude we bound terms by powers of n, ignoring higher order terms as we have done before. From the error estimates of Theorem 3.3 <ref type="formula">51</ref>), Lemma 5.10 and Lemma 5.9 respectively, while bounds on 9 &#955; 3 (&#915; l,h )&#955; 2 (&#915; l,h ) : -1 follow from Lemma 5.11. Combining these bounds and ignoring higher order terms,</p><p>For n large &#968; n 2 is simple, so</p><p>where in the final line we have used the following easily verifiable inequality:</p><p>Combining the above with (48) one obtains</p><p>Lemma 5.11 With notation as in the proof of Theorem 3.5,</p><p>.</p><p>Proof Using the error estimates of Theorem 3.3 again and letting</p><p>.</p><p>Remark 5.12 It is possible to consider alternative metrics to capture the convergence of graph Laplacian eigenvectors toward their continuum counterparts; e.g., see Garc&#237;a <ref type="bibr">Trillos et al. (2019)</ref>. We also want to remark that extending the convergence result from Theorem 3.5 to higher eigenfunctions is straightforward but cumbersome as one needs to introduce additional notation and operators. The rationale of the proof is however the same and relies on the strong convexity of the discrete Raleigh quotient when restricted to eigenspaces. In this interpretation, the strong convexity constants are determined by the spectral gaps between consecutive eigenvalues. We refer the reader to Garc&#237;a Trillos et al. ( <ref type="formula">2019</ref>) for some related discussion.</p><p>Remark 5.13 It is interesting to observe that the proof of convergence of eigenvectors presented in <ref type="bibr">Calder and Garc&#237;a Trillos (2022)</ref>, which ultimately produces faster rates of convergence than the ones based on energy considerations (i.e., the approach used in Garc&#237;a Trillos et al. ( <ref type="formula">2019</ref>); <ref type="bibr">Burago et al. (2015)</ref> as well as in here) cannot be used in our setting, since the approach considered in <ref type="bibr">Calder and Garc&#237;a Trillos (2022)</ref> relies on pointwise consistency of graph Laplacians. Pointwise consistency results for Fermat-based graph Laplacians do not follow from similar considerations as in other works in the literature given that the discrete Fermat distances are random. Obtaining pointwise consistency results for Fermatbased graph Laplacians is thus left as an interesting open problem.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.5">Extensions and Discussion</head><p>It is possible to adapt the proofs of our theorems in Sections 5.2-5.4 to obtain similar spectral convergence results (with rates) for more general normalizations of graph Laplacians such as the ones discussed in Section 2.2.1. Let the base weights Wik be defined according to Wik = w l,h i,k as in (5) for d 0 = lp p the discrete p-Fermat distance. We choose r = 0, j = q = 1 -s/2 in the construction from Section 2.2.1 and denote by L p,s the resulting normalized graph Laplacian. It is straightforward to see that L p,s is self-adjoint with respect to the inner product &#12296;&#8226;, &#8226;&#12297; D , where the matrix D is the degree matrix for the weights</p><p>). The (properly scaled) Dirichlet energy associated to the operator L p,s takes the form</p><p>Note that the only difference with the Dirichlet energy b d 0 h (u, u) from ( <ref type="formula">7</ref>) is the extra normalization terms D1-</p><p>, where</p><p>Using Lemma (5.2), we can reduce our analysis to studying the Dirichlet energy</p><p>which, in turn, can be related to the continuum Dirichlet energy $ M |&#8711; p u| 2 &#961; s p (x)dVol p (x), after following very similar steps as in the proofs of our results in Sections 5.2 and 5.3. The operators L p,s described above can thus be shown to converge spectrally toward the family of s-weighted operators (see Proposition 2.5)):</p><p>See also the discussion in in Remark 2.8 and Section 6.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.5.1">Dynamic Perspective and Comparison with Diffusion Maps</head><p>As we discuss below, every graph Laplacian operator L p,s induces a family of transformations of the original data set {x 1 , . . . , x n } (which we recall is embedded in R D ) into R n . The idea of using these transformations is to help "disentangle" the original data set X by finding a representation for it that more clearly reveals its intrinsic geometric structure. These transformations are in many instances effective preprocessing steps for tasks such as clustering or dimensionality reduction.</p><p>To introduce the family of transformations associated to L p,s , let us denote by Q s,p := -L p,s the transition rate matrix associated to the Laplacian L p,s . Following Section 2 in <ref type="bibr">Craig et al. (2022)</ref>, we consider the family of evolution equations:</p><p>where each u t is interpreted as a function u t : X &#8594; R; in the above, we use the notation Q s,p (x i , x j ) to denote the ij entry of Q s,p . Fixing a time horizon T &gt; 0, for an arbitrary data point x i we set u 0 := &#948; x i and define the transformation</p><p>where we have used the notation u x i to denote the solution to equation ( <ref type="formula">53</ref>) at time T when its initial condition is &#948; x i , the function over X which is one at x i and 0 everywhere else.</p><p>In what follows we discuss the similarities and differences between the family of transformations induced by the operators L p,s indexed by s for different values of p and the family of diffusion maps from <ref type="bibr">Coifman and Lafon (2006)</ref>. To compare these families, we use the connection between discrete and continuum operators that we developed in the previous sections and draw conclusions from the comparison between the continuum analogues of each of these families.</p><p>First, as in Section 2 in <ref type="bibr">Craig et al. (2022)</ref>, we can argue that the (discrete) evolution equation ( <ref type="formula">53</ref>) has the following continuum counterpart:</p><p>where the function f t,p must be interpreted as a density function with respect to the volume form dVol p . In terms of density functions and operators in the base geometry (M, g), the above equation can be rewritten as:</p><p>where the function f t = f t,p &#961; 1-p is interpreted as a density function with respect to the base volume form dVol. If &#945; &gt; 0, i.e. p &gt; 1, the above can be written as</p><p>whereas for &#945; = 0 (which happens when p = 1) it can be written as</p><p>Notice that regardless of the value of &#945; &#8805; 0 chosen, the second term on the right hand side of ( <ref type="formula">55</ref>) is a "mean shift term", i.e., it is a term that pushes the distribution f t towards the local maxima of the function &#961; (which are the same as the local maxima of log(&#961;) or &#961; &#945; for &#945; &gt; 0). The first term on (55), on the other hand, is a non-homogeneous diffusion term with a diffusion coefficient that is larger at points with larger values of &#961;. The larger the value of &#945;, the more dramatic the difference between the diffusion rate at points with large values of &#961; and at points with small values of &#961;. Notice that &#945; gets modulated by the value of p only, and in particular s does not play any role in determining it. As we will see below, being able to tune this effect in the diffusion term in ( <ref type="formula">55</ref>) is one of the main differences between the family of maps represented by (55) and the diffusion maps of <ref type="bibr">Coifman and Lafon (2006)</ref>.</p><p>Let us recall that, as discussed in Section 4.2 in <ref type="bibr">Craig et al. (2022)</ref>, diffusion maps are connected to the following family of evolution equations:</p><p>for a &#8712; (-&#8734;, 1]. We see that ( <ref type="formula">55</ref>) and (56) coincide when s = 1 -a and p = 1. This is expected, since the distance function L p is precisely the original metric on M when p = 1. In general, however, with the family of Fermat based Laplacians we have one extra degree of freedom that can be used to accelerate the diffusion in regions where the density &#961; is larger, as was mentioned earlier. Numerical examples illustrating this effect are presented in Section 6. In settings like the desert horizon image from Figure <ref type="figure">1</ref>, considering larger values of &#945; in the maps (55) should be beneficial, as in that case the map ( <ref type="formula">54</ref>) is expected to induce agglomeration of points at each of the clusters more quickly while still inducing the mean-shift force pushing clusters apart. However, we highlight that in order to translate our insights from the continuum model to the discrete setting, it is important to have enough samples to justify the approximation of the continuum model by the discrete one, and in this regard, larger values of &#945; may require a larger number of samples (since the probabilities in Theorems 3.2, 3.3, and 3.5 deteriorate as p gets large).</p><p>Algorithm 1 Fermat Distance Spectral Clustering 1: Input: data points x 1 , . . . , x n , density parameter p &#8805; 1, normalization parameter s &#8805; 0, embedding dimension r, kernel scale h</p><p>&#8882; Compute normalized weight matrix 7:</p><p>Algorithm 2 Degree Normalized Spectral Clustering 1: Input: data points x 1 , . . . , x n , parameters q, j, embedding dimension r, kernel scale h 2: Output:</p><p>&#8882; Compute normalized weight matrix 7:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Numerical Simulations</head><p>The discrete Fermat distance spectral clustering algorithm is summarized in Algorithm 1.</p><p>The algorithm depends on two key parameters: p, which determines the metric geometry, and s, which determines the Laplacian normalization. In Section 6.1 we explore the impact of these parameters. In Section 6.2 we explore the equivalence of Algorithm 1, where Fermat distances are computed explicitly, with Algorithm 2, a Euclidean spectral clustering algorithm with positive degree normalization.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Role of p and s in Fermat Spectral Clustering</head><p>In Figure <ref type="figure">3</ref>, we consider an elongated data set with a density gap. There are two natural partitions: one that cuts "long" through the region of low density (which we call "Density Cut") and one that cuts "short" (which we call "Geometric Cut"). We see that as p increases, the density cut is eventually learned by Algorithm 1 by applying k-means to the spectral embedding to produce labels, which are then compared with the two natural partitions via an accuracy score that computes the proportion of points correctly assigned.</p><p>The behavior in p of Figure <ref type="figure">3</ref> corroborates our analysis that low p will favor geometry-driven cuts and large p density-driven cuts. In Figure <ref type="figure">4</ref>, we demonstrate the impact of the normalization parameter s while keeping p fixed. As s increases, the moon-which is small but very separated from the rest of the pixels by intensity-is increasingly emphasized in the second Fermat eigenvector. Choosing a large s allows the Fiedler eigenvector to concentrate on a set of very small volume, while a smaller s prevents this behavior and recovers the more balanced cut of the horizon.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">Asymptotic Equivalence with Degree Normalized Euclidean Laplacians</head><p>We compare to <ref type="bibr">Hoffmann et al. (2022)</ref> by sampling data from a non-uniform density and constructing (i) a discrete Fermat graph Laplacian (e.g., Algorithm 1) and (ii) a Euclidean distances graph Laplacian, with density rescaling so that in the large sample limit, the discrete Laplacians convergence to the same continuum operator (e.g., Algorithm 2). As a baseline, we also compare with (iii) the random walk Laplacian build with Euclidean distances but without density rescaling. We consider 2 example data sets in R 2 :</p><p>1. Data sampled from a ball of radius 1 with a density valley running down the vertical axis, specifically we consider for some &#964; &gt; 0 the density &#961;(</p><p>). 2. A mixture of 2 Gaussians with uniform background noise, whose intensity is governed by a parameter &#964; &gt; 0.</p><p>Figures 5-6 illustrate the convergence of the Fermat Laplacian eigenvalues to their density normalized counterparts. The bottom row of these plots show comparisons between (i) and (ii). In general, smaller p and larger &#964; lead to larger regions of convergence. It is also relevant that the Fermat eigenvalues have larger variance, especially the higher frequency ones. Additional experiments appear in Appendix H. This suggests that in practice and for sufficiently large sample size n, density-normalization provides a more computationally efficient (because Fermat distances do not need to be calculated) and statistically consistent alternative to constructing the Fermat distance graph Laplacian. Indeed, the complexity of computing a Fermat distances graph Laplacian, with each point connected to its k Fermat nearest neighbors, is O((k 2 + CD)n log(n)) for a constant C that depends exponentially on the intrinsic dimension of the data <ref type="bibr">(Mckenzie and Damelin, 2019)</ref>. This is done via a modified Dijkstra's algorithm that leverages fast Euclidean nearest neighbor algorithms such as cover trees <ref type="bibr">(Beygelzimer et al., 2006)</ref>. In contrast, computing a k Euclidean nearest neighbors graph is essentially O((k + CD)n log(n)). In practice, the cost of computing the Fermat nearest neighbor distances is significantly larger than computing the Euclidean nearest neighbors, even if they have the same asymptotic complexity in n (i.e., k 2 is fixed to be relatively small compared to C and D). The spectral decomposition of the sparse Fermat distance Laplacian and density-reweighted Euclidean Laplacian have essentially the same complexity (since the sparsity level is the same),</p><p>-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 0 10 20 30 40 50 60 70 80 90 100 -0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 Fermat Eigenvalues Degree Renormalized Euclidean Eigenvalues Euclidean Eigenvalues 10 20 30 40 50 60 70 80 90 100 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 Fermat Eigenvalues Degree Renormalized Euclidean Eigenvalues Euclidean Eigenvalues 0 10 20 30 40 50 60 70 80 90 100 -5.5 -5 -4.5 -4 -3.5 -3 -2.5 -2 -1.5 0 10 20 30 40 50 60 70 80 90 100 -0.05 -0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0 10 20 30 40 50 60 70 80 90 100 -3.2 -3 -2.8 -2.6 -2.4 -2.2 -2 -1.8 -1.6 -1.4 -1.2 Figure 5: p = 1.2, &#964; = .25. Runtime for Fermat Laplacian: 168.46 &#177; 10.70s. Runtime for Rescaled Euclidean Laplacian: 6.64 &#177; .63s. 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 10 20 30 40 50 60 70 80 90 100 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 Fermat Eigenvalues Degree Renormalized Euclidean Eigenvalues Euclidean Eigenvalues 10 20 30 40 50 60 70 80 90 100 0.02 0.04 0.06 0.08 0.1 0.12 Fermat Eigenvalues Degree Renormalized Euclidean Eigenvalues Euclidean Eigenvalues so the benefit of avoiding Fermat Laplacians is at the level of avoiding expensive distance calculations that suffer from relatively high statistical variance <ref type="bibr">(Little et al., 2022)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">Conclusions and Future Work</head><p>By computing Fermat geodesics and applying percolation results in the manifold tangent plane, we have developed the first quantitative local Fermat metric convergence results in the literature. We apply these results to develop a continuum limit theory for Fermat graph Laplacians, and prove convergence results of the eigenvalues and eigenvectors of the discrete operators to those of their continuum analogues. An interesting consequence of this analysis is that it establishes the similarity of (i) Fermat Laplacians and (ii) densityreweighted Euclidean Laplacians in the large sample limit. The geometric framework we develop thus leads to new computational schemes that leverage the theoretical benefits of Fermat spectral clustering (for example robustness with respect to cluster elongation as illustrated in Figure <ref type="figure">1</ref>) without the need for onerous calculation of pairwise Fermat distances.</p><p>In future work, it is of interest to investigate whether our local metric convergence results can be extended to apply globally, whether it is possible to obtain point-wise consistency for Fermat graph Laplacians, how our results are impacted by noise, and also to theoretically investigate the role of the normalization parameter s, which we have fixed in this work.</p><p>We are interested in (M, g) with globally bounded sectional curvature:</p><p>Lemma 1 Suppose that &#961; &#8712; C<ref type="foot">foot_0</ref> M. Fix any x &#8712; M and consider the function</p><p>where</p><p>Proof Starting from the normal coordinate expansion of the metric (see, e.g. Brewin ( <ref type="formula">2009</ref>)), taking determinants, and using</p><p>where R ij is the Ricci curvature tensor, expressed in normal coordinates. As all sectional curvatures are bounded by K, R ij &#8804; (m -1)Kg ij . Differentiating (58):</p><p>As J x (0) = 1, &#8711;J x (0) = 0 differentiating (57) yields</p><p>. Using Jac(exp x (0)) = Id. Taking norms yields the first claim. From the product rule for Hessians:</p><p>T &#8711;&#961; &#8226; exp x +&#961; &#8226; exp x (HJ x ) evaluating at 0 and recalling J x (0) = 1, &#8711;J x (0) = 0 H&#961; * x (0) = H&#961; &#8226; exp x (0) + &#961;(x)HJ x (0). Since &amp;HJ x (0)&amp; &#8818; (m -1)K, it remains to bound H&#961; x (0). From <ref type="bibr">Skorski (2019)</ref> we have the following chain rule for Hessians:</p><p>where exp k x is the k th coordinate of exp x and x 1 , . . . , x D are full-dimensional Euclidean coordinates. Since &amp;H(exp k</p><p>x )&amp; &#8818; Km, evaluating at z = 0 and taking norms gives:</p><p>(here we have used the fact that we can choose coordinates so that &#8711;&#961;(x) is zero except in the first m coordinates, and once again we have ignored the lower order term). Thus we obtain:</p><p>Proof We compute:</p><p>From e.g. <ref type="bibr">(Boumal, 2020, Proposition 10.43)</ref>, we obtain &amp; grad &#961;&amp; &#8804; L 1 . Hence:</p><p>For part 2, a simple calculation reveals</p><p>By assumption &amp; Hess &#961;&amp; &#8804; L 2 , and &amp; grad &#961; &#8855; grad &#961;&amp; = &amp; grad &#961;&amp; 2 &#8804; L 2 1 , so</p><p>Theorem B.2 Assume &#961; satisfies Assumption 3.1 and (M, g) has sectional curvature bounded by K. Then (M, g p ) has sectional curvature bounded by K p where</p><p>Proof Let R (resp. R p ) denote the (0, 4) Riemannian curvature tensor of (M, g) (resp. (M, g p )). Let &#966; := -&#945; 2 log &#961;. From <ref type="bibr">(K&#252;hnel, 2015, pp. 345</ref>) (see also <ref type="bibr">(Besse, 2007, pp. 58</ref>)) we have the identity:</p><p>where &#8226; is the Kulkarni-Nomizu product between symmetric two tensors defined as</p><p>:</p><p>where in (a) we use various bounds from Lemma B.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Appendix C. Fermat Geodesics</head><p>This appendix contains the proof of Theorem 4.1.</p><p>Theorem 4.1 Let &#8486; &#8838; R m be a m-dimensional, open, connected domain and assume (&#8486;, &#961;) satisfies Assumption 3.1. Fix y &#8712; &#8486; and let &#947; b (t) denote the unit speed geodesic with respect to g p originating at y in the direction of unit vector b &#8712; R m . Then:</p><p>where H(y) denotes the Hessian matrix of &#961; evaluated at y and</p><p>3 2 &#945;-2 &#12296;&#8711;&#961;(y), b&#12297;.</p><p>Proof We compute the geodesic equations for (&#8486;, g p ) for geodesics starting at some y &#8712; &#8486;.</p><p>Without loss of generality, assume y = 0 and for notational convenience, let &#961; 0 , &#8711;&#961; 0 , and H 0 denote &#961;(y) = &#961;(0) = &#961; 0 , &#8711;&#961;(y) = &#8711;&#961;(0) = &#8711;&#961; 0 , and H(y) = H(0) = H 0 , respectively; also let g p ij denote (g p ) ij . We have global coordinates on &#8486; which are just the standard coordinates (x i ). The function x(t) = (x 1 (t), . . . , x m (t)) is a g p geodesic if and only if it satisfies for all k = 1, . . . , d the geodesic equation &#7821;k (t) + &#7819;i (t) &#7819;j (t)&#915; k ij (x(t)) = 0, where</p><p>are the Christoffel symbols associated to g p <ref type="bibr">(Lee, 2006)</ref>. Now, g p ij = &#961; -&#945; g ij , where g ij = &#12296;&#8706; i , &#8706; j &#12297; = &#948; ij is the Euclidean metric tensor on R m . In addition, since g ij is the identity matrix,</p><p>Where in the last line we have switched to vector notation and identified d&#961; -&#945; with &#8711;&#961; -&#945; (which is valid as the metric is the Euclidean one). Thus, in vector notation the geodesic equation becomes:</p><p>For a unit Euclidean norm vector b &#8712; R m , consider the initial value problem</p><p>0 b, which has a unique geodesic solution &#947; b (t) in some local neighborhood <ref type="bibr">(Lee, 2006)</ref></p><p>0 b&amp; = &amp;b&amp; = 1 where | &#8226; | p denotes the norm with respect to g p , so &#947; b (t) is the unit speed geodesic in the direction of b. Because &#961; is assumed C &#8734; and bounded away from 0, we have that each g p ij is C &#8734; , hence the Christoffel symbols are C &#8734; . This implies the geodesic &#947; b (t) is also C &#8734; , and hence we can Taylor expand it about t = 0 to obtain:</p><p>for some vectors v, q depending on b, &#961;, which can be computed from the leading order terms in (59).</p><p>We have the following Taylor expansions for &#961;, &#8711;&#961;, &#961; &#945; , &#8711;&#961; -&#945; :</p><p>Substituting x = &#947; b (t), we obtain for some vectors z, w the following Taylor expansions in terms of t:</p><p>To solve for v, we only need to compute the leading order term in the geodesic equation ( <ref type="formula">59</ref>). We have:</p><p>Since &#947;b (t) = 2v + O(t), plugging into (59) gives:</p><p>Since the above must hold for arbitrarily small t, we obtain</p><p>We have thus established that the unit geodesic in direction b has form:</p><p>We can now compute q to obtain a higher order expansion; we need to compute the linearization of each term in the geodesic equation. We have three terms:</p><p>where</p><p>Similarly:</p><p>where</p><p>The linear terms in the geodesic equation must sum to zero, and we obtain:</p><p>where</p><p>We thus obtain:</p><p>where</p><p>In summary we have the following geodesic expansion depending on b, &#961; 0 , &#8711;&#961; 0 , H 0 :</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Appendix D. Local Euclidean Equivalence</head><p>This appendix contains the proof of Theorem 4.2.</p><p>Theorem 4.2 Let &#8486; &#8838; R m be an m-dimensional, open, connected domain and assume (&#8486;, &#961;) satisfies Assumption 3.1. Then for x, y &#8712; &#8486; with x &#8725; = y and unit vector u = (yx)/&amp;y -x&amp;, we can relate Euclidean and Fermat distance as follows:</p><p>Also:</p><p>Proof Without loss of generality assume x = 0, and let ' = &amp;y&amp;. Now consider B(0, '), a Euclidean ball of radius ' about 0. As long as ' is not too large, each point on &#8706;B(0, ') is on a unique L p p geodesic curve leaving the origin; let &#947; b be the geodesic which goes through y (recall it is unit speed in the direction of unit vector b). Note in general b &#8725; = u y = y +y+ , but these vectors are close for ' small.</p><p>For notational brevity we denote L p p (x, y), &#961;(0), &#8711;&#961;(0), H(0) by L, &#961; 0 , &#8711;&#961; 0 , H 0 throughout the proof. Note since the geodesic is unit speed, &#947; b reaches y at time L, i.e., y = &#947; b (L). By Theorem 4.1, we have</p><p>Thus for Plugging the above into (61), we obtain:</p><p>where , we have for all x i , x j &#8712; X :</p><p>where C ' , c ' are constants depending on ', &#951; = 1 &#969;m 1 [0,1] and h &#8805; 4&#181;&#946;</p><p>(p-1) m (n&#946;/2) -1 m ( 1 3 -') .</p><p>Proof We prove the result by defining &#958; := 2&#181;&#946;</p><p>(p-1) m (n&#946;/2) -1 m ( 1 3 -') &#8804; 1 2 h and considering the following 3 cases for any fixed x i , x j : 1. &#181;L p p &lt; &#958; 2. &#958; &#8804; &#181;L p p &#8804; 2h 3. &#181;L p p &gt; 2h Case 1: Assume &#181;L p p &lt; &#958;. We want to show that all kernels evaluate to 1, i.e., &#181;L p p &lt; ? h - (which also guarantees &#181;L p p &lt; ? h + ) and that F &#8467; p p &lt; h. Since &#181;L p p &lt; &#958; &#8804; 1 2 h = 1 2 # h - (1-&#948;) &#8804; ? h -, the L p p kernels evaluate to 1. To bound F &#8467; p p , we need to further consider the following two subcases: Case 1a: L p p &#8804; n -1 m ! 1-2 3p "</p><p>. In this case for n large enough the bound follows by considering the straight-line path, since lp p (x i , x j ) &#8804; n p-1</p><p>so that lp p (x i , x j ) &lt; h. Case 1b: n</p><p>p . This case involves discrete-to-continuum control of metric convergence at smaller scales than given in Theorem 3.2. However a repeat of the same arguments used to prove Theorem 3.2, but with choosing q = 1+ 1 4p when applying Proposition 4.4 in the proof of Lemma E.4, gives that for d(x i , x j ) &#8805; 2(n&#946;/2) by assumption, to apply (67) it is sufficient to check that d(x i , x j ) &#8805; 1</p><p>i.e., we need 1 -2 3p &lt; 1 1+(1/2p) -'. Since ' &lt; 1 2(4p+3) &lt; 1 6p , we have</p><p>and indeed the lower bound in (68) holds for n large enough. Thus, w.h.p. lp p (x i , x j ) &#8804; &#181;L p p (x i , x j ) + O(&#958;</p><p>4p " &lt; 2&#181;L p p &lt; 2&#958; so that lp p (x i , x j ) &lt; h. Case 2: Note d(x i , x j ) &#8805; &#946; 1-p m L p p (x i , x j ) &#8805; &#946; 1-p m &#181; -1 &#958; = 2(n&#946;/2) -1 m ( 1 3 -') , and so by Theorem 3.2: &#181;L p p (1&#948;) &#8804; F &#8467; p p &#8804; &#181;L p p (1 + &#948;) =&#8658; &#181;L p p ? h + = &#181;L p p h(1 + 2&#948;) &#8804; F &#8467; p p h &#8804; &#181;L p p h(1&#948;) = &#181;L p p ? h - which establishes the corollary in this case. Case 3: Now assume that &#181;L p p &gt; 2h. We want to show that all kernels evaluate to 0, i.e., we need to show that L p p &gt; ? h + (of course this guarantees L p p &gt; ? h -) and also that F &#8467; p p &gt; h. The first is true since L p p &gt; 2h &#8805; h(1 + 2&#948;) = ? h + . For F &#8467; p p , note that by Theorem 3.2 F &#8467; p p &gt; &#181;L p p -C 1 (L p p ) 2 -C 2 (L p p ) 3 &gt; &#181; 2 L p p &gt; h whenever L p p &#8804; C 3 for a fixed constant C 3 . But when L p p &gt; C 3 , it is clear that F &#8467; p p &gt; &#181; 2 L p p from Theorem 1 in Hwang et al. (2016) (or from the proof of Proposition 4.4). Finally, to conclude that (23) holds for all pairs of points we take a union bound, so that (23) holds with probability at least 1 -C ' n 3 exp 9 -c ' ( n 4&#946; ) ! 2p+1 min{ 1 m , 1 p }</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>:</head><p>(note the probability from Case 1 dominates the probability from Case 2, since we applied Proposition 4.4 with q = 1 + 1 4p instead of q = 2).</p><p>Note that on A &#8745; B, we have:</p><p>n p-1 m &#8467; p p (X n ) &lt; + 1 1 -n &#954;-1 2 , p-1 m (&#181;L + &#950;) &#8804; 9 1 + 2n &#954;-1 2 : p-1 m (&#181;L + &#950;) since n &#954;-1 2</p><p>&#8804; 1 2 (true since &#954; &#8804; 1 21 , n &#8805; 5). We utilize the inequality (1+x) q &#8804; 1+x(1&#8744;&#8968;q&#8969; 2 ) for 0 &#8804; x &#8804; &#8968;q&#8969; -1 . If q &#8804; 1, then (1 + x) q &#8804; 1 + x and the inequality clearly holds. If q &gt; 1, then by the Binomial Theorem In particular,</p><p>where we update C p,d,&#946; in the definition of C 2 as needed.</p><p>Finally, we observe that the lower bound on d(x, y) implies L 2 &#8805; C p,d,&#946; n -2 m ( 1 3 -') . Since n -2 m ( 1 3 -') dominates n &#954;-1 2 whenever 3m -4 + 10' &#8805; 0 which is guaranteed by m &#8805; 2, we obtain the theorem statement.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Appendix H. Additional Experimental Plots</head></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_0"><p>&amp;&#8711;&#961;(x)&amp;.</p></note>
		</body>
		</text>
</TEI>
