Metric Selection Sensitivity in Geometric Learning

22 concepts19 papers1 proposal

When we train a machine learning model, we often implicitly assume that the underlying space of features or parameters behaves like a flat, Euclidean grid. In this familiar setting, calculating the distance between two points is straightforward: we simply draw a straight line between them.

However, modern machine learning increasingly operates on data that resists this flat assumption. Whether we are analyzing graph neural networks, comparing brain-connectivity matrices, optimizing neural network parameters, or processing 3D shapes, our data frequently lives on curved, non-Euclidean structures known as Riemannian manifolds.

To perform basic operations in these spaces—such as finding the nearest neighbor, computing a gradient, or clustering similar nodes—we must choose a metric. The metric acts as our mathematical ruler, defining how distances, angles, and volumes are calculated locally.

The core insight of a growing body of research is that this choice of ruler is not a minor implementation detail. Instead, geometric learning models exhibit extreme metric sensitivity. Selecting an inappropriate metric can distort the geometry of the data so severely that it causes optimization algorithms to stall, clustering models to collapse, and representations to lose their discriminative power.


The Ruler Defines the Space

To understand why metric selection is so critical, consider how a graph-based clustering algorithm builds relationships. To connect nodes in a graph, the algorithm must first determine which data points are close to one another in an embedding space.

If the initial metric is chosen poorly, the geometric structure collapses. For instance, Kong et al. demonstrated that when constructing graphs for high-dimensional text datasets, using standard Euclidean distance instead of cosine similarity leads to a total failure in clustering accuracy. The choice of similarity function fundamentally alters which nodes are deemed neighbors.

This sensitivity becomes even more pronounced when data or labels are scarce. As Lin et al. observed in graph-based semi-supervised learning, the stability of the entire embedding space relies heavily on manual tuning between metrics like squared Euclidean distance and cosine similarity. When only one or two labeled examples are available per class, an incorrect metric choice prevents related nodes from clustering effectively, causing the model to misclassify the remaining unlabeled data.

Euclidean Metric (Flat)          Geodesic Metric (Curved Manifold)
     o --------- o                     o . . . . . . . o
    /             \                   .                 .
   /               \                 .                   .
  o                 o               o                     o
  Straight-line distance           True distance along the surface
  ignores underlying geometry.     Respects the intrinsic structure.

This challenge is not unique to graphs. In non-parametric anomaly detection, Zhao et al. showed that the power of geometric nearest-neighbor graphs depends entirely on selecting an appropriate distance metric (such as geodesic vs. Euclidean distance) capable of capturing the true manifold of high-dimensional raw data. Similarly, in the spectral domain for 3D shape analysis, Aflalo et al. highlighted that while geometric metrics can be adjusted to balance global structure and local curvature, there is no universal formula for determining the optimal configuration for a given application.


The Complexity of Matrix Manifolds

The stakes of metric selection rise when moving from point-clouds to spaces where each data point is itself a structured matrix, such as a Symmetric Positive Definite (SPD) matrix or a point on a Grassmannian manifold. These spaces are commonly used to represent image statistics, radar signals, or brain activity patterns.

On a Grassmannian manifold (a space parameterizing linear subspaces), different definitions of distance yield entirely different analytical outcomes. Subspace metrics for multivariate dictionaries and application to EEG notes that choosing between chordal or geodesic ground metrics significantly alters the resulting set-metric values when evaluating dictionary learning algorithms.

For SPD matrices, the performance of geometric learning models fluctuates wildly depending on the chosen divergence measure. Faraki et al. extended the Vector of Locally Aggregated Descriptors (VLAD) to Riemannian manifolds and noted that navigating these spaces remains a trial-and-error process due to the lack of a universal principle for metric selection. Liu et al. reinforced this finding, showing that the performance of geometric networks is highly sensitive to the chosen distance metric across different application domains.

The underlying mathematical reason for this sensitivity often stems from how a metric handles edge cases, such as matrix singularity:

  • Singularity and Stability: When comparing large-scale graphs using quantum probability theory, Choi et al. encountered a stark trade-off: metrics like the Frobenius distance offer numerical stability for small or singular matrices, whereas geodesic metrics on Riemannian manifolds provide higher accuracy but struggle with singularity.
  • Parameterization Dependencies: Even when a generalized metric family is chosen, such as the generalized Bures-Wasserstein geometry studied by Han et al., the geometry remains heavily dependent on an arbitrary parameterizing matrix. Relying on simple heuristics to set this parameter often yields suboptimal results for complex objective functions.

Impact on Optimization and Sampling Dynamics

Metric selection does not just dictate how we measure static distances; it also governs how algorithms move through a space during optimization or probabilistic sampling.

In Riemannian optimization, the choice of metric determines the shape of the loss landscape. Spencer Kraisler demonstrated this in the context of direct policy optimization for Linear-Quadratic Gaussian (LQG) control problems. While certain system-theoretic metrics successfully resolve coordinate redundancies on quotient manifolds, they fail to provide uniform performance across all classes of control problems, proving that optimization efficiency is tightly coupled to the chosen metric structure.

Similarly, when optimizing over the non-compact symplectic Stiefel manifold, Gao et al. observed that the convergence of quasi-geodesic and Cayley transform methods depends heavily on scaling parameters within the Riemannian metric—parameters that currently lack any automated or generalized selection heuristic.

   Poorly Scaled Metric Tensor             Optimally Scaled Metric Tensor
        (Ill-conditioned)                        (Well-conditioned)

          |   .     .                             \       |       /
          |  .       .                             \      |      /
          | .         .                             \     |     /
    ------X------------->                     -------X--------->
          | .         .                             /     |     \
          |  .       .                             /      |      \
          |   .     .                             /       |       \
    Gradients oscillate wildly;             Gradients point cleanly toward
    convergence is slow or fails.           the objective; smooth convergence.

This sensitivity also plagues geometry-aware sampling algorithms. Xifara et al. analyzed Langevin diffusions on manifolds, demonstrating that the efficiency of Metropolis-adjusted Langevin algorithms is highly sensitive to the local metric tensor. While the Fisher Information Matrix is a standard heuristic choice for defining this tensor, it is rarely guaranteed to be optimal for complex, high-dimensional target distributions.

Even the parameter space of standard neural networks can be viewed through a geometric lens. Kristiadi et al. showed that tracking the underlying metric tensor allows researchers to compute measures of loss flatness that remain invariant under network reparametrization. Yet, the authors noted that a definitive criterion for selecting the most effective metric structure (e.g., choosing between the Fisher Information Matrix or alternative geometric formulations) remains an open problem.


From Manual Tuning to Learned Geometries

Because manual trial-and-error is an inefficient way to navigate metric sensitivity, recent research has shifted toward frameworks that can adaptively learn or project data into the optimal geometry.

Instead of treating the metric as a fixed hyperparameter, Cherian et al. proposed a framework to automatically learn the parameters of $\alpha\beta$-log-determinant divergences for positive definite matrices. By optimizing the metric parameters end-to-end alongside the task objective, the authors eliminated the need for manual metric selection and achieved state-of-the-art performance across diverse datasets.

Traditional Pipeline:
[Data] ---> [Manual Metric Selection (Trial & Error)] ---> [Geometric Model] ---> [Varying Performance]

Adaptive Pipeline:
[Data] ---> [Learnable Metric Parameters (\alpha, \beta)] ---> [Task Optimization] ---> [Robust Performance]

A parallel approach involves learning geometric projections that make standard metrics more effective. For example, in maritime radar target detection, Hua et al. combined Linear Discriminant Analysis with Matrix Information Geometry. Rather than searching indefinitely for a novel metric to separate target signals from sea clutter, the authors learned a mathematical projection that squashes high-dimensional data onto a lower-dimensional manifold where standard geometric measures become highly discriminative.

Ultimately, understanding metric sensitivity transforms how we design geometric models. A metric is not a passive observer of data geometry; it actively constructs it. Acknowledging this sensitivity allows researchers to move away from rigid Euclidean assumptions and toward adaptive, geometry-aware architectures.

Key Foundational Work

Statistical Computing on Manifolds: From Riemannian Geometry to Computational Anatomy (2008) — contributed 2 concept elements to this direction.
Anomaly Detection with Score functions based on Nearest Neighbor Graphs (2009) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_metric_sensitivity_11b1bdf8,
  title = {metric sensitivity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/metric-sensitivity/rdr_11b1bdf8b0fd415f9124c5c4cddd6cf3},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_metric_sensitivity_11b1bdf8_v1,
  title = {metric sensitivity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/metric-sensitivity/rdr_11b1bdf8b0fd415f9124c5c4cddd6cf3/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake