An Inductive Bias for Distances: Neural Nets that Respect the Triangle Inequality

02/14/2020
by   Silviu Pitis, et al.
9

Distances are pervasive in machine learning. They serve as similarity measures, loss functions, and learning targets; it is said that a good distance measure solves a task. When defining distances, the triangle inequality has proven to be a useful constraint, both theoretically–to prove convergence and optimality guarantees–and empirically–as an inductive bias. Deep metric learning architectures that respect the triangle inequality rely, almost exclusively, on Euclidean distance in the latent space. Though effective, this fails to model two broad classes of subadditive distances, common in graphs and reinforcement learning: asymmetric metrics, and metrics that cannot be embedded into Euclidean space. To address these problems, we introduce novel architectures that are guaranteed to satisfy the triangle inequality. We prove our architectures universally approximate norm-induced metrics on R^n, and present a similar result for modified Input Convex Neural Networks. We show that our architectures outperform existing metric approaches when modeling graph distances and have a better inductive bias than non-metric approaches when training data is limited in the multi-goal reinforcement learning setting.

READ FULL TEXT

page 7

page 16

page 17

page 24

page 27

page 28

page 29

research
07/08/2021

A Triangle Inequality for Cosine Similarity

Similarity search is a fundamental problem for many data analysis techni...
research
07/09/2018

n-metrics for multiple graph alignment

The work of Ioannidis et al. 2018 introduces a family of distances betwe...
research
10/27/2021

Generalized Shape Metrics on Neural Representations

Understanding the operation of biological and artificial networks remain...
research
06/25/2021

Data efficiency in graph networks through equivariance

We introduce a novel architecture for graph networks which is equivarian...
research
11/21/2022

Representational dissimilarity metric spaces for stochastic neural networks

Quantifying similarity between neural representations – e.g. hidden laye...
research
11/04/2019

Novel semi-metrics for multivariate change point analysis and anomaly detection

This paper proposes a new method for determining similarity and anomalie...
research
08/19/2022

A Ptolemaic Partitioning Mechanism

For many years, exact metric search relied upon the property of triangle...

Please sign up or login with your details

Forgot password? Click here to reset