Manuscript Offprint
arXiv:2610.42104Hyperbolic Inverse Reinforcement Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Iulia Rusu
University of California San Diego Salk Institute for Biological Studies irusu@ucsd.edu
Anoop Praturu
Causal Labs anoop@getcausal.ai
Sergei Gepshtein
University of California San Diego sgepshtein@ucsd.edu
Tatyana O. Sharpee
University of California San Diego Salk Institute for Biological Studies sharpee@salk.edu
ABSTRACT
Inverse reinforcement learning (IRL) seeks to infer the reward function underlying observed behavior, but its predictive accuracy and interpretability depend on how that reward is computed from the underlying features. While prior IRL reward functions have been implemented through a variety of techniques including linear weights, neural networks, or other function approximators, none make assumptions about the geometry of the underlying feature space. Inspired by geometric organization observed in neural circuits, we introduce Hyperbolic inverse reinforcement learning (Hyperbolic IRL), which parameterizes reward as a function of Hyperbolic distance between the feature vector and a learned parameter vector, as well as its Euclidean distance variant. We tested our methods against a range of linear and nonlinear IRL baselines under both deterministic and stochastic policies. Our Hyperbolic approach achieved comparable performance to state-of-the-art models on established benchmarks and excelled in the low data limit and across dense environments. Applied to human navigation among multiple exhibits in a museum room, Hyperbolic IRL reveals reward structure that depends not only on individual exhibit-distance features, but also on non-separable conjunctions between them. Together, these results demonstrate that a Hyperbolic reward parameterization can improve both the predictive accuracy and interpretability of IRL, providing a framework for studying how non-separable, conjunctive structure can begin to explain behavior.
1 INTRODUCTION
Inverse Reinforcement Learning (IRL) methods learn a reward function from expert demonstrations, formulated within a Markov Decision Process (MDP) where states are represented through a feature function and reward is recovered over these features rather than the states themselves. Learning a generalizable policy this way is challenging: many reward functions can explain the demonstrations equally well, yet correspond to policies that overfit and fail to generalize (Ng & Russell, 2000). Thus, it is important to not only explain the demonstrations, but to do so with an interpretable reward structure. Existing methods impose such structure by fixing how reward is computed from features: classic approaches take reward to be a linear combination of hand-selected features (Ng & Russell, 2000; Abbeel & Ng, 2004), while more recent work replaces this linear combination with a more expressive function approximator such as a Gaussian process (Levine et al., 2011) or a neural network (Wulfmeier et al., 2015). Whether linear or nonlinear, however, these approaches all assume the underlying feature space is flat.
As environments grow more complex, so does the dimension of the feature and reward space. A common assumption in ML is that despite this high dimension, correlations among features let the data be described by a lower-dimensional manifold. But the right geometry for that compression, not just its dimension, depends on the structure of the data (Nickel & Kiela, 2017). Assuming a flat manifold when the true structure is curved can distort the compression. In particular, hyperbolic space is known to pack substantially more structure into a small number of dimensions than a flat space of the same dimension can: because its volume grows exponentially rather than polynomially with radius, it can embed hierarchical or exponentially-branching structure at far lower distortion using far fewer dimensions (Cannon et al., 1997; Krioukov et al., 2010; Nickel & Kiela, 2017). Extending standard machine learning methods to curved manifolds, however, is not straightforward. Most methods, such as matrix factorization (Mnih & Salakhutdinov, 2007) and neural networks (Vaswani et al., 2017), measure similarity between vectors using the dot product, which is a fundamentally Euclidean notion with no natural analogue on a curved space (Cannon et al., 1997). Distance, by contrast, is well defined on any Riemannian manifold, flat or curved. Praturu & Sharpee (2025) show that replacing the dot product with a distance-based similarity measure not only makes this extension to curved geometries possible, but is itself a more expressive and better-generalizing choice than the dot product even when curvature is held fixed, a pattern also found in other domains, e.g. neural population encoding (Wu et al., 2026) and drug-target interaction prediction (Poleksic, 2023). We adopt the same distance-based approach for reward in IRL: reward is computed as distance between the feature vector and a learned parameter vector, so that the same functional form can be instantiated in either a Euclidean or a Hyperbolic feature space without any change to its basic structure. Having multiple curvature options allows one to better fit to the true shape of the reward manifold.
Our distance-based geometric approach was also inspired by the Hyperbolic organization found in neural circuits (Zhang et al., 2023; Zhou et al., 2018). Meanwhile IRL itself is an increasingly common tool for analyzing behavior and decision-making in neuroscience (Ashwood et al., 2022; Ke et al., 2025), so a reward geometry grounded in the brain's own representational structure is a natural fit for this growing use case. Despite this, Hyperbolic distance has not previously been used for IRL, although Hyperbolic geometry has been applied broadly elsewhere in ML: to hierarchical embeddings (Nickel & Kiela, 2017), neural network architectures (Ganea et al., 2018), graph representation learning (Chamberlain et al., 2017), and the geometry of complex networks (Krioukov et al., 2010).
Our contribution is a framework for Distance-Based Inverse Reinforcement Learning, based on Maximum Entropy IRL (Ziebart et al., 2008). We define the reward to be a function of distance between the feature vector and learned parameter vector in either Hyperbolic or Euclidean space. We argue that the distance-based reward, and the Hyperbolic variant in particular, offers several advantages: the flexibility to select a curvature suited to the true geometry of the reward, a substantial reduction in the number of parameters needed to achieve competitive performance relative to more heavily parameterized function approximators, a closer biological relevance to the geometry observed in biological neural circuits, and an interpretable reward structure as a function of joint and separate feature components.
2.1 MDPS AND MAXIMUM ENTROPY IRL
We consider a Markov Decision Process , where is the state space, is the action space, is the transition distribution, and is the discount factor. Inverse reinforcement learning (IRL) takes in observed expert demonstrations , with each consisting of state and action pairs . There is a reward value associated with each state . IRL tries to find the reward function responsible for the set of expert demonstrations.
While there are many IRL frameworks, including margin-based (Ratliff et al., 2006), Bayesian (Ramachandran & Amir, 2007), and adversarial (Fu et al., 2018), we use Maximum Entropy IRL (MaxEnt IRL) (Ziebart et al., 2008), which handles expert suboptimality and environmental stochasticity by modeling a full distribution over trajectories rather than assuming the expert acts optimally. In MaxEnt IRL, the state is described by a feature vector . The framework states that among all trajectory distributions whose expected features match the expert's observed feature expectations, the one with maximum entropy is the most correct. This yields a distribution over trajectories that is exponential in the accumulated reward:
(1) where is the partition function. are the parameters of the reward function. The reward function for a single state was originally written as a function of the state's features and the learned vector, with the assumption that reward is linear in these features (Ziebart et al., 2008).
Fitting for by maximum likelihood gives the general IRL loss
which is convex in whenever is linear in , and whose gradient is:
where denotes the expected reward gradient under the trajectory-visitation distribution of the policy, and denotes the corresponding empirical average over the expert demonstrations.
What varies across our proposed models is the parametric form of in Equation 2; we introduce the notion of “distance” between a state's features and the reward parameters .
2.2 EUCLIDEAN DISTANCE
We take , the negative squared Euclidean distance between and , which expands to a linear-in-features form
Substituting into Equation 3 and dropping the constant term gives
with gradient
The full step-by-step derivation is given in Appendix A.1.
2.3 HYPERBOLIC DISTANCE
We keep , but now measure in Hyperbolic space. We use the Lorentz model of Hyperbolic space : the upper sheet of a two-sheeted hyperboloid embedded in -dimensional Minkowski space, equipped with the Minkowski inner product . A point lies on exactly when and .
Our feature vector and the learned parameter vector are both -dimensional, one dimension short of the ambient space that lives in. To put them into Hyperbolic space we add an additional component to each. Given a -dimensional vector , we set and take as the corresponding point on , since by construction. Applying this to both and gives and , so that now sits on the hyperboloid in this -dimensional space, alongside .
The distance between the two points on the hyperboloid is
so that
This can now be optimized directly in hyperbolic space using Riemannian gradient descent, the details of which we leave to Appendix A.2.
2.4 GENERALIZING TO ARBITRARY CURVATURE
The formulation above fixes the hyperboloid to unit radius, , corresponding to constant curvature . We generalize to a hyperboloid of radius (constant curvature ) by rescaling the defining constraint to , i.e. , so that the distance between two points becomes
with reward as before. We denote this constant curvature , and refer to a given radius- model as Hyperbolic () throughout the rest of the paper. Riemannian gradient descent generalizes in a similar way, with the gradient correction and exponential map each picking up a factor of ; full details in Appendix A.3. This lets us treat curvature as a hyperparameter and compare reward geometries across a range of curvatures rather than fixing it to .
3 RESULTS
We tested the performance of our distance-based reward models using the Objectworld benchmark (Levine et al., 2011), as well as a real world benchmark.
3.1 OBJECTWORLD: GROUND TRUTH REWARD RECOVERY

Figure 1: Example Objectworld environment with 14 objects, colors. True reward is (black) within 3 cells of an outer-color-0 object AND within 2 cells of an outer-color-1 object, (white) within 3 cells of an outer-color-0 object alone, and 0 (mid gray) otherwise. Yellow arrows show the optimal policy under the reward.
Objectworld is an grid on which objects are placed on random, non-overlapping cells. Each object is independently assigned an inner and an outer color drawn uniformly from colors; every color contributes a feature component to the state description, but only two of the outer colors are ever relevant to determining the reward, with every other color, including all inner colors, acting as a distractor feature that plays no role in the reward function.
Each grid cell is represented by a -dimensional feature vector: the Euclidean distance from the cell to the nearest object of each of the outer colors, followed by the distance to the nearest object of each of the inner colors (a color with no placed object gets a constant distance larger than any true in-grid distance, instead of ). The ground truth reward is a nonlinear function of only two of these features, the distance to the nearest outer-color-0 and outer-color-1 object: near both, near outer-color-0 alone, 0 otherwise. There is built-in stochasticity as selection of action has a 30% chance of being selected randomly, the other 70% of time, the action is the intended action. We illustrate a small version of the grid in Figure 1.
We tested our 3 distance-based reward functions: Euclidean, Hyperbolic () and Hyperbolic (). We compare them to classical Maximum Entropy Inverse Reinforcement Learning (MaxEnt IRL) (Ziebart et al., 2008) and DeepRL (Wulfmeier et al., 2015). We compare the performance of these models using the Expected Value Difference (EVD) metric, which measures how suboptimal the policy is under the true reward. To do this, we use the learned reward from each respective method and compute the optimal deterministic policy using under that reward. We then measure the expected sum of discounted rewards under the policy. We also evaluate under a stochastic policy, induced by soft value iteration on each learned reward, .

Figure 2: Expected value difference vs. number of demonstration examples on Objectworld with 50 objects, Classic, Euclidean, Hyperbolic ( ), Hyperbolic ( ), and a neural network reward (16 repeats per condition). Hyperbolic Distance with negative curvature of had the best performance with increased sample count.
We report the EVD comparison as the number of examples from the ground truth policy used for training increases, in Figure 2. We also evaluate the policies on a transfer to 4 held-out environments, where we change the location of objects in the grid, but not the size or the number of objects. We observe that both Hyperbolic models outperform the others, with Hyperbolic ( ) showing the best performance with increased examples in training, across both stochastic and deterministic policies and in transfer environments. In Figure 3, we see that both Hyperbolic variants lead in performance, with increasing object density in the grid.

Figure 3: Expected value difference vs. number of objects (8, 15, 30, and 50 objects, corresponding to approximately 0.8%, 1.5%, 2.9%, and 4.9% grid-cell density) on Objectworld, Classic, Euclidean, Hyperbolic ( ), Hyperbolic ( ), and DeepIRL. Hyperbolic Distance with curvature of showed the best performance out of all, with increased object density.
3.2 MUSEUM
We test model performance on human behavioral data from HUMEX, a dataset of visitor movement in exhibition spaces. The data used here were collected in a ceramics gallery at the Los Angeles County Museum of Art (LACMA), where ten unobtrusive cameras mounted along the upper perimeter walls recorded visitor movement during museum opening hours over several months. The recordings were processed to recover continuous two-dimensional visitor trajectories in a common ground-plane coordinate system. The resulting trajectory data are publicly available through the
HUMEX repository on OSF (Gepshtein et al., 2026) (https://osf.io/7f5du/). Figure 4A shows example trajectories from the dataset. We discretized the floorplan into grid cells of 0.3m per side. The action space consisted of five actions: stay, up, down, left, and right. In the feature vector, the first 13 dimensions were the normalized Euclidean distance from the agent to each respective exhibit; the last two were the agent's own normalized x and y position in the space. We trained on 18 of a total of 26 recorded trajectories, holding out 4 for validation and 4 for testing.
We quantified policy recovery using Average Displacement Error (ADE) and Final Displacement Error (FDE) which are standard metrics from the human trajectory-forecasting literature (Alahi et al., 2016; Xu et al., 2018). ADE measures, for each true trajectory, the mean Euclidean distance to 10 independent rollouts of the learned policy, each starting from the trajectory's own initial state. We averaged ADE from each true trajectory to get a final score. For FDE we do the same, but only use the final time point. The FDE is important in this specific scenario as all the trajectories in the analysis return to their initial location at the exit of the museum. Together these two measurements test how well the methods recapitulate global patterns in the data.
In Figure 4B-C we note that Hyperbolic had the best ADE and FDE performance out of all the models. Notably, it achieves this with 15 reward-function parameters, compared to 1,601 for DeepIRL.
A

B
C
Figure 4: A: Floorplan of LACMA ceramics gallery's 13 exhibits, with example walking trajectories colored by individual. B, C: Average Displacement Error and Final Displacement Error of models trained on museum trajectories, error bars showing standard error of the mean across the 4 held-out test trajectories. Hyperbolic ( ) is best at modeling the average trajectory and its starting and final locations.
3.3 FEATURE COUPLING
To test whether each reward model captures genuine interactions between feature components, rather than treating every feature component as an independent additive contribution to reward, we probed the fitted reward function directly. For a pair of exhibit-distance feature components, we hold every other feature at its median value and sweep over [0,1], plotting the resulting reward surface in Figure 5.
We measured interaction using a two-way ANOVA-style fit: , where the row/column effects are the deviations of each row/column mean from the overall mean . This additive approximation is what a reward model would produce if and contributed to the reward independently of one another; the residual, (Figure 5, bottom row), is the part of the reward surface that no additive combination of main effects can explain. A near-zero residual indicates the two features act independently under that reward model, while visible structure in the residual indicates a coupling between them. We saw that the Hyperbolic models were the only ones exhibiting this non-flat residual, and therefore were experiencing non-separable feature coupling.
To summarize this non-additivity as a single number per feature pair, we also compute the mixed second difference of the reward surface (full definition in Appendix A.5). For ease of reference, and because of its similarity to the concept of conjunctive coding in neuroscience, we will refer to this quantity throughout the rest of the paper as the conjunctive effect.

Figure 5: Reward as a function of two feature dimensions (distance to exhibit 12 and distance to exhibit 8), with the remaining 13 feature dimensions held at their median values, for each fitted reward model. Top row: raw reward surface, as a function of two features. Bottom row: residual after removing the best additive (two-way ANOVA main-effects) approximation of the surface.
In Figure 6 we analyze the conjunctive effect of the Hyperbolic () model, the geometry with the best FDE and ADE performance on the museum dataset. We repeated the same conjunctive-effect probe used above for a single pair of exhibits, for every pair of exhibit-distance feature components, shown as the matrix in Figure 4A. Probing for the strongest conjunctive effects, we saw clusters around exhibit 12 and exhibit 3. Meanwhile the weakest all involved exhibit 6.


Figure 6: Pairwise exhibit-distance interaction for the Hyperbolic () model. Left: the same conjunctive effect measure as Figure 5, computed for all exhibit pairs. Right: the 8 strongest conjunctive effects drawn on the museum floorplan, line width and color scaled to the conjunctive effect; exhibit 3 and exhibit 12 (circled) are hubs that every one of the 8 strongest pairs routes through.
To test whether this fitted coupling of the conjunctive effect reflects genuine visitor behavior rather than an artifact of the reward parameterization, we construct a purely behavioral measure, co_attendance(), that does not use the fitted reward at all. For each visitor, we find how close they came to each exhibit at any point during their visit; for a given pair of exhibits , co_attendance() is then the correlation, across all visitors, between how close they got to exhibit and how close they got to exhibit . A positive value indicates that visitors who sought out one exhibit tended to also seek out the other. Figure 7 plots, for each geometry, the fitted conjunctive effect for all 78 exhibit pairs against the real co_attendance value for that pair, with a fitted line, Pearson , and permutation-corrected -value per panel. Because the 78 pairs are built from only 13 exhibits and are therefore not independent samples, we assess significance with a permutation test rather than the naive -value. The full methodology, naive-vs-corrected comparison, and a distance-controlled partial-correlation check are reported in Table 1 (Appendix A.7). All three hyperbolic curvatures show a significant positive relationship; Classic and Euclidean show essentially none, and this pattern is unchanged after controlling for physical exhibit-to-exhibit distance, ruling out mere proximity as an explanation (Appendix A.7).

Figure 7: Fitted feature interaction vs. real exhibit co-attendance, per geometry, for all 78 exhibit pairs (allobjects), with a fitted line, Pearson r, and permutation-corrected p-value (10,000 shuffles of exhibit labels) shown per panel. Classic and Euclidean show no relationship; both Hyperbolic variants shown here have a significant positive relationship (full naive-vs-corrected comparison and a distance-controlled check in Table 1, Appendix A.7).
4 DISCUSSION AND FUTURE WORK
In this work we introduce Hyperbolic IRL, a novel reward parameterization that improves both predictive accuracy and interpretability while maintaining a low number of parameters, excelling especially in low-data and high-density settings. Applied to museum visitor trajectories, we found that the inferred reward contains a conjunctive effect between exhibit-distance features that corresponds to co-attendance in the observed behavior, connecting to the neuroscience literature on conjunctive coding.
We offer two possible reasons for the Hyperbolic model's advantage over other models. Firstly, Hyperbolic space may be intrinsically better suited to representing densely distributed reward-relevant objects. It is a classical fact that the volume of a ball in Hyperbolic space grows exponentially with its radius, rather than polynomially as in Euclidean space (Cannon et al., 1997), a property already exploited to justify Hyperbolic geometry for hierarchical and scale-free structures (Krioukov et al., 2010; Nickel & Kiela, 2017). Praturu & Sharpee (2025) note that this lets points be packed densely around a reference location while remaining well-separated under the metric the model actually uses. In our setting, this means each object's zone of high reward can stay sharply localized around it without overlapping neighboring objects' zones, even as those objects become more numerous. This offers an explanation for its advantage specifically as object density increases (Figure 3). Secondly, the Hyperbolic reward's coupling between feature components offers a complementary explanation. Section 3.3 showed that the Hyperbolic distance method captures a genuine conjunctive effect between exhibit-distance features, and that this conjunctive effect tracks real visitor behavior, unlike the additive Classic, Euclidean, and DeepIRL rewards. The reward's joint dependence on multiple features at once is unique to our model, but not a unique concept.
Indeed, selectivity for combinations of stimulus features, rather than single features in isolation, is a well-established property of sensory coding: classic characterizations of complex cells in visual cortex and more general spike-triggered analyses both show that sensory neurons are typically best described by several jointly-relevant stimulus features nonlinearly combined, rather than by one feature alone (Adelson & Bergen, 1985; Rust et al., 2005; Schwartz et al., 2006; Bialek & de Ruyter van Steveninck, 2005; Sharpee, 2013). The conjunctive structure we find in the museum reward function is consistent with this broader pattern of feature-combination sensitivity in biological sensory systems. It may prove to be an advantageous tool for behavioral neuroscience research.
There has been a body of neuroscience research that focuses on studying decision-making and behavior using IRL (Ashwood et al., 2022; Ke et al., 2025; Schultheis et al., 2021; Yamaguchi et al., 2018; Kwon et al., 2020; Reddy, 2022). However, much of the field remains bounded to studying behavior in artificial, simplified settings, due to the relative ease of applying analytical tools in these more tractable contexts (Ashwood et al., 2022; Carandini & Churchland, 2013). We argue that the Hyperbolic method's unique advantages in performance in dense-object settings with multiple reward sources and an underlying nonlinear reward structure make it a good candidate over other, more high-parameter methods such as neural-network-based models. We reported each model's parameter count in the Results section: 1,601 for DeepIRL versus 15 for every other model. A formal model-complexity comparison (e.g., BIC) would require data points relative to parameters, which does not hold here given DeepIRL's parameter count relative to our training set size, so we do not report one. Nonetheless, the Hyperbolic model's substantially lower parameter count and its capacity to perform well in the low-data limit, as demonstrated in Figure 2, make it a good candidate for behavioral research, which is often constrained by limited sample sizes (Roy et al., 2021; Wilson & Collins, 2019). A concrete example of a good use case for this method is foraging: the study of how animals search for and exploit resources, weighing decisions such as when to leave a depleting patch for a potentially better one elsewhere (Stephens & Krebs, 1986; Mobbs et al., 2018; Dal Bello et al., 2021; Calhoun et al., 2015). Arguably, the museum dataset we presented is itself a type of foraging task, with visitors searching among and choosing between multiple exhibits (reward sources) distributed through space.
In future work, we will modify our model to learn the curvature of the Hyperbolic space directly via a Bayesian approach, as was done for hyperbolic data embedding by Praturu & Sharpee (2024), rather than testing over discrete sets of values. Another important direction will be testing whether the conjunctive selectivity observed here generalizes to other real-world behavioral datasets, and, where paired neural recordings are available, whether it aligns with conjunctive coding in recorded neural activity.
AI USE STATEMENT
In this work, we used generative AI tools for refining our literature search, grammar help, and writing plotting code to generate scientific figures. We have reviewed all AI-assisted work. We checked LLM-generated research ideas for potential plagiarism through a manual literature survey and verified that the plotting of figures was done correctly. We have not used generative AI tools to generate synthetic data sets, help develop theoretical models or conceptual frameworks, formulate mathematical claims, provide critical ingredients for proving mathematical claims, propose or refine hypotheses, design or provide feedback on research methodology or experiments, implement methods, clean and reformat datasets, support qualitative and thematic data analysis, and interpret results. The rest of the required disclosure tasks such as assistance in the writing of proofs, and assistance with translation are not applicable to this work. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
ETHICS STATEMENT
This work uses human visitor trajectory data from HUMEX, a publicly available dataset (Gepshtein et al., 2026) (https://osf.io/7f5du/) collected via unobtrusive overhead cameras in a public gallery at the Los Angeles County Museum of Art. We only had access to de-identified, two-dimensional visitor trajectories; no raw video, individual identities, or other personally identifiable information was available to us. The Salk Institute Institutional Review Board granted exemption approval for this project on January 7, 2022, under Common Rule 45 CFR 46.104(d)(2). We do not foresee other ethical concerns regarding methodology, dual use, or fairness arising from this work.
REFERENCES
Pieter Abbeel and Andrew Y. Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the Twenty-First International Conference on Machine Learning (ICML), pp. 1–8, 2004.
Edward H. Adelson and James R. Bergen. Spatiotemporal energy models for the perception of motion. Journal of the Optical Society of America A, 2(2):284–299, 1985.
Alexandre Alahi, Kratarth Goel, Vignesh Ramanathan, Alexandre Robicquet, Li Fei-Fei, and Silvio Savarese. Social LSTM: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 961–971, 2016.
Zoe Ashwood, Aditi Jha, and Jonathan W. Pillow. Dynamic inverse reinforcement learning for characterizing animal behavior. In Advances in Neural Information Processing Systems 35 (NeurIPS), 2022.
William Bialek and Rob R. de Ruyter van Steveninck. Features and dimensions: Motion estimation in fly vision. arXiv preprint arXiv:q-bio/0505003, 2005.
Adam J. Calhoun, Navin Pokala, Ada Tong, James A. J. Fitzpatrick, Tatyana O. Sharpee, and Sreekanth H. Chalasani. Neural mechanisms for evaluating environmental variability in Caenorhabditis elegans. Neuron, 86(2):428–441, 2015.
James W. Cannon, William J. Floyd, Richard Kenyon, and Walter R. Parry. Hyperbolic geometry. In Flavors of Geometry, volume 31, pp. 59–115. Cambridge University Press, 1997.
Matteo Carandini and Anne K. Churchland. Probing perceptual decisions in rodents. Nature Neuroscience, 16(7):824–831, 2013.
Benjamin Paul Chamberlain, James Clough, and Marc Peter Deisenroth. Neural embeddings of graphs in hyperbolic space. arXiv preprint arXiv:1705.10359, 2017.
Martina Dal Bello, Alfonso Pérez-Escudero, Frank C. Schroeder, and Jeff Gore. Inversion of pheromone preference optimizes foraging in C. elegans. eLife, 10:e58144, 2021.
Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. In International Conference on Learning Representations (ICLR), 2018.
Octavian Ganea, Gary Bécigneul, and Thomas Hofmann. Hyperbolic neural networks. In Advances in Neural Information Processing Systems 31 (NeurIPS), 2018.
S. Gepshtein, T. D. Albright, E. Leonardis, T. Pereira, P. Jurica, and V. Behner. HUMEX - Human Movement in an Exhibition. https://doi.org/10.17605/OSF.IO/7F5DU, October 2026.
Jingyang Ke, Feiyang Wu, Jiyi Wang, Jeffrey Markowitz, and Anqi Wu. Inverse reinforcement learning with switching rewards and history dependency for characterizing animal behaviors. arXiv preprint arXiv:2501.12633, 2025.
Dmitri Krioukov, Fragkiskos Papadopoulos, Maksim Kitsak, Amin Vahdat, and Marián Boguñá. Hyperbolic geometry of complex networks. Physical Review E, 82:036106, 2010.
Minhae Kwon, Saurabh Daptardar, Paul R. Schrater, and Xaq Pitkow. Inverse rational control with partially observable continuous nonlinear dynamics. In Advances in Neural Information Processing Systems 33 (NeurIPS), pp. 7898–7909, 2020.
Sergey Levine, Zoran Popovic, and Vladlen Koltun. Nonlinear inverse reinforcement learning with gaussian processes. In Advances in Neural Information Processing Systems 24 (NIPS), 2011.
Andriy Mnih and Russ R. Salakhutdinov. Probabilistic matrix factorization. In Advances in Neural Information Processing Systems 20 (NeurIPS), 2007.
Dean Mobbs, Pete C. Trimmer, Daniel T. Blumstein, and Peter Dayan. Foraging for foundations in decision neuroscience: Insights from ethology. Nature Reviews Neuroscience, 19(7):419–427, 2018.
Andrew Y. Ng and Stuart J. Russell. Algorithms for inverse reinforcement learning. In Proceedings of the Seventeenth International Conference on Machine Learning (ICML), pp. 663–670, 2000.
Maximilian Nickel and Douwe Kiela. Poincaré embeddings for learning hierarchical representations. In Advances in Neural Information Processing Systems 30 (NeurIPS), 2017.
Maximilian Nickel and Douwe Kiela. Learning continuous hierarchies in the lorentz model of hyperbolic geometry. arXiv preprint arXiv:1806.03417, 2018.
Aleksandar Poleksic. Hyperbolic matrix factorization improves prediction of drug-target associations. Scientific Reports, 13:959, 2023. doi: 10.1038/s41598-023-27995-5.
Anoop Praturu and Tatyana O. Sharpee. Adaptive data embedding for curved spaces. iScience, 27 (12):111266, 2024. doi: 10.1016/j.isci.2024.111266.
Anoop Praturu and Tatyana O. Sharpee. Distance-based logistic matrix factorization. Neural Computation, 37(10):1863–1876, 2025. doi: 10.1162/neco.a.25.
Deepak Ramachandran and Eyal Amir. Bayesian inverse reinforcement learning. In Proceedings of the 20th International Joint Conference on Artificial Intelligence (IJCAI), pp. 2586–2591, 2007.
Nathan D. Ratliff, J. Andrew Bagnell, and Martin A. Zinkevich. Maximum margin planning. In Proceedings of the 23rd International Conference on Machine Learning (ICML), pp. 729–736, 2006.
Gautam Reddy. Reinforcement waves as a mechanism for discontinuous learning. bioRxiv preprint, 2022.
Nicholas A. Roy, Ji Hyun Bak, Athena Akrami, Carlos D. Brody, and Jonathan W. Pillow. Extracting the dynamics of behavior in sensory decision-making experiments. Neuron, 109(4):597–610, 2021.
Nicole C. Rust, Odelia Schwartz, J. Anthony Movshon, and Eero P. Simoncelli. Spatiotemporal elements of macaque v1 receptive fields. Neuron, 46(6):945–956, 2005.
Matthias Schultheis, Dominik Straub, and Constantin A. Rothkopf. Inverse optimal control adapted to the noise characteristics of the human sensorimotor system. arXiv preprint arXiv:2110.11130, 2021.
Odelia Schwartz, Jonathan W. Pillow, Nicole C. Rust, and Eero P. Simoncelli. Spike-triggered neural characterization. Journal of Vision, 6(4):484–507, 2006.
Tatyana O. Sharpee. Computational identification of receptive fields. Annual Review of Neuroscience, 36:103–120, 2013.
David W. Stephens and John R. Krebs. Foraging Theory. Monographs in Behavior and Ecology. Princeton University Press, 1986.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems 30 (NeurIPS), 2017.
Benjamin Wilson and Matthias Leimeister. Gradient descent in hyperbolic space. arXiv preprint arXiv:1805.08207, 2018.
Robert C. Wilson and Anne G. E. Collins. Ten simple rules for the computational modeling of behavioral data. eLife, 8:e49547, 2019.
Dennis Wu, Yi-Chun Hung, Braden Yuille, James E. Fitzgerald, and Han Liu. Hyperbolic neural population geometry benefits computation. In International Conference on Machine Learning (ICML), 2026.
Markus Wulfmeier, Peter Ondruska, and Ingmar Posner. Maximum entropy deep inverse reinforcement learning. arXiv preprint arXiv:1507.04888, 2015.
K. Xu, Z. Qin, G. Wang, K. Huang, S. Ye, and H. Zhang. Collision-free LSTM for human trajectory prediction. In International Conference on Multimedia Modeling (MMM), pp. 106–116. Springer, Cham, February 2018.
Shoichiro Yamaguchi, Honda Naoki, Muneki Ikeda, Yuki Tsukada, Shunji Nakano, Ikue Mori, and Shin Ishii. Identification of animal behavioral strategies by inverse reinforcement learning. PLOS Computational Biology, 14(5):e1006122, 2018.
Huanqiu Zhang, P. Dylan Rich, Albert K. Lee, and Tatyana O. Sharpee. Hippocampal spatial representations exhibit a hyperbolic geometry that expands with experience. Nature Neuroscience, 26: 131–139, 2023.
Yuansheng Zhou, Brian H. Smith, and Tatyana O. Sharpee. Hyperbolic geometry of the olfactory space. Science Advances, 4(8):eaaq1458, 2018.
Brian D. Ziebart, J. Andrew Bagnell, and Anind K. Dey. Maximum entropy inverse reinforcement learning. In Proceedings of the 23rd National Conference on Artificial Intelligence (AAAI) - Volume 3, pp. 1433–1438. AAAI Press, 2008.
A APPENDIX
A.1 EUCLIDEAN DISTANCE
We choose the following reward function to use as a metric for the Euclidean distance between the feature vector and the reward parameters . The reward function is defined as follows: . We wish to find the parameters of the reward function that maximize the probability of seeing the demonstrations, . We derive the loss function for the Euclidean distance reward model as follows:
We provide the gradient of the loss function with respect to :
We look at the first term of the gradient:
We then take the second term of the gradient in the following way:
This gives us the following gradient of the loss function with respect to using our Euclidean Distance metric for the reward function:
A.2 HYPERBOLIC DISTANCE
The reward metric is still . We use the Lorentzian model where is represented as ; we define the Minkowski inner product on as , and we define the distance as follows: , and therefore .
The gradient of the loss can be written as follows:
(42)
We address the first term of the gradient below, first with respect to then with respect to for :
(47)
(50)
We use the Hyperbolic identity and therefore
(51)
The second term of the gradient can be written as follows:
(59)
We combine the first and second derivative terms:
where denotes the naive (Euclidean-sense) partial derivative of the loss. Simplifying each row of Equation 60 gives
Note the row is the negative of the row's sign pattern versus : this is a direct consequence of the Minkowski signature, not an inconsistency while (Section A.2, above), so the chain rule contributes an extra sign flip for the time-like coordinate that it does not for the space-like ones.
Because the ambient space carries the Minkowski metric rather than the Euclidean one, the gradient actually used for Riemannian optimization (Section A.3, Appendix A.3) is not the naive gradient of Equation 61 directly, but its image under , i.e. the same vector with its time-like component negated. This is a separate step, applied after the derivative itself is fully computed – it is the same step Praturu & Sharpee (2025) make explicit when constructing their analogous “unconstrained gradient” (their Eq. 2.14) only after computing by ordinary calculus (their Eq. 2.16), noting that “the minus sign on the 0th component of the derivative arises from the signature of the Minkowski inner product.” Negating the row of Equation 61 – i.e. flipping the sign of every term in that row, turning into – gives the ambient gradient used throughout the rest of this paper:
(63)
which is the exact gradient for the Hyperbolic reward (Section 2.3). In practice, grows exponentially and collapses toward zero for states far from , so, following Praturu & Sharpee (2025) who report the same difficulty for the analogous term in their model, we drop the factor and retain only the linear dependence:
All Hyperbolic results reported in this paper use this practical gradient.
This practical gradient is the starting point for the tangent-space projection of Section A.3, below.
A.3 RIEMANNIAN OPTIMIZATION: TANGENT-SPACE PROJECTION AND THE EXPONENTIAL MAP
Equation 63 (or its practical approximation, Equation 64) is an ambient gradient in : it does not account for the constraint that keeps on the hyperboloid. Taking directly would therefore move off the manifold. We instead perform Riemannian gradient descent (Nickel & Kiela, 2018; Wilson & Leimeister, 2018; Praturu & Sharpee, 2025): project the ambient gradient onto the tangent space at , then take a step along the geodesic in that direction via the exponential map, so that every update remains exactly on .
Tangent-space projection. The tangent space at is . The Riemannian gradient is obtained from the ambient gradient by adding back its component along , using the Minkowski inner product in place of the Euclidean one:
Exponential map. For a tangent vector , the exponential map
takes a step of geodesic length along in the direction of . We replace the Euclidean update rule with
for learning rate , i.e. in Equation 66.
For the radius-R hyperboloid (Section 2.4), the Riemannian gradient correction (Equation 65) picks up a compensating factor of ,
since rather than -1, and the exponential map (Equation 66) becomes
where R = 1 recovers Equations 65–66.
A.4 NUMERICAL STABILITY OF THE EXPONENTIAL-MAP STEP
The exponential-map update (Equation 67) is only numerically safe for moderate step sizes. Two failure modes appear in practice, both traceable to the same cause: as drifts away from the origin of the hyperboloid over the course of training, curvature makes a fixed step size eventually produce an unstable update, regardless of how got there. (We verified that this instability is intrinsic to the fixed step size rather than a sampling-noise artifact from the policy rollouts used to estimate : increasing the number of rollouts by an order of magnitude did not change when the instability appeared.) Writing for the proposed tangent step before it is applied:
-
Loss of precision in . This Minkowski norm is computed as a difference of two large, nearly equal floating-point sums once 's components exceed roughly , so it loses precision to catastrophic cancellation and can come out negative – i.e. not a valid tangent vector – even when is mathematically valid.
-
Overflow in . Even when is computed correctly, and overflow double-precision floating point once is roughly 709 or larger, producing values that propagate into the softmax policy computed on the next iteration.
We address both failure modes at their common source by capping the geodesic step length before either or the exponential map is evaluated: given a maximum step norm , if (using the ordinary Euclidean norm, which is cheap to compute and tracks the eventual geodesic step length monotonically), we rescale
before taking the step – i.e. the learning rate is only ever reduced, never increased, and the rescaling happens before any Hyperbolic quantity is computed. We use geodesic units throughout.
A.5 MIXED SECOND DIFFERENCE
To summarize non-additivity in the reward surface as a single number per feature pair (Section 3.3), we compute the mixed second difference of the reward surface, evaluated at two corner values and of each feature:
This is the discrete analogue of the mixed partial derivative , and like the residual of the two-way ANOVA-style fit (Section 3.3), it is exactly zero whenever is additively separable in and . Throughout the rest of the paper we refer to this quantity as the conjunctive effect.
A.6 MUSEUM EXHIBIT REWARD MAGNITUDE
Figure 8 shows the museum floorplan with each exhibit colored by , the magnitude of that exhibit's own fitted weight (Hyperbolic, ), i.e. how much reward that exhibit contributes on its own, uncoupled from any other exhibit.

Figure 8: Museum floorplan with each exhibit colored by its own (uncoupled) fitted reward weight magnitude , Hyperbolic ().
A.7 PERMUTATION (MANTEL) TEST FOR REWARD-COUPLING ALIGNMENT
The exhibit-pair alignment test in Section 3.3 correlates co_attendance(), the real behavioral correlation between how closely visitors approach exhibits and in the same trajectory, against each geometry's fitted conjunctive effect for that pair. Because the 78 exhibit pairs are built from only 13 exhibits (each exhibit appears in 12 of the 78 pairs), the pairs are not independent samples, so the naive -values from that correlation are likely optimistic. We correct for this with a Mantel-style permutation test: we permute the 13 exhibit labels jointly across rows and columns of the co_attendance matrix (holding the conjunctive-effect matrix fixed), recompute the correlation, and repeat for 10,000 shuffles to build an empirical null distribution. This preserves the pairwise dependency structure among the 78 correlations (since permitting exhibit labels permutes all 12 pairs involving a given exhibit together) and is the standard way to test correlations computed over pairs drawn from a smaller set of underlying units.
The resulting correlations and permutation-corrected -values are reported in Table 1 below, corresponding to the scatter plots in Figure 7 in the main text (Section 3.3). As a further check, we also residualize both co_attendance and the fitted conjunctive effect against physical exhibit-to-exhibit distance before correlating (partial correlation columns), to rule out spatial proximity alone as a confound; this leaves the pattern essentially unchanged for every geometry (e.g., for Hyperbolic (), partial vs. raw ), with the same three curvatures remaining significant under permutation correction. We also report the naive (non-permutation) -value alongside the corrected one to make explicit how much the non-independence of the 78 pairs inflates apparent significance: e.g., Hyperbolic ()'s naive becomes once corrected, still significant but three orders of magnitude less extreme.
Table 1: Alignment between real exhibit co-attendance and each geometry's fitted conjunctive effect: raw correlation with its naive (non-permutation) and permutation-corrected p-values (10,000 shuffles of exhibit labels), and the same three quantities after residualizing both variables against physical exhibit-to-exhibit distance (partial correlation).
| Geometry | Raw | Partial (distance-controlled) | ||||
|---|---|---|---|---|---|---|
| r | naive p | perm. p | r | naive p | perm. p | |
| Classic | -0.070 | 0.54 | 0.48 | -0.048 | 0.68 | 0.65 |
| Euclidean | +0.075 | 0.51 | 0.53 | +0.058 | 0.62 | 0.63 |
| Hyperbolic () | +0.477 | 0.0021 | +0.507 | 0.0011 | ||
| Hyperbolic () | +0.516 | 0.0026 | +0.539 | 0.0019 | ||
| Hyperbolic () | +0.419 | 0.0034 | +0.421 | 0.0035 | ||
| DeepIRL | +0.205 | 0.071 | 0.084 | +0.228 | 0.045 | 0.056 |
This permutation test only corrects for the non-independence among the 78 exhibit-pair samples; it does not address a separate form of non-independence at the trajectory level (each visitor trajectory contributes to the co_attendance value of multiple exhibit pairs), which is not addressed here.