arXiv:2610.31328stat.MLOct 2026

Manuscript Offprint

arXiv:2610.31328

Deep Learning for Random Objects in Metric Spaces: Beyond Manifold Assumptions

Marcos Matabuena, Xiaokai Luo, Oscar Hernan Madrid Padilla

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Deep learning (DL) methods have substantially improved predictive performance across a wide range of downstream prediction tasks, enabling new discoveries in multiple domains. However, principled DL methods for non-Euclidean random objects remain relatively scarce, despite the growing importance of modern biomedical outcomes taking the form of probability distributions, random graphs, functions, and other random objects in metric spaces. Motivated by a new generation of digital and clinical biomarkers, we propose a deep learning framework for regression with random objects in metric spaces. Our approach operates directly on the metric structure of the response space, avoiding restrictive manifold or Euclidean embedding assumptions imposed by many existing methods. At the same time, it retains modern statistical guarantees under the stated statistical assumptions. We establish statistical consistency and convergence rates for the proposed estimator, and characterize conditions under which it can mitigate the curse of dimensionality for hierarchically compositional regression functions. Extensive simulation studies demonstrate competitive predictive performance, with gains over several competing approaches in multiple Euclidean and non-Euclidean configurations. Finally, we demonstrate the practical utility of the proposed framework in two digital health case studies with distribution-valued outcomes in Wasserstein spaces, using high-resolution accelerometry and continuous glucose monitoring data. Embedding-based deep-learning methods may be less suitable when no informative low-dimensional representation exists or when the learned embedding does not adequately preserve the intrinsic geometry of the response space.

Keywords: metric spaces; deep learning; curse of dimensionality; digital health.

1 Introduction

Technological advances in biomedicine are generating increasingly dense and nearly continuous measurements of human physiology, behavior, and environment [8]. Digital health data offer new opportunities to characterize human health at an unprecedented resolution and to develop novel personalized medicine strategies [29]. At the same time, they pose new analytical challenges that are not naturally addressed by conventional multivariate statistical methods. In many modern biomedical applications, the outcome of interest is not adequately represented by a scalar or a finite-dimensional vector, but instead takes the form of a random object belonging to a metric space (Y,d)(\mathcal{Y}, d). Examples include probability distributions, networks, trees, and other random objects for which the usual

∗^{*}Corresponding author.

†^{\dagger}MM and XL share first authorship.

Preprint.

operations of addition and scalar multiplication may not be available [33]. Random objects in metric spaces offer a natural representation for emerging digital biomarkers because they preserve aspects of physiological and behavioral variation that are often lost when high-resolution data are reduced to a few conventional summary measures.

A prominent example arises in continuous glucose monitoring (CGM). Rather than characterizing an individual's glucose profile exclusively through summary measures such as mean glucose, glucose variability, or time spent within prespecified glycemic ranges, the entire collection of glucose measurements can be represented through a glucodensity, that is, a probability distribution describing the relative amount of time an individual spends across the full range of observed glucose values [25, 26]. Similar distributional representations have been proposed for other high-resolution digital-health measurements, including accelerometer-derived physical activity, where the distribution of activity intensities provides an individualized representation without relying on prespecified physical activity thresholds [23].

Figure 1 illustrates an extension of this perspective using CGM data from three individuals. Rather than considering only the overall distribution of glucose values during the monitoring period, glucose measurements are characterized according to the time of day at which they are observed, yielding a temporal distributional representation of the daily glucose profile. This formulation is particularly appealing for physiological data collected under free-living conditions, where individuals differ in meal timing, sleep patterns, physical activity, and other daily behaviors. Consequently, exact pointwise alignment of the observed trajectories may be neither biologically meaningful nor scientifically appropriate. The distributional representation instead provides a unified statistical framework for defining biomarkers that retain relevant information about human health while enabling meaningful comparisons across individuals [12].

Figure

Figure 1: Bivariate temporal distributions derived from continuous glucose monitoring data for three participants. The horizontal axis represents time of day, and the vertical axis represents glucose concentration.

The increasing availability of distribution-valued and other non-Euclidean data has motivated the development of statistical methods for random objects in metric spaces [11]. A fundamental framework is Fréchet regression, which extends the notion of conditional expectation by defining the regression target through a conditional Fréchet mean [33]. This perspective has since led to a broad range of methods for regression, dimension reduction, variable selection, longitudinal and multilevel data, and other statistical problems involving complex random objects. Nevertheless, most existing regression procedures are either designed for relatively low-dimensional predictors or rely on specific geometric or structural assumptions about the response space. Developing flexible regression methods that simultaneously accommodate general statistical responses and high-dimensional predictors therefore remains an important challenge in contemporary applications.

Deep learning (DL) [18] is a natural candidate for addressing this problem, but DL methods for metric-space-valued responses remain comparatively underdeveloped. Several complementary deep-learning strategies have recently emerged. One approach uses an embedding-based construction. Deep Fréchet Regression first represents the relevant response structure in a low-dimensional Euclidean space, for example using ISOMAP, estimates the relationship between the predictors and the resulting coordinates using deep neural networks, and then maps predictions back to the original response space through local Fréchet regression [15]. This approach connects manifold learning and deep regression; its analysis relies on a learned low-dimensional representation followed by local Fréchet regression, so its performance depends on how well that representation captures the regression structure. Another recent strategy avoids explicitly embedding the responses into a Euclidean space.

and instead constructs predictions directly in the original metric space. The E2M framework of [43] employs a neural network to learn input-dependent weights on the probability simplex, with predictions obtained as weighted Fréchet means of the observed responses. A related approach is the deep Fréchet neural network (DFNN) framework of [16], which combines learned representations of the predictors with a global Fréchet regression output layer and establishes universal approximation and generalization guarantees for metric-space-valued responses. Both frameworks provide end-to-end learning architectures that account for the geometry of the response space without requiring an explicit Euclidean embedding of the responses. However, their predictions are defined through weighted Fréchet optimization problems, making their implementation dependent on the geometric properties of the response space and the computational tractability of the corresponding optimization problems.

A separate line of work extends global Fréchet regression to nonlinear settings using operator-based methods. In particular, nonlinear global Fréchet regression based on weak conditional expectation uses reproducing-kernel Hilbert space embeddings and covariance operators to capture nonlinear relationships involving random objects [5]. This approach provides a flexible and theoretically well-grounded framework, although its implementation requires estimating and regularizing covariance operators and related spectral quantities, which can be computationally and statistically demanding in high-dimensional or non-Euclidean settings.

Despite these advances, developing statistically flexible and computationally tractable deep learning methods for metric-space-valued responses remains challenging. Existing approaches address the lack of linear structure in the response space through geometric embeddings, weighted Fréchet regression, or operator-based constructions. These strategies provide important theoretical and methodological foundations, but also motivate alternative formulations that can directly leverage the extensive methodological and theoretical developments in scalar-valued deep learning. In particular, modern deep learning theory has established favorable approximation and convergence guarantees for regression functions exhibiting hierarchical, compositional, or intrinsically low-dimensional structure, potentially mitigating the curse of dimensionality. This raises a fundamental question: can metric-space regression be reduced to conventional scalar-valued learning problems while transferring these statistical advantages to general non-Euclidean responses?

This challenge is especially interesting in view of recent developments in scalar nonparametric regression. Classical nonparametric methods are highly flexible, but their convergence rates typically deteriorate rapidly as the dimension of the predictors increases [13, 38]. Deep neural networks, however, can behave quite differently when the regression function has additional structure. A growing body of approximation and statistical theory shows that neural networks can achieve favorable rates for functions with hierarchical, compositional, sparse, or intrinsically low-dimensional structure [41, 3, 35]. In these settings, deep architectures can substantially alleviate the classical curse of dimensionality. This naturally raises the question of whether similar advantages can be retained when the response is a general random object rather than a scalar or Euclidean vector.

Motivated by these developments, we introduce a deep learning framework for regression with responses taking values in metric spaces. Our approach builds on the anchor-based regression framework with random effects introduced by Matabuena and Cámara [29], extending its underlying principles to modern deep learning. The proposed framework is designed to retain the statistical flexibility of deep neural networks while imposing minimal structure on the response space. Rather than embedding the responses into a low-dimensional manifold or Euclidean representation, we reduce the original regression problem to a collection of standard scalar-valued learning tasks and subsequently reconstruct the target directly in the original metric space. This formulation allows each component to be estimated using conventional neural-network methods and, importantly, enables the individual models to be trained independently and in parallel.

Our contributions are threefold. First, we introduce an anchor-based deep learning framework for regression with metric-space-valued responses. The proposed approach transforms the original regression problem into a collection of scalar-valued learning tasks, thereby allowing the use of standard neural-network architectures without requiring an explicit Euclidean embedding of the responses. These learning tasks can be trained independently and in parallel, after which predictions are reconstructed in the original metric space. Second, we establish statistical consistency and convergence-rate guarantees for the proposed estimator under explicit assumptions on the response space, the regression structure, and anchor coverage. In particular, we investigate how hierarchical compositional structure in the underlying scalar regression functions influences the convergence behavior of the resulting metric-space estimator. Our analysis connects modern deep learning theory with anchor-based metric regression and identifies conditions under which favorable high-dimensional learning rates can be retained for non-Euclidean responses. Third, we investigate the finite-sample performance of the proposed framework through extensive simulation experiments and biomedical applications involving distribution-valued responses. We compare the proposed estimator with existing approaches, including Deep Fréchet Regression [15], to evaluate its predictive accuracy and computational behavior across different regression settings.

References (40)