Abstract 1 Introduction 2 Regularity of the geodesics for the conformal metric 3 Polygonal approximation of the conformal metric 4 Estimation from random samples 5 Practical examples of conformal factors 6 Conclusion References

Estimation of Conformal Metrics

Jérôme Taupin ORCID Université Paris-Saclay, France
INRIA Saclay, Palaiseau, France
Abstract

We study deformations of the geodesic distances on a domain of N induced by a function called conformal factor. We show that under a positive reach assumption on the domain (not necessarily a submanifold) and mild assumptions on the conformal factor, geodesics for the conformal metric have good regularity properties in the form of a lower bounded reach. This regularity allows for efficient estimation of the conformal metric from a random point cloud with a relative error proportional to the Hausdorff distance between the point cloud and the original domain. We then establish convergence rates of order n1/d that are close to sharp when the intrinsic dimension d of the domain is large, for an estimator that can be computed in 𝒪(n2) time. Finally, this paper includes a useful equivalence result between ball graphs and nearest-neighbors graphs when assuming Ahlfors regularity of the sampling measure, allowing to transpose results from one setting to another.

Keywords and phrases:
Geometric inference, metric estimation, conformal metric, geodesics, sets of positive reach
Copyright and License:
[Uncaptioned image] © Jérôme Taupin; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Computational geometry
Related Version:
Full Version: https://hal.science/hal-05516466v1 [17]
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

This paper studies metrics over subsets of the Euclidean space (N,) obtained by conformal deformation of the shortest-path metric via a positive function. We are particularly interested in the regularity of such metrics and in their estimation via i.i.d. sampling of points.

Definition 1.1.

Let MN be a closed path-connected domain and f:M+ be a conformal factor. For all x,yM the conformal distance between x and y over M via f is defined as

DM,f(x,y)=definfγΓM(x,y)If(γ(t))γ˙(t)dt (1)

where ΓM(x,y) is the set of all Lipschitz paths γ:IM where I=[a,b] is a nontrivial segment, γ(a)=x and γ(b)=y. The quantity minimized over all paths γ is denoted

|γ|f=defIf(γ(t))γ˙(t)dt

and referred to as the conformal length of the curve γ via f. In the case where f=1, we write DM(x,y)=DM,1(x,y) and |γ|=Iγ˙, respectively the distance between x and y induced by the ambient metric over M and the Euclidean length of a curve γ.

In the following, to ensure regularity of the conformal metric, the domain M is assumed to have positive reach τM, which we recall is defined as the supremum of all r>0 such that any point in the offset Mr={xN:d(x,M)<r} has a unique projection onto M – where d(x,M)=infyMxy denotes the distance from point x to subset M – see [10]. Moreover, the conformal factor f is assumed to be κ-Lipschitz and lower bounded by fmin>0. These are the sole assumptions used in this paper regarding M and f.

Notice that f is defined over M in Definition 1.1 as paths are constrained to the domain. Since any Lipschitz function defined over a subset of N can be extended to the whole space preserving its Lipschitz property and lower bound (see [16, Theorem 1] for instance), one may assume without loss of generality that f is defined over the entire space N, which is useful to estimate the conformal metric efficiently. The connectedness and positive reach of M ensure that for any endpoints x,yM, there exists a Lipschitz path from x to y in M, so that ΓM(x,y) is always nonempty and DM,f(x,y) is always finite. This can be deduced from Lemma 2.1 below. Most of the time, a path γ is chosen to be parameterized with constant velocity, i.e., γ˙ is constant over I, with I being either [0,1] or [0,|γ|]. The latter is referred to as an arc-length parameterization, where γ˙=1 almost everywhere.

The induced metric DM=DM,1 is the metric induced by the ambient space N onto M. If M is a 𝒞1 submanifold of N and f is 𝒞1, DM,f is a Riemannian metric with tensor f(x)2gx at point xM where gx is the tensor of the induced metric DM at x. The term “conformal” used in this paper is borrowed from the Riemannian literature. Finally, if μ is a measure over a submanifold M with density ρ with regard to (w.r.t.) the volume form of M and f is a negative power of the density ρ, DM,f has already been studied and is sometimes referred to as the Fermat distance [13]. This particular case is one of the main motivations for this article as the Fermat distance has been used for various practical applications, see for instance [12] and the references therein. Particular examples of the conformal factor f are discussed in Section 5.

Conformal metrics are included in the more general class of length-spaces, for which it is known that the infimum in Definition 1.1 is in fact a minimum [7, Theorem 2.5.23]. That is, for all x,yM there exists a path γΓM(x,y) such that DM,f(x,y)=|γ|f, called a minimizing geodesic – and shortened to geodesic in this paper for brevity. Denote ΓM,f(x,y) the set of such geodesics between two endpoints x and y along with ΓM,f=xyMΓM,f(x,y) the set of all geodesics w.r.t. the conformal metric. We discuss in Section 2 the regularity of geodesics w.r.t. DM,f and show in Proposition 2.4 that under the aforementioned assumptions on M and f, geodesics have positive reach that is lower bounded by an explicit constant depending on the reach of the domain and on the conformal factor. In particular, any geodesic may be parameterized as a 𝒞1,1 curve with an explicit upper bound on the Lipschitz constant of its first derivative.

We then show in Section 3 that the conformal metric can be approached using polygonal paths on a weighted graph built from a point cloud XM, provided that the graph only contains edges of length at most some threshold r and that X is close to M in Hausdorff distance. The small edges condition ensures that paths on the graph cannot venture too far outside the domain. This kind of construction is the same as the one used for the Isomap algorithm [5], although we allow more generality by adapting the weights to the conformal factor f. When f=1 and M is a geodesically convex 𝒞2 submanifold, [5] provides a relative error bound of order r2τ2+ρr where τ is the minimum radius of curvature of M and ρ denotes the Hausdorff distance between M and X. The term depending on ρ can be made quadratic as shown in [2], where an assumption called geodesic smoothness that is slightly weaker than that of a positive reach allows to obtain a bound of order Ar+ρ2r2 where A depends on the assumption. This assumption however lacks precision when comparing distances at a local scale which results in the first term being of order r instead of r2. By using a positive reach assumption instead, the upper bound can be further improved to r2τ2+ρ2r2 according to [3] where τ is the reach of the domain, although the setup also implicitly assumes that the domain M is a smooth manifold isometric to a convex domain. Going back to our setup, we adapt these prior works to fit any conformal change. Under some condition on the weight function used, that in particular always holds for the induced metric, we establish in Theorem 3.5 the same upper bound on the approximation error as in [3], that is r2τ2+ρ2r2 where τ is the explicit lower bound on the reach of any geodesic provided by Proposition 2.4. This result emphasizes the fact that the only assumption on the domain needed for this level of precision is that of a positive reach. The approximation error can thus be made proportional to the Hausdorff distance between the point cloud and the domain by choosing appropriately rτρ. When the conformal factor f is unknown, replacing it with an estimate g does not alter the results provided that g is close enough to f, as shown in Lemma 3.6.

Assuming that X=Xn is the outcome of n1 i.i.d. samples from a d-standard measure μ over M, we study in Section 4 the estimator of DM,f built on Xn following the construction of Section 3. This estimator is shown in Theorem 4.2 to converge to DM,f at a rate of n1/d provided that f is known or can be estimated with same rate. This rate follows from Theorem 3.5 and the fact that Xn is known to converge to M in Hausdorff distance at a rate of n1/d. In particular, this allows for efficient estimation of the induced metric with the sole assumption that M has positive reach. This convergence is shown using ball graphs. However, practical estimation is made easier by using nearest-neighbors graphs instead, in part because it does not require to know the intrinsic dimension d to obtain an optimal convergence speed. For this reason, we show in Theorem 4.5 that it is possible to retrieve the same convergence speed when replacing the ball graph in the estimator with a k-nearest-neighbors graph with kn. To do so, we establish an equivalence with high probability between nearest-neighbors graphs and ball graphs when their respective parameters are properly scaled and the underlying measure is d-Ahlfors, see Proposition 4.4. Finally, the nearest-neighbors estimator of the conformal distance between two fixed points may be computed in 𝒪(n2) if the time complexity of evaluating f is considered constant. Under the stronger assumption that M is a 𝒞k submanifold of dimension d with k2, the minimax optimal convergence rate for the induced metric is known to be of order nk/d [1]. When only assuming positive reach and no differential structure on M, the discussion of the optimal minimax rate proves to be harder as we are not able to match the upper bound of n1/d and obtain a lower bound of order n1/(d1/2) instead, see Theorem 4.6. We discuss with more details the comparison between our setup and the 𝒞k case in Section 4.4.

Technical proofs are deferred to the appendix which is available in the full version [17].

2 Regularity of the geodesics for the conformal metric

Recall that the term “geodesic” refers in this paper to a curve that achieves a global minimum of the conformal length. In this section we study the regularity of the geodesics w.r.t. DM,f. We show that geodesics are 𝒞1,1 curve with reach bounded from below by a constant depending only on τM, κ and fmin. This regularity property is crucial to obtain a good approximation of the geodesics by polygonal paths. The reach of a set can be characterized through the local distortion of the induced metric compared to the Euclidean metric.

Lemma 2.1 ([6, Theorem 1]).

The reach of M may be expressed as

τM=sup{r>0:x,yM,xy<2rDM(x,y)2rarcsin(xy2r)}.

Given a path γΓM parameterized over an interval I and without self-intersection, denote τγ the reach of the curve γ(I)N along with Dγ=Dγ(I) the induced metric over the curve for short. Dγ(x,y) is nothing more than the length of the curve γ(I) between two intermediate point x and y. In particular if x and y are the endpoints of γ then Dγ(x,y)=|γ|. One consequence of Lemma 2.1 is that the length of a geodesic between two points at most 2τM apart is upper bounded by the length of an arc of radius τM between both points. That is, if x,yM and xy<2τM then

DM(x,y)2τMarcsin(xy2τM). (2)

Moreover, if γ is a geodesic, it then induces a geodesic between any of the points it goes through, which implies that Dγ is exactly the restriction of DM to the curve γ. Then, another consequence of the characterization of Lemma 2.1 is that the reach of M is the minimal reach of any geodesic, that is

τM=infγΓMτγ.

We now introduce a notion of reach associated with the conformal deformation of M by f using the same point of view of the metric and its geodesics.

Definition 2.2.

The conformal reach of M via f is defined as the minimal reach of any geodesic w.r.t. the conformal metric, that is

τM,f=definfγΓM,fτγ.

In the case of the induced metric this notion coincides with the usual notion of reach, that is τM,1=τM. The characterization given by Lemma 2.1 also holds for the conformal reach.

Proposition 2.3.

The conformal reach of M via f may be expressed as

τM,f=sup{r>0:x,yM,γΓM,f(x,y),xy<2r|γ|2rarcsin(xy2r)}. (3)

Beware that Equation 3 involves geodesic w.r.t. the conformal metric DM,f, but compares their Euclidean length – not conformal – to the one of an arc of radius r. The proof is straightforward and included in the full version [17]. Using Proposition 2.3, we are able to lower bound the reach of any geodesic w.r.t. DM,f.

Proposition 2.4.

Assume that M has positive reach τM>0 and that f is κ-Lipschitz and lower bounded by fmin>0. Then any conformal geodesic γ w.r.t. DM,f has positive reach τγ>0. Precisely, the conformal reach of M via f is lower bounded as follows.

τM,f𝒯M,fwhere𝒯M,f=defmin(τM2,fmin8κ).

The reasoning behind Proposition 2.4 is the following. If the reach of a geodesic γ w.r.t. DM,f is small compared to τM, then according to Proposition 2.3 there exists a path in M significantly shorter than γ Euclidean-wise. If τγ is also small compared to fmin/κ, then this path is shown to also have a shorter conformal length than γ due to the properties of f, which implies a contradiction with the geodesic nature of γ. This reasoning is detailed in [17, Appendix B.2]. Now, consider an arc-length parameterized geodesic γ:IM w.r.t. DM,f, i.e., such that γ˙=1 almost everywhere over I. Being a geodesic, γ has no self-intersection. Then, stating that γ has positive reach is equivalent to stating that γ is a 𝒞1,1 curve, i.e., that γ˙ is Lipschitz w.r.t. the angular distance. Precisely, for all t,sI,

(γ˙(t),γ˙(s))|ts|τγ. (4)

See [10, Remark 4.20] and [15, Theorem 4] for references. Equation 4 allows to obtain a finer control on the approximation error of the polygonal paths on the graph by upper bounding efficiently the difference between small successive steps γ(t)γ(tδ) and γ(t+δ)γ(t) of a geodesic path.

Lemma 2.5.

Let γ:[0,|γ|]N be an arc-length parameterized curve without self-intersection and with positive reach τγ. Then for all t0[0,|γ|] and δ(0,π2τγ] such that [t0δ,t0+δ][0,|γ|], the angle between the velocity vector of γ at t0 and the direction from γ(t0) to γ(t0+δ) is upper bounded as follows:

(γ(t0+δ)γ(t0),γ˙(t0))δ2τγ. (5)

Moreover, denoting v=γ(t0)γ(t0δ) and v+=γ(t0+δ)γ(t0), the difference between small steps of the path on both side from t0 is upper bounded as follows:

v+v+vv1τγmin(v+,v). (6)

Lemma 2.5 is key to obtain an approximation error of the conformal metric proportional to the Hausdorff distance between the domain and a point cloud. A proof is provided in [17, Appendix A.1] and Equation 5 is illustrated by Figure 1.

Figure 1: Bounding the angular velocity of a path with positive reach.

3 Polygonal approximation of the conformal metric

Consider a point cloud XM of points sampled from the domain. If the point cloud approximates well the domain, it is possible to estimate the conformal distance over M through weighted polygonal paths built over X within a small margin of error. Assuming that f is known, the edges of the polygonal path are weighted using f to approximate the conformal distance between their endpoints. The degree of approximation of M by X is measured using the Hausdorff distance

dH(M,X)=defmax(supxMd(x,X),supxXd(x,M))

which simplifies to dH(M,X)=supxMd(x,X) assuming that XM. By definition, any point in M is at distance at most dH(M,X) from a point in X.

The idea behind the polygonal approximation is the following. Consider a geodesic γΓM,f(x,y) between two points x,yM. If dH(M,X) is small, there exists a polygonal path over X that follows closely the trajectory of γ. Assuming that the edges of this path are equipped with appropriate weights to simulate the conformal distance between their endpoints, the total weight of the polygonal path should be close to the conformal length |γ|f. Moreover, since γ is a geodesic, polygonal paths should not be able to have a weight much smaller than |γ|f. This is ensured by using only short edges, which allows the weights to approximate well the conformal length by preventing shortcuts outside the domain. In the end, the shortest weighted path on the graph is expected to retrieve |γ|f=DM,f(x,y).

3.1 Weighted graphs

Let us now describe formally this construction. The polygonal approximation of DM,f is defined as the metric of an appropriate weighted graph on a point cloud X.

Definition 3.1.

Let XN be a finite point cloud.

  • For all r>0, the r-ball graph over X is denoted Gr(X) and is the graph of vertex set X and with an edge between points x and y if and only if xyr.

  • For all integer k1, the k-nearest-neighbors graph (or k-NN graph) over X is denoted 𝒢k(X) and is the graph of vertex set X with an edge between two points x and y if and only if x (or y) is among the k nearest points of X to y (or x) excluding self.

In both cases, the parameter r or k is referred to as the threshold of the graph.

Ball graphs are more convenient to study whereas NN graphs are more practical, see Section 4.2. We define the polygonal metric in both contexts. The graph used is equipped with a weight function to approximate the conformal length of its edges.

Definition 3.2.

Given a function f:N+, consider the weight functions

wf,q(x,y)=defxy2(q1)(f(x)+2k=2q1f(qkq1x+k1q1y)+f(y))

defined for any q2 and x,yN, along with

wf,(x,y)=defxy01f((1t)x+ty)dt.

The parameter q{2,,} is referred to as the resolution of the weights.

The weight function wf,q is meant to approximate the conformal distance between the endpoints of an edge. Proposition 3.3 below shows that it is indeed the case when the endpoints are close, which is the reason why graphs with small edges are used. Recall that we have assumed without loss of generality that f is defined over the whole space, allowing its evaluation outside M when q2. As q grows, the weight wf,q becomes more accurate and converges to the weight with infinite resolution wf,, the latter being exactly the conformal length of the straight path. However, the computational cost is linear with q and there is no closed-form formula for wf, in general. On the other hand,

wf,2(x,y)=xyf(x)+f(y)2

is the simplest choice for the weights and may be more suitable if evaluating f is possible only at points in X. Note that the weight wf,q is the optimal approximation of wf, using only q samples of the Lipschitz function f. Under stronger assumptions on f such as 𝒞k regularity, other definitions would be better suited.

Proposition 3.3.

For all x,yM such that xyτM,f,

|1wf,q(x,y)DM,f(x,y)|κ4fminxyq1+xy216𝒯M,f2. (7)

and we denote δq(xy) this upper bound. The first term in Equation 7 is to be interpreted as 0 if q= and represents the offset between wf,q and wf,, whereas the second term represents the offset between wf, and DM,f.

Proposition 3.3 shows that the conformal metric DM,f may be approximated locally by the weights wf,q. Note that for fixed resolution q in the r-ball graph, the distortion between the weights and the conformal distances is linear in r. However, by choosing q to be inversely proportional to r, the distortion becomes quadratic in r. The proof for Proposition 3.3 is provided in [17, Appendix B.3]. We now introduce the polygonal approximation of the conformal metric as the metric of the weighted graph built on X.

Definition 3.4.

Consider a point cloud XN, function f:N+ and parameters r>0 or k1 and q{2,,}. The polygonal metric associated with these parameters is defined between two points x,yN as

D^X,f(x,y)=defmin(x0,,xK)k=0K1wf,q(xk,xk+1) (8)

where the minimum is taken over the set of paths (x0,,xK) such that x0=x and xk=y in the graph G that is chosen either as the r-ball graph Gr(X{x,y}) or the k-NN graph 𝒢k(X{x,y}).

The choice of a ball graph or a NN graph along with the threshold r or k and the resolution q of the weights are left implicit when writing D^X,f to avoid heavy notations. Note that when the endpoints x and y do not belong to the point cloud, the distance D^X,f(x,y) is computed by adding them to the graph. As a result, D^X,f induces a distance over X but not over M. Indeed, when considering endpoints outside X, D^X,f may not satisfy the triangular inequality due to the set of possible paths depending on the endpoints.

3.2 Metric approximation

To evaluate how efficient is the approximation of a metric, the error between the true distances and their estimation may be measured using either of the multiplicative loss functions

,M(D,D)=defsupxyM|D(x,y)D(x,y)D(x,y)D(x,y)|andl,M(D|D)=defsupxyM|1D(x,y)D(x,y)|.

In the case where D takes infinite values – which happens for instance when D is the metric of a non-connected graph – we let ,M(D,D)=1 and l,M(D|D)=+. The inequality

,M(D,D)l,M(D|D),M(D,D)1,M(D,D) (9)

holds in general, so that both losses are equivalent. The loss ,M is however easier to manipulate in some situations as it is symmetric and upper bounded by 1. Thanks to the regularity of geodesics stated by Proposition 2.4 and the local approximation of the conformal metric by the weights wf,q stated by Proposition 3.3, we are able to show that the conformal metric DM,f is approximated by the polygonal metric from Definition 3.4 using the r-ball graph.

Theorem 3.5.

Let XM be a point cloud, r>0 and q{2,,} two parameters. Assume that 4dH(M,X)r𝒯M,f. Then the approximation D^X,f defined in Definition 3.4 using the r-ball graph with resolution q satisfies

l,M(D^X,f|DM,f)132𝒯M,frq1+r28𝒯M,f2+56dH(M,X)2r2. (10)

The first term in Equation 10 is to be interpreted as 0 if q=.

Let us describe the reasoning behind Theorem 3.5. Given xyX, paths in Gr(X) cannot create significant shortcuts outside M as rτM,f. This is illustrated by Proposition 3.3 from which it can be deduced that

D^X,f(x,y)(1δq(r))DM,f(x,y) (11)

and, assuming that xyr,

D^X,f(x,y)(1+δq(r))DM,f(x,y). (12)

As for when xy>r, consider a geodesic γΓM,f(x,y). Decompose γ into sections of length at most r2dH(M,X) and for each intermediate point select a point in X at distance at most dH(M,X). This process draws a polygonal path in Gr(X{x,y}) as it uses edges of length at most r. Summing the approximation error from Proposition 3.3 between each edge of this path and the corresponding section of γ eventually yields the upper bound

D^X,f(x,y)(1+δq(r)+c1dH(M,X)𝒯M,f+c2dH(M,X)2r2)DM,f(x,y) (13)

when xy>r and where c1 and c2 are universal constants. The positive reach of γ and Lemma 2.5 play a crucial role in obtaining terms of order dH(M,X)/𝒯M,f and dH(M,X)2/r2 instead of dH(M,X)/r. Together, Equations 11, 12, and 13 eventually imply Equation 10. The details of this reasoning are provided in [17, Appendix B.4]. The upper bound in Equation 10 is made proportional to dH(M,X) by setting

r𝒯M,fdH(M,X)andq𝒯M,fdH(M,X).

In the case of the induced metric with f=1, the first term in the right-hand side of Equation 10 disappears, and the error is of order r2/τM2+dH(M,X)2/r2 similarly to the one obtained in [3]. In the general conformal case, we keep this magnitude of error by setting the resolution q to be at least of order 1/r. If it is not possible to evaluate f outside the point cloud X, setting q=2 instead yields an error of order r/𝒯M,f+dH(M,X)2/r2 which is slightly worse. A similar upper bound was achieved in [2] for the induced metric and the term linear in r was due to the geodesically smooth assumption used in the paper being slightly weaker than a positive reach assumption. In particular, the latter allows for an efficient local estimation in the form of Equation 12. The main takeaway of Theorem 3.5 is that the crucial assumption to achieve an approximation error proportional to dH(M,X) is the positive reach. In particular, the domain need not be 𝒞2, or even a submanifold.

3.3 Unknown conformal factor

In general, f may not be known and needs to be estimated from the data. The polygonal metric D^X,g from Definition 3.4 can be defined for any function g:N+ without the need of Lipschitz and lower bound assumptions. Then, the approximation error between D^X,g and DM,f is upper bounded by the sum of the error w.r.t. the conformal factor and the error w.r.t. the domain.

Lemma 3.6.

Let f:N+ a function lower bounded by fmin, XM a point cloud and g:N+ such that gf12fmin. Then

,M(D^X,g,DM,f)2fmingf+2,M(D^X,f,DM,f). (14)

This result holds regardless of the type of graph, threshold and resolution as long as they are shared between D^X,f and D^X,g.

The proof of Lemma 3.6 consists in straightforward computations and is deferred to [17, Appendix B.5]. As a consequence, in the context of estimation of the domain M by a point cloud Xn as in Section 4 and of the conformal factor f by a function fn:N+, the rate of convergence of D^Xn,fn towards DM,f is the slowest rate of convergence among that of D^Xn,f towards DM,f and that of fn towards f. Recall that fn is not required to satisfy the Lipschitz and lower bounded assumptions for the polygonal metric D^Xn,fn to be defined and for Lemma 3.6 to hold. It may also be defined only over Xn if the resolution is set to q=2.

4 Estimation from random samples

In this section we transpose Theorem 3.5 to a probabilistic setup where the point cloud X is replaced with a random point cloud Xn consisting of n i.i.d. samples from a probability measure μ with support M. The following assumptions on μ are needed to ensure that Xn covers M efficiently as n grows, allowing to deduce explicit convergence rates for the estimator D^Xn,f from Theorem 3.5.

Definition 4.1.

Consider a probability measure μ with support MN and d2.

  • The measure μ is d-standard with lower constant cμ>0 if for all xM and r>0,

    μ(B(x,r))cμrd1

    where B(x,r) denotes the open ball centered at x with radius r.

  • The measure μ is d-Ahlfors with lower and upper constants cμ>0 and Cμ>0 if for all xM and r>0,

    cμrd1μ(B(x,r))Cμrd.

If μ is d-standard with lower constant cμ, we also denote Lμ=cμ1/d which is related to the size of the support. The definition ensures that μ(B(x,Lμ))=1 for all xM, hence Lμdiam(M). Moreover, d acts as the intrinsic dimension of the support M of μ. For instance, any measure with a density ρ w.r.t. the volume measure of a submanifold of N of dimension d is d-Ahlfors if ρ is bounded above and below. The d-standard assumption ensures that the random point cloud Xn converges to M in Hausdorff distance. Ahlfors regularity is a stronger assumption and is needed to show the equivalence between ball graphs and NN graphs in Proposition 4.4.

4.1 Convergence of the ball graph estimator

We first discuss the case of a ball graph estimator. It is known that if μ is d-standard, then dH(M,Xn) is of order Lμ(log(n)/n)1/d at most, see [17, Appendix A.2]. This convergence combined with Theorem 3.5 allows to derive convergence rates for the estimation of DM,f.

Theorem 4.2.

Assume that Xn is the result of n i.i.d. samples from a d-standard probability measure μ with support M. Consider the estimator D^Xn,f from Definition 3.4 using the r-ball graph with resolution q where r and q are specified below. Then there exists a constant n0 depending on Lμ, 𝒯M,f and d such that for all nn0 the following holds.

  • If r=8Lμ𝒯M,f(log(n)n)12d and q1+4𝒯M,fr, then

    𝔼[,M(D^Xn,f,DM,f)]16Lμ𝒯M,f(log(n)n)1d. (15)
  • If r=8Lμ2/3𝒯M,f1/3(log(n)n)23d and q=2, then

    𝔼[,M(D^Xn,f,DM,f)]8(Lμ𝒯M,f)23(log(n)n)23d. (16)

The first case in Theorem 4.2 includes q=. There is no use setting q to be greater than the indicated threshold of order 𝒯M,f/r, as the term in the upper bound depending on q becomes negligible past this threshold. Note that the optimal choice for r and q requires the knowledge of Lμ, 𝒯M,f and most importantly d. Theorem 4.2 is stated with these choices of parameters to highlight the optimal theoretical dependency in these constants. For practical purposes, the knowledge of Lμ and 𝒯M,f is not actually needed as, in general, any choice of r(log(n)/n)1/2d and q1/r yields a convergence rate of (log(n)/n)1/d. Likewise, any choice of r(log(n)/n)2/3d and q=2 yields a convergence rate of (log(n)/n)2/3d. It is not possible however to get rid of the dependency in d for the range parameter r without altering the convergence rate. To circumvent this issue, one may use the NN graph instead, for which the optimal choice of the parameter is shown in Section 4.2 to be k=n which does not depend on d. Theorem 4.2 is derived directly from Theorem 3.5 and the convergence of Xn to M in Hausdorff distance. The precise computations are deferred to [17, Appendix C.1]. In the case of the induced metric, the weight function wf,q becomes the Euclidean distance regardless of the resolution and 𝒯M,f is replaced with τM.

Corollary 4.3.

Under the same assumptions as in Theorem 4.2 and when f=1, there exists a constant n0 depending on Lμ, τM and d such that for all nn0, setting r=8LμτM(log(n)/n)1/2d, the estimator D^Xn,1 satisfies

𝔼[,M(D^Xn,1,DM)]16LμτM(log(n)n)1d.

Recall that in the case of a submanifold of class 𝒞k with k2 and dimension d, the optimal convergence rate for the estimation of the induced metric is nk/d [1]. Corollary 4.3 extends the upper bound to any set of positive reach with the convergence rate n1/d.

4.2 Convergence of the nearest-neighbors graph estimator

We now treat the case of a NN graph estimator, by observing that for adequate choice of r and k, the r-ball graph and k-NN graph are similar. Indeed, assuming that μ is d-Ahlfors regular, a ball of radius r is expected to contain between cμnrd and Cμnrd points from Xn.

Proposition 4.4.

Let μ be a d-Ahlfors measure as defined in Definition 4.1 and Xn a point cloud sampled i.i.d. from μ. Let k1, ε(0,1) and define

r=((1ε)kCμ(n1))1dandr+=(11εkcμ(n1))1d.

Then with probability at least 12neε2k/2, the k-NN graph 𝒢k(Xn) is enclosed between two ball graphs Gr(Xn) and Gr+(Xn), that is

(Gr(Xn)𝒢k(Xn)Gr+(Xn))12nexp(ε22k)

where the inclusion refers to the inclusion of edge sets.

Proposition 4.4 shows that if r and k are chosen such that knrd, the k-NN graph and the r-ball graph are very similar with high probability. This result stems from a common intuition and a detailed proof is provided in [17, Appendix A.3] for completeness. Theorem 4.2 is then extended to k-NN graphs by choosing knlog(n), which does not depend on d.

Theorem 4.5.

Assume that Xn is the result of n i.i.d. samples from a d-Ahlfors probability measure μ with support M. Consider the estimator D^Xn,f from Definition 3.4 using the k-NN graph with parameters k=nlog(n) and q=n1/4. Then there exists a constant n0 depending on Lμ, 𝒯M,f and d such that for all nn0 the following holds.

𝔼[,Xn(D^Xn,f,DM,f)]C(log(n)n)1d

where C is a constant depending on Lμ and 𝒯M,f.

Notice that in Theorem 4.5 the loss is over Xn instead of M like in Theorem 4.2. The same result could be stated over M, although the proof would be more tedious and is therefore omitted here. Recall that no knowledge on either d, cμ, Cμ, τM, κ or fmin is necessary to compute the estimator, so that it can be used in practice. Setting the resolution q to be (n/log(n))1/2d would be sufficient to achieve the same upper bound, however this choice requires the knowledge of d. On the other hand, when setting the resolution to q=2 the optimal choice of k can be shown similarly to be k=n1/3log(n)2/3 and to yield a convergence rate of order (log(n)/n)2/3d. Theorem 4.5 is a direct consequence of Theorems 4.2 and 4.4 and the precise computations are provided in [17, Appendix C.2]. Regarding the case of the induced metric, the same statement as in Corollary 4.3 holds for NN graphs. Namely, the estimator D^Xn,1 defined over the k-NN graph with k=nlog(n) converges to DM at rate (log(n)/n)1/d.

Let us now discuss the algorithmic complexity of the k-NN estimator with resolution q. In general, building the k-NN graph over a point cloud X of size n is done in 𝒪(n2N) time when the ambient dimension N is large. Now, consider two points x,yN and assume that f can be evaluated at any point with cost cf. Computing the edges of the graph 𝒢k(X{x,y}) takes 𝒪(nkqcf) time as the amount of edges in the graph is 𝒪(nk) and the weight of each edge uses q evaluations of f. Finally, computing the infimum that defines DX,f(x,y) in Definition 3.4 using Dijkstra’s algorithm takes 𝒪(nlog(n)+nk) time. Overall, if k=nlog(n) and q=n1/4, the time complexity is 𝒪(n2N+n7/4log(n)1/2cf).

4.3 Minimax lower bound

We now study the worst case performance of any estimator of the induced metric DM.

Theorem 4.6.

Denote 𝔇n the set of all estimators D^ of the induced metric based on n samples, that given any point cloud X of n points in N provides a function D^X:N×N+. Let 2dN, L,τ>0 and (d,L,τ) be the set of all d-standard measures μ with LμL and support MμN that has positive reach lower bounded by τ. Then there exists two constants C>0 and n0 depending on d, L and τ such that for all nn0,

infD^𝔇nsupμ(d,L,τ)𝔼Xμn[,Mμ(D^X,DMμ)]C(1n)1d1/2. (17)

Notice that Theorem 4.6 only addresses the case of the induced metric. This is not a loss of generality and in fact highlights the fact that the conformal change does not make the problem any harder, as we have established in Section 2 that geodesics have the same regularity as in the case of the induced metric. Given any other function f satisfying the assumptions for a conformal metric, the same lower bound may be obtained with a similar reasoning as what follows, albeit with more technicalities. The rate n1/(d1/2) is faster than the rate n1/d obtained in Theorems 4.2 and 4.5, although the difference becomes negligible when d is large. The nature of the minimax convergence rate remains therefore open. Under stronger assumptions on the domain, this question is already solved – see [1] – which we discuss in Section 4.4.

Theorem 4.6 is based on Le Cam’s method [19], for which a statement adapted to our setup is given in [17, Lemma C.1]. The method consists in finding two measures μ1 and μ2 in (d,L,τ) that are at most 1/n apart in total variation distance and such that the relative difference between DM1 and DM2 is of order at least n1/(d1/2).

Consider μ1 the uniform probability on the cube M1=[αL,αL]d×{0}NdN where α>0. Let 0<εαLτ and consider M2 the result of removing from M1 its intersection with a ball of radius τ centered at (0,t,t,,t) for some t>αL such that the ball intersects the edge from (αL,αL,αL,,αL) to (αL,αL,αL,,αL) at two points x and y that are 2ε apart, as pictured in Figure 2. Denote μ2 the uniform probability over M2, which has reach exactly τ due to the carved area. By choosing α small enough, which depends only on d, μ1 and μ2 are d-standard with lower constant Ld. Then μ1 and μ2 both belong to (d,L,τ). The volume of the carved area is of order ε(ε2)d1 as it spans a length 2ε between x and y and a length of order ε2 for every other dimension of the cube. This implies that the total variation distance between μ1 and μ2 is of order ε2d1. Moreover, The distance from x to y goes from 2ε in M1 to 2τarcsin(ε/τ) in M2, following the red arc of radius τ in Figure 2. This implies that the relative difference between both distances is of order ε2. Choosing εn1/2d1 so that the total variation distance is at most 1/n eventually yields the desired bound. This reasoning is detailed in [17, Appendix C.3] and the reason why it fails to achieve a bound of order n1/d is discussed more in depth in the full version [17].

Figure 2: Carving an edge of the cube in 3.

4.4 Case of a smooth manifold

Recall that the minimax convergence rate for the induced metric of a 𝒞k manifold of dimension d is nk/d [1]. The methods that achieve such rates are however not computationally feasible in practice as they rely on manifold reconstruction via non-discrete sets. For instance, the optimal convergence rate in the 𝒞2 case was achieved by [3] using the tangential Delaunay complex. Precisely, these methods build a nk/d-approximation of the manifold w.r.t. the Hausdorff distance, then state that the induced metric over this reconstruction is an estimation of the original metric with an error proportional to the Hausdorff distance.

In order to get a concrete estimator, one may use such manifold reconstruction, then sample a fine nk/d-net over it which approximates the original domain with the same Hausdorff error. Our work then implies that the polygonal metric over this net would be an estimation of the original metric with minimax optimal error of order nk/d. Such construction would however be very costly as the point cloud size would grow from n to nk.

5 Practical examples of conformal factors

We discuss two examples of conformal factors associated with a measure from the literature.

5.1 Density as a conformal factor

If μ is a measure with density ρ w.r.t. the volume measure over a submanifold M, the conformal change via f=ρβ for some parameter β>0 is sometimes referred to as the Fermat distance due to the parallel with the Fermat principle in optics – that may however be observed with any conformal change. This metric has been applied to various topological data analysis and learning problems, e.g., in [11, 12], as it tends to accentuate features and disparities in the data. Moreover, the metric can be estimated in a simple fashion by using the same overall reasoning as ours but using weights of the form w(x,y)=xyα where α>1 is a parameter depending on β and d [13, 14]. However, this kind of estimation does not feature any known convergence rate. Using our estimator instead provides an alternative method with quantitative guarantees, granted that an estimator of the density is available. To this extent, density estimation is a well-studied problem with many propositions in the literature. For instance, [4] provides a kernel density estimator ρn that converges in Lp norm towards ρ at a rate of n1/d+1 under our assumptions and provided that M is a 𝒞1 submanifold and that ρ is also 𝒞1. Under these assumptions, setting fn=ρnβ yields a convergence rate of n1/d according to Lemma 3.6, at the cost of a more complex computation than the usual discrete Fermat distance studied in [13].

5.2 Distance-to-measure as a conformal factor

In general, given a parameter m(0,1), the distance-to-measure dμ,m:N+ introduced in [8] is defined for any measure μ over N. It is 1-Lipschitz and lower bounded by a positive value as long as μ has no atom, hence satisfies the assumption for our work. A slightly different setup where paths are allowed to leave the domain under a specific constraint is studied in [18], where it is argued that this metric should behave similarly to the conformal metric associated with the density but with more stability w.r.t. the measure. The distance-to-measure is shown [9] to be estimated from n i.i.d. samples of the underlying measure with convergence rate n1/2, which is faster than n1/d hence does not impact the convergence speed of the estimator of the conformal metric according to Lemma 3.6.

6 Conclusion

In this work, we have shown that under a reach assumption on the domain and Lipschitz lower bounded assumptions on the conformal change, the conformal metric has the same regularity as the induced metric in the sense of geodesics having positive reach. We have also shown that positive reach is a sufficient assumption to ensure metric estimation from a polygonal metric with error proportional to the Hausdorff distance between the point cloud and the original domain. This leads to a convergence rate of order n1/d for the estimation of the conformal metric using n i.i.d. samples from a d-standard measure, which in particular applies to the induced metric of any set with positive reach.

References

  • [1] Eddie Aamari, Clément Berenfeld, and Clément Levrard. Optimal reach estimation and metric learning. The Annals of Statistics, 51(3):1086–1108, 2023-06. doi:10.1214/23-AOS2281.
  • [2] Catherine Aaron and Olivier Bodart. Convergence rates for estimators of geodesic distances and Frèchet expectations. Journal of Applied Probability, 55(4):1001–1013, 2018-12. doi:10.1017/jpr.2018.66.
  • [3] Ery Arias-Castro, Adel Javanmard, and Bruno Pelletier. Perturbation Bounds for Procrustes, Classical Scaling, and Trilateration, with Applications to Manifold Learning. Journal of Machine Learning Research, 21(1):498–534, 2020. URL: http://jmlr.org/papers/v21/18-720.html.
  • [4] Clément Berenfeld and Marc Hoffmann. Density estimation on an unknown submanifold. Electronic Journal of Statistics, 15(1):2179–2223, 2021-01. doi:10.1214/21-EJS1826.
  • [5] Mira Bernstein, Vin Silva, John Langford, and Joshua Tenenbaum. Graph Approximations to Geodesics on Embedded Manifolds, 2000-12-20. URL: https://api.semanticscholar.org/CorpusID:10751942.
  • [6] Jean-Daniel Boissonnat, André Lieutier, and Mathijs Wintraecken. The reach, metric distortion, geodesic convexity and the variation of tangent spaces. Journal of Applied and Computational Topology, 3(1):29–58, 2019-06-01. doi:10.1007/s41468-019-00029-8.
  • [7] Dmitri Burago, Yuri Burago, and Sergei Ivanov. A Course in Metric Geometry, volume 33 of Graduate Studies in Mathematics. American Mathematical Society, 2001-06-12. doi:10.1090/gsm/033.
  • [8] Frédéric Chazal, David Cohen-Steiner, and Quentin Mérigot. Geometric Inference for Measures based on Distance Functions. Foundations of Computational Mathematics, 11(6):733, 2011. doi:10.1007/s10208-011-9098-0.
  • [9] Frédéric Chazal, Pascal Massart, and Bertrand Michel. Rates of convergence for robust geometric inference. Electronic Journal of Statistics, 10(2):2243–2286, 2016-01. doi:10.1214/16-EJS1161.
  • [10] Herbert Federer. Curvature measures. Transactions of the American Mathematical Society, 93(3):418–491, 1959. doi:10.1090/S0002-9947-1959-0110078-1.
  • [11] Ximena Fernández, Eugenio Borghini, Gabriel Mindlin, and Pablo Groisman. Intrinsic persistent homology via density-based metric learning. Journal of Machine Learning Research, 24(1):75:3341–75:3382, 2023-01-01. URL: https://jmlr.org/papers/v24/21-1044.html.
  • [12] Nicolas Garcia Trillos, Anna Little, Daniel McKenzie, and James M. Murphy. Fermat Distances: Metric Approximation, Spectral Convergence, and Clustering Algorithms. Journal of Machine Learning Research, 25(1):176:8331–176:8395, 2024-01-01. URL: http://jmlr.org/papers/v25/23-0939.html.
  • [13] Pablo Groisman, Matthieu Jonckheere, and Facundo Sapienza. Nonhomogeneous Euclidean first-passage percolation and distance learning. Bernoulli, 28(1):255–276, 2022-02. doi:10.3150/21-BEJ1341.
  • [14] Sung Jin Hwang, Steven B. Damelin, and Alfred O. Hero Iii. Shortest path through random points. The Annals of Applied Probability, 26(5):2791–2823, 2016-10. doi:10.1214/15-AAP1162.
  • [15] André Lieutier and Mathijs Wintraecken. Manifolds of positive reach, differentiability, tangent variation, and attaining the reach, 2024-12-06. doi:10.48550/arXiv.2412.04906.
  • [16] E. J. McShane. Extension of range of functions. Bulletin of the American Mathematical Society, 40(12):837–842, 1934. doi:10.1090/S0002-9904-1934-05978-0.
  • [17] Jérôme Taupin. Estimation of Conformal Metrics.
  • [18] Jérôme Taupin and Frédéric Chazal. Fermat Distance-to-Measure: A robust Fermat-like metric, 2025-04-03. arXiv:2504.02381.
  • [19] Bin Yu. Assouad, Fano, and Le Cam. Research Papers in Probability and Statistics, 1997. doi:10.1007/978-1-4612-1880-7_29.