arXiv:2610.20009cs.LGOct 2026

Manuscript Offprint

arXiv:2610.20009

Outperforming 1000 Euclidean Layers With Hyperbolic Goal-Conditioned RL

Timo Klein, Thomas Lang, Andrii Shkabrii, Lukas Miklautz, Yllka Velaj, Sebastian Tschiatschek

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

ABSTRACT

Scaling self-supervised contrastive reinforcement learning (CRL) to 1000-layer Euclidean neural networks has enabled state-of-the-art goal-reaching performance, yet wall-clock time scales linearly with depth. We find that changing the geometry achieves stronger performance with far shallower networks. This matters in complex navigation environments, where walls can make route distance deviate substantially from Euclidean distance. In a U-shaped maze, we show that the longer the route, the more it deviates from Euclidean distance. Hyperbolic CRL addresses this mismatch by replacing Euclidean distances in CRL's contrastive objective with geodesic distances in hyperbolic space. On hard navigation tasks, inductive bias beats scale: depth 64 hyperbolic agents outperform 1024-layer-deep Euclidean networks while training more than 12×12\times faster and using about 13×13\times fewer parameters. We observe that hyperbolic agents behave qualitatively better in hard humanoid mazes, where they follow corridors to reach goals, whereas Euclidean agents try straight-line shortcuts over walls. Our results show that matching the representation geometry to the task can substitute for substantial network depth. Code is at https://github.com/Probabilistic-and-Interactive-ML/HypGCRL.

1 INTRODUCTION

Consider a humanoid having to find the goal in a maze. Navigating purely based on straight-line distance would lead this agent down many dead ends, because straight-line distance is a misleading measure of how far a goal is in the maze. In this setting, the straight-line distance between two positions ignores walls, whereas the route distance is the length of the actual path between a state and a goal. Goal-conditioned RL (GCRL) trains agents to reach arbitrary goals without a hand-designed reward. Contrastive reinforcement learning (CRL) (Eysenbach et al., 2022) casts GCRL as a classification problem and uses an InfoNCE objective (van den Oord et al., 2018) to predict whether a goal is reachable from a state-action pair, based on the Euclidean distance between their embeddings (Bortkiewicz et al., 2025a). Euclidean embeddings make straight-line prox-

Humanoid U-Maze

Humanoid Big-Maze

Figure

Hyperbolic (d=64) Wang et al. (deepest)

Figure 1: Hyperbolic agents outperform much deeper Euclidean ones. A hyperbolic agent of depth 64 reaches a higher steps at goal than the depth 1024 Euclidean agent while using 12×12 \times less wall-clock time on Humanoid U-Maze. Euclidean results are taken from Wang et al. (2025, Figure 12), we use their step budget. Wall-clock times are reported in Appendix F.

imity easy to represent, and this proxy works at short range but misleads once walls are present. Wang et al. (2025, Figure 9) show that on Ant U4-Maze, Euclidean agents learn to follow route structure only when using deep networks.

This reliance on depth is expensive. Recent work scales CRL with GPU-accelerated simulation (Bortkiewicz et al., 2025a) and networks up to 1024 layers deep (Wang et al., 2025). However, these Euclidean agents perform best at extreme depth, making training very expensive (Figure 1).

Wang et al. (2025, Section 4.4) evaluate 1024-layer networks on a single task, Humanoid U-Maze, and report that computational constraints kept them from scaling further. Our Ant U5-Maze study shows why: Euclidean representations must learn to “unroll” the maze to reflect route distance, which can require substantial depth. We therefore hypothesize that deep Euclidean agents use part of their capacity to compensate for the mismatch between the geometry of their embeddings and the geometry of the environment. This raises our paper’s central question: Is Euclidean distance the right geometry for goal-reaching?

Hyperbolic space offers a natural alternative. It is approximately Euclidean at small scales but tree-like at large scales, and trees embed in it with arbitrarily low distortion (Sarkar, 2011). Existing hyperbolic RL methods (Cetin et al., 2023; Klein et al., 2026), however, assign no meaning to embedding distance and learn hierarchy only indirectly through their standard RL objectives. Quasimetric approaches (Wang & Isola, 2022; Liu et al., 2023; Wang et al., 2023; Myers et al., 2024) use asymmetric distances but retain their Euclidean embedding geometry. Consequently, quasimetric CRL agents perform poorly on mazes (Wang et al., 2025, Appendix A.4). To our knowledge, no prior work has adopted hyperbolic spaces for improving CRL.

Our work investigates this change. Hyperbolic CRL keeps the contrastive objective but replaces Euclidean distances of embedded points with geodesic distances, at a small, fixed computational cost. We motivate this choice with a case study in Ant U5-Maze. Locally, route distances in this environment coincide with straight-line distances, while globally they become increasingly tree-like. Hyperbolic space matches this metric structure. At equal depth, hyperbolic agents outperform Euclidean agents on most tasks. On the Humanoid mazes, they beat Euclidean agents with many times deeper networks. These results suggest that a better choice of representation geometry can substitute for substantial network depth.

References (44)