Manuscript Offprint
arXiv:2611.11998Reward-Estimated Hypergradient for Bilevel Reinforcement Learning with Black-Box Follower
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Hypergradient (HG) methods for bilevel reinforcement learning (RL) typically assume a white-box follower whose reward is known. In practice, however, the leader rarely knows the follower's reward function and can only observe its trajectories. We address this black-box setting and propose Reward-Estimated Hypergradients (RE-HG), which recovers the follower's reward from these trajectories via inverse RL (IRL). Yet IRL identifies the reward only up to potential-based shaping, a transformation that leaves the follower's behavior unchanged but biases the HG. We prove that, for linear rewards, this bias cancels when IRL estimates are aggregated across sufficiently diverse dynamics, which the leader's own updates naturally supply. To handle finite samples, RE-HG truncates small eigenvalues of the aggregated feature covariance, restoring the identifiable subspace and stabilizing the estimation. Experiments show that RE-HG estimates gradients aligned with a white-box Oracle and achieves comparable performance; empirically, the truncation also suppresses HG explosions, letting RE-HG avoid local optima that trap the Oracle in sharp reward landscapes.
1 Introduction
Reinforcement Learning (RL) (Sutton and Barto, 2018) has achieved remarkable success in games (Silver et al., 2016; Samvelyan et al., 2019), robotics (Levine et al., 2016), and the fine-tuning of large language models (Ouyang et al., 2022; Guo et al., 2025). Many real-world deployments, however, involve multiple agents whose interaction is hierarchical: one agent, the leader, shapes the environment in which another agent, the follower, learns. Bilevel RL (Hong et al., 2023) models this structure as a nested optimization problem, in which the leader optimizes its objective while anticipating the follower's best response:
(Leader)
(Follower)
Here, parameterizes the leader, is the leader's objective, and is the follower's best response, which maximizes the follower's own objective defined by its reward function. The standard approach to optimizing the leader is to compute the hypergradient (HG), the gradient of with respect to that accounts for how the follower's best response changes with .
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
Existing HG methods, however, assume a white-box follower: they require the follower's reward function and, in some cases, its policy or value function (Table 1). In practice, this assumption rarely holds: the follower's preferences are often implicit, as with human arm movements (Albrecht et al., 2012) or human drivers in mixed traffic (Shi et al., 2025), and manually engineering a reward function that reflects them is notoriously difficult. To the best of our knowledge, no established method computes the HG in this black-box follower setting, where the leader can observe only the follower's trajectories.
A natural approach is to recover the follower's reward from its trajectories by inverse RL (IRL) and to compute the HG with the recovered reward. However, IRL identifies the reward only up to potential-based shaping (Ng et al., 1999): shaped rewards induce the same optimal policy, so the follower's trajectories cannot distinguish between them. In single-agent RL, this ambiguity is harmless, since shaping adds no bias to the policy gradient. The HG, in contrast, depends directly on the follower's value function, which shaping shifts by an arbitrary potential, so the ambiguity left by IRL becomes an arbitrary bias in the HG.
Our key observation is that the bilevel structure itself supplies the information needed to resolve this ambiguity. Prior work has shown that a reward can be identified up to a constant when expert behavior is observed under multiple transition dynamics (Cao et al., 2021; Rolland et al., 2022). In bilevel RL, such observations arise naturally: each leader update changes the dynamics that the follower faces, and the follower responds with a new best response. We show that, under a linear reward assumption, aggregating the IRL estimates obtained across these iterations cancels the shaping bias and recovers the reward up to a constant offset, which leaves the HG unchanged. To make this aggregation reliable with finite samples, we truncate the small eigenvalues of the aggregated feature covariance, which restores the identifiable subspace and keeps the estimation numerically stable. Combining these components, we propose Reward-Estimated Hypergradient (RE-HG), which computes the HG from observed trajectories alone.
The main contributions of this work are as follows:
(i) We identify reward-shaping ambiguity as the fundamental obstacle to HG estimation with a black-box follower.
(ii) We prove that, under a linear reward assumption, aggregating IRL estimates across the dynamics induced by the leader's updates cancels this bias (Theorem 1), and that the remaining reward error controls the HG error (Proposition 2).
(iii) We propose RE-HG, which combines this aggregation with eigenvalue truncation to compute the HG from trajectories alone with finite samples.
(iv) Experiments on discrete and continuous bilevel tasks show that RE-HG estimates gradients aligned with a white-box ORACLE and achieves comparable performance. Empirically, eigenvalue truncation also suppresses HG explosions, letting RE-HG avoid local optima that trap the ORACLE in sharp reward landscapes.
Our code is available at https://github.com/akimotolab/RE-HG.
The follower aims to identify a stochastic policy that maximizes the expected discounted return plus an entropy bonus:
where is the set of all valid policies on , and determines the regularization strength. The term represents the entropy of policy at state . The expectation is taken over trajectories distributed according to .
The primary motivation for employing entropy regularization is to ensure that the optimal policy is both unique and stochastic. This framework is essential in inverse reinforcement learning (IRL), where it serves as a natural mechanism for modeling the inherent stochasticity of expert behavior. Under this setting, we define the “soft” value function and action-value function as:
and . Given a sufficiently expressive policy class, the unique optimal policy is characterized by the Boltzmann distribution relative to the optimal value functions and (Haarnoja et al., 2017):
This uniqueness is a critical property for the stability and well-definedness of bi-level RL problems.
Configurable Markov Decision Process A Configurable Markov Decision Process (Conf-MDP) extends the standard MDP by allowing certain environmental dynamics to be tuned via a configuration parameter. We denote a Conf-MDP as , where parameterizes the transition probability and the initial state distribution . Thus, the environment is defined by the tuple . For any fixed configuration , the follower solves the entropy-regularized objective defined by (1) using the parameterized dynamics and .
The leader’s goal is to optimize their own utility by selecting a configuration that accounts for the follower’s subsequent best response. This results in the following bi-level optimization problem:
Here, is the leader’s utility and is the follower’s best response to . Because of the entropy regularization, is unique for every and is given by the -dependent Boltzmann distribution:
where and are the optimal soft value functions. We assume the follower always reacts with its optimal policy. The leader’s utility is defined as the expected discounted cumulative reward:
where is the leader’s discount factor and is the leader’s reward function. Because the leader has control over the environment, we assume that the leader knows and . Moreover, we assume that the gradients , , and exists and the leader can compute them explicitly.
2-Player Markov Game A 2-player Markov Game (MG) further generalizes the Conf-MDP by treating the leader as an active agent. In this setting, the leader follows a policy parameterized by , indirectly influencing the environment through their actions. An MG is defined by the tuple , where and are the action spaces for the leader and follower, respectively. Transitions and rewards now depend on both agents' actions. The policies are and .
As in the Conf-MDP, the follower optimizes the entropy-regularized objective (1), but the dynamics are now induced by the leader's policy: . The leader's optimization remains consistent with (2), with the utility defined as:
(4) where consists of state, leader action, and follower action. We define the follower's soft value and action-value functions under a specific leader policy as:
and . Here, takes the leader's action as an input to reflect the follower's observation of the leader's move. The leader's action-value function is defined without entropy regularization:
For brevity, we use the notation , and to denote the respective value functions when the follower plays their unique best response to the leader's policy . Unlike Conf-MDP settings, the leader may not know the transition probability. We consider two scenarios: the leader (1) knows and explicitly; and (2) does not know them explicitly, but can simulate the interaction with and .
Inverse Reinforcement Learning Inverse Reinforcement Learning (IRL) is the process of recovering an underlying reward function from an observed policy, assuming that the policy is optimal with respect to that reward. In our framework, we employ the Maximum Discounted Causal Entropy (MDCE) IRL framework (Zhou et al., 2018) to estimate the follower's reward function based on their best response under a given leader policy . To formalize this, let represent the follower's objective as defined in (1), but with the true reward replaced by a surrogate reward , and the regularization constant set to . This simplification is without loss of generality, as the scaling factor is effectively absorbed into the surrogate reward; specifically, maximizing with is mathematically equivalent to the original formulation in (1). We denote the solution to the forward reinforcement learning problem under a surrogate reward as: . Given the follower's best response as the “expert” policy, the IRL problem is formulated as finding a reward function that minimizes the difference between the maximum achievable value and the value attained by the expert:
where the expectation is taken over trajectories generated by the leader and the follower . As established in Ho and Ermon (2016, Corollary 3.2.1) and Syed et al. (2008, Theorem 2), if a policy is obtained such that , then we successfully recover the follower's behavior, i.e., . This implies that the reward function resulting from the IRL process effectively characterizes the optimal behavior of the follower under the leader parameter .
3 Related Work
Hypergradient for Bilevel RL In Bilevel RL, computing the HG to optimize the leader's policy has become a standard approach. While existing methods have evolved significantly in terms of convergence rates and the relaxation of theoretical assumptions, they ultimately rely on the "white-box" nature of the follower to varying degrees. For instance, PARL (Chakraborty et al., 2024) and PBRL (Shen et al., 2024) assume deterministic updates that require full knowledge of the HG, while HPGD (Thoma et al., 2024) and SoBiRL (Yang et al., 2025) are bottlenecked by the requirement for a sampler capable of starting from arbitrary state-action pairs or allowing repeated visits to those pairs. Although BC-HG circumvents the need for repeated visits, it still necessitates direct access to the follower's policy and value functions. As summarized in Table 1, all these approaches, regardless of their estimation technique, rely on explicit knowledge of the follower's true reward function, which RE-HG does not require.
Table 1: Comparison of requirements for HG estimation methods in Bilevel RL.
| Method | Requires Follower's True Reward | Update Method (HG Info) | Requires Hessian (2nd Order Deriv.) | Requires Repeated State Visits |
|---|---|---|---|---|
| PARL (Chakraborty et al., 2024) | ✓ | Deterministic | ✓ | ✕ |
| PBRL (Shen et al., 2024) | ✓ | Deterministic | ✕ | ✕ |
| SoBiRL (Yang et al., 2025) | ✓ | Stochastic | ✕ | ✓ |
| HPGD (Thoma et al., 2024) | ✓ | Stochastic | ✕ | ✓ |
| BC-HG (Kudo et al., 2026) | ✓ | Stochastic | ✕ | ✕ |
| RE-HG (Ours) | ✕ | Stochastic | ✕ | ✕ |
Inverse Reinforcement Learning While the optimal policy for a given reward function is uniquely identified under entropy regularization, the reward function leading to the given policy is not uniquely determined. Ng et al. (1999) shows that for an arbitrary function , the shaped reward function admits the optimal policy equivalent to that for the original reward function . It has been argued that a shaped reward function is insufficient to obtain the optimal policy when the transition probability used for the policy training is different from the one used for the expert trajectory generation. Several works propose approaches to recover the original reward function (up to a constant shift, which is unavoidable) under different assumptions. For example, Fu et al. (2018); Ni et al. (2020) assume a state-only reward, along with other conditions on the transition. Cao et al. (2021); Rolland et al. (2022) assume access to the expert trajectories on two different MDPs sharing the same reward function. We develop a method based on the latter idea. A direct comparison against the joint multi-environment formulation of Cao et al. (2021) is provided in Section C.7.
4 Approach
We derive a novel estimation of the HG of the leader's objective. As a baseline, we employ BC-HG (Kudo et al., 2026) for the HG estimate that assumes the knowledge of the optimal value function of the follower. Our approach, RE-HG, incorporates an inverse reinforcement learning technique to mitigate the necessity of the optimal value function of the follower.
Baseline: Hypergradient estimation with Known Follower's Value If the follower's optimal value function is accessible, the HG of the leader's objective can be computed both for Conf-MDP and 2-player MG settings. The HG for the Conf-MDP setting is derived as follows. Let represent the leader's expected discounted return given that the follower chooses action at state :
Distinct from standard action-value functions, this definition treats the follower's action as the primary input alongside the state , rather than the leader's action. We denote the leader's value function under the follower's optimal response as . Then, a concept of the benefit is introduced. For a given state , the benefit quantifies the relative advantage the leader gains when the follower selects action compared to the follower's average behavior under :
Kudo et al. (2026) show that the HG of in (3) can be computed in the case of Conf-MDPs as
where is the partial derivative of with respect to evaluated at , whose explicit form is provided in Section B.1. The gradient of the follower's soft action-value function is:
The HG can be computed similarly in 2-player MGs, described in Section B.1. Importantly, in both cases, the term appears. We refer to it as the influence term, as it accounts for the change in the follower's best response induced by the leader's configuration.
Follower's Value Estimation via Repeated Inverse Reinforcement Learning The challenge in estimating the HG without knowing the follower's reward function is to estimate the value function of the follower, . As mentioned earlier, an IRL returns a reward function that admits the same optimal policy . In Conf-MDP settings, it includes any function with an arbitrary state-only potential function (Ng et al., 1999). The soft value function under the shaped reward is then . Therefore, if we use a shaped reward to estimate the follower's value function, the term will be arbitrarily affected by , resulting in biased estimation of the HG . The same argument holds for 2-player MG settings. In this case, the leader's action is regarded as a part of the state from the follower's perspective. Hence, the estimated reward is shaped as with an arbitrary potential function . Consequently, the follower's value function is misestimated as , yielding a biased HG due to the additional term arising from substituting in (6). Different from the single-agent MDPs, where the reward shaping adds no bias in policy gradient, the shaping term is crucial for HG. The defect of the shaping term is demonstrated in Section 5 as well as in Section C.2.
To circumvent this hurdle, we pose the assumption on the follower's reward function. In what follows, we consider Conf-MDP settings for conciseness. To treat 2-player MGs, we can simply regard a state as a pair of the state and the leader's action at state , the transition probability as , and the initial state distribution as .
Assumption 1 (Follower's Reward Linearity). For a given feature extractor , the follower's reward function is given by with . Moreover, the features have full rank, i.e., .
Reward linearity is not sufficient to identify the true reward function up to a constant offset (Cao et al., 2021; Rolland et al., 2022). However, the reward parameter obtained by is in a subspace defined as follows.
Proposition 1. Given the best response follower , let be the expected discounted features under the leader and its best response follower defined as
Let . Then, the solution to the IRL lies in the kernel of centered at the ground truth parameter , i.e., . [The proof is provided in Section A.1.]
Since the follower's transition probability depends on and changes at each outer iteration, we naturally obtain expert policies on different MDPs sharing the same reward, the setting in which Cao et al. (2021); Rolland et al. (2022) identify the reward up to a constant offset. Consequently, we obtain the convergence of the estimated reward parameter up to a constant offset of the reward.
Theorem 1. Let be a sequence of leader parameters and their corresponding best-response followers. For each , let be an optimal reward parameter, and define the expected feature covariance matrix as , and let . Then, any solution to satisfies . Furthermore, let be a vector satisfying for all (if such a vector exists, and 0 otherwise). If the aggregated covariance matrix satisfies the rank condition , then we have for some . Consequently, the recovered reward function satisfies . [The proof is provided in Section A.2.]
To solve the system reliably with finite samples, we standardize the covariance matrix so that the eigenvalues are either 1 or 0 by dropping eigenvalues smaller than a threshold , then solve with the standardized covariance matrix , whose solution space is the same as the original system. The algorithmic detail is provided in Algorithm 2. The resulting reward parameter is guaranteed to converge to the ground-truth reward parameter up to a shift in the direction of under mild conditions, shown in Corollary 1.
The eigenvalue truncation plays three distinct roles, which we separate here to avoid conflating them. (i) Support for bias cancellation. With finitely many trajectories, the empirical covariance matrix is generically of full rank, and the directions that form the kernel of the exact appear as small non-zero eigenvalues. Truncation discards these directions and restores the kernel characterized in Proposition 1. It does not alter the identifiability limit itself, which is dictated by Theorem 1. (ii) Numerical stabilization. In tasks whose feature distribution is heavily skewed, such as the regulator tasks considered here, truncation is what keeps the aggregated linear system solvable to an acceptable accuracy. (iii) Implicit regularization. By avoiding division by near-zero eigenvalues, truncation bounds the norm of the recovered reward, which in turn bounds the influence term and prevents the HG norm from exploding. Roles (i) and (ii) are what Algorithm 2 and Corollary 1 are designed for; role (iii) is an empirical effect that we observe consistently in Section 5, and we do not claim it as a theoretical guarantee.
Corollary 1. Let be the sequence defined in Algorithm 2, let , and let be the sequence of estimated reward vectors. Suppose that are independently distributed, each satisfies and for some universal constant , and for all for some . Let (which must be regarded as if ), and let . Then, the output of Algorithm 2 satisfies and , where is the Moore-Penrose pseudo-inverse of . In particular, if the greatest eigenvalue of scales in , we have in probability, implying that the true reward is recovered up to a constant offset. [The proof is provided in Section A.3.]
Corollary 1 is a conditional statement about the aggregation step: it treats the sequence as fixed in advance and assumes the estimates to be independent. Neither holds verbatim in Algorithm 1, where is selected adaptively and and are computed from the same finite batch. Section A.4 states the assumptions under which the conclusion survives in the adaptive case, and makes explicit which variant of the algorithm the resulting guarantee covers.
The ground-truth reward vector recovery translates to the true HG recovery.
Proposition 2. Let be the ground truth reward vector and be the estimated reward vector. Let and . Then, the optimal soft-value functions and corresponding to and satisfy , where for all . Consequently, the error in the HG computation due to the error of the reward estimation is . [The proof is provided in Section A.5.]
Implementation Algorithm 1 shows the overall framework of the proposed approach, Reward-Estimated Hypergradient RE-HG. At each upper-level iteration , the follower first learns its best response under . In our setting, the leader cannot intervene in this process. The trajectories, , are then collected for the following IRL steps (Lines 5–6). The HG is computed by using the trajectories, , obtained in simulation with the surrogate follower (Lines 9–16). For the implementation, we remark on two poihttps://www.overleaf.com/projectsnts. First, we use the trajectories rather than for HG estimation. As we explicitly utilize itself for the HG estimation, using will relax the bias due to the inconsistent use of and . Second, while the overall framework does not change, environment-specific implementation, for example, the use of dynamic programming when the transition dynamics are known, can simplify and stabilize the resulting algorithm. The details are discussed in Section C and summarized in Table 2.
Algorithm 1 The RE-HG Algorithm
1: Initialize leader parameters and leader's critic 2: for to do 3: (Follower) Learn the best response for 4: Collect the trajectories , compute feature covariance 5: Perform IRL to obtain reward vector , surrogate policy 6: Update the aggregated reward vector by Algorithm 2 7: Re-derive surrogate policy , action value function , and state value function using 8: Collect the trajectories by simulating on 9: # by Algorithm 3 or Algorithm 4 10: for (where for Conf-MDPs, for MGs) do 11: 12: 13: # by Algorithm 7 14: # by Algorithm 5 or Algorithm 6 15: # by Algorithm 8 or Algorithm 9 16:


(a) Environment (b) Discounted leader return under unknown dynamics (left) and known dynamics (right)
Figure 1: Discrete toy task. (a) State transition diagram. represents the rewards. (b) Leader's discounted return across 3 independent training runs. For each run, performance is evaluated as the mean of 10 test rollouts. Avg. (line) and std. (shaded area) across the 3 runs are displayed.
5 Experiments
We evaluate the robustness of RE-HG against an ORACLE baseline that computes HGs with full access to the ground-truth rewards and transition dynamics. This baseline relies on stronger assumptions than the standard white-box follower assumption utilized in Thoma et al. (2024); Kudo et al. (2026), as it requires access to the transition dynamics. As an idealized model, it represents the empirical upper bound and serves as our primary benchmark for gradient accuracy and overall performance.
2-Player Markov Games (Discrete Case) To assess the necessity of the influence term and the HG accuracy of RE-HG, we design an environment (Figure 1a) with an inherent leader-follower conflict.
The leader earns only on , favoring an loop. Conversely, the follower prefers to maximize . At , the leader can choose to force the loop, but this imposes a penalty . If the leader greedily persists with , the follower will adapt by transitioning to avoid the penalty, eventually depriving the leader of all rewards. Thus, the leader must strategically guide the follower to while preventing deflection to by choosing at appropriate intervals.
As observed in Figure 1b, RE-HG and ORACLE significantly outperform NO-INFLUENCE, a variant ignoring the influence term. It clearly indicates the need to estimate the influence term. Specifically, the leader policies in RE-HG and ORACLE converge to . In contrast, NO-INFLUENCE leader policy converges to , resulting in the breakdown described

(a) HG Similarity
(b) Reward Correlation
(c) Leader's Discounted Return
Figure 2: Results on Building Thermal Control Task. (a) Cosine similarity of the HG between the estimated and Oracle models. (b) Pearson correlation between the recovered and true rewards, weighted by the undiscounted state-action occupancy measure of the surrogate follower policy. (c) Leader's discounted return. For each run, performance is evaluated as the mean of 50 test rollouts. Avg. (line) and std. (shaded area) across the 5 independent training runs are displayed.
above. The relatively low Pearson correlation stems from estimation errors in unvisited regions, which do not affect the gradient direction of the HG. In fact, RE-HG maintains a high cosine similarity. Essentially, RE-HG successfully recovers the global reward structure necessary for optimization. Further analysis of the Pearson and cosine similarities and experimental details are provided in Section C.3.
Configurable MDP (Continuous Case) We evaluate the effectiveness of the aggregation mechanism in RE-HG for mitigating estimation instability by comparing it against RE-HG(SINGLE), a variant performing IRL only once at the beginning. The task is under-actuated temperature regulation in a building with zones. The state is the temperature deviation, the follower's action () is the HVAC control, and the leader configures the insulation and airflow . The system follows linear-Gaussian dynamics , where represents unobservable disturbances. The follower maximizes an entropy-regularized quadratic reward , while the leader minimizes insulation costs and thermal instability. Crucially, because the most costly zone lacks direct HVAC control, the follower must regulate it indirectly via heat transfer influenced by the leader's configuration. In this experiment, identical gradient norm clipping with a maximum norm of 1.0 is applied to every method.
Comparisons in Figure 2c confirm that the proposed method, RE-HG, overcomes the estimation instability of RE-HG(SINGLE) and clearly outperforms it. Lacking bias cancellation and eigenvalue truncation, RE-HG(SINGLE) recovers the excessively steep reward, causing the gradient norm to reach the order of . Because estimation errors propagate directly into the gradient, the optimization is misled into an inappropriate local minimum, resulting in significant performance degradation. In contrast, RE-HG suppresses the reward norm through the aforementioned two implicit regularization effects of the aggregation process, keeping the gradient magnitude around . Although the values are not perfectly identical due to the scale suppression effect, Figures 2a and 2b show that RE-HG achieves a higher cosine similarity with ORACLE and a higher Pearson correlation with the true reward weighted by the surrogate follower policy compared to RE-HG(SINGLE). This indicates that the global gradient direction and reward structure are appropriately recovered.
As a secondary effect, this smoothing leads RE-HG to attain a higher return than ORACLE. We stress that this is an optimization effect and not an indication that RE-HG estimates the HG more accurately. While ORACLE computes the exact true gradient, the follower's skewed cost matrices () create a steep reward landscape, causing the gradient scale to explode (around ). Consequently, terms other than the influence term cannot be properly accounted for, severely distorting the overall gradient direction and trapping ORACLE in a suboptimal local minimum (behavior similar to NO-INFLUENCE converging to a local minimum). On the other hand, by recovering a smoothed reward bounded within a moderate scale (0.2 to 3.2) rather than the steep true reward, RE-HG obtains a gradient landscape on which all terms are appropriately balanced, avoiding the sharp local optima that trap ORACLE. This gap is not explained by the magnitude of the update alone: Section C.6 reports ORACLE variants with a learning rate, gradient clipping, and a scaled influence term, none of which reaches the performance of RE-HG.
Further details, including the improvement of cosine similarity and Pearson correlation when the steep reward setting is relaxed, and experimental setups, are provided in Section C.4.
2-Player Markov Games (Continuous Case)
We evaluate the HG accuracy of RE-HG on a continuous MG formulated as a Linear Quadratic Regulator (LQR) task. The dynamics are , where is the state (starting at ), is the follower's control, and is the leader's interference. Both agents employ Gaussian policies. The follower aims to stabilize at by maximizing a quadratic reward , where counteracting the leader's interference increases control costs. Conversely, the leader seeks to induce oscillation around by maximizing . This explicit conflict of interest tests whether the leader can strategically guide the follower by accounting for its cost structure via HG, rather than relying on inefficient brute-force interference.
Figure 3 shows that RE-HG achieves comparable performance to ORACLE, effectively navigating the true gradient direction despite the presence of estimation errors. Furthermore, it is more stable than NO-INFLUENCE. Both the HG cosine similarity relative to ORACLE and the weighted Pearson correlation consistently remained near 1.0 across the majority of the iterations for RE-HG. Figures illustrating these metrics, along with full experimental settings, are provided in Section C.5.

Figure 3: Results on 2-player MG, averaged over 3 independent training runs (10 test rollouts per run). Avg. (line) and std. (shaded area) are displayed. “P” indicates the known transition probability scenario.
6 Conclusion
We introduced RE-HG, an algorithm for optimizing the leader's parameters via HG in a bilevel RL setting with a black-box follower. Our theoretical analysis revealed that HG estimation is fundamentally vulnerable to reward shaping, an unavoidable issue in single-environment IRL. To resolve this, we established a bias cancellation theory showing that, under a linear reward assumption, the here-proposed aggregated IRL mathematically neutralizes errors caused by potential-based shifts. Based on this theory, we developed a reward recovery algorithm enhanced by a norm suppression smoothing effect. Empirically, despite operating without the restrictive white-box follower assumption, RE-HG achieved performance competitive with a white-box Oracle baseline by yielding accurate gradient direction estimates.
Limitations RE-HG has several limitations. First, our theoretical framework relies on the assumption of an optimal follower. Whether RE-HG operates stably when the follower follows sub-optimal learning trajectories remains open for discussion; Section C.9 reports an empirical study under two types of suboptimal followers, but our analysis does not cover this case. Second, formulating the IRL as an inner-loop min-max optimization inherently introduces estimation variance that directly propagates to the outer-loop HG. Stabilizing the influence term remains an open challenge. Third, our bias cancellation theory is built upon the linear reward assumption with a known feature extractor. Robustness to a misspecified feature basis is examined empirically in Section C.8, but extending the theory to non-linear reward structures requires further theoretical and empirical investigation; integrating multi-environment IRL techniques designed for non-linear representations is a natural direction. Finally, RE-HG removes the need for the follower's reward function, but not the need for environment access: computing and rolling out the surrogate best response requires either the transition model or a simulator. Integrating offline IRL is a natural direction for removing this dependence.
Acknowledgments and Disclosure of Funding
This work was partially supported by JSPS KAKENHI Grant Number 23H00483 and 26K02993.
References
Albrecht, S., Leibold, M., and Ulbrich, M. (2012). A bilevel optimization approach to obtain optimal cost functions for human arm movements. Numerical Algebra, Control and Optimization, 2(1):105–127.
Barreto, A., Dabney, W., Munos, R., Hunt, J. J., Schaul, T., van Hasselt, H., and Silver, D. (2017). Successor features for transfer in reinforcement learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, page 4058–4068, Red Hook, NY, USA. Curran Associates Inc.
Cao, H., Cohen, S. N., and Szpruch, L. (2021). Identifiability in inverse reinforcement learning. In Proceedings of the 35th International Conference on Neural Information Processing Systems, NIPS '21, Red Hook, NY, USA. Curran Associates Inc.
Chakraborty, S., Bedi, A. S., Koppel, A., Wang, H., Manocha, D., Wang, M., and Huang, F. (2024). PARL: A unified framework for policy alignment in reinforcement learning from human feedback. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net.
Fu, J., Luo, K., and Levine, S. (2018). Learning robust rewards with adversarial inverse reinforcement learning. In International Conference on Learning Representations.
Guo, D., Yang, D., Zhang, H., Song, J., Wang, P., Zhu, Q., Xu, R., Zhang, R., Ma, S., Bi, X., et al. (2025). Deepseek-r1 incentivizes reasoning in llms through reinforcement learning. Nature, 645(8081):633–638.
Haarnoja, T., Tang, H., Abbeel, P., and Levine, S. (2017). Reinforcement learning with deep energy-based policies. In Proceedings of the 34th International Conference on Machine Learning - Volume 70, ICML'17, page 1352–1361. JMLR.org.
Ho, J. and Ermon, S. (2016). Generative adversarial imitation learning. In Proceedings of the 30th International Conference on Neural Information Processing Systems, NIPS'16, page 4572–4580, Red Hook, NY, USA. Curran Associates Inc.
Hong, M., Wai, H., Wang, Z., and Yang, Z. (2023). A two-timescale stochastic algorithm framework for bilevel optimization: Complexity analysis and application to actor-critic. SIAM J. Optim., 33(1):147–180.
Kudo, M., Tanabe, T., Wachi, A., and Akimoto, Y. (2026). Sample-efficient hypergradient estimation for decentralized bi-level reinforcement learning. In ICAPS '26: Proceedings of the Thirty-Sixth International Conference on Automated Planning and Scheduling.
Levine, S., Finn, C., Darrell, T., and Abbeel, P. (2016). End-to-end training of deep visuomotor policies. J. Mach. Learn. Res., 17(1):1334–1373.
Ng, A. Y., Harada, D., and Russell, S. J. (1999). Policy invariance under reward transformations: Theory and application to reward shaping. In Proceedings of the Sixteenth International Conference on Machine Learning, ICML '99, page 278–287, San Francisco, CA, USA. Morgan Kaufmann Publishers Inc.
Ni, T., Sikchi, H., Wang, Y., Gupta, T., Lee, L., and Eysenbach, B. (2020). f-irl: Inverse reinforcement learning via state marginal matching. In Conference on Robot Learning.
Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., et al. (2022). Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730–27744.
Rolland, P., Viano, L., Schürhoff, N., Nikolov, B., and Cevher, V. (2022). Identifiability and generalizability from multiple experts in inverse reinforcement learning. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS '22, Red Hook, NY, USA. Curran Associates Inc.
Samvelyan, M., Rashid, T., Schroeder de Witt, C., Farquhar, G., Nardelli, N., Rudner, T. G. J., Hung, C.-M., Torr, P. H. S., Foerster, J., and Whiteson, S. (2019). The starcraft multi-agent challenge. In Proceedings of the 18th International Conference on Autonomous Agents and MultiAgent Systems, AAMAS '19, page 2186–2188, Richland, SC. International Foundation for Autonomous Agents and Multiagent Systems.
Shen, H., Yang, Z., and Chen, T. (2024). Principled penalty-based methods for bilevel reinforcement learning and rlhf. In Proceedings of the 41st International Conference on Machine Learning, ICML'24. JMLR.org.
Shi, B., Zhai, L., and Liu, C. (2025). Stackelberg game based on trajectory prediction for lane change in mixed traffic. IEEE Access, 13:135196–135207.
Silver, D., Huang, A., Maddison, C. J., Guez, A., Sifre, L., van den Driessche, G., Schrittwieser, J., Antonoglou, I., Panneershelvam, V., Lanctot, M., Dieleman, S., Grewe, D., Nham, J., Kalchbrenner, N., Sutskever, I., Lillicrap, T. P., Leach, M., Kavukcuoglu, K., Graepel, T., and Hassabis, D. (2016). Mastering the game of go with deep neural networks and tree search. Nat., 529(7587):484–489.
Sutton, R. S. and Barto, A. G. (2018). Reinforcement Learning, Second Edition: An Introduction. MIT Press.
Syed, U., Bowling, M., and Schapire, R. E. (2008). Apprenticeship learning using linear programming. In Proceedings of the 25th International Conference on Machine Learning, ICML '08, page 1032–1039, New York, NY, USA. Association for Computing Machinery.
Thoma, V., Pásztor, B., Krause, A., Ramponi, G., and Hu, Y. (2024). Contextual bilevel reinforcement learning for incentive alignment. In Globersons, A., Mackey, L., Belgrave, D., Fan, A., Paquet, U., Tomczak, J. M., and Zhang, C., editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024.
Yang, Y., Gao, B., and Yuan, Y. (2025). Bilevel reinforcement learning via the development of hyper-gradient without lower-level convexity. In Li, Y., Mandt, S., Agrawal, S., and Khan, M. E., editors, International Conference on Artificial Intelligence and Statistics, AISTATS 2025, Mai Khao, Thailand, 3-5 May 2025, Proceedings of Machine Learning Research, pages 4780–4788. PMLR.
Zeng, S., Li, C., Garcia, A., and Hong, M. (2022). Maximum-likelihood inverse reinforcement learning with finite-time guarantees. In Koyejo, S., Mohamed, S., Agarwal, A., Belgrave, D., Cho, K., and Oh, A., editors, Advances in Neural Information Processing Systems, volume 35, pages 10122–10135. Curran Associates, Inc.
Zhou, Z., Bloem, M., and Bambos, N. (2018). Infinite time horizon maximum causal entropy inverse reinforcement learning. IEEE Transactions on Automatic Control, 63(9):2787–2802.
A Proofs
A.1 Proposition 1
Proof. As is claimed in Zeng et al. (2022), the process of can be interpreted as a maximum likelihood estimation of by the policy optimal for the reward model r, where the reward parameter is considered as the parameter of the policy itself. Indeed, we observe
Let . Let and be the optimal soft value functions under the reward model . Then, we have
where we used the soft-Bellman equation for value function, . On the other hand, using the soft-Bellman equation for action value function, we obtain
The solution to this recursive formula is equivalent to the expected discounted features, i.e., . Therefore, we have
Moreover, the Hessian is
Let . Noting that , the Hessian of this loss function at is
Hence, it is non-negative definite. If two reward functions and admit the same optimal policy, then their convex combination for also admits the same optimal policy. This implies that all the optimal reward parameter must lie in the kernel of centered at . This completes the proof.
A.2 Theorem 1
Proof. From Proposition 1, we have for each . Then, we have
Therefore, we have , which indicates that lies in the kernel of . Because are all non-negative definite, the kernel of is the intersection of the kernels of . Hence, we have for all .
The rest is straightforward. If and , there exists a unique solution to and it must agree with . If and , then must lie in the kernel of because results in a constant offset of the reward function as
and hence the loss function must be constant in the direction of . That is, the kernel of is spanned by . Therefore, we have . This completes the proof.
A.3 Corollary 1
Proof. In this proof, we consider . Then, from the assumption , the kernel of must admit the kernel of . Therefore, . Moreover, and because of the property of pseudo-inverse.
Note first that is a solution to . The solution can be represented as
for some . Because , we have
Letting , we have . It indicates that
From Proposition 1, we have , which is equivalent to because and admit the same kernel by construction. Therefore, implies
. Then, we have
Because are independently distributed, we have
In light of the multivariate Chebyshev's inequality, we have
for any . Let ) be the greatest eigenvalue of . Then, we have , where represents the smallest non-zero eigenvalue. Then, we have , and hence,
It implies in probability. This completes the proof.
A.4 Adaptive Variant of Corollary 1
is estimated from the batch collected under , so is not -measurable, and and , being functions of the same , are dependent.
Corollary 1 treats as a deterministic sequence and assumes the estimates to be independent. Neither holds in Algorithm 1: is estimated from the batch collected under , so is not -measurable, and and , being functions of the same , are dependent.
We state below the assumptions under which the conclusion of Corollary 1 survives, and note in Remark 2 that one of them holds for a lagged or sample-split version of Algorithm 1 rather than for the algorithm as implemented.
Corollary 2. Let and be the projection matrices and the estimated reward vectors generated by the closed loop of Algorithm 1, let , and let be the -algebra generated by the history , where denotes the trajectories collected under . Let and be constants and suppose that, for every ,
(i) is -measurable;
(ii) for some with ;
(iii)
and that
(iv) for all , for some .
Let and be as in Corollary 1, let , and let denote the smallest non-zero eigenvalue. Then, for every , the output of Algorithm 2 decomposes as
with and , and these satisfy
Consequently, if for some deterministic sequence , then in probability; and if for some , then . In particular, if and the first spectral condition holds, then in probability, which is the conclusion of Corollary 1 without the independence assumption.
Proof. Throughout we take . Line 3 of Algorithm 2 sets with orthogonal and diagonal with entries in , so each is an orthogonal projection; we use this in Steps 2 and 4.
Step 1. By (i), is -measurable, so and hence
Let . By (ii), we have . Proposition 1 gives , and and have the same kernel by construction. Therefore, we have , and hence . The derivation in Section A.3, which uses only (iv), applies verbatim and yields with . Because , we have
Step 2. Since is an orthogonal projection, they are all symmetric and positive semi-definite. Therefore, so is , and we have . It indicates that holds for any . Equivalently, for , we have
Step 3. The sequence defined in (9) is by definition a Martingale difference sequence under the filtration . That is, by the tower property, and () are uncorrelated. Then,
which proves (7).
Step 4. Since is an orthogonal projection, Condition (ii) gives . Applying the triangle inequality, we have . Because and so is their sum, i.e. , applying (10) yields (8).
Step 5. Let , so by assumption. On , (10) bounds pointwise by , so for every ,
by Markov's inequality and (7), since and . Likewise, on the bound (8) gives pointwise, so . Finally, if then , and the last claim follows from the first limit.
Remark 1. Independence enters Corollary 1 only through the cross terms of Step 3. What the argument needs is that the centered terms are pairwise uncorrelated, and the martingale difference property (9) supplies this without independence. The two proofs differ in one further respect. Corollary 1 treats as a given sequence, so is deterministic and the covariance bound can be stated directly. Here is random and statistically coupled with , which is why Step 5 conditions on a spectral event instead.
Remark 2. Condition (i) is what restricts the scope of Corollary 2. In Corollary 1, is a given sequence and is deterministic, so the question of which follower model is evaluated at does not arise, and our implementation uses the most direct approximation of , namely the surrogate model built from . Once the sequence is adaptively generated, (i) requires to be computed from together with the reward estimate available at the end of iteration , for instance the surrogate model built from , or from a trajectory subset disjoint from the one used for . Corollary 2 therefore covers these variants rather than Algorithm 1 as implemented. Otherwise a term survives even when . This is a requirement introduced by the stronger analysis rather than a defect of the original formulation, and since depends only on the eigenspace partition of at the threshold , the substitution is expected to leave unchanged whenever the spectral gap at exceeds the estimation perturbation.
Remark 3. The spectral hypotheses also differ from that of Corollary 1, which asks for . The condition needed for the bias term is strictly stronger, and coincides with the persistent excitation condition familiar from adaptive control and system identification, where it is either assumed of the input signal or enforced by injecting a dither signal. Empirically, cond() remains bounded in [7.3, 103.1] across three seeds over 400 outer iterations, which together with implies linear growth of .
A.5 Proposition 2
Proof. First, we show that . It is straightforward from the linear reward structure: for any ,
Next, we show that , where is the optimal value function corresponding to . Let be the soft Bellman operator corresponding to reward function , defined as
where is the expectation taken for the next state given the current state s and the action b. It has been shown that the soft Bellman operator is contraction (Haarnoja et al., 2017).
Because for all , we have
Analogously, by using the other side of the inequality, , we have . Therefore, for any , we have
Because soft Bellman operators are contraction maps, and are the unique fixed points of and , respectively. Therefore, we have
Rearranging the right-most side, we have
The right-hand side of the above inequality is derived by using . The left-hand side is derived by using the fact that if the optimal soft value function corresponding to is , then the optimal soft value function corresponding to is . Hence, we have .
Finally, we bound the HG. First, we derive the bound for the Conf-MDP setting. Let be the HG derived in (11), where the ground-truth value function of the follower is used. Let be the HG computed using the estimated value function of the follower, . Then, it is easy to see that only the term depends on the follower's value function. Therefore,
where and are as defined in (6) with the ground-truth value function and its estimate . Noting that for any constant ,
where denotes the conditional expectation under the natural filtration generated by , we have
With , we have
\begin{align*}&\left\|\nabla_{\theta}Q_{F}^{\theta\dagger}(s,b)-\nabla_{\theta}\widehat{Q_{F}^{\theta\dagger}}(s,b)\right\|\\&\quad=\left\|\mathbb{E}_{\tau}\left[\sum_{t=0}^{\infty}\gamma_{F}^{t+1}(V^{\star}(s_{t+1})+c(1-\gamma_{F})^{-1}-\widehat{V}(s_{t+1}))\nabla_{\theta}\log p^{\theta}(s_{t+1}\mid s_{t},b_{t})\right|\begin{array}{l}s_{0}=s\\ b_{0}=b\end{array}\right]\right\|\\&\quad\leqslant\mathbb{E}_{\tau}\left[\sum_{t=0}^{\infty}\gamma_{F}^{t+1}\Big|V^{\star}(s_{t+1})+c(1-\gamma_{F})^{-1}-\widehat{V}(s_{t+1})\Big|\left\|\nabla_{\theta}\log p^{\theta}(s_{t+1}\mid s_{t},b_{t})\right\|\Big| \begin{array}{l}s_{0}=s\\ b_{0}=b\end{array}\right]\\&\quad\leqslant\|\widehat{V}-V_{c}^{\star}\|_{\infty}\mathbb{E}_{\tau}\left[\sum_{t=0}^{\infty}\gamma_{F}^{t+1}\|\nabla_{\theta}\log p^{\theta}(s_{t+1}\mid s_{t},b_{t})\|\Bigg|\begin{array}{l}s_{0}=s\\ b_{0}=b\end{array}\right]\\&\quad\leqslant L(1-\gamma_{F})^{-1}\|\Delta_{\omega}\|_{2}\mathbb{E}_{\tau}\left[\sum_{t=0}^{\infty}\gamma_{F}^{t+1}\|\nabla_{\theta}\log p^{\theta}(s_{t+1}\mid s_{t},b_{t})\|\Bigg|\begin{array}{l}s_{0}=s\\ b_{0}=b\end{array}\right].\end{align*}Hence, we have
\begin{align*}&\left\|\nabla_{\theta}\widehat{J_{L}(\theta,g^{\theta\dagger})}-\nabla_{\theta}J_{L}(\theta,g^{\theta\dagger})\right\|\\&\quad\leqslant\frac{L\|\Delta_{\omega}\|_{2}}{1-\gamma_{F}}\mathbb{E}_{\tau}\left[\sum_{t=0}^{\infty}\gamma_{L}^{t}\frac{|B_{L}^{\theta\dagger}(s_{t},b_{t})|}{\beta}\mathbb{E}_{\tilde{\tau}}\left[\sum_{\tilde{\ell}=0}^{\infty}\gamma_{F}^{\tilde{\ell}+1}\left\|\nabla_{\theta}\log p^{\theta}(\tilde{s}_{\tilde{\ell}+1}\mid\tilde{s}_{\tilde{\ell}},\tilde{b}_{\tilde{\ell}})\right\|\right|\begin{array}{l}\tilde{s}_{0}=s_{t}\\ \tilde{b}_{0}=b_{t}\end{array}\right]\right].\end{align*}This completes the proof for the Conf-MDP case.
Next, we derive the bound for 2-player MGs. Similarly to the above argument, we have from (12)
where and are as defined in (13) with the ground-truth value function and its estimate , and the expectation is taken for . Noting that for any constant ,
where denotes the conditional expectation under the natural filtration generated by , we have
Noting that
we have with ,
The rest follows the same argument as the Conf-MDP case. This completes the proof.
B Detail Implementation
B.1 Hypergradient derived in Kudo et al. (2026)
The HG in Conf-MDP settings can be explicitly written as
(11)
where is interpreted as the initial distribution .
In the context of 2-player MGs, the benefit of the leader , given that the follower takes action b at state s under the leader's action a, is defined as:
The HG for 2-player MG with a stochastic leader policy is derived as follows. In the following, denotes the discounted state visitation distribution under the leader's policy and its corresponding best response follower's policy .
Kudo et al. (2026) show that the HG of (4) with respect to is given by
where the expectation is taken for , and
B.2 Hypergradient Baseline
B.2.1 Hypergradient Baselines for Conf-MDP
Based on the HG formulation derived in Appendix B.1, we introduce baseline functions to reduce the variance of the gradient estimators. For the Conf-MDP setting in Equation (11), we subtract
from . Because is independent of the action , it effectively serves as an unbiased baseline when marginalized over the action distribution:
where we have . Note that this formulation is not used in Kudo et al. (2026) because estimating both and its expectation requires multiple trajectories starting from the same state . In our setting, we can easily approximate by using the surrogate follower .
To further reduce variance, an alternative formulation incorporating a temporal difference-like baseline can be employed by subtracting from :
(14)
However, it is important to note that this specific TD-like term does not act as a strict baseline, making the resulting gradient estimator biased rather than unbiased.
B.2.2 Hypergradient Baselines for 2-player MG
Similarly, for the 2-player MG setting derived in (12), we apply a baseline to reduce variance by subtracting from :
The baseline formulation utilized in this setting is strictly unbiased, meaning it yields an unbiased gradient estimator.
B.3 Reward Identification Algorithm
Algorithm 2 Reward Identification
Input: , threshold parameter .
1: Perform eigen decomposition
2: Compute a diagonal matrix , where if , 0 otherwise
3: Compute the scaled covariance matrix
4:
5: Solve to obtain
Output:
B.4 Modules within Proposed Algorithm 1
Note that denotes state in Conf-MDP settings and denotes a pair of state and leader action in 2-player MGs.
Algorithm 3 CriticUpdate() (Expected SARSA variant)
Input: Current critic , policies , batch , learning rate , discount factor
1: for do
2: Compute expected value:
3:
4:
5:
Output:
Algorithm 4 CriticUpdate (TD with target network)
Input: Online critic , target critic , batch , discount , learning rate , Polyak factor
1: for do
2:
3:
4: (Polyak averaging)
Output: Updated critics .
Algorithm 5 PartialDerivative() in Conf-MDP Settings
Input: Trajectory batch , current leader parameter , leader value function , initial state distribution
1:
Output:
Algorithm 6 PartialDerivative() in Markov Game Settings
Input: Transition sample batch , current leader parameter , leader Q-function , leader policy , surrogate follower policy
1:
2: # Empirical approximation of eq. (12) without discount factor
Output:
Algorithm 7 FollowerQGrad() in Markov Game Settings
Input: Target state , leader action , follower action , full trajectory batch , current leader parameter , follower soft value
1: Extract segments: \mathcal{R}_{sab} \leftarrow \left\{ \tau^{k:T} \mid (s_k, a_k, b_k) = (s, a, b) for (s_k, a_k, b_k) \in \tau \in \mathcal{R} \right\}
2:
Output:
Algorithm 8 Influence Term
Algorithm 9 Influence Term with Baseline in Markov Game Settings (Discrete Case)
1: Compute baseline: 2:
C Experiment
C.1 Implementation Details
Table 2 summarizes the implementation choices used in each environment. While the overall algorithmic framework is shared across settings, several components are instantiated differently depending on whether the transition dynamics are known or unknown. In the Conf-MDP experiments, quantities such as , , , and are computed analytically from the known system dynamics using the Discrete Algebraic Riccati Equation (DARE) and discrete Lyapunov equations. In the 2-player Markov game experiments, surrogate policies and value-related terms are computed either by dynamic programming or by successor-feature-based estimation, depending on whether the transition model is available. For the continuous setting, the critic is first pre-trained with SARSA-TD updates from randomly initialized trajectories, and the transition dynamics are estimated by linear regression when unknown.
Table 2: Implementation Details by Environment
| Setting | Component | Algorithm 1 Line | Implementation Details |
|---|---|---|---|
| Conf-MDP (Common) | 7 | Since the transition dynamics are linear-Gaussian and the reward functions are quadratic, it is derived directly from the DARE solution. | |
| 9 | Analytically computed by solving the DARE. | ||
| 13 | Obtained via the discrete Lyapunov equation. | ||
| Conf-MDP (Easy) | HG Calculation | 15 | Computed analytically using the known transition dynamics and policies, which bypasses the need for empirical trajectory sampling. |
| Conf-MDP (Hard) | HG Calculation | 15 | A variance reduction baseline is adopted to stabilize stochastic gradient estimates, using the expectation obtained via DARE as a baseline for the term. |
| 2-player MG (Discrete) | Surrogate Policy | 5, 6 | Computed via Soft Value Iteration (SoftVI) if the transition probability (P) is known, or by incorporating Successor Features (SFs) to calculate expected feature values if unknown. |
| Value functions & gradients | 9, 10, 12, 13 | If P is known, computed using dynamic programming to eliminate sampling noise and improve learning efficiency. | |
| 2-player MG (Continuous) | Critic () Initialization | 1 | Prior to the main loop, pre-trained for 50 optimization epochs via SARSA-TD updates using 40 episodes (approx. 4,000 transitions) generated from a randomized initial distribution. |
| Transition Dynamics Benefit () | 512 | Estimated via linear regression if unknown. Calculated as the difference between the online leader's action-value function () and the target leader's value function (). | |
| 13 | Obtained via the discrete Lyapunov equation. |
C.2 Synthetic task to evaluate the effect of shaped reward.
We verify that a single IRL reward bias cannot achieve the true optimal objective in a simple environment due to dynamics mismatch.
We consider a Conf-MDP , where the state space is and the action space is . The true follower's reward is for all . The transition probabilities are parameterized by such that , and .
Instead of a standard environment reward, we define a diagnostic meta-reward to explicitly evaluate the behavior of the surrogate policy. Let the leader's reward be and the regularization term be , where is the estimated follower policy. The leader's diagnostic meta-objective is defined as:
To simulate an estimated reward vector produced by IRL, we initialize the reward vector as with . By observing the gap between the estimated single reward and the aggregate rewards, we evaluate how this estimation error influences the optimization goal. The objective of this experiment is to drive the KL divergence to a uniform distribution to zero, and to converge to 0.5.
Since the leader knows the true dynamics, the surrogate follower's policy is recovered using Soft Value Iteration. As shown in the Figures 4 to 6 below, the estimation errors prevent the method from achieving the true optimal objective, confirming our observation.
Results The reward identifiability is not only theoretically but also practically important. The experimental results are shown in Figures 4 to 6. RE-HG effectively eliminates the potential shaping term, which is evidenced by the convergence of Terms 2, 3 in (11) and the estimated reward function to 0. Furthermore, the leader's parameter successfully converges to the target value of 0.5. In contrast, the single reward baseline (Single) fails to achieve the optimal objective due to the influence of potential shaping. Specifically, the KL divergence, individual evaluation terms, and the parameters converge to sub-optimal values. These results empirically demonstrate that the inability to vanish the potential shaping term inevitably leads to estimation errors when a dynamics mismatch exists.

Figure 4: Estimated Rewards
Policy KL to Uniform
Figure 5: Summary of Diagnostics

Figure 6: Summary of Terms
Hyperparameters Hyperparameters used in this experiment are summarized in Table 3.
Table 3: Hyperparameters
| Parameter | Symbol | Value |
|---|---|---|
| Leader Discount Factor | 0.95 | |
| Follower Discount Factor | 0.95 | |
| Leader Parameter Learning Rate | ||
| Initial Leader Parameter | 0.25 | |
| Leader Iterations | - | 500 |
| Temperature () | - |
C.3 2-player Markov Game (Discrete Case)
Implementation Details In Lines 5, 6 of Algorithm 1, when the transition dynamics is known, the leader computes the surrogate follower's policy via Soft Value Iteration (SoftVI). At Lines 5, 6 of Algorithm 1, when the transition dynamics is not known, the leader computes the expected feature value under the initial distribution by incorporating Successor Features (SFs) (Barreto et al., 2017). IRL is performed at iterations 0, 10, ..., 90. At Lines 9, 10, 12, 13 of Algorithm 1, when the transition dynamics is known, the leader computes the value functions and gradients via dynamic programming. This approach eliminates sampling noise and significantly improves learning efficiency by avoiding Monte-Carlo simulations. However, it should be noted that this is an approximation based on learned SFs rather than unbiased sampling; therefore, the estimates may inherit biases from TD errors during the SF training process. At Line 16 of Algorithm 1, we utilize the Algorithm 9.

(a) Reward Correlation

(b) HG Similarity
Figure 7: Discrete toy task support material. "P" indicates the known transition probability scenario. (a) Pearson correlation between the recovered and true rewards, weighted by the undiscounted state-action occupancy measure of the surrogate follower policy. For each run, performance is evaluated as the mean of 10 test rollouts. Avg. (line) and std. (shaded area) across the 3 independent training runs are displayed. (b) Cosine similarity of the HG between the estimated and Oracle models. For each run, performance is evaluated as the mean of 10 test rollouts. Avg. (line) and std. (shaded area) across the 3 independent training runs are displayed.
Result As discussed in Section 5, Figure 7 provides the detailed trajectories of the reward correlation and the HG cosine similarity. Figure 7a shows that the Pearson correlation remains relatively low. This is primarily due to estimation errors in regions where insufficient trajectories were collected, which limits the accuracy of reward recovery. However, as illustrated in Figure 7b, the cosine similarity of the HG remains highly stable throughout the training process. This indicates that the estimation errors in those rarely visited regions do not negatively affect the overall gradient direction.
Hyperparameters Hyperparameters used in this experiment are summarized in Table 4.
Table 4: Hyperparameters
| Parameter | Symbol | Value |
|---|---|---|
| Leader Discount Factor | 0.99 | |
| Leader Actor Learning Rate | ||
| Leader Critic Learning Rate | ||
| Leader Iterations | - | 300 |
| Critic Updates per Iteration | - | 10 |
| Follower Discount Factor | 0.9 | |
| Follower Learning Rate (SoftQL) | 0.01 | |
| Temperature () | - | |
| Max Inner Iterations | - | 150 |
| Inner Episodes | - | 50 |
| Successor feature Update Episodes | - | 100 |
| Expert Episodes per Iteration | - | 200 |
| IRL Rollout Episodes | - | 100 |
| Learning Rate | - | |
| IRL Timing | - | Step 0,10, ..., .90 |
| Successor feature Learning Rate | 0.05 | |
| Adam First Moment Coefficient | 0.9 | |
| Adam Second Moment Coefficient | 0.999 | |
| threshold |
C.4 Configurable MDP Continuous
Analytical Derivation of the Leader's Value Functions First, we define the system dynamics, the leader's immediate reward, and the follower's best response policy. The state transition is given by:
The leader's immediate reward is defined using the weighting matrices and , and a configuration cost :
The follower's best response policy is , which can be reparameterized using the noise term as:
We assume the leader's optimal value function takes a quadratic form:
where is a symmetric matrix and is a scalar. The leader's action-value function and the state-value function satisfy the following Bellman equations:
To identify and , we first evaluate the expectation over the unobservable disturbance in Eq. (20). Substituting Eq. (16) and Eq. (19) into Eq. (20), and utilizing the properties and , we obtain:
Substituting Eq. (17) and Eq. (22) into Eq. (20) yields the closed quadratic form for :
Next, we evaluate Eq. (21) by taking the expectation of Eq. (23) over the follower's action noise . Defining the closed-loop transition matrix as and substituting Eq. (18), we expand the state-action terms:
Since , the cross terms vanish. By applying , the quadratic terms in evaluate to traces:
(24)
Finally, by matching the quadratic and scalar coefficients of Eq. (24) with the ansatz in Eq. (19), we conclude that is the unique positive semi-definite solution to the discrete-time Lyapunov equation:
The scalar constant is subsequently obtained as:
Thus, the leader's value functions are fully determined analytically without requiring neural network approximations.
C.4.1 Easy Setting
Task Description The task is defined as an -zone building thermal control problem with . The state represents temperature deviations, and the follower's action represents HVAC actuation. As defined previously, the system dynamics follow with , and the leader's immediate reward is .
For the leader's immediate reward, the specific weighting matrices , and the configuration cost are defined as:
where is the identity matrix, and is a vector of ones.
The configurable state transition matrix is parameterized by the leader's decision variables, insulation levels and airflow levels , as follows:
where . The positive coefficients and representing specific physical constants are set as:
The follower's immediate reward is defined as a quadratic cost:
The specific weighting matrices for the follower are given by:
The control input matrix and the unobservable disturbance covariance are defined as:
Implementation Details In Line 7 of Algorithm 1, since the transition dynamics are linear-Gaussian and the reward functions are quadratic, we obtain directly from the Discrete Algebraic Riccati Equation (DARE) solution for the follower's policy. For the same reason, in Line 9 of Algorithm 1, we analytically compute and by solving the DARE. In Line 13 of Algorithm 1, we obtain via the discrete Lyapunov equation. Finally, in Line 15 of Algorithm 1, the HG components are computed analytically using the known transition dynamics and policies, which bypasses the need for empirical trajectory sampling in these steps.

Figure 8: Results on Building Thermal Control. For each run, performance is evaluated as the mean of 50 test rollouts. Avg. (line) and std. (shaded area) across the 3 independent training runs are displayed.
Result Figure 8 presents the performance comparison in the Building Thermal Control task. In our setup, the initial state is stochastic, and the leader's initial parameters are sampled from a uniform distribution . To ensure the statistical reliability of the results despite this randomness, we evaluated the methods across three different environments, each with ten independent trials using distinct random seeds.
The results clearly demonstrate that RE-HG significantly outperforms NO-INFLUENCE. Notably, the performance of RE-HG is comparable to that of ORACLE. This indicates that our approach effectively recovers the necessary information to achieve near-optimal leader strategies.
Hyperparameters Hyperparameters used in this experiment are summarized in Table 5.
Table 5: Hyperparameters
| Name | Symbol | Value |
|---|---|---|
| Leader iterations | 200 | |
| Episodes per iteration | - | 100 |
| Evaluation episodes | - | 50 |
| Leader discount factor | 0.9 | |
| Follower discount factor | 0.9 | |
| Leader learning rate | 0.1 | |
| Temperature | 0.1 | |
| Gradient clip max norm | - | 1.0 |
| Local IRL iterations | - | 200 |
| Local IRL learning rate | - | 0.01 |
| threshold |
C.4.2 Hard Setting (8-Zone Central Corridor Topology)
Task Description The task is extended to an -zone building thermal control problem where . The state represents temperature deviations, and the follower's action represents HVAC actuation for the directly controlled zones. As defined previously, the system dynamics follow with , and the leader's immediate reward is .
For the leader's immediate reward, the specific weighting matrices , and the configuration cost are defined as:
where is the identity matrix, and is a vector of ones.
The configurable state transition matrix is parameterized by the leader's decision variables, insulation levels and airflow levels . The topology consists of two core corridors (Zones 1 and 2) and six perimeter offices (Zones 3–8). The off-diagonal entries (representing heat transfer from zone to zone ) are:
where corresponds to the specific airflow parameter for the edge. Specifically, the edges connected to the West corridor (Zone 1) are controlled by (Zone 3), (Zone 4), and (Zone 6). The edges connected to the East corridor (Zone 2) are controlled by (Zone 5), (Zone 7), and (Zone 8). The parameter is kept redundant to maintain the unified dimensionality . The diagonal entries are defined to preserve energy balance:
where . The physical heat transfer coefficients are set to , , , and the insulation effects are:
The follower's immediate reward is defined as a quadratic cost:
The specific weighting matrices for the follower are given by:
Note that Zone 4 (VIP office) is assigned the highest priority weight () despite having no direct HVAC control, creating a challenging under-actuated control task for the follower.
The control input matrix and the unobservable disturbance covariance are defined as:

Figure 9: Topology of the 8-Zone Building Thermal Control Environment. Nodes represent the zones, with their respective HVAC control inputs. Edges represent the heat transfer between adjacent zones, parameterized by the leader's airflow configuration . Note that the VIP office (Zone 4) has no direct HVAC, highlighting the under-actuated nature of the follower's control task.
Implementation Details In Line 7 of Algorithm 1, since the transition dynamics are linear-Gaussian and the reward functions are quadratic, we obtain directly from the DARE solution for the follower's policy. For the same reason, in Line 9 of Algorithm 1, we analytically compute and by solving the DARE. At line 15 in Algorithm 1, we adopt the variance reduction baseline as formulated in (14). We utilize the relation , which is computed by the discrete Lyapunov equation. Furthermore, we use the expectation obtained via DARE as a baseline for the term to stabilize the stochastic gradient estimates. Finally, in Line 15 of Algorithm 1, the HG components are computed analytically using the known transition dynamics and policies, which bypasses the need for empirical trajectory sampling in these steps. To ensure stable gradient-based optimization, we apply gradient norm clipping with a maximum norm of 1.0. If the L2-norm of the gradient exceeds this threshold, we rescale it to maintain numerical stability during policy updates.

(a) Leader's discounted return
(b) Reward Correlation
(c) HG CosineSimilarity
Figure 10: Results for the relaxed setting ( ). (a) Leader's discounted return. For each run, performance is evaluated as the mean of 50 test rollouts. Avg. (line) and std. (shaded area) across the 5 independent training runs are displayed. Solid lines and shaded areas denote the avg. and std., respectively. (b) Pearson correlation between the recovered and true rewards, weighted by the undiscounted state-action occupancy measure of the surrogate follower policy. (c) Cosine similarity of the HG between the estimated and ORACLE

(a) Leader's discounted return
(b) Reward Correlation
(c) HG CosineSimilarity
Figure 11: Results for the relaxed setting ( ). (a) Leader's discounted return. For each run, performance is evaluated as the mean of 50 test rollouts. Avg. (line) and std. (shaded area) across the 5 independent training runs are displayed. Solid lines and shaded areas denote the avg. and std., respectively. (b) Pearson correlation between the recovered and true rewards, weighted by the undiscounted state-action occupancy measure of the surrogate follower policy. (c) Cosine similarity of the HG between the estimated and ORACLE.
Result As discussed in the ablation study in Section 5, we investigate the impact of the follower's reward landscape steepness on the optimization process. In the original Hard Setting, the highly skewed penalty for the VIP zone ( ) caused gradient explosions, trapping the ORACLE in a suboptimal local minimum.
Figure 10 and Figure 11 present the results when this steep penalty is relaxed to and , respectively. As shown in the Figures 10 and 11, relaxing the reward steepness mitigates the gradient explosion. Consequently, the performance of the ORACLE significantly improves compared to the original case, successfully finding superior leader policies. Meanwhile, RE-HG maintains robust and highly stable performance across all variations, consistently achieving high cosine similarity and optimal returns. This confirms that while the ORACLE is highly sensitive to sharp reward landscapes, the implicit smoothing mechanism of RE-HG inherently generates a manageable gradient landscape, reliably extracting effective HG regardless of the underlying reward steepness.
Hyperparameters Hyperparameters used in this experiment are summarized in Table 6.
C.5 2-player MG (Continuous)
Task Description The environment is modeled as a discretized linear system with a time step . The state represents the position and velocity, and its evolution is governed by , where and are the control inputs of the leader and the follower, respectively. The system matrices and the initial state are defined as:
Table 6: Hyperparameters
| Name | Symbol | Value |
|---|---|---|
| Leader iterations | 500 | |
| Episodes per iteration | - | 100 |
| Evaluation episodes | - | 50 |
| Leader discount factor | 0.9 | |
| Follower discount factor | 0.9 | |
| Leader learning rate | 0.1 | |
| Temperature | 0.1 | |
| Gradient clip max norm | - | 1.0 |
| Local IRL iterations | - | 200 |
| Local IRL learning rate | - | 0.01 |
| threshold |
Reward Functions The follower maximizes the quadratic reward to stabilize at the origin, with and . The leader aims to induce oscillation around the target by maximizing a Gaussian kernel reward:
where . Note that while depends only on the state , it is implicitly coupled with the actions and through the system dynamics.
Implementation Details Before the main training loop, the leader's critic is pre-trained using 40 episodes generated from a randomized initial distribution where and . This dataset comprises approximately 4,000 transitions based on a 100-step limit per episode, which are used to perform 50 optimization epochs via SARSA-TD updates to stabilize the critic initialization. In Line 5 of Algorithm 1, if the transition dynamics are unknown, we estimate them via linear regression. In Line 13 of Algorithm 1, we obtain via the discrete Lyapunov equation. In Line 12 of Algorithm 1, the benefit is calculated as the difference between the online leader's action-value function () and the target leader's value function (). To ensure stable gradient-based optimization, we apply gradient norm clipping with a maximum norm of 1.0. If the L2-norm of the gradient exceeds this threshold, we rescale it to maintain numerical stability during policy updates.
Result As discussed in Section 5, we present the detailed evaluation metrics for the continuous 2-player Markov Game task. Figure 12a shows the highly stable weighted Pearson correlation between the recovered and true rewards. Figure 12b illustrates the cosine similarity of the hypergradient direction against ORACLE. As shown in Figure 13, calculating the benefit using the online network for both functions (i.e., ) fails to achieve stability. This instability arises because, near the optimal policy, the influence term practically vanishes. While learns and generalizes at this point, the leader's policy continues to change due to other gradient terms. Consequently, the previously generalized values become inaccurate for the shifted policy, leading to performance degradation.

(a) Reward Correlation

(b) HG Cosine Similarity
Figure 12: (a) Pearson correlation between the recovered and true rewards, weighted by the undiscounted state-action occupancy measure of the surrogate follower policy. (b) Cosine similarity of the HG between the estimated and ORACLE.

Figure 13: This figure illustrates the instability caused by calculating the benefit using the online network for both functions. Specifically, the benefit is calculated as the difference between the online leader's action-value function () and the online leader's value function (). For each run, performance is evaluated as the mean of 10 test rollouts. Avg. (line) and std. (shaded area) across the 3 independent training runs are displayed. “P” indicates the known transition probability scenario.
Hyperparameters Hyperparameters used in this experiment are summarized in Table 7.
Table 7: Hyperparameters
| Name | Symbol | Value |
|---|---|---|
| Time step | 0.1 | |
| Max steps per episode | 100 | |
| Leader iterations | 800 | |
| Episodes per iteration | - | 4 |
| Leader discount factor | 0.99 | |
| Follower discount factor | 0.99 | |
| Leader learning rate | 0.05 | |
| Temperature | 0.01 | |
| Leader Critic Update times | - | 5 |
| Leader sigma | ||
| threshold | ||
| Pre-training episodes | 40 | |
| Pre-training epochs | - | 50 |
C.6 Comparing Oracle
In the Hard Setting of Section C.4.2, RE-HG attains a higher leader return than ORACLE. Since ORACLE computes the exact hypergradient, the gap may simply reflect the smaller effective update of RE-HG. We test this by returning the ORACLE update in three ways: (a) a tuned learning rate, (b) gradient clipping, and (c) a scaled influence term. Modification (c) is the closest ORACLE-side analogue of the regularization in RE-HG, since the eigenvalue truncation in Algorithm 2 has no counterpart when the true reward is available.
All ablations use the continuous Conf-MDP environment with the same base configuration as the Hard Setting of Section C.4.2, and each ORACLE and RE-HG variant is evaluated over five random seeds. Figure 14 shows the learning curves.

Figure 14: Learning curves for three ORACLE-side modifications. Lines represent the mean discounted leader return across five random seeds, and shaded regions represent one standard deviation. (a) Tuned learning rate: the ORACLE learning rate is varied. (b) Gradient clipping: the hyper-gradient is clipped and the learning rate is varied. (c) Influence-term scaling: the influence term is multiplied by a global factor while the direct term is left unchanged. The dashed RE-HG curve is included as the baseline in each panel.
Tuning the learning rate does not help. The ORACLE uses in the Hard Setting, and Figure 14(a) shows that none of the alternatives 0.01, 0.03, and 0.3 improved on it, the best being . Clipping the hypergradient as fares no better across learning rates 0.003, 0.01, 0.03, and 0.1, the last of which is the original value, with a best of in Figure 14(b).
Scaling the influence term, the second term of the hypergradient, by factors between 0.03 and 0.5 while leaving the direct term unchanged does help. Figure 14(c) shows it raises the ORACLE return to between and , still far below the of RE-HG.
Rescaling the update therefore does not reproduce the effect of eigenvalue truncation. Modifications (a) and (b) change only the magnitude of the update, and (c) changes the ratio between the direct and influence terms by a single global factor. Eigenvalue truncation instead suppresses poorly excited directions of the influence term selectively, so it changes the direction of the update rather than its scale.
C.7 Multi-environment IRL
A natural alternative to the sequential aggregation of Algorithm 2 is to estimate one shared reward jointly from the demonstrations accumulated across all environments visited so far. We ask whether sequential aggregation gives anything up.
We implemented a joint multi-environment IRL baseline from Section 7.2 of Cao et al. (2021). That formulation assumes access to the transition dynamics, so we evaluated both methods in a discrete environment with known dynamics. Figure 15 shows the learning curves.

Figure 15: Comparison between the joint multi-environment IRL baseline (CAO) and RE-HG in the discrete toy environment with known transition dynamics. Lines represent the mean discounted leader return across three random seeds, and shaded regions represent one standard deviation.
The two methods match throughout training and both converge close to the optimum, reaching discounted leader returns of 21.46 and 20.75 respectively, averaged over the last 30 leader iterations with the same three random seeds. Sequential aggregation is therefore no better in final performance, which is what our analysis predicts: both approaches resolve reward ambiguity under their respective idealized assumptions. Its advantages are algorithmic, and are threefold.
First, RE-HG integrates reward estimation into the standard bilevel optimization procedure. Each leader update presents the follower with a new environment, and RE-HG re-estimates the reward from trajectories collected in that environment and immediately computes the hypergradient. Joint multi-environment IRL instead estimates a shared reward from demonstrations accumulated across environments, which requires storing past trajectories and deciding how many of them to keep.
Second, the formulation of Cao et al. (2021) assumes known transition dynamics, whereas RE-HG also applies to the two-player Markov game setting of this paper, where they are unknown.
Third, Theorem 1 and Proposition 2 are developed for sequential reward aggregation and give identifiability together with an error bound relating the reward-estimation error to the hypergradient error. We are not aware of a joint multi-environment IRL method that applies directly to our setting and offers a comparable guarantee.
C.8 Misspecified reward features
Assumption 1 assumes a known feature extractor. One-hot features make this harmless in discrete environments, but in continuous ones the recovered reward is only as good as the chosen basis, so we test three forms of misspecification: basis mismatch, limited update capacity, and redundant features. All experiments use the continuous Conf-MDP (LQR) environment with the same base configuration as the Hard Setting of Section C.4.2; each condition is evaluated over five random seeds. Figure 16 shows the learning curves.

Figure 16: Learning curves under reward-feature misspecification in the continuous Conf-MDP. Lines show mean discounted leader return and shaded regions show one standard deviation. The misspecified RE-HG runs use three random seeds, while the Oracle, No-Influence, and matched-setting RE-HG reference curves use five seeds. (a) Basis mismatch: the true reward contains off-diagonal interaction terms such as , whereas the IRL model is restricted to diagonal quadratic features. (b) Limited update capacity and representation misspecification: the three state-cost features with the largest true weights, accounting for approximately 80.4% of the total state-cost weight, are fixed at their true values to isolate an update-capacity restriction. A complementary curve fixes the three least-excited features at incorrect values, introducing genuine representation misspecification. (c) Redundant-feature over-specification: two or five cross-term features are added to the IRL model even though their true coefficients are zero. The RE-HG reference curve is included in every panel.
Under basis mismatch, Figure 16(a) shows that the exact analytic ORACLE becomes unstable because its HG is unregularized, yielding leader returns between and . RE-HG stays between and , consistent with the smoothing effect of eigenvalue truncation.
Figure 16(b) separates a restriction on update capacity from genuine representation error. Freezing the three state-cost features with the largest true weights, which account for of the total state-cost weight, at their true values introduces no representation error and isolates the effect of restricting which directions can be updated; RE-HG still reaches , well above the NO-INFLUENCE baseline of -153.21. Freezing the three least-excited features at incorrect values instead, [1, 1, 1] against true values [8, 3, 8], costs almost nothing: RE-HG reaches , because eigenvalue truncation already suppresses these directions.
With redundant features, Figure 16(c) shows that RE-HG again beats the NO-INFLUENCE baseline, reaching with two redundant features and with five.
C.9 Optimal follower assumption
Proposition 1 characterizes the IRL solution only when the follower plays its exact best response, and a real follower is at best approximately optimal. We therefore test two suboptimal followers: a myopic one that runs a limited number of Riccati iterations, , and an under-reactive one whose feedback gain is scaled as with . Smaller and larger mean larger deviations from the optimal follower.
Both experiments use the continuous Conf-MDP (LQR) environment with the same base configuration as the Hard Setting of Section C.4.2; each condition is evaluated over three random seeds and the RE-HG baseline over five. Figure 17 shows the learning curves and Figure 18 the total-variation (TV) distance between the suboptimal follower and the exact best response during training.

Figure 17: Learning curves under suboptimal follower models in the continuous Conf-MDP. Lines represent mean discounted leader return across three random seeds (five for the RE-HG baseline), and shaded regions represent one standard deviation. (a) Myopic follower: varying Riccati iteration budget . (b) Under-reactive follower: varying gain reduction parameter . The RE-HG curve is included as the baseline in each panel.
Persistence of follower suboptimality

Figure 18: Total-variation distance between the suboptimal follower and the exact best response over the course of training, for the same two follower models and in the same panel order as Figure 17. (a) Myopic follower. (b) Under-reactive follower. Lines represent the mean across three random seeds, and shaded regions represent one standard deviation.
The myopic follower deviates only transiently. In Figure 18(a) the initial TV distance is about 0.34 for T = 12 but the average over training is , and Figure 17(a) shows the leader return is essentially unaffected: RE-HG reaches for T = 30 and for T = 12.
The under-reactive follower deviates persistently, with TV distances between 0.15 and 0.66 throughout training in Figure 18(b). Here RE-HG adapts its reward estimate to the observed trajectories and, as Figure 17(b) shows, overtakes the ORACLE: for and for , against to for the ORACLE across the tested underreaction levels. The reward correlations stay between 0.70 and 0.82. The comparison is not symmetric, however: the ORACLE uses the true reward but still assumes an exact best response, which is violated here by construction.
Taken together, RE-HG tolerates both transient and persistent follower suboptimality by fitting its reward estimate to the behavior actually observed.
D Broader Impacts
This research can positively impact the efficiency of real-world hierarchical systems, such as smart grids and traffic control, where the follower's reward is unknown. However, if applied to human-centric domains like recommendation systems, inferring unobserved rewards from user behavior could lead to unintended manipulation or privacy concerns. To mitigate these risks, such applications require transparency regarding data usage and strict safety constraints on the leader's action space.
E Compute Resources
All experiments were conducted on a workstation equipped with dual Intel(R) Xeon(R) Gold 6348 CPUs @ 2.60GHz (totaling 56 physical cores and 112 logical threads) and 512 GB of RAM. The entire suite of experimental evaluations, including all baseline comparisons and ablations, was completed within 12 hours of total wall-clock time.