Balanced Hyperbolic Embeddings Are Natural Out-of-Distribution Detectors

Tejaswi Kasarla, Max van Spengler, Pascal Mettes
6/11/2025
cs.LGcs.CV

No confident code implementation found for this paper.

Abstract

Out-of-distribution recognition forms an important and well-studied problem in deep learning, with the goal to filter out samples that do not belong to the distribution on which a network has been trained. The conclusion of this paper is simple: a good hierarchical hyperbolic embedding is preferred for discriminating in- and out-of-distribution samples. We introduce Balanced Hyperbolic Learning. We outline a hyperbolic class embedding algorithm that jointly optimizes for hierarchical distortion and balancing between shallow and wide subhierarchies. We then use the class embeddings as hyperbolic prototypes for classification on in-distribution data. We outline how to generalize existing out-of-distribution scoring functions to operate with hyperbolic prototypes. Empirical evaluations across 13 datasets and 13 scoring functions show that our hyperbolic embeddings outperform existing out-of-distribution approaches when trained on the same data with the same backbones. We also show that our hyperbolic embeddings outperform other hyperbolic approaches, beat state-of-the-art contrastive methods, and natively enable hierarchical out-of-distribution generalization.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kasarla2025balanced,
  title  = {Balanced Hyperbolic Embeddings Are Natural Out-of-Distribution Detectors},
  author = {Tejaswi Kasarla and Max van Spengler and Pascal Mettes},
  year   = {2025},
  eprint = {2506.10146},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.10146v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.10146.svg)](https://codeofpaper.com/paper/2506.10146)

Discussion