Papers
Topics
Authors
Recent
Search
2000 character limit reached

Expression-Distance Metric Overview

Updated 12 July 2026
  • Expression-Distance Metric is a design principle where explicit algebraic expressions of base distances encode similarity, dependence, and classification confidence.
  • It transforms conventional dissimilarities into valid metrics using methods like angular transforms and normalization, enabling robust indexing, clustering, and embedding.
  • The approach enhances interpretability and invariance across applications—from metric learning and probability measures to symbolic transformations and set comparisons.

Searching arXiv for the supplied topics and papers to ground the article in current records. Across the cited literature, “Expression-Distance Metric” can be interpreted as a family of constructions in which similarity, dependence, or classification confidence is written explicitly as a function of distances, ratios of distances, or expectations of distances, rather than through unconstrained logits or purely coordinate-based summaries. In this sense, the term covers correlation-derived metrics for expression profiles, distance-ratio objectives in metric learning, metrics on sets and probability measures built from pairwise distances, point-to-set distances such as Scott distance, and lifted distances on symbolic transformations such as finite-state transductions (Kim et al., 2022, Lyons, 2011, Aiswarya et al., 2024).

1. Conceptual scope

The unifying feature is that the primary object is an explicit distance expression. In metric learning, this appears as a probability model written directly in terms of distances to class representatives; in dependence testing, as expectations of centered distance kernels; in set and distribution comparison, as averages or norms built from pairwise distances; and in transduction comparison, as the supremum of output distances over all inputs (Kim et al., 2022, Lyons, 2011, Fujita, 2011, Aiswarya et al., 2024).

This suggests a broad but technically coherent interpretation: an expression-distance metric is not a single canonical metric, but a design principle in which the comparison rule is itself an algebraic expression over a base metric or similarity. Some constructions yield genuine metrics; others yield metric-like quantities, losses, or probabilistic scores whose geometric meaning is explicit.

Setting Distance expression Key property
Correlation profiles 1ρxy\sqrt{1-\rho_{xy}}, 1ρxy2\sqrt{1-\rho_{xy}^2} True metrics
Metric learning dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}} Scale-invariant probabilities
Finite sets f(A,B)f(A,B) from averaged pairwise distances Metric on non-empty finite subsets
Probability measures 12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)} Genuine metric in strong-negative-type spaces
PDFs in L2L^2 22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)} Metric with Gaussian-mixture closed form
Transductions supwd(T(w),S(w))\sup_w d(T(w),S(w)) Metric on partial functions

A recurring consequence is interpretability of geometry. Distances become the primary quantities, and relative position, scaling behavior, or transport structure can often be read directly from the defining expression.

2. Correlation-derived metrics for expression profiles

In expression analysis, a profile is represented as a vector x=(x1,,xn)x=(x_1,\dots,x_n), and the Pearson correlation coefficient is

ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.

A central distinction in this literature is between a dissimilarity and a metric. The widely used Pearson dissimilarity 1ρxy2\sqrt{1-\rho_{xy}^2}0 is not a metric, because the triangle inequality can fail. The same is true for the sign-invariant form 1ρxy2\sqrt{1-\rho_{xy}^2}1. By contrast, the paper proves that

1ρxy2\sqrt{1-\rho_{xy}^2}2

is a metric, and that the sign-invariant

1ρxy2\sqrt{1-\rho_{xy}^2}3

is also a metric (Solo, 2019).

A second line of work systematizes these constructions through angular distance and metric-preserving transforms. For cosine similarity, Pearson correlation, or Spearman correlation 1ρxy2\sqrt{1-\rho_{xy}^2}4, the angular distance

1ρxy2\sqrt{1-\rho_{xy}^2}5

is a metric. Applying increasing, concave transforms yields further metrics. This produces two classes. In the first, anti-correlated objects are maximally far apart, with examples

1ρxy2\sqrt{1-\rho_{xy}^2}6

In the second, correlated and anti-correlated objects are collated, with examples

1ρxy2\sqrt{1-\rho_{xy}^2}7

The same formulas apply to Spearman correlation by replacing 1ρxy2\sqrt{1-\rho_{xy}^2}8 with 1ρxy2\sqrt{1-\rho_{xy}^2}9 (Dongen et al., 2012).

For centered data, Pearson correlation is the cosine similarity of centered vectors, so the sine transform yields the metric

dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}0

This is important in practice because many clustering and embedding procedures implicitly assume metric structure. The literature therefore separates correlation-based quantities that are merely convenient dissimilarities from those that satisfy the triangle inequality and can support metric-based indexing, clustering, and embedding (Solo, 2019, Dongen et al., 2012).

3. Learned distance formulations in embedding spaces

In metric learning, the “expression-distance” idea appears when probabilities and losses are written directly in terms of distances to class representatives. In the prototypical-network setting, if dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}1 is the prototype of class dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}2 and dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}3, the distance-ratio formulation defines

dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}4

with learnable dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}5, and optimizes cross-entropy over query points. This formulation is exactly invariant to global scaling of the embedding, because dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}6 cancels in the ratio. It also has an optimal-confidence property: if prototypes are pairwise separated, then dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}7 as dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}8, and dx,cρydx,yρ\dfrac{d_{x',c}^{-\rho}}{\sum_y d_{x',y}^{-\rho}}9 as f(A,B)f(A,B)0 for f(A,B)f(A,B)1. On CUB and mini-ImageNet, the paper reports that this formulation generally enables faster and more stable metric learning than the softmax-based formulation, with improved or comparable generalization performance (Kim et al., 2022).

A second formulation keeps the metric explicit in the input space. In generalized Mahalanobis metric learning,

f(A,B)f(A,B)2

For a triplet f(A,B)f(A,B)3, the paper defines the adversarial margin as the Euclidean distance from f(A,B)f(A,B)4 to the nearest decision boundary between the target neighbor f(A,B)f(A,B)5 and the impostor f(A,B)f(A,B)6. Its squared closed form is

f(A,B)f(A,B)7

This yields a perturbation loss that can be added to LMNN, SCML, or proxy-based methods, and the resulting enlarged adversarial margin is used to derive certified robustness and generalization guarantees via algorithmic robustness (Yang et al., 2020).

Other learned expression-distance metrics make the structural form explicit. Boosted sparse non-linear distance metric learning uses

f(A,B)f(A,B)8

with f(A,B)f(A,B)9 built as a sum of sparse rank-one updates, so that the final metric is positive semidefinite, low rank, and element-wise sparse. Nonlinearity is introduced through hierarchical expansion of interactions in the feature map (Ma et al., 2015). A different hybrid method combines a weighted Euclidean term with a class-mediated latent term: 12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}0 where 12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}1 is a soft class posterior and 12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}2 models missing-feature effects conditioned on class. This construction is designed for settings where similarity ratings and class labels both inform perceived distance (Kao et al., 2012).

4. Sets, measures, and distributions

One important strand of the literature defines distances between complex objects by averaging the base metric over their components. For non-empty finite subsets 12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}3 of a metric space 12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}4, the group-average distance

12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}5

is symmetric and satisfies the triangle inequality, but is not a metric because it does not satisfy identity. The corrected quantity

12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}6

is a metric on the collection of all non-empty finite subsets. Under the discrete metric, it reduces to the Jaccard distance, and the construction extends hierarchically to sets of sets and, by integration, to measurable and fuzzy sets (Fujita, 2011).

For probability measures and dependence structure, the central object is again an expression of distances. In a metric space 12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}7, with 12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}8 a probability measure of finite first moment,

12D(μ1μ2)\sqrt{-\tfrac{1}{2}D(\mu_1-\mu_2)}9

and the centered kernel is

L2L^20

Distance covariance is then

L2L^21

with empirical versions obtained by double-centering distance matrices. In spaces of strong negative type, L2L^22 if and only if L2L^23 and L2L^24 are independent, and

L2L^25

is a genuine metric on probability measures with finite first moments (Lyons, 2011).

Optimal transport on finite metric spaces provides another explicit expression. For L2L^26 on a finite metric space L2L^27, the Kantorovich distance equals the Kantorovich–Bernstein or Arens–Eells norm of L2L^28. On a weighted tree rooted at L2L^29,

22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}0

and for a general weighted graph it is the minimum of the corresponding tree distances over all spanning trees (Montrucchio et al., 2019).

For continuous probability densities in 22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}1, the proposed probabilistic distance metric is built from the normalized cross-information potential

22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}2

yielding

22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}3

This is a true metric on square-integrable PDFs. For Gaussian mixtures 22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}4 and 22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}5, the metric has a closed-form expression in terms of pairwise Gaussian product integrals, which enables optimization-based Gaussian mixture reduction (Sajedi et al., 2023).

Finite metric-measure spaces admit yet another higher-order construction. For a cloud 22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}6 and an 22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}7-point simplex 22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}8, the Relative Distance Distribution 22KNCP(p,q)\sqrt{2-2K_{NCP}(p,q)}9 packages the internal distance matrix supwd(T(w),S(w))\sup_w d(T(w),S(w))0 and the lexicographically ordered matrix supwd(T(w),S(w))\sup_w d(T(w),S(w))1 of distances from supwd(T(w),S(w))\sup_w d(T(w),S(w))2 to the remaining points, modulo permutations of the simplex. The Simplexwise Distance Distribution

supwd(T(w),S(w))\sup_w d(T(w),S(w))3

is an isometry invariant. Metrics on SDDs are then built via a metric supwd(T(w),S(w))\sup_w d(T(w),S(w))4 on RDDs together with Linear Assignment Cost or Earth Mover’s Distance. These metrics are Lipschitz continuous under point perturbations, and order supwd(T(w),S(w))\sup_w d(T(w),S(w))5 already distinguishes examples that share the same pairwise or pointwise distance distributions (Kurlin, 2023).

5. Point-to-set distances, generalized metrics, and symbolic transformations

Expression-distance constructions also arise when the second argument is a subset or a transformation rather than another point. On a generalized metric space supwd(T(w),S(w))\sup_w d(T(w),S(w))6, a Scott weight is a weight supwd(T(w),S(w))\sup_w d(T(w),S(w))7 that respects forward Cauchy nets and Yoneda limits. The Scott distance is

supwd(T(w),S(w))\sup_w d(T(w),S(w))8

It turns supwd(T(w),S(w))\sup_w d(T(w),S(w))9 into an approach space and recovers the original metric on singletons: x=(x1,,xn)x=(x_1,\dots,x_n)0 Its topological coreflection, the c-Scott topology, lies between the x=(x1,,xn)x=(x_1,\dots,x_n)1-Scott topology and the generalized Scott topology, and every injective x=(x1,,xn)x=(x_1,\dots,x_n)2 approach space is a cocomplete and continuous metric space equipped with its Scott distance (Li et al., 2016).

The generalized-metrics literature relaxes Fréchet’s axioms in other directions. Partial metrics and strong partial metrics allow non-zero self-distance and even negative values, while partial x=(x1,,xn)x=(x_1,\dots,x_n)3-x=(x1,,xn)x=(x_1,\dots,x_n)4etrics and strong partial x=(x1,,xn)x=(x_1,\dots,x_n)5-x=(x1,,xn)x=(x_1,\dots,x_n)6etrics compare x=(x1,,xn)x=(x_1,\dots,x_n)7-tuples rather than pairs. A partial metric x=(x1,,xn)x=(x_1,\dots,x_n)8 satisfies

x=(x1,,xn)x=(x_1,\dots,x_n)9

and induces the classical metric

ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.0

The thesis further shows that a DNA alignment scoring function can be modeled as a strong partial metric under explicit conditions on match, mismatch, and gap penalties, allowing topological and fixed-point methods to be applied to a comparative function that is not a classical metric (Assaf, 2016).

For symbolic transformations, a word metric can be lifted to a metric on partial transductions. If ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.1 are partial functions and ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.2 is a metric on words, then

ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.3

This is a metric on partial word-to-word functions. For common integer-valued edit distances, including Hamming, transposition, conjugacy, and Levenshtein-family distances, closeness and ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.4-closeness are decidable for functional transducers, so the distance is computable. The same quantity is equivalent to the diameter of a rational relation, and both are specific instances of the index problem of rational relations (Aiswarya et al., 2024).

6. Recurring principles, misconceptions, and limitations

A first recurring principle is that not every useful dissimilarity is a metric. The expression-analysis literature gives the clearest examples: ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.5 and ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.6 fail the triangle inequality, whereas ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.7 and ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.8 satisfy it (Solo, 2019). The metric-preserving-function framework sharpens this point: increasing concave transforms preserve metricity, while strictly convex transforms such as ρxy=k=1n(xkxˉ)(ykyˉ)k=1n(xkxˉ)2k=1n(ykyˉ)2.\rho_{xy} = \frac{\sum_{k=1}^n (x_k-\bar x)(y_k-\bar y)} {\sqrt{\sum_{k=1}^n (x_k-\bar x)^2}\sqrt{\sum_{k=1}^n (y_k-\bar y)^2}}.9 do not in general (Dongen et al., 2012).

A second principle is invariance. The distance-ratio formulation is exactly invariant to global rescaling of embeddings, so its loss depends on relative distances rather than norm inflation (Kim et al., 2022). SDD-based metrics are Lipschitz continuous under perturbations of the underlying points (Kurlin, 2023). The probabilistic metric 1ρxy2\sqrt{1-\rho_{xy}^2}00 is bounded in 1ρxy2\sqrt{1-\rho_{xy}^2}01, which stabilizes comparison of densities (Sajedi et al., 2023). These constructions suggest that explicit distance expressions are often chosen precisely to control undesirable dependence on scaling, ordering, or noise.

A third principle is that characterization theorems depend on geometric hypotheses. Distance covariance characterizes independence if and only if the underlying metric spaces are of strong negative type (Lyons, 2011). Scott distance captures approach-theoretic structure because Scott weights are tied to Yoneda continuity (Li et al., 2016). In finite optimal transport, explicit formulas are available on trees and extend to general graphs through minimization over spanning trees (Montrucchio et al., 2019). These are not merely computational conveniences; they delimit where the distance expression has full structural meaning.

The main limitations are likewise recurrent. Higher-order invariants such as 1ρxy2\sqrt{1-\rho_{xy}^2}02 become combinatorially more expensive as 1ρxy2\sqrt{1-\rho_{xy}^2}03 grows, even though they gain discriminative power (Kurlin, 2023). In transduction spaces, the bounded index problem for rational relations is undecidable in general, even though it becomes decidable for the edit-distance families treated in the paper (Aiswarya et al., 2024). Metric learning formulations that are geometrically cleaner may introduce extra parameters or representative-choice issues, as in the learnable 1ρxy2\sqrt{1-\rho_{xy}^2}04 of the distance-ratio model or the representative dependence of multi-shot few-shot learning (Kim et al., 2022). This suggests that the central trade-off in expression-distance design is between explicit geometry, metric validity, invariance, and tractability.

Taken together, these works present “Expression-Distance Metric” less as a single named object than as a recurring mathematical strategy: define similarity, dependence, or transformation discrepancy directly from distances native to the domain, and then study which expressions preserve metric axioms, which yield useful invariances, and which remain computable at the scale of the intended application.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Expression-Distance Metric.