Hyperbolic distance helps agents navigate maze routes
Outperforming 1000 Euclidean Layers With Hyperbolic Goal-Conditioned RL · arXiv:2610.20009
In plain words
In a maze, a goal may look nearby on a map but be far away because walls block the direct path. This paper introduces a goal-reaching method that measures distance in a way that can represent routes that branch around obstacles.
In tests, its agents improved on many tasks compared with Euclidean agents using networks of the same depth. The biggest gains appeared on two difficult humanoid maze tasks; the results do not show that the method is best for every setting.
The research
In a maze, a goal can be nearby as the crow flies but distant along a route around walls. Euclidean agents can learn this route structure, but may need much deeper networks. Could changing the critic's distance measure help an agent represent routes more directly?
Hyperbolic CRL gives goal-reaching agents a critic whose distance measure better represents branching routes around maze walls.
Can a goal-reaching agent represent how far a target is along a route when walls make straight-line distance misleading? The authors introduce Hyperbolic CRL, which retains contrastive reinforcement learning but gives its critic a distance measure with a bias toward tree-like structure.
In online tests across 10 environments, depth-16 hyperbolic agents improved over Euclidean agents on many tasks, especially two difficult Humanoid mazes.
This supports the idea that the geometry can help goal-reaching where walls bend routes, while the task-dependent curvature shows that one setting does not fit every environment.
The results cover the tested environments and settings. The best curvature varies by task, and the critic's symmetric distance cannot represent one-way transitions.
What the evidence shows
- A mismatch in mazes
Hyperbolic contrastive reinforcement learning (CRL) is a method for agents learning to reach specified goals. It changes the distance measure used by the critic, which scores whether a goal is reachable from a state and action.
The question is whether a representation that better matches routes around maze walls can help goal-reaching agents, since straight-line distance ignores those walls and Euclidean agents may need deeper networks to learn route structure.
- Changing the critic's geometry
The method keeps CRL's contrastive learning setup but replaces straight-line distance between embeddings with geodesic distance in hyperbolic space. This geometry is approximately flat at small scales and tree-like at larger scales, giving the critic a built-in bias toward branching routes.
The change addresses a representational mismatch; it does not claim that Euclidean agents cannot solve mazes.
- Routes become tree-like
In Ant U5-Maze, researchers compared route and straight-line distances over increasingly large task horizons. Route distances became more tree-like at longer horizons, while straight-line distances moved in the opposite direction.
They also found that hyperbolic critics ranked goals by route distance more consistently than Euclidean critics, including when compared goals had similar straight-line distances. These diagnostics connect the method's geometry to maze routes, but do not measure task success.
- Gains depend on the task
Across 10 online environments, depth-16 hyperbolic agents improved over Euclidean CRL on many tasks, especially the two hardest Humanoid maze tasks. A four-task sensitivity analysis found that the best curvature depended on the environment.
An offline evaluation also favored the hyperbolic agent on eight tasks, although neither method reliably solved the two giant mazes and the full hyperbolic agent changed its actor as well as its critic.
Deep
- Original paper authors
- Timo Klein, Thomas Lang, Andrii Shkabrii, Lukas Miklautz, Yllka Velaj
- Submitted to arXiv
- License
- CC BY 4.0