# End-to-End Deep Learning for Predicting Metric Space-Valued Outputs

arXiv: https://arxiv.org/abs/2509.23544 · HTML: https://mlsanity.com/paper/2509.23544/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- Builds on 24 of its 70 references that are in the map.
- First posted on arXiv 28 Sep 2025.

## Builds on (most cited first, 24 of 24)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [Semi-Supervised Classification with Graph Convolutional Networks](https://mlsanity.com/paper/1609.02907/) (2016)
- [Spectral Normalization for Generative Adversarial Networks](https://mlsanity.com/paper/1802.05957/) (2018)
- [Geometric deep learning: going beyond Euclidean data](https://mlsanity.com/paper/1611.08097/) (2016)
- [Hyperbolic Neural Networks](https://mlsanity.com/paper/1805.09112/) (2018)
- [Wasserstein Auto-Encoders](https://mlsanity.com/paper/1711.01558/) (2017)
- [All Models are Wrong, but Many are Useful: Learning a Variable's Importance by Studying an Entire Class of Prediction Models Simultaneously](https://mlsanity.com/paper/1801.01489/) (2018)
- [Regularisation of Neural Networks by Enforcing Lipschitz Continuity](https://mlsanity.com/paper/1804.04368/) (2018)
- [On the Convergence of A Class of Adam-Type Algorithms for Non-Convex Optimization](https://mlsanity.com/paper/1808.02941/) (2018)
- [A Riemannian Network for SPD Matrix Learning](https://mlsanity.com/paper/1608.04233/) (2016)
- [Fr'echet Regression for Random Objects with Euclidean Predictors](https://mlsanity.com/paper/1608.03012/) (2016)
- [Universal Bayes consistency in metric spaces](https://mlsanity.com/paper/1906.09855/) (2019)
- [Network Regression with Graph Laplacians](https://mlsanity.com/paper/2109.02981/) (2021)
- [Fr'echet random forests for metric space valued regression with non euclidean predictors](https://mlsanity.com/paper/1906.01741/) (2019)
- [Random Forest Weighted Local Fr'echet Regression with Random Objects](https://mlsanity.com/paper/2202.04912/) (2022)
- [Wasserstein Regression with Empirical Measures and Density Estimation for Sparse Data](https://mlsanity.com/paper/2308.12540/) (2023)
- [Regression with Distance Matrices](https://mlsanity.com/paper/1303.3750/) (2013)
- [Manifold valued data analysis of samples of networks, with applications in corpus linguistics](https://mlsanity.com/paper/1902.08290/) (2019)
- [Medoid splits for efficient random forests in metric spaces](https://mlsanity.com/paper/2306.17031/) (2023)
- [Total Variation Regularized Fr'echet Regression for Metric-Space Valued Data](https://mlsanity.com/paper/1904.09647/) (2019)
- [Fr'echet single index models for object response regression](https://mlsanity.com/paper/2108.06058/) (2021)
- [Errors-in-variables Fr'echet Regression with Low-rank Covariate Approximation](https://mlsanity.com/paper/2305.09282/) (2023)
- [Principal component analysis and the locus of the Frechet mean in the space of phylogenetic trees](https://mlsanity.com/paper/1609.03045/) (2016)

## Built on by (most cited first, 2 of 2)

- [DFNN: A Deep Fr'echet Neural Network Framework for Learning Metric-Space-Valued Responses](https://mlsanity.com/paper/2510.17072/) (2025)
- [Deep Single-Index Fr'echet Regression](https://mlsanity.com/paper/2606.06957/) (2026)

## Abstract (arXiv)

Many modern applications involve predicting structured, non-Euclidean outputs such as probability distributions, networks, and symmetric positive-definite matrices. These outputs are naturally modeled as elements of general metric spaces, where classical regression techniques that rely on vector space structure no longer apply. We introduce E2M (End-to-End Metric regression), a deep learning framework for predicting metric space-valued outputs. E2M performs prediction via weighted Fr'echet means over training outputs, where the weights are learned by a neural network conditioned on the input. This construction provides a principled mechanism for geometry-aware prediction that avoids surrogate embeddings and restrictive parametric assumptions, while fully preserving the intrinsic geometry of the output space. We establish theoretical guarantees, including a universal approximation theorem that characterizes the expressive capacity of the model and a convergence analysis of the entropy-regularized training objective. Through extensive simulations involving probability distributions, networks, and symmetric positive-definite matrices, we show that E2M consistently achieves state-of-the-art performance, with its advantages becoming more pronounced at larger sample sizes. Applications to human mortality distributions and New York City taxi networks further demonstrate the flexibility and practical utility of this framework.
