Interactive Inverse Reinforcement Learning of Interaction Scenarios via Bi-level Optimization
Summary
This paper introduces Interactive Inverse Reinforcement Learning (IIRL), a framework where a learner actively interacts with an expert to infer reward functions, formulated as a stochastic bi-level optimization problem. The authors propose the BISIRL algorithm, providing convergence guarantees and experimental validation for this interactive learning paradigm.
View Cached Full Text
Cached at: 05/12/26, 06:48 AM
# Interactive Inverse Reinforcement Learning of Interaction Scenarios via Bi-level Optimization
Source: [https://arxiv.org/html/2605.08131](https://arxiv.org/html/2605.08131)
Yue Mao1Shicheng Liu2Siyuan Xu2Minghui Zhu2 1Department of Mechanical Engineering, Pennsylvania State University 2Department of Electrical Engineering, Pennsylvania State University \{ypm5140, sfl5539, spx5032, muz16\}@psu\.edu
###### Abstract
Inverse reinforcement learning \(IRL\) learns a reward function and a corresponding policy that best fit the demonstration data of an expert\. However, in the current IRL setting, the learner is isolated from the expert and can only passively observe the expert demonstrations\. This limits the applicability of IRL to interactive settings, where the learner actively interacts with the expert and needs to infer the expert’s reward function from the interactions\. To bridge the gap, this paper studies interactive IRL \(IIRL\) where a learner aims to learn the reward function of an expert and a policy to interact with the expert during its interactions with the expert\. We formulate IIRL as a stochastic bi\-level optimization problem where the lower level learns a reward function to explain the behaviors of the expert, and the upper level learns a policy to interact with the expert\. We develop a double\-loop algorithm, Bi\-level Interactive Scenarios Inverse Reinforcement Learning \(BISIRL\), which solves the lower\-level problem in the inner loop and the upper\-level problem in the outer loop\. We formally guarantee that BISIRL converges at a rate of𝒪\(1/K\)\\mathcal\{O\}\(1/\\sqrt\{K\}\)and validate our algorithm through extensive experiments\.
## 1Introduction
Inverse reinforcement learning \(IRL\) is a framework in which a learner seeks to recover a reward function and a corresponding policy that are consistent with the demonstrated trajectories of an expert\. IRL has been successfully applied across a wide range of domains, including robotics\[[49](https://arxiv.org/html/2605.08131#bib.bib4),[24](https://arxiv.org/html/2605.08131#bib.bib93)\], cybersecurity\[[46](https://arxiv.org/html/2605.08131#bib.bib11),[7](https://arxiv.org/html/2605.08131#bib.bib94)\], and biology\[[12](https://arxiv.org/html/2605.08131#bib.bib31),[2](https://arxiv.org/html/2605.08131#bib.bib98)\]\.
In these classical IRL settings, the learner is assumed to be a passive observer of expert demonstrations and cannot influence the expert’s behavior\. However, many emerging applications motivate a more interactive paradigm, in which the learner actively interacts with the expert and learns the expert’s reward function during the interactions\. For example, consider a human–robot collaboration scenario\[[3](https://arxiv.org/html/2605.08131#bib.bib6)\], where a robot assists a human in navigating a maze by opening doors that lead to different paths\. The human cannot open doors independently and must rely on the robot to select the correct doors to reach the destination\. In this setting, the robot and human operate within the same environment, and the robot’s actions directly influence the human’s behavior\. To assist effectively, the robot needs to infer the human’s destination from observed interactions and adapt its actions accordingly\. A similar challenge arises in cybersecurity applications\[[46](https://arxiv.org/html/2605.08131#bib.bib11)\], where a defender \(learner\) learns the attack goal of an attacker \(expert\) and dynamically adjusts its defense strategy while defending against the attacker\. In both examples, the learner’s behavior affects the expert’s actions, and learning must occur online through interactions\. However, existing IRL frameworks are not designed to handle such interactive settings, as they restrict the learner to passive observation and prohibit learning during interaction\.
To bridge the gap, this paper studies interactive IRL \(IIRL\), where a learner aims to learn a reward function to explain the expert’s behavior and a policy to effectively interact with the expert during its interactions with the expert\. The recent works study fully cooperative IIRL\[[25](https://arxiv.org/html/2605.08131#bib.bib10),[3](https://arxiv.org/html/2605.08131#bib.bib6),[14](https://arxiv.org/html/2605.08131#bib.bib8),[11](https://arxiv.org/html/2605.08131#bib.bib7)\]where the learner and expert share an identical reward function, and fully competitive IIRL\[[46](https://arxiv.org/html/2605.08131#bib.bib11),[37](https://arxiv.org/html/2605.08131#bib.bib12)\]where the learner’s reward is the negative of the expert’s reward\. However, many real\-world interactions fall between these two extremes\. In such settings, the learner and the expert have distinct and potentially misaligned objectives that are neither fully cooperative nor fully competitive\. For example, in a traffic interaction scenario\[[6](https://arxiv.org/html/2605.08131#bib.bib24)\], a vehicle \(learner\) and a pedestrian \(expert\) navigate an intersection toward different destinations\. The vehicle must yield to the pedestrian to ensure safety, while still pursuing its own navigation goal\. This interaction involves partially aligned but non\-identical reward functions\. Motivated by such scenarios, we study the general case in which the reward functions of the learner and the expert are arbitrary\. We summarize our contributions as follows\.
Contribution statement\. Our contributions are threefold\.
First, we study an IIRL problem where the learner learns a reward function to explain the expert’s behaviors and a policy to interact with the expert\. We formulate this setting as a stochastic bi\-level optimization problem, where the lower level learns the expert’s reward function and the upper level optimizes the learner’s interaction policy\.
Second, we propose a double\-loop algorithm, termed Bi\-level Interactive Scenarios Inverse Reinforcement Learning \(BISIRL\), to solve the bi\-level optimization problem\. A key challenge lies in computing the hypergradient of the upper\-level objective, which involves an intractable Hessian\. To address this challenge, we propose a hypergradient approximation based on simultaneous perturbation stochastic approximation \(SPSA\)\[[33](https://arxiv.org/html/2605.08131#bib.bib34)\]\. We theoretically prove that this approximation reduces the computational complexity of hypergradient computation from𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)to𝒪\(H\)\\mathcal\{O\}\(H\), whereHHis the trajectory length\.
Third, we theoretically guarantee that BISIRL converges at a rate of𝒪\(1/K\)\\mathcal\{O\}\(1/\\sqrt\{K\}\), whereKKis the iteration number\. We further validate the proposed approach through four experiments, demonstrating that BISIRL achieves performance comparable to baselines that require additional information\.
## 2Related work
IRL and multiagent IRL \(MA\-IRL\)\.As\[[23](https://arxiv.org/html/2605.08131#bib.bib2)\]mentioned, IRL faces the challenge that the demonstrated trajectories can be explained by multiple reward functions\. Several approaches have been proposed to address this challenge\. The current state\-of\-the\-art IRL methods include maximum margin IRL\[[23](https://arxiv.org/html/2605.08131#bib.bib2),[1](https://arxiv.org/html/2605.08131#bib.bib3)\], maximum entropy IRL\[[49](https://arxiv.org/html/2605.08131#bib.bib4),[48](https://arxiv.org/html/2605.08131#bib.bib1)\], maximum likelihood IRL\[[42](https://arxiv.org/html/2605.08131#bib.bib48),[43](https://arxiv.org/html/2605.08131#bib.bib101)\], and Bayesian IRL\[[27](https://arxiv.org/html/2605.08131#bib.bib99),[4](https://arxiv.org/html/2605.08131#bib.bib100)\]\. However, these methods all focus on single\-expert scenarios\. MA\-IRL extends IRL to settings with multiple experts, where one or more learners recover the reward functions of multiple experts from their demonstrations\[[17](https://arxiv.org/html/2605.08131#bib.bib62),[41](https://arxiv.org/html/2605.08131#bib.bib61),[18](https://arxiv.org/html/2605.08131#bib.bib5)\]\. These MA\-IRL approaches still assume that the learners are isolated from the experts \(i\.e\., no direct interaction between them\) and thus cannot address interactive IRL scenarios\.
Fully cooperative and fully competitive IIRL\.Prior work on IIRL has primarily explored two cases: fully cooperative and fully competitive scenarios\. In the fully cooperative setting, the learner and expert share the same reward function, and their interaction is formulated as a cooperative game\[[25](https://arxiv.org/html/2605.08131#bib.bib10),[3](https://arxiv.org/html/2605.08131#bib.bib6),[14](https://arxiv.org/html/2605.08131#bib.bib8),[11](https://arxiv.org/html/2605.08131#bib.bib7)\]\. In this case, the learner’s objective is to recover the expert’s reward function\. In contrast, the fully competitive setting assumes the learner’s reward is the negative of the expert’s reward, leading to a zero\-sum game\[[46](https://arxiv.org/html/2605.08131#bib.bib11),[37](https://arxiv.org/html/2605.08131#bib.bib12)\]\. Here, the learner aims to learn an objective that directly opposes the expert’s reward\. Both of these approaches impose strong assumptions on the relationship between the expert’s and learner’s reward functions, specifically assuming they are either identical or exact opposites\. In this paper, the relationship between the reward functions of the learner and the expert is arbitrary\.
Bi\-level optimization\.Bi\-level optimization has been applied to many machine learning problems, including meta\-learning\[[16](https://arxiv.org/html/2605.08131#bib.bib90),[38](https://arxiv.org/html/2605.08131#bib.bib89)\], hyperparameter optimization\[[26](https://arxiv.org/html/2605.08131#bib.bib39),[39](https://arxiv.org/html/2605.08131#bib.bib72)\], and IRL\[[18](https://arxiv.org/html/2605.08131#bib.bib5),[21](https://arxiv.org/html/2605.08131#bib.bib83)\]\. A classic approach to such problems is the descent method\[[15](https://arxiv.org/html/2605.08131#bib.bib53),[39](https://arxiv.org/html/2605.08131#bib.bib72)\]\. This method typically requires computing the second\-order Hessian of the lower\-level objective function, an operation that is prohibitively expensive to compute in our setting\. A common strategy to avoid explicitly computing the Hessian is to approximate it using finite differences\[[34](https://arxiv.org/html/2605.08131#bib.bib80)\]\. In this paper, we further reduce the computational burden by adopting the SPSA method, which perturbs all dimensions of the decision variable simultaneously and therefore requires only two objective function evaluations per iteration\.
## 3Model and problem statement
In this section, we introduce the IIRL problem\.
Markov Game\. We model the interactions between a learner and an expert as a finite horizon Markov Game \(MG\)\(S,A,P,H,rl,re,γ\)\(S,A,P,H,r\_\{l\},r\_\{e\},\\gamma\)\. The elements of the MG are defined as follows:
- •S≜Sl×SeS\\triangleq S\_\{l\}\\times S\_\{e\}is the state space whereSlS\_\{l\}andSeS\_\{e\}are the state spaces of the learner and the expert, respectively\. We denotes=\(sl,se\)∈S,s=\(s\_\{l\},s\_\{e\}\)\\in S,withsl∈Sls\_\{l\}\\in S\_\{l\}andse∈Ses\_\{e\}\\in S\_\{e\}\.
- •A≜Al×AeA\\triangleq A\_\{l\}\\times A\_\{e\}is the joint action space, whereAlA\_\{l\}andAeA\_\{e\}are the action spaces of the learner and the expert, respectively\. We denotea=\(al,ae\)∈A,a=\(a\_\{l\},a\_\{e\}\)\\in A,withal∈Ala\_\{l\}\\in A\_\{l\}andae∈Aea\_\{e\}\\in A\_\{e\}\.
- •P\(s′\|s,a\)P\(s^\{\\prime\}\|s,a\)is the transition probability density for moving from statesstos′s^\{\\prime\}by taking a joint actionaa\.
- •HHis the finite time horizon\.
- •rlr\_\{l\}is the learner’s reward function, mapping state\-action pairs\(s,a\)\(s,a\)to bounded rewards\.
- •rer\_\{e\}is the expert’s reward function, mapping state\-action pairs\(s,a\)\(s,a\)to bounded rewards\.
- •γ∈\(0,1\]\\gamma\\in\(0,1\]is the discount factor\.
We denoteπl\(al\|s\)\\pi\_\{l\}\(a\_\{l\}\|s\)as the learner’s policy andπe\(ae\|s\)\\pi\_\{e\}\(a\_\{e\}\|s\)as the expert’s policy\. The joint policy is defined asπ\(a\|s\)≜πl\(al\|s\)×πe\(ae\|s\)\\pi\(a\|s\)\\triangleq\\pi\_\{l\}\(a\_\{l\}\|s\)\\times\\pi\_\{e\}\(a\_\{e\}\|s\), which represents the probability of the learner taking actionala\_\{l\}and the expert takingaea\_\{e\}at statess\. When the joint policyπ\\piis executed, the MG generates a trajectoryζ=s0,a0,s1,a1,⋯,s\(H−1\),a\(H−1\)\\zeta=s^\{0\},a^\{0\},s^\{1\},a^\{1\},\\cdots,s^\{\(H\-1\)\},a^\{\(H\-1\)\}\.
The learner aims to maximize the cumulative rewardEπl,πe\[∑h=0H−1γhrl\(sh,ah\)\]E^\{\\pi\_\{l\},\\pi\_\{e\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{l\}\(s^\{h\},a^\{h\}\)\]to obtain its optimal policyπl∗\\pi\_\{l\}^\{\*\}\. Analogously, the expert aims to maximizeEπl,πe\[∑h=0H−1γhre\(sh,ah\)\]E^\{\\pi\_\{l\},\\pi\_\{e\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{e\}\(s^\{h\},a^\{h\}\)\]to obtain its optimal policyπe∗\\pi\_\{e\}^\{\*\}\. We define the interacting policyπ∗≜πl∗×πe∗\\pi^\{\*\}\\triangleq\\pi\_\{l\}^\{\*\}\\times\\pi\_\{e\}^\{\*\}\.
Knowledge and goal of the learner\. The learner does not have access to the expert’s reward functionrer\_\{e\}but can access its own rewardrl\(s,a\)r\_\{l\}\(s,a\)for any state\-action pair\(s,a\)\(s,a\)\. It interacts with the expert and can observe the corresponding trajectories\. Based on the trajectories, the learner aims to recover the expert’s reward functionrer\_\{e\}and compute the interacting policyπ∗\\pi^\{\*\}\. Note that the learner not only wants to learn its own partπl∗\\pi\_\{l\}^\{\*\}of the interacting policy but also wants to imitate the expert’s partπe∗\\pi\_\{e\}^\{\*\}of the interacting policy \(as imitating the expert is a standard goal of IRL\)\.
## 4Problem Formulation
In this section, we formulate the learning problem in Section[3](https://arxiv.org/html/2605.08131#S3)as a bi\-level optimization problem where the lower\-level optimization problem learns the expert reward functionrer\_\{e\}and the upper\-level optimization problem learns the interacting policyπ∗\\pi^\{\*\}\.
To this end, the learner uses parameterized reward modelsrθer\_\{\\theta\_\{e\}\}andrθlr\_\{\\theta\_\{l\}\}to estimate expert’s reward functionrer\_\{e\}and learner’s reward functionrlr\_\{l\}\. The reward parameters satisfyθe,θl∈Θ≜\{θ\|‖θ‖2≤1\}\\theta\_\{e\},\\theta\_\{l\}\\in\\Theta\\triangleq\\\{\\theta\|\\\|\\theta\\\|\_\{2\}\\leq 1\\\}\. Given the reward functions\(rθl,rθe\)\(r\_\{\\theta\_\{l\}\},r\_\{\\theta\_\{e\}\}\), letπθl,θe\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}denote the policy induced by the corresponding MG\. This policyπθl,θe\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}is used to estimateπ∗\\pi^\{\*\}\.
Figure 1:Flowchart of the overall learning process\. The process of learningrlr\_\{l\}is included in the upper block, and the process of learningrer\_\{e\}is included in the lower block\.Remark on learning the learner’s reward functionrθlr\_\{\\theta\_\{l\}\}\. At first glance, learningrθlr\_\{\\theta\_\{l\}\}may appear unnecessary, since the learner can directly observe its reward valuesrl\(s,a\)r\_\{l\}\(s,a\)and could in principle learn its policy via standard RL\. However, our objective is to learn the interacting policyπ∗\\pi^\{\*\}, which is defined as a joint policy induced by an MG with reward functions\(rl,re\)\(r\_\{l\},r\_\{e\}\)\. To preserve this structure, we estimateπ∗\\pi^\{\*\}usingπθl,θe\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}, which is induced by an MG parameterized by\(θl,θe\)\(\\theta\_\{l\},\\theta\_\{e\}\)\. If the learner were to directly learn its policyπl\\pi\_\{l\}without learningrθlr\_\{\\theta\_\{l\}\}, there would be no guarantee that the resulting joint policy, composed ofπl\\pi\_\{l\}and the expert policy, corresponds to any MG\. Learningrθlr\_\{\\theta\_\{l\}\}therefore ensures structural consistency between the learned policy and the underlying interacting policyπ∗\\pi^\{\*\}\.
In the following context, we first elaborate the lower\-level optimization problem that learnsrθer\_\{\\theta\_\{e\}\}to estimate the expert’s reward function, and then the upper\-level optimization problem that learnsrθlr\_\{\\theta\_\{l\}\}to estimate the learner’s reward function and the joint policyπθl,θe\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}to estimateπ∗\\pi^\{\*\}\.
Lower\-level optimization: learning the expert’s reward functionrer\_\{e\}\. Given a learner’s reward estimaterθlr\_\{\\theta\_\{l\}\}from the upper level, the lower level optimizes the parameterized reward modelrθer\_\{\\theta\_\{e\}\}to learn the expert’s reward function\. Specifically, for a given pair of parameters\(θl,θe\)\(\\theta\_\{l\},\\theta\_\{e\}\), the learner can compute the joint policyπθl,θe\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\. The learner then executes its own part of the joint policyπθl,θe\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}to interact with the expert \(who acts according to the ground\-truth reward functionrer\_\{e\}\) and collect a set of interaction trajectoriesDθl,re≜\{ζi\}i=1dD\_\{\\theta\_\{l\},r\_\{e\}\}\\triangleq\\\{\\zeta\_\{i\}\\\}\_\{i=1\}^\{d\}\. Since the expert follows the ground\-truth reward functionrer\_\{e\}, the demonstration setDθl,reD\_\{\\theta\_\{l\},r\_\{e\}\}, serve as demonstrations for learningrer\_\{e\}\. Given that the learner knowsrθlr\_\{\\theta\_\{l\}\}, inferringrer\_\{e\}from collected demonstrations is a special case of the standard two\-agent IRL problem\[[17](https://arxiv.org/html/2605.08131#bib.bib62),[41](https://arxiv.org/html/2605.08131#bib.bib61),[18](https://arxiv.org/html/2605.08131#bib.bib5)\]with one of the reward functions known to the learner\. This learning procedure, depicted in the lower block of Figure[1](https://arxiv.org/html/2605.08131#S4.F1), can be formulated as the following maximum likelihood IRL \(ML\-IRL\) problem:
θe∗\(θl\)=argminθe∈ΘL\(θl,θe\),\\theta^\{\*\}\_\{e\}\(\\theta\_\{l\}\)=\\underset\{\\theta\_\{e\}\\in\\Theta\}\{\\arg\\min\}\\quad L\(\\theta\_\{l\},\\theta\_\{e\}\),\(1\)where the loss function of the lower level isL\(θl,θe\)≜−∑i=1d∑h=0H−1\[lnπθl,θe\(aih\|sih\)\]\+λ2‖θe‖22L\(\\theta\_\{l\},\\theta\_\{e\}\)\\triangleq\-\\sum\_\{i=1\}^\{d\}\\sum\_\{h=0\}^\{H\-1\}\[\\ln\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(a^\{ih\}\|s^\{ih\}\)\]\+\\frac\{\\lambda\}\{2\}\\\|\\theta\_\{e\}\\\|\_\{2\}^\{2\}and the state\-action pairs\(aih,sih\)∈ζi∈Dθl,re\(a^\{ih\},s^\{ih\}\)\\in\\zeta\_\{i\}\\in D\_\{\\theta\_\{l\},r\_\{e\}\}\. The problem \([1](https://arxiv.org/html/2605.08131#S4.E1)\) learns a reward functionrθe∗\(θl\)r\_\{\\theta^\{\*\}\_\{e\}\(\\theta\_\{l\}\)\}to maximize the likelihood of the interaction trajectoriesDθl,reD\_\{\\theta\_\{l\},r\_\{e\}\}\. With a givenrθlr\_\{\\theta\_\{l\}\}, the policyπθl,θe∗\(θl\)\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}induced by the learned expert’s reward functionrθe∗\(θl\)r\_\{\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}is expected to generate same trajectories as the expert\. Notice that the maximum likelihood estimation has been extensively applied in IRL\[[49](https://arxiv.org/html/2605.08131#bib.bib4),[48](https://arxiv.org/html/2605.08131#bib.bib1)\]\. Additionally, to promote simpler reward structures, anL2L\_\{2\}regularization termλ2‖θe‖22\\frac\{\\lambda\}\{2\}\\\|\\theta\_\{e\}\\\|\_\{2\}^\{2\}with a small positive scalarλ\\lambdais incorporated\.
Upper\-level optimization: learning the learner’s reward functionrlr\_\{l\}and the joint policyπ∗\\pi^\{\*\}\. Given a learner’s reward parameterθl\\theta\_\{l\}, the learner solves problem \([1](https://arxiv.org/html/2605.08131#S4.E1)\) to obtain the expert’s reward parameterθe∗\(θl\)\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)and the corresponding policyπθl,θe∗\(θl\)\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}\. The learner’s objective is to learn a parameterθl\\theta\_\{l\}such that the policyπθl,θe∗\(θl\)\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}maximizes the cumulative rewardEπθl,θe∗\(θl\)\[∑h=0H−1γhrl\(sh,ah\)\]E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{l\}\(s^\{h\},a^\{h\}\)\]\. This learning process is depicted in the upper block of Figure[1](https://arxiv.org/html/2605.08131#S4.F1)and formulated as follows:
argminθl∈Θf\(θl,θe∗\(θl\)\)≜−Eπθl,θe∗\(θl\)\[∑h=0H−1γhrl\(sh,ah\)\]\.\\underset\{\\theta\_\{l\}\\in\\Theta\}\{\\arg\\min\}\\quad f\(\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\)\\triangleq\-E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{l\}\(s^\{h\},a^\{h\}\)\]\.\(2\)To solve the problem \([2](https://arxiv.org/html/2605.08131#S4.E2)\), the learner needs to interact with the expert and receive the reward values ofrl\(sh,ah\)r\_\{l\}\(s^\{h\},a^\{h\}\)\. Note thatθl\\theta\_\{l\}is not the parameter of the policyπθl,θe∗\(θl\)\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}but a hyperparameter\. Specifically,θl\\theta\_\{l\}is the parameter of the learner’s reward functionrθlr\_\{\\theta\_\{l\}\}andπθl,θe∗\(θl\)\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}is the joint policy induced by the MG parameterized by\(θl,θe∗\(θl\)\)\(\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\)\. Therefore, the policyπθl,θe∗\(θl\)\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}is hyper\-parameterized byθl\\theta\_\{l\}\.
Bi\-level optimization\. The entire learning procedure exhibits a hierarchical structure\. Given the current learner’s reward parameterθl\\theta\_\{l\}, the lower level solves the ML\-IRL problem \([1](https://arxiv.org/html/2605.08131#S4.E1)\) to determine the expert’s reward functionrθe∗\(θl\)r\_\{\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}and the joint policyπθl,θe∗\(θl\)\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}\. The upper level optimizes the parameterθl\\theta\_\{l\}such thatπθl,θe∗\(θl\)\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\}can maximize the cumulative reward in the problem \([2](https://arxiv.org/html/2605.08131#S4.E2)\)\. This hierarchical optimization framework is illustrated in Figure[1](https://arxiv.org/html/2605.08131#S4.F1)and can be formulated as a bi\-level optimization problem:
argminθl∈Θf\(θl,θe∗\(θl\)\),s\.t\.θe∗\(θl\)=argminθe∈ΘL\(θl,θe\)\.\\underset\{\\theta\_\{l\}\\in\\Theta\}\{\\arg\\min\}\\quad f\(\\theta\_\{l\},\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\),\\quad\\textrm\{s\.t\.\}\\quad\\theta^\{\*\}\_\{e\}\(\\theta\_\{l\}\)=\\underset\{\\theta\_\{e\}\\in\\Theta\}\{\\arg\\min\}\\quad L\(\\theta\_\{l\},\\theta\_\{e\}\)\.\(3\)
## 5Algorithm
In this section, we develop a double\-loop algorithm named BISIRL \(Algorithm[1](https://arxiv.org/html/2605.08131#alg1)\) to solve the bi\-level optimization problem described in the problem \([3](https://arxiv.org/html/2605.08131#S4.E3)\)\. In eachkk\-th outer loop iteration, the learner partially solves the lower\-level optimization problem within an inner loop and subsequently employs this intermediate solution to tackle the upper\-level optimization problem through an outer loop\. The specifics of the inner and outer loops are detailed in Sections[5\.1](https://arxiv.org/html/2605.08131#S5.SS1)and[5\.2](https://arxiv.org/html/2605.08131#S5.SS2), respectively\.
### 5\.1Inner loop
At each iterationttof the inner loop, the learner updates the parameterθe\(t\)\\theta\_\{e\}\(t\)via projected SGD\. Specifically,θe\(t\)\\theta\_\{e\}\(t\)is updated by moving in the opposite direction of the partial gradient∇θeL\(θl\(k\),θe\(t\)\)\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(t\)\)and projecting the resulting parameter back onto the feasible setΘ\\Theta\. The analytical expression of the gradient∇θeL\(θl,θe\)\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)is provided in the following lemma\.
###### Lemma 5\.1\.
The gradient∇θeL\(θl,θe\)=μe\(πθl,θe\)−μ^e\(Dθl,re\)\+λθe\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)=\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\-\\hat\{\\mu\}\_\{e\}\(D\_\{\\theta\_\{l\},r\_\{e\}\}\)\+\\lambda\\theta\_\{e\}, whereμe\(πθl,θe\)≜Eπθl,θe\[∑h=0H−1γh∇θerθe\(sh,ah\)\]\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\],μ^e\(Dθl,re\)≜1d∑i=1d∑h=0H−1γh∇θerθe\(sih,aih\)\\hat\{\\mu\}\_\{e\}\(D\_\{\\theta\_\{l\},r\_\{e\}\}\)\\triangleq\\frac\{1\}\{d\}\\sum\_\{i=1\}^\{d\}\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{ih\},a^\{ih\}\), and\(sih,aih\)∈ζi∈Dθl,re\(s^\{ih\},a^\{ih\}\)\\in\\zeta\_\{i\}\\in D\_\{\\theta\_\{l\},r\_\{e\}\}
The inner loop usestkt\_\{k\}\-step projected gradient descentθe\(t\+1\)=ΠΘ\(θe\(t\)−βt∇θeL\(θl\(k\),θe\(t\)\)\)\\theta\_\{e\}\(t\+1\)=\\Pi\_\{\\Theta\}\(\\theta\_\{e\}\(t\)\-\\beta\_\{t\}\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(t\)\)\)to obtain an expert reward estimaterθe\(tk−1\)r\_\{\\theta\_\{e\}\(t\_\{k\}\-1\)\}\.
Algorithm 1Bi\-level Interactive Scenarios Inverse Reinforcement Learning \(BISIRL\)Initializes
θl\(0\)∈Θ,θe\(0\)∈Θ\\theta\_\{l\}\(0\)\\in\\Theta,\\theta\_\{e\}\(0\)\\in\\Theta, step size sequence
\{αk\},\{βt\}\\\{\\alpha\_\{k\}\\\},\\\{\\beta\_\{t\}\\\}, regularization parameter
λ\\lambdaand integer sequence
\{tk\}\\\{t\_\{k\}\\\}
for
k=0,1,⋯,K−1k=0,1,\\cdots,K\-1do
θe\(0\)=θe\(k\)\\theta\_\{e\}\(0\)=\\theta\_\{e\}\(k\)
Samples the trajectory set
Dθl\(k\),reD\_\{\\theta\_\{l\}\(k\),r\_\{e\}\}
for
t=0,⋯,tk−1t=0,\\cdots,t\_\{k\}\-1do
Calculates
∇θeL\(θl\(k\),θe\(t\)\)\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(t\)\)with Lemma[5\.1](https://arxiv.org/html/2605.08131#S5.Thmtheorem1)
θe\(t\+1\)=ΠΘ\(θe\(t\)−βt∇θeL\(θl\(k\),θe\(t\)\)\)\\theta\_\{e\}\(t\+1\)=\\Pi\_\{\\Theta\}\(\\theta\_\{e\}\(t\)\-\\beta\_\{t\}\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(t\)\)\)
endfor
θe\(k\)=θe\(tk−1\)\\theta\_\{e\}\(k\)=\\theta\_\{e\}\(t\_\{k\}\-1\)
Initializesthe random vector
Δ\(k\)\\Delta\(k\)and the positive scalar
p\(k\)p\(k\)
Gets
∇^θlθe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),
∇^θe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),
∇^θlf\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)and
∇^θe\(k\)f\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}\_\{\\theta\_\{e\}\(k\)\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)through SPSA approximation following equation \([4](https://arxiv.org/html/2605.08131#S5.E4)\)
Calculates
\[∇^θe2L\(θl\(k\),θe\(k\)\)\]−1∇^θef\(θl\(k\),θe\(k\)\)\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)following equation \([5](https://arxiv.org/html/2605.08131#S5.E5)\)
Calculates
∇^f\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)following equation \([6](https://arxiv.org/html/2605.08131#S5.E6)\)
θl\(k\+1\)=ΠΘ\(θl\(k\)−αk∇^f\(θl\(k\),θe\(k\)\)\)\\theta\_\{l\}\(k\+1\)=\\Pi\_\{\\Theta\}\(\\theta\_\{l\}\(k\)\-\\alpha\_\{k\}\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\)
endfor
### 5\.2Outer loop
Atkk\-th iteration of the outer loop, the learner updates the parameterθl\(k\)\\theta\_\{l\}\(k\)via projected SGD\. Similar to the inner loop, this update requires computing the hypergradient∇f\(θl\(k\),θe\(k\)\)\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\. The analytical form of∇f\(θl\(k\),θe\(k\)\)\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), which is widely used in bi\-level optimization problems, is presented in the following lemma\.
###### Lemma 5\.2\.
The analytical expression of the hypergradient∇f\(θl,θe\)\\nabla f\(\\theta\_\{l\},\\theta\_\{e\}\)used for updatingθl\\theta\_\{l\}is∇θlf\(θl,θe\)−∇θlθe2L\(θl,θe\)\[∇θe2L\(θl,θe\)\]−1∇θef\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)\-\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\[\\nabla^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\]^\{\-1\}\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)\[[39](https://arxiv.org/html/2605.08131#bib.bib72),[9](https://arxiv.org/html/2605.08131#bib.bib25),[5](https://arxiv.org/html/2605.08131#bib.bib112)\]\.
The computation of the hypergradient∇f\(θl\(k\),θe\(k\)\)\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)involves the partial gradients∇θlf\(θl\(k\),θe\(k\)\),∇θef\(θl\(k\),θe\(k\)\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), the Jacobian∇θlθe2L\(θl\(k\),θe\(k\)\)\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)and the inverse Hessian\[∇θe2L\(θl\(k\),θe\(k\)\)\]−1\[\\nabla^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\. However, directly calculating these quantities has a large computational complexity of𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)\. To address this issue, we adopt the SPSA method, which reduces computational complexity to𝒪\(H\)\\mathcal\{O\}\(H\)\. A detailed discussion on the computational complexity reduction is provided later in Theorem[6\.2](https://arxiv.org/html/2605.08131#S6.Thmtheorem2)\. Using SPSA, the learner obtains the estimated hypergradient∇^f\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), which serves as the gradient approximation in the projected SGD update\. To calculate∇^f\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), the learner estimates∇^θlf\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),∇^θlθe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),∇^θe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), and∇^θef\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\. Let us take∇^θe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)as an example to illustrate SPSA\. According to the equation \(2\.2\) in\[[32](https://arxiv.org/html/2605.08131#bib.bib35)\], it is approximated as follows:
∇^θe2L\(θl\(k\),θe\(k\)\)=\[Δdk2pΔ1\(k\)⋯Δdk2pΔm\(k\)\]T,\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}^\{2\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)=\\begin\{bmatrix\}\\frac\{\\Delta\_\{d\_\{k\}\}\}\{2p\\Delta\_\{1\}\(k\)\}&\\cdots&\\frac\{\\Delta\_\{d\_\{k\}\}\}\{2p\\Delta\_\{m\}\(k\)\}\\end\{bmatrix\}^\{T\},\(4\)whereΔdk=∇θeL\(θl\(k\),θe\(k\)\+p\(k\)Δ\(k\)\)−∇θeL\(θl\(k\),θe\(k\)−p\(k\)Δ\(k\)\)\\Delta\_\{d\_\{k\}\}=\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\+p\(k\)\\Delta\(k\)\)\-\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\-p\(k\)\\Delta\(k\)\), the perturbationΔ\(k\)∈ℝm\\Delta\(k\)\\in\\mathbb\{R\}^\{m\}is a vector ofmmmutually independent zero\-mean random variables and each element ofΔ\(k\)\\Delta\(k\)satisfies\|Δi\(k\)\|≤α0\|\\Delta\_\{i\}\(k\)\|\\leq\\alpha\_\{0\},E\|Δi−1\(k\)\|≤α1E\|\\Delta\_\{i\}^\{\-1\}\(k\)\|\\leq\\alpha\_\{1\},i=1,⋯,mi=1,\\cdots,mwithα0,α1\\alpha\_\{0\},\\alpha\_\{1\}as positive constants\. The parameterp\(k\)p\(k\)is a positive scalar\.
Referring to equation \([4](https://arxiv.org/html/2605.08131#S5.E4)\), the computation of the gradient∇^θlf\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)requires the value off\(θl\(k\),θe\(k\)\)f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)with weight perturbations onθl\(k\)\\theta\_\{l\}\(k\)\. Analogously, computing gradients∇^θef\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),∇^θe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), and∇^θlθe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)requires the values off\(θl\(k\),θe\(k\)\)f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),∇θeL\(θl\(k\),θe\(k\)\)\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), and∇θlL\(θl\(k\),θe\(k\)\)\\nabla\_\{\\theta\_\{l\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)with weight perturbations onθe\(k\)\\theta\_\{e\}\(k\), respectively\. Notice that the analytical expression off\(θl\(k\),θe\(k\)\)f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)and∇θeL\(θl\(k\),θe\(k\)\)\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)are shown in optimization problem \([2](https://arxiv.org/html/2605.08131#S4.E2)\) and Lemma[5\.1](https://arxiv.org/html/2605.08131#S5.Thmtheorem1)respectively\. Similarly to Lemma[5\.1](https://arxiv.org/html/2605.08131#S5.Thmtheorem1), the gradient∇θlL\(θl\(k\),θe\(k\)\)≜μl\(πθl\(k\),θe\(k\)\)−μ^l\(Dθl\(k\),re\)\\nabla\_\{\\theta\_\{l\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\triangleq\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\}\)\-\\hat\{\\mu\}\_\{l\}\(D\_\{\\theta\_\{l\}\(k\),r\_\{e\}\}\)and the proof is given in the Appendix[D](https://arxiv.org/html/2605.08131#A4)\. The expectationμl\(πθl,θe\)≜Eπθl,θe\[∑h=0H−1γh∇θlrθl\(sh,ah\)\]\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\]is the reward gradient expectation of the learner and the empirical expectationμ^l\(Dθl,re\)≜1d∑i=1d∑h=0H−1γh∇θlrθl\(sih,aih\),\(sih,aih\)∈ζi∈Dθl,re\\hat\{\\mu\}\_\{l\}\(D\_\{\\theta\_\{l\},r\_\{e\}\}\)\\triangleq\\frac\{1\}\{d\}\\sum\_\{i=1\}^\{d\}\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{ih\},a^\{ih\}\),\(s^\{ih\},a^\{ih\}\)\\in\\zeta\_\{i\}\\in D\_\{\\theta\_\{l\},r\_\{e\}\}is the estimated learner’s reward gradient expectation with respect to the demonstration setDθl,reD\_\{\\theta\_\{l\},r\_\{e\}\}\.
To compute the hypergradient∇^f\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), we must ensure that the estimated Hessian∇^θe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)is invertible\. Since the negative log\-likelihood function is convex and theL2L\_\{2\}regularization term is strongly convex, the overall functionL\(θl\(k\),θe\(k\)\)L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)is strongly convex\. Hence its Hessian is positive definite\. By choosing suitableΔ\(k\)\\Delta\(k\)andp\(k\)p\(k\), we ensure that the estimated Hessian∇^θe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)is positive definite\. Since directly inverting a matrix is computationally expensive, we use the conjugate gradient method to compute the product
\[∇^θe2L\(θl\(k\),θe\(k\)\)\]−1∇^θef\(θl\(k\),θe\(k\)\)\\displaystyle\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\(5\)=minu12uT∇^θe2L\(θl\(k\),θe\(k\)\)u−uT∇^θef\(θl\(k\),θe\(k\)\)\.\\displaystyle=\\min\_\{u\}\\frac\{1\}\{2\}u^\{T\}\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)u\-u^\{T\}\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\.Finally, using∇^θlf\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),∇^θlθe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), and the result from conjugate gradient, we compute the estimated hypergradient
∇^f\(θl\(k\),θe\(k\)\)=\\displaystyle\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)=∇^θlf\(θl\(k\),θe\(k\)\)\\displaystyle\\hat\{\\nabla\}\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\(6\)−∇^θlθe2L\(θl\(k\),θe\(k\)\)\[∇^θe2L\(θl\(k\),θe\(k\)\)\]−1∇^θef\(θl\(k\),θe\(k\)\)\.\\displaystyle\-\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\.
AfterKKiterations, the outer loop terminates, yieldingrθl\(K\)r\_\{\\theta\_\{l\}\(K\)\},rθe\(K\)r\_\{\\theta\_\{e\}\(K\)\}andπθl\(K\),θe\(K\)\\pi\_\{\\theta\_\{l\}\(K\),\\theta\_\{e\}\(K\)\}\.
## 6Analytical result
In this section, we present our analytical results regarding computational complexity reduction and convergence rate\. To facilitate our analysis, we impose the following assumption on the estimated reward functionsrθlr\_\{\\theta\_\{l\}\}andrθer\_\{\\theta\_\{e\}\}:
###### Assumption 6\.1\.
The estimated learner’s reward functionrθlr\_\{\\theta\_\{l\}\}and the estimated expert’s reward functionrθer\_\{\\theta\_\{e\}\}are four\-times continuously differentiable, i\.e\.,C4C^\{4\}\.
Sinceθl\\theta\_\{l\}andθe\\theta\_\{e\}lie in compact sets, Assumption[6\.1](https://arxiv.org/html/2605.08131#S6.Thmtheorem1)implies that the derivatives of the reward functionsrθlr\_\{\\theta\_\{l\}\}andrθer\_\{\\theta\_\{e\}\}are bounded\. Such boundedness of higher\-order derivatives is a standard assumption in the literature and has been widely adopted in bi\-level optimization\[[13](https://arxiv.org/html/2605.08131#bib.bib47),[42](https://arxiv.org/html/2605.08131#bib.bib48),[19](https://arxiv.org/html/2605.08131#bib.bib49)\], RL\[[36](https://arxiv.org/html/2605.08131#bib.bib50),[45](https://arxiv.org/html/2605.08131#bib.bib51)\], and IRL\[[20](https://arxiv.org/html/2605.08131#bib.bib79)\]\.
### 6\.1Computational complexity
The computation complexities of computing∇f\(θl,θe\)\\nabla f\(\\theta\_\{l\},\\theta\_\{e\}\)and∇^f\(θl,θe\)\\hat\{\\nabla\}f\(\\theta\_\{l\},\\theta\_\{e\}\)are shown in Theorem[6\.2](https://arxiv.org/html/2605.08131#S6.Thmtheorem2)\.
###### Theorem 6\.2\.
ConsiderHHas the decision factor, the computational complexity of computing∇f\(θl,θe\)\\nabla f\(\\theta\_\{l\},\\theta\_\{e\}\)is𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)and that of computing∇^f\(θl,θe\)\\hat\{\\nabla\}f\(\\theta\_\{l\},\\theta\_\{e\}\)is𝒪\(H\)\\mathcal\{O\}\(H\)\.
Applying SPSA to approximate∇f\(θl,θe\)\\nabla f\(\\theta\_\{l\},\\theta\_\{e\}\)reduces the per\-iteration computational complexity of the upper\-level problem from𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)to𝒪\(H\)\\mathcal\{O\}\(H\)\. The proof of Theorem[6\.2](https://arxiv.org/html/2605.08131#S6.Thmtheorem2)is in the Appendix[H](https://arxiv.org/html/2605.08131#A8)\. Compared to finite\-difference methods, SPSA requires fewer policies for the approximation\. In SPSA, a single random perturbation ofθl\\theta\_\{l\}orθe\\theta\_\{e\}yields two policies \(one for the positive perturbation and one for the negative perturbation\)\. In contrast, the finite difference approach requires two policies for each parameter dimension\. Each policy is generated via MARL, so the computational cost of producing these policies is non\-negligible\. As SPSA requires fewer policies, its overall computational cost of SPSA is lower than that of finite difference methods\. Finite\-difference methods, in turn, have a lower computational cost than explicitly computing gradients\.
### 6\.2Convergence rate
The convergence of our algorithm is shown in Theorem[6\.3](https://arxiv.org/html/2605.08131#S6.Thmtheorem3)\.
###### Theorem 6\.3\.
Suppose Assumption[6\.1](https://arxiv.org/html/2605.08131#S6.Thmtheorem1)holds, with the choices of parameters given byp\(k\)=1kp\(k\)=\\frac\{1\}\{k\},αk=1LfK\\alpha\_\{k\}=\\frac\{1\}\{L\_\{f\}\\sqrt\{K\}\},tk=⌈k\+142⌉t\_\{k\}=\\lceil\\frac\{\\sqrt\[4\]\{k\+1\}\}\{2\}\\rceil, the following convergence guarantee holds:1K∑k=0K−1E\[‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\]≤𝒪\(1K\)\\frac\{1\}\{K\}\\sum\_\{k=0\}^\{K\-1\}E\[\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\]\\leq\\mathcal\{O\}\(\\frac\{1\}\{\\sqrt\{K\}\}\)\.
Theorem[6\.3](https://arxiv.org/html/2605.08131#S6.Thmtheorem3)indicates that the expected hypergradient decays at a rate of𝒪\(1K\)\\mathcal\{O\}\(\\frac\{1\}\{\\sqrt\{K\}\}\), matching the convergence rate of standard bilevel optimization\[[9](https://arxiv.org/html/2605.08131#bib.bib25)\]\. This implies that the bias introduced by SPSA does not slow convergence compared to standard bilevel optimization\. Corollary[6\.4](https://arxiv.org/html/2605.08131#S6.Thmtheorem4)shows that the linear reward functionrθer\_\{\\theta\_\{e\}\}is a sufficient condition for the convergence of the policyπθe\\pi\_\{\\theta\_\{e\}\}\. Convergence of the cumulative reward difference has been widely used to infer convergence of the learned expert policy\[[30](https://arxiv.org/html/2605.08131#bib.bib102),[29](https://arxiv.org/html/2605.08131#bib.bib103)\]\.
###### Corollary 6\.4\.
If the reward functionrθer\_\{\\theta\_\{e\}\}is linear, the cumulative reward difference between the learned expert policyπθe\\pi\_\{\\theta\_\{e\}\}andπe\\pi\_\{e\}decreases at a rate𝒪\(1K4\)\\mathcal\{O\}\(\\frac\{1\}\{\\sqrt\[4\]\{K\}\}\)\.
## 7Experiment
In our experiments, we evaluate BISIRL on four widely used environments\. The Multi\-Agent Particle Environment \(MPE\)\[[22](https://arxiv.org/html/2605.08131#bib.bib78),[35](https://arxiv.org/html/2605.08131#bib.bib81),[40](https://arxiv.org/html/2605.08131#bib.bib105)\]involves particle agents that can move, communicate, observe one another, push each other, and interact with fixed landmarks\. The StarCraft Multi\-Agent Challenge \(SMAC\)\[[31](https://arxiv.org/html/2605.08131#bib.bib104),[40](https://arxiv.org/html/2605.08131#bib.bib105),[28](https://arxiv.org/html/2605.08131#bib.bib106)\]is designed based on the real\-time strategy game StarCraft II\. The Human\-Robot Interaction \(HRI\) environment\[[6](https://arxiv.org/html/2605.08131#bib.bib24),[8](https://arxiv.org/html/2605.08131#bib.bib107),[47](https://arxiv.org/html/2605.08131#bib.bib108)\]models a navigation scenario in which a robot interacts with a human, and the results are listed in Appendix Section[I\.3](https://arxiv.org/html/2605.08131#A9.SS3)\. The security environment\[[46](https://arxiv.org/html/2605.08131#bib.bib11),[44](https://arxiv.org/html/2605.08131#bib.bib110)\]involves automated defense systems; the results are presented in Appendix Section[I\.4](https://arxiv.org/html/2605.08131#A9.SS4)\. The MPE, HRI, and Security environments involve mixed cooperative–competitive interactions, while the SMAC environment is fully cooperative\.
We compare BISIRL with four baseline algorithms: theMARLalgorithm\[[22](https://arxiv.org/html/2605.08131#bib.bib78)\], theMA\-IRLalgorithm\[[48](https://arxiv.org/html/2605.08131#bib.bib1)\], the cooperative IIRL \(CIRL\) algorithm\[[3](https://arxiv.org/html/2605.08131#bib.bib6)\], and the maximum likelihood IRL \(ML\-IRL\) algorithm\[[42](https://arxiv.org/html/2605.08131#bib.bib48)\]\. Since none of these baseline algorithms can directly address our IIRL problem, we adapt the experimental setup to make them applicable\. Specifically, for MARL, we assume that both the learner and the expert know their reward functions\. For MA\-IRL, we provide demonstrations sampled according to ground\-truth reward functions of both the learner and the expert\. Under this setting, the performance of MA\-IRL approaches that of MARL\. For CIRL, we assume that the reward function of the learner is identical to the expert’s reward function\. For ML\-IRL, the learner has access to demonstrations generated by a policy through MARL with the learner’s initial and the ground\-truth expert reward functions\.
The MARL baseline represents the best achievable performance among all considered algorithms\. The MA\-IRL baseline evaluates whether our proposed method can achieve comparable performance without relying on the learner’s demonstrations, which are generated using the learner’s ground\-truth reward function\. The CIRL baseline illustrates that cooperative IIRL algorithms are only effective in fully cooperative scenarios, highlighting their limitations in more general settings\. Lastly, the ML\-IRL baseline demonstrates that conventional IRL approaches are ill\-suited for IIRL problems, as they fail to account for the mutual influence between the learner and the expert during interaction\.
Since MARL serves as an upper\-bound baseline and MA\-IRL is expected to achieve comparable performance under our setting, the objective of BISIRL is not to outperform these two baselines, but rather to match their performance while operating under the more restrictive IIRL setting, where the privileged information used by MARL and MA\-IRL is unavailable\.


Figure 2:MPE simulation results\.Left: Agent’s reward\.Right: Adversary’s reward\. The horizontal lines show the cumulative rewards from a MARL method that has access to the ground\-truth reward functions after convergence\. In contrast, other methods learn the reward functions from demonstrations and interactions, respectively\. In each iteration, we compute the policies of both the adversary and the agents via MARL using the currently learned reward functions\. We then evaluate these policies using the ground\-truth reward functions\.


Figure 3:SMAC simulation results\.Left: A screenshot of the game\.Middle: Cumulative reward\.Right: Win rate\. The cumulative rewards are computed in the same manner as described in Figure[2](https://arxiv.org/html/2605.08131#S7.F2)\. Similarly, the win rates are computed based on the policies corresponding to the learned reward functions\. The agents are considered victorious when they defeat the enemy\.### 7\.1Multi\-Agent Particle Environments
We use the physical deception environment in the MPE for our simulation\. This environment includes one adversary, two cooperating agents, and two landmarks\. One of the landmarks is the target landmark\. The cooperating agents know which landmark is the target, whereas the adversary does not\. The cooperating agents aim to have one of them approach the target as closely as possible while preventing the adversary from reaching it\. Conversely, the adversary aims to identify and reach the target landmark\. We treat the two cooperating agents as a single learner and the adversary as the expert\. Both the learner and the expert have continuous state and action spaces\. The learner’s state space is1010\-dimensional and the expert’s is88\-dimensional, and each has a55\-dimensional action space\. Supplementary experimental details are provided in Appendix Section[I\.1](https://arxiv.org/html/2605.08131#A9.SS1)\.
Because the two agents cooperate and share a common reward, we plot a single cumulative reward curve for both\. Figure[2](https://arxiv.org/html/2605.08131#S7.F2)presents results for two randomly initialized reward functions updated over 50 iterations\. Initially, both the adversary and the agents act randomly, and the cumulative rewards differ significantly from those of the MARL baseline\. As more data are collected, the agents gradually learn their own goal and the adversary’s goal, leading the cumulative rewards of BISIRL and MA\-IRL to converge to that of MARL\. In contrast, CIRL and ML\-IRL fail to do so\.
### 7\.2StarCraft Multi\-Agent Challenge
We use the scenario 2s\_vs\_1sc from the SMAC for our experiment\. In this scenario, two agents cooperate to defeat a single, more powerful enemy unit \(controlled by a built\-in AI\)\. Because the environment does not expose the enemy’s state or action information, the enemy’s reward function cannot be learned directly\. We therefore designate one agent as the expert \(with access to the ground\-truth reward function and the optimal cooperative strategy to defeat the enemy\) and the other agent as the learner\. The learner’s goal is to infer the expert’s strategy and learn to cooperate with the expert accordingly\. Both agents have a continuous1717\-dimensional state space and a discrete action space of size77\. Additional implementation details are in Appendix[I\.2](https://arxiv.org/html/2605.08131#A9.SS2)\.
Because the two agents share the same reward, we report a single cumulative reward curve\. The middle panel of Figure[3](https://arxiv.org/html/2605.08131#S7.F3)shows that the cumulative rewards of BISIRL and MA\-IRL converge to that achieved by MARL, mirroring the trend observed in Figure[2](https://arxiv.org/html/2605.08131#S7.F2)\. Since this scenario is fully cooperative, the cumulative reward of CIRL also converges to that of the MARL, whereas ML\-IRL does not\. We further evaluate performance using the agents’ win rate\. At each iteration, we obtain the agents’ policies via MARL with the current learned reward functions\. Each learned policy is then evaluated over100100independent trials, and the win rate \(the fraction of trials in which the agents defeat the enemy\) is recorded\. The right panel of Figure[3](https://arxiv.org/html/2605.08131#S7.F3)shows that the win rates of BISIRL, MA\-IRL, and CIRL converge to that of the MARL baseline, while ML\-IRL fails to do so\.
Table 1:The cumulative reward comparison\.Top: The cumulative reward of the learner\.Bottom: The cumulative reward of the expert\. MARL uses ground\-truth reward functions\. MA\-IRL, BISIRL, CIRL, and ML\-IRL use learned reward functions from the last iteration\.
### 7\.3Results Analysis
Figures[2](https://arxiv.org/html/2605.08131#S7.F2)and[3](https://arxiv.org/html/2605.08131#S7.F3)show that the cumulative rewards of MA\-IRL and BISIRL converge to values close to those of MARL, whereas CIRL fails to do so in mixed cooperative\-competitive environments and ML\-IRL fails across all environments\. As summarized in Table[1](https://arxiv.org/html/2605.08131#S7.T1), the final cumulative rewards of BISIRL are within5%5\\%of those achieved by MA\-IRL and MARL\. This comparison is meaningful because MARL serves as an empirical upper\-bound baseline with access to the ground\-truth reward functions, while MA\-IRL uses demonstrations generated from the ground\-truth reward functions of both the learner and the expert\. In contrast, BISIRL relies only on the expert’s interactions with the environment and the corresponding values received during these interactions\. These results show that BISIRL achieves its intended goal: matching the performance of MARL and MA\-IRL under the more restrictive IIRL setting, rather than outperforming these privileged\-information baselines\.
## 8Conclusion
We develop a general IIRL framework that enables a learner to infer an expert’s reward function while simultaneously learning an appropriate interaction policy through engagement with the expert\. This framework relaxes the restrictive assumption that the learner’s and expert’s reward functions are identical or opposite, making it applicable to more general interaction scenarios where agents may have distinct and potentially misaligned objectives\. To solve this problem, we propose the BISIRL algorithm and provide theoretical guarantees on its convergence rate\. Empirical results in both continuous and discrete environments demonstrate that BISIRL can accurately recover the behavior of the expert and learn a high\-performing interaction policy\. These results further show that BISIRL can approach the performance of privileged\-information baselines while operating under a more restrictive and realistic IIRL setting\.
## References
- \[1\]\(2004\)Apprenticeship learning via inverse reinforcement learning\.InProceedings of the twenty\-first international conference on Machine learning,Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1)\.
- \[2\]Z\. Ashwood, A\. Jha, and J\. W\. Pillow\(2022\)Dynamic inverse reinforcement learning for characterizing animal behavior\.Advances in neural information processing systems35,pp\. 29663–29676\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p1.1)\.
- \[3\]T\. K\. Büning, A\. George, and C\. Dimitrakakis\(2022\)Interactive inverse reinforcement learning for cooperative games\.InInternational Conference on Machine Learning,pp\. 2393–2413\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p2.1),[§1](https://arxiv.org/html/2605.08131#S1.p3.1),[§2](https://arxiv.org/html/2605.08131#S2.p2.1),[§7](https://arxiv.org/html/2605.08131#S7.p2.1)\.
- \[4\]J\. Choi and K\. Kim\(2012\)Nonparametric bayesian inverse reinforcement learning for multiple reward functions\.Advances in neural information processing systems25\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1)\.
- \[5\]B\. Colson, P\. Marcotte, and G\. Savard\(2007\)An overview of bilevel optimization\.Annals of operations research153\(1\),pp\. 235–256\.Cited by:[Lemma 5\.2](https://arxiv.org/html/2605.08131#S5.Thmtheorem2.p1.3.3)\.
- \[6\]M\. El\-Shamouty, X\. Wu, S\. Yang, M\. Albus, and M\. F\. Huber\(2020\)Towards safe human\-robot collaboration using deep reinforcement learning\.In2020 IEEE international conference on robotics and automation \(ICRA\),pp\. 4899–4905\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p3.1),[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[7\]M\. Elnaggar and N\. Bezzo\(2018\)An irl approach for cyber\-physical attack intention prediction and recovery\.In2018 Annual American Control Conference \(ACC\),pp\. 222–227\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p1.1)\.
- \[8\]T\. Fan, P\. Long, W\. Liu, and J\. Pan\(2020\)Distributed multi\-robot collision avoidance via deep reinforcement learning for navigation in complex scenarios\.The International Journal of Robotics Research39\(7\),pp\. 856–892\.Cited by:[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[9\]S\. Ghadimi and M\. Wang\(2018\)Approximation methods for bilevel programming\.arXiv preprint arXiv:1802\.02246\.Cited by:[§G\.1](https://arxiv.org/html/2605.08131#A7.SS1.p1.8),[Lemma 5\.2](https://arxiv.org/html/2605.08131#S5.Thmtheorem2.p1.3.3),[§6\.2](https://arxiv.org/html/2605.08131#S6.SS2.p2.3)\.
- \[10\]T\. Haarnoja, H\. Tang, P\. Abbeel, and S\. Levine\(2017\)Reinforcement learning with deep energy\-based policies\.InInternational conference on machine learning,pp\. 1352–1361\.Cited by:[Appendix B](https://arxiv.org/html/2605.08131#A2.p1.1),[Appendix H](https://arxiv.org/html/2605.08131#A8.p4.5)\.
- \[11\]D\. Hadfield\-Menell, S\. J\. Russell, P\. Abbeel, and A\. Dragan\(2016\)Cooperative inverse reinforcement learning\.Advances in neural information processing systems29\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p3.1),[§2](https://arxiv.org/html/2605.08131#S2.p2.1)\.
- \[12\]T\. Hirakawa, T\. Yamashita, T\. Tamaki, H\. Fujiyoshi, Y\. Umezu, I\. Takeuchi, S\. Matsumoto, and K\. Yoda\(2018\)Can ai predict animal movements? filling gaps in animal trajectories using inverse reinforcement learning\.Ecosphere9\(10\)\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p1.1)\.
- \[13\]C\. Jin, P\. Netrapalli, and M\. Jordan\(2020\)What is local optimality in nonconvex\-nonconcave minimax optimization?\.InInternational conference on machine learning,pp\. 4880–4889\.Cited by:[§6](https://arxiv.org/html/2605.08131#S6.p2.4)\.
- \[14\]P\. Kamalaruban, R\. Devidze, V\. Cevher, and A\. Singla\(2019\)Interactive teaching algorithms for inverse reinforcement learning\.arXiv preprint arXiv:1905\.11867\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p3.1),[§2](https://arxiv.org/html/2605.08131#S2.p2.1)\.
- \[15\]C\. D\. Kolstad and L\. S\. Lasdon\(1990\)Derivative evaluation and computational experience with large bilevel mathematical programs\.Journal of optimization theory and applications65,pp\. 485–499\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p3.1)\.
- \[16\]K\. Lee, S\. Maji, A\. Ravichandran, and S\. Soatto\(2019\)Meta\-learning with differentiable convex optimization\.InProceedings of the IEEE/CVF conference on computer vision and pattern recognition,pp\. 10657–10665\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p3.1)\.
- \[17\]X\. Lin, S\. C\. Adams, and P\. A\. Beling\(2019\)Multi\-agent inverse reinforcement learning for certain general\-sum stochastic games\.Journal of Artificial Intelligence Research66,pp\. 473–502\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1),[§4](https://arxiv.org/html/2605.08131#S4.p5.13)\.
- \[18\]S\. Liu and M\. Zhu\(2022\)Distributed inverse constrained reinforcement learning for multi\-agent systems\.Advances in Neural Information Processing Systems35,pp\. 33444–33456\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1),[§2](https://arxiv.org/html/2605.08131#S2.p3.1),[§4](https://arxiv.org/html/2605.08131#S4.p5.13)\.
- \[19\]S\. Liu and M\. Zhu\(2023\)Learning multi\-agent behaviors from distributed and streaming demonstrations\.InThirty\-seventh Conference on Neural Information Processing Systems,Cited by:[§6](https://arxiv.org/html/2605.08131#S6.p2.4)\.
- \[20\]S\. Liu and M\. Zhu\(2023\)Meta inverse constrained reinforcement learning: convergence guarantee and generalization analysis\.InThe Twelfth International Conference on Learning Representations,Cited by:[§6](https://arxiv.org/html/2605.08131#S6.p2.4)\.
- \[21\]S\. Liu and M\. Zhu\(2024\)In\-trajectory inverse reinforcement learning: learn incrementally before an ongoing trajectory terminates\.Advances in Neural Information Processing Systems37,pp\. 117164–117209\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p3.1)\.
- \[22\]R\. Lowe, Y\. I\. Wu, A\. Tamar, J\. Harb, O\. Pieter Abbeel, and I\. Mordatch\(2017\)Multi\-agent actor\-critic for mixed cooperative\-competitive environments\.Advances in neural information processing systems30\.Cited by:[§7](https://arxiv.org/html/2605.08131#S7.p1.1),[§7](https://arxiv.org/html/2605.08131#S7.p2.1)\.
- \[23\]A\. Y\. Ng and S\. Russell\(2000\)Algorithms for inverse reinforcement learning\.\.InInternational Conference on Machine Learning,Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1)\.
- \[24\]B\. Okal and K\. O\. Arras\(2016\)Learning socially normative robot navigation behaviors with bayesian inverse reinforcement learning\.In2016 IEEE international conference on robotics and automation \(ICRA\),pp\. 2889–2895\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p1.1)\.
- \[25\]M\. Palaniappan, D\. Malik, D\. Hadfield\-Menell, A\. Dragan, and S\. Russell\(2017\)Efficient cooperative inverse reinforcement learning\.InProc\. ICML Workshop on Reliable Machine Learning in the Wild,Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p3.1),[§2](https://arxiv.org/html/2605.08131#S2.p2.1)\.
- \[26\]F\. Pedregosa\(2016\)Hyperparameter optimization with approximate gradient\.InInternational conference on machine learning,pp\. 737–746\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p3.1)\.
- \[27\]D\. Ramachandran and E\. Amir\(2007\)Bayesian inverse reinforcement learning\.\.InIJCAI,Vol\.7,pp\. 2586–2591\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1)\.
- \[28\]T\. Rashid, M\. Samvelyan, C\. S\. De Witt, G\. Farquhar, J\. Foerster, and S\. Whiteson\(2020\)Monotonic value function factorisation for deep multi\-agent reinforcement learning\.Journal of Machine Learning Research21\(178\),pp\. 1–51\.Cited by:[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[29\]T\. Renard, A\. Schlaginhaufen, T\. Ni, and M\. Kamgarpour\(2024\)Convergence of a model\-free entropy\-regularized inverse reinforcement learning algorithm\.arXiv preprint arXiv:2403\.16829\.Cited by:[§6\.2](https://arxiv.org/html/2605.08131#S6.SS2.p2.3)\.
- \[30\]N\. Rhinehart and K\. M\. Kitani\(2017\)First\-person activity forecasting with online inverse reinforcement learning\.InProceedings of the IEEE International Conference on Computer Vision,pp\. 3696–3705\.Cited by:[§6\.2](https://arxiv.org/html/2605.08131#S6.SS2.p2.3)\.
- \[31\]M\. Samvelyan, T\. Rashid, C\. S\. De Witt, G\. Farquhar, N\. Nardelli, T\. G\. Rudner, C\. Hung, P\. H\. Torr, J\. Foerster, and S\. Whiteson\(2019\)The starcraft multi\-agent challenge\.arXiv preprint arXiv:1902\.04043\.Cited by:[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[32\]J\. C\. Spall\(1992\)Multivariate stochastic approximation using a simultaneous perturbation gradient approximation\.IEEE transactions on automatic control37\(3\),pp\. 332–341\.Cited by:[Appendix G](https://arxiv.org/html/2605.08131#A7.1.p1.2),[§5\.2](https://arxiv.org/html/2605.08131#S5.SS2.p2.13)\.
- \[33\]J\. C\. Spall\(2000\)Adaptive stochastic approximation by the simultaneous perturbation method\.IEEE transactions on automatic control45\(10\),pp\. 1839–1853\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p6.3)\.
- \[34\]J\. C\. Strikwerda\(2004\)Finite difference schemes and partial differential equations\.SIAM\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p3.1)\.
- \[35\]J\. Terry, B\. Black, N\. Grammel, M\. Jayakumar, A\. Hari, R\. Sullivan, L\. S\. Santos, C\. Dieffendahl, C\. Horsch, R\. Perez\-Vicente,et al\.\(2021\)Pettingzoo: gym for multi\-agent reinforcement learning\.Advances in Neural Information Processing Systems34,pp\. 15032–15043\.Cited by:[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[36\]L\. Wang, Q\. Cai, Z\. Yang, and Z\. Wang\(2019\)Neural policy gradient methods: global optimality and rates of convergence\.arXiv preprint arXiv:1909\.01150\.Cited by:[§6](https://arxiv.org/html/2605.08131#S6.p2.4)\.
- \[37\]X\. Wang and D\. Klabjan\(2018\)Competitive multi\-agent inverse reinforcement learning with sub\-optimal demonstrations\.InInternational Conference on Machine Learning,pp\. 5143–5151\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p3.1),[§2](https://arxiv.org/html/2605.08131#S2.p2.1)\.
- \[38\]S\. Xu and M\. Zhu\(2022\)Meta value learning for fast policy\-centric optimal motion planning\.InRobotics science and systems,Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p3.1)\.
- \[39\]S\. Xu and M\. Zhu\(2023\-Jun\.\)Efficient gradient approximation method for constrained bilevel optimization\.Proceedings of the AAAI Conference on Artificial Intelligence37\(10\),pp\. 12509–12517\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p3.1),[Lemma 5\.2](https://arxiv.org/html/2605.08131#S5.Thmtheorem2.p1.3.3)\.
- \[40\]C\. Yu, A\. Velu, E\. Vinitsky, J\. Gao, Y\. Wang, A\. Bayen, and Y\. Wu\(2022\)The surprising effectiveness of ppo in cooperative multi\-agent games\.Advances in Neural Information Processing Systems35,pp\. 24611–24624\.Cited by:[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[41\]L\. Yu, J\. Song, and S\. Ermon\(2019\)Multi\-agent adversarial inverse reinforcement learning\.InInternational Conference on Machine Learning,pp\. 7194–7201\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1),[§4](https://arxiv.org/html/2605.08131#S4.p5.13)\.
- \[42\]S\. Zeng, C\. Li, A\. Garcia, and M\. Hong\(2022\)Maximum\-likelihood inverse reinforcement learning with finite\-time guarantees\.Advances in Neural Information Processing Systems35,pp\. 10122–10135\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1),[§6](https://arxiv.org/html/2605.08131#S6.p2.4),[§7](https://arxiv.org/html/2605.08131#S7.p2.1)\.
- \[43\]S\. Zeng, C\. Li, A\. Garcia, and M\. Hong\(2023\)When demonstrations meet generative world models: a maximum likelihood framework for offline inverse reinforcement learning\.Advances in Neural Information Processing Systems36,pp\. 65531–65565\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1)\.
- \[44\]D\. Zhang, G\. Feng, Y\. Shi, and D\. Srinivasan\(2021\)Physical safety and cyber security analysis of multi\-agent systems: a survey of recent advances\.IEEE/CAA Journal of Automatica Sinica8\(2\),pp\. 319–333\.Cited by:[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[45\]K\. Zhang, A\. Koppel, H\. Zhu, and T\. Basar\(2020\)Global convergence of policy gradient methods to \(almost\) locally optimal policies\.SIAM Journal on Control and Optimization58\(6\),pp\. 3586–3612\.Cited by:[§6](https://arxiv.org/html/2605.08131#S6.p2.4)\.
- \[46\]X\. Zhang, K\. Zhang, E\. Miehling, and T\. Basar\(2019\)Non\-cooperative inverse reinforcement learning\.Advances in neural information processing systems32\.Cited by:[§1](https://arxiv.org/html/2605.08131#S1.p1.1),[§1](https://arxiv.org/html/2605.08131#S1.p2.1),[§1](https://arxiv.org/html/2605.08131#S1.p3.1),[§2](https://arxiv.org/html/2605.08131#S2.p2.1),[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[47\]K\. Zhu and T\. Zhang\(2021\)Deep reinforcement learning based mobile robot navigation: a review\.Tsinghua Science and Technology26\(5\),pp\. 674–691\.Cited by:[§7](https://arxiv.org/html/2605.08131#S7.p1.1)\.
- \[48\]B\. D\. Ziebart, J\. A\. Bagnell, and A\. K\. Dey\(2010\)Modeling interaction via the principle of maximum causal entropy\.International Conference on Machine Learning\.Cited by:[§2](https://arxiv.org/html/2605.08131#S2.p1.1),[§4](https://arxiv.org/html/2605.08131#S4.p5.23),[§7](https://arxiv.org/html/2605.08131#S7.p2.1)\.
- \[49\]B\. D\. Ziebart, A\. L\. Maas, J\. A\. Bagnell, and A\. K\. Dey\(2008\)Maximum entropy inverse reinforcement learning\.\.Association for the Advancement of Artificial Intelligence8,pp\. 1433–1438\.Cited by:[Appendix H](https://arxiv.org/html/2605.08131#A8.p1.11),[§1](https://arxiv.org/html/2605.08131#S1.p1.1),[§2](https://arxiv.org/html/2605.08131#S2.p1.1),[§4](https://arxiv.org/html/2605.08131#S4.p5.23)\.
## Appendix ANotion and notations
Definef\(θl,θe\)≜Jl\(πθl,θe\)f\(\\theta\_\{l\},\\theta\_\{e\}\)\\triangleq J\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\), whereJl\(πθl,θe\)≜Eπθl,θe\[∑h=0H−1γhrθl\(sh,ah\)\]J\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\]is the cumulative reward of the learner with respect torθlr\_\{\\theta\_\{l\}\}\. Define the reward gradient expectation of the expert from the state\-action pair\(s,a\)\(s,a\)asμe\(s,a\)≜Eπθl,θe\[∑h=0H−1γh∇θerθe\(sh,ah\)\|s0=s,a0=a\]\\mu\_\{e\}\(s,a\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s,a^\{0\}=a\], the reward gradient expectation of the expert from the statessasμe\(s\)≜∫al∈Al∫ae∈Aeμe\(s,a\)𝑑al𝑑ae,μe\(s,a\)≜Eπθl,θe\[∑h=0H−1γh∇θerθe\(sh,ah\)\|s0=s\]\\mu\_\{e\}\(s\)\\triangleq\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}\\mu\_\{e\}\(s,a\)da\_\{l\}da\_\{e\},\\mu\_\{e\}\(s,a\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s\]\. Analogously, define the reward gradient expectation of the learner asμl\(πθl,θe\)≜Eπθl,θe\[∑h=0H−1γh∇θlrθl\(sh,ah\)\]\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\], the reward gradient expectation of the learner from the state\-action pair\(s,a\)\(s,a\)asμl\(s,a\)≜Eπθl,θe\[∑h=0H−1γh∇θlrθl\(sh,ah\)\|s0=s,a0=a\]\\mu\_\{l\}\(s,a\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s,a^\{0\}=a\], the reward gradient expectation of the learner from the statessasμl\(s\)≜∫al∈Al∫ae∈Aeμl\(s,a\)𝑑al𝑑ae≜Eπθl,θe\[∑h=0H−1γh∇θlrθl\(sh,ah\)\|s0=s\]\\mu\_\{l\}\(s\)\\triangleq\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}\\mu\_\{l\}\(s,a\)da\_\{l\}da\_\{e\}\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s\]\. Define the cumulative reward of the learner with respect torθlr\_\{\\theta\_\{l\}\}from the state\-action pair\(s,a\)\(s,a\)asJl\(s,a\)≜Eπθl,θe\[∑h=0H−1γhrθl\(sh,ah\)\|s0=s,a0=a\]J\_\{l\}\(s,a\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s,a^\{0\}=a\]and define the cumulative reward of the learner with respect torθlr\_\{\\theta\_\{l\}\}from the statessasJl\(s\)≜Eπθl,θe\[∑h=0H−1γhrθl\(sh,ah\)\|s0=s\]J\_\{l\}\(s\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s\]\. DefineP0\(s\)P\_\{0\}\(s\)as the probability distribution of the initial state\.
During the proofs, symbols\(i\)\(i\)to\(viii\)\(viii\)are used to represent what theorems or methods are used to get the current step\. The symbol\(i\)\(i\)represents chain rule, the symbol\(ii\)\(ii\)represents the linearity of expectation, the symbol\(iii\)\(iii\)represents the closed\-form of geometric series, the symbol\(iv\)\(iv\)represents the triangle inequality, the symbol\(v\)\(v\)represents the hölder’s inequality, the symbol\(vi\)\(vi\)represents Taylor’s theorem, the symbol\(vii\)\(vii\)means the usage of other equations in this paper, and the symbol\(viii\)\(viii\)means keeping expansion\.
## Appendix BFundamental result for policy
This section lists the expressions for important gradients in continuous state\-action space\. Based on the idea of the soft Q learning\[[10](https://arxiv.org/html/2605.08131#bib.bib22)\], we can get:
Qθl,θesoft\(s,a\)=rθl\(s,a\)\+rθe\(s,a\)\+γ∫s′∈SP\(s′\|s,a\)Vsoft\(s′\)𝑑s′,Q^\{soft\}\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(s,a\)=r\_\{\\theta\_\{l\}\}\(s,a\)\+r\_\{\\theta\_\{e\}\}\(s,a\)\+\\gamma\\int\_\{s^\{\\prime\}\\in S\}P\(s^\{\\prime\}\|s,a\)V^\{soft\}\(s^\{\\prime\}\)ds^\{\\prime\},\(7\)Vθl,θesoft\(s\)=ln∫al∈Al∫ae∈Aeexp\(Qsoft\(s,a\)\)𝑑al𝑑ae,V^\{soft\}\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(s\)=\\ln\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}\\exp\(Q^\{soft\}\(s,a\)\)da\_\{l\}da\_\{e\},\(8\)πθl,θe\(al,ae\|s\)=exp\(Qsoft\(s,a\)\)exp\(Vsoft\(s\)\)\.\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(a\_\{l\},a\_\{e\}\|s\)=\\frac\{\\exp\(Q^\{soft\}\(s,a\)\)\}\{\\exp\(V^\{soft\}\(s\)\)\}\.\(9\)
As the lower\-level optimization problem is a maximum likelihood problem, it is important to know∇θeln\(πθl,θe\)\\nabla\_\{\\theta\_\{e\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)for the SGD of the lower\-level optimization problem\. The process for getting∇θeln\(πθl,θe\)\\nabla\_\{\\theta\_\{e\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)is shown below\. From the expression ofπθl,θe\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}, we can get∇θeln\(πθl,θe\)=∇θeQsoft\(s,a\)−∇θeVsoft\(s\)\\nabla\_\{\\theta\_\{e\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)=\\nabla\_\{\\theta\_\{e\}\}Q^\{soft\}\(s,a\)\-\\nabla\_\{\\theta\_\{e\}\}V^\{soft\}\(s\), therefore, we can calculate∇θeQsoft\(s,a\)\\nabla\_\{\\theta\_\{e\}\}Q^\{soft\}\(s,a\)and∇θeVsoft\(s\)\\nabla\_\{\\theta\_\{e\}\}V^\{soft\}\(s\)separately\. Based on the equation ofVsoft\(s\)V^\{soft\}\(s\), the gradient∇θeVsoft\(s\)\\nabla\_\{\\theta\_\{e\}\}V^\{soft\}\(s\)could be calculated as follows:
∇θeVsoft\(s\),\\displaystyle\\nabla\_\{\\theta\_\{e\}\}V^\{soft\}\(s\),=\(i\)∫al∈Al∫ae∈Ae∇θeexp\(Qsoft\(s,a\)\)𝑑al𝑑ae∫al∈Al∫ae∈Aeexp\(Qsoft\(s,a\)\)𝑑al𝑑ae,\\displaystyle\\overset\{\(i\)\}\{=\}\\frac\{\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}\\nabla\_\{\\theta\_\{e\}\}\\exp\(Q^\{soft\}\(s,a\)\)da\_\{l\}da\_\{e\}\}\{\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}\\exp\(Q^\{soft\}\(s,a\)\)da\_\{l\}da\_\{e\}\},=\(vii\)∫al∈Al∫ae∈Aeexp\(Qsoft\(s,a\)\)∇θeQsoft\(s,a\)𝑑al𝑑aeexp\(Vsoft\(s\)\),\\displaystyle\\overset\{\(vii\)\}\{=\}\\frac\{\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}\\exp\(Q^\{soft\}\(s,a\)\)\\nabla\_\{\\theta\_\{e\}\}Q^\{soft\}\(s,a\)da\_\{l\}da\_\{e\}\}\{\\exp\(V^\{soft\}\(s\)\)\},=\(vii\)∫al∈Al∫ae∈Aeπθl,θe\(al,ae\|s\)\(∇θerθe\(s,a\)\\displaystyle\\overset\{\(vii\)\}\{=\}\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(a\_\{l\},a\_\{e\}\|s\)\(\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s,a\)\+γ∫s′∈SP\(s′\|s,a\)∇θeVsoft\(s′\)ds′\)daldae,\\displaystyle\+\\gamma\\int\_\{s^\{\\prime\}\\in S\}P\(s^\{\\prime\}\|s,a\)\\nabla\_\{\\theta\_\{e\}\}V^\{soft\}\(s^\{\\prime\}\)ds^\{\\prime\}\)da\_\{l\}da\_\{e\},=\(viii\)∫al∈Al∫ae∈Aeπθl,θe\(al,ae\|s\)\(∇θerθe\(s,a\)\+γ∫s′∈SP\(s′\|s,a\)\\displaystyle\\overset\{\(viii\)\}\{=\}\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(a\_\{l\},a\_\{e\}\|s\)\(\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s,a\)\+\\gamma\\int\_\{s^\{\\prime\}\\in S\}P\(s^\{\\prime\}\|s,a\)\(∫al′∈al∫ae′∈aeπθl,θe\(al′,ae′\|s′\)\[∇θerθe\(s′,al′,ae′\)\\displaystyle\(\\int\_\{a\_\{l\}^\{\\prime\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{\\prime\}\\in a\_\{e\}\}\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(a\_\{l\}^\{\\prime\},a\_\{e\}^\{\\prime\}\|s^\{\\prime\}\)\[\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{\\prime\},a\_\{l\}^\{\\prime\},a\_\{e\}^\{\\prime\}\)\+γ∫s′′∈SP\(s′′\|s′,al′,ae′\)∇θeVsoft\(s′′\)ds′′\]dal′dae′ds′\)daldae,\\displaystyle\+\\gamma\\int\_\{s^\{\\prime\\prime\}\\in S\}P\(s^\{\\prime\\prime\}\|s^\{\\prime\},a\_\{l\}^\{\\prime\},a\_\{e\}^\{\\prime\}\)\\nabla\_\{\\theta\_\{e\}\}V^\{soft\}\(s^\{\\prime\\prime\}\)ds^\{\\prime\\prime\}\]da\_\{l\}^\{\\prime\}da\_\{e\}^\{\\prime\}ds^\{\\prime\}\)da\_\{l\}da\_\{e\},=Eπθl,θe\[∑h=0H−1γh∇θerθe\(sh,ah\)\|s0=s\],\\displaystyle=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s\],=μe\(s\),\\displaystyle=\\mu\_\{e\}\(s\),\(10\)where the first\(vii\)\(vii\)uses the expression in equation \([8](https://arxiv.org/html/2605.08131#A2.E8)\) and \([9](https://arxiv.org/html/2605.08131#A2.E9)\), and the second\(iii\)\(iii\)uses the expression in equation \([7](https://arxiv.org/html/2605.08131#A2.E7)\)\. Similarly, we can get∇θeQsoft\(s,a\)\\nabla\_\{\\theta\_\{e\}\}Q^\{soft\}\(s,a\)fromQsoft\(s,a\)Q^\{soft\}\(s,a\)\.
∇θeQsoft\(s,a\),\\displaystyle\\nabla\_\{\\theta\_\{e\}\}Q^\{soft\}\(s,a\),\(11\)=\(vii\)∇θerθe\(s,a\)\+γ∫s′∈SP\(s′\|s,a\)∇θeVsoft\(s′\)ds′\)daldae,\\displaystyle\\overset\{\(vii\)\}\{=\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s,a\)\+\\gamma\\int\_\{s^\{\\prime\}\\in S\}P\(s^\{\\prime\}\|s,a\)\\nabla\_\{\\theta\_\{e\}\}V^\{soft\}\(s^\{\\prime\}\)ds^\{\\prime\}\)da\_\{l\}da\_\{e\},=\(viii\)Eπθl,θe\[∑h=0H−1γh∇θerθe\(sh,ah\)\|s0=s,a0=a\],\\displaystyle\\overset\{\(viii\)\}\{=\}E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s,a^\{0\}=a\],=μe\(s,a\),\\displaystyle=\\mu\_\{e\}\(s,a\),where\(vii\)\(vii\)uses the expression in equation \([7](https://arxiv.org/html/2605.08131#A2.E7)\)\. By summing the results of equation \([B](https://arxiv.org/html/2605.08131#A2.Ex1)\) and \([11](https://arxiv.org/html/2605.08131#A2.E11)\), we can get∇θeln\(πθl,θe\)\\nabla\_\{\\theta\_\{e\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)as follows:
∇θeln\(πθl,θe\(al,ae\|s\)\)=∇θeQsoft\(s,a\)−∇θeVsoft\(s\)=μe\(s,a\)−μe\(s\)\.\\nabla\_\{\\theta\_\{e\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(a\_\{l\},a\_\{e\}\|s\)\)=\\nabla\_\{\\theta\_\{e\}\}Q^\{soft\}\(s,a\)\-\\nabla\_\{\\theta\_\{e\}\}V^\{soft\}\(s\)=\\mu\_\{e\}\(s,a\)\-\\mu\_\{e\}\(s\)\.\(12\)The way to get∇θlln\(πθl,θe\)\\nabla\_\{\\theta\_\{l\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)is same as that of∇θeln\(πθl,θe\)\\nabla\_\{\\theta\_\{e\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\), and the gradient∇θlln\(πθl,θe\(al,ae\|s\)\)=μl\(s,a\)−μl\(s\)\\nabla\_\{\\theta\_\{l\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\(a\_\{l\},a\_\{e\}\|s\)\)=\\mu\_\{l\}\(s,a\)\-\\mu\_\{l\}\(s\)\.
## Appendix CThe proof of Lemma[5\.1](https://arxiv.org/html/2605.08131#S5.Thmtheorem1)
In this section, we derived gradients that are necessary for our method\.
DefinePD\(sh=s,alh=al,aeh=ae\)≜\{1sh=s,alh=al,aeh=ae0otherwiseP\_\{D\}\(s^\{h\}=s,a\_\{l\}^\{h\}=a\_\{l\},a\_\{e\}^\{h\}=a\_\{e\}\)\\triangleq\\begin\{cases\}1&s^\{h\}=s,a\_\{l\}^\{h\}=a\_\{l\},a\_\{e\}^\{h\}=a\_\{e\}\\\\ 0&\\text\{otherwise\}\\\\ \\end\{cases\}, where\(s,a\)∈Dθl,re\(s,a\)\\in D\_\{\\theta\_\{l\},r\_\{e\}\}, as the probability of\(s,a\)\(s,a\)occurring at timehhin the demonstration setDθl,reD\_\{\\theta\_\{l\},r\_\{e\}\}\. With the fundamental result of the policy, we can derive the∇θeL\(θl,θe\)\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)and prove the Lemma[5\.1](https://arxiv.org/html/2605.08131#S5.Thmtheorem1)as follows:
∇θeL\(θl,θe\),\\displaystyle\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\),=−∑h=0H−1γh∫s∈S∫al∈Al∫ae∈AePD\(sh=s,alh=al,aeh=ae\)∇θeln\(πθl,θe\)𝑑ae𝑑al𝑑s\+λθe,\\displaystyle=\-\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\int\_\{s\\in S\}\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}P\_\{D\}\(s^\{h\}=s,a\_\{l\}^\{h\}=a\_\{l\},a\_\{e\}^\{h\}=a\_\{e\}\)\\nabla\_\{\\theta\_\{e\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)da\_\{e\}da\_\{l\}ds\+\\lambda\\theta\_\{e\},=\(vii\)−∑h=0H−1γh∫s∈S∫al∈Al∫ae∈AePD\(sh=s,alh=al,aeh=ae\)\(∇θerθe\(s,a\)\\displaystyle\\overset\{\(vii\)\}\{=\}\-\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\int\_\{s\\in S\}\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}P\_\{D\}\(s^\{h\}=s,a\_\{l\}^\{h\}=a\_\{l\},a\_\{e\}^\{h\}=a\_\{e\}\)\(\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s,a\)\+Eπθl,θe\[∑t′=t\+1T−1γt′−t−1∇θerθe\(sh,ah\)\|sh=s,alh=al,aeh=ae\]\\displaystyle\+E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{t^\{\\prime\}=t\+1\}^\{T\-1\}\\gamma^\{t^\{\\prime\}\-t\-1\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\|s^\{h\}=s,a\_\{l\}^\{h\}=a\_\{l\},a\_\{e\}^\{h\}=a\_\{e\}\]−Eπθl,θe\[∑t′=tT−1γt′−t∇θerθe\(sh,ah\)\|sh=s\]\)daedalds\+λθe,\\displaystyle\-E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{t^\{\\prime\}=t\}^\{T\-1\}\\gamma^\{t^\{\\prime\}\-t\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\|s^\{h\}=s\]\)da\_\{e\}da\_\{l\}ds\+\\lambda\\theta\_\{e\},=\(ii\)−∑h=0H−1γh∫s∈S∫al∈Al∫ae∈AePD\(sh=s,alh=al,aeh=ae\)\(∇θerθe\(s,a\)daedalds\\displaystyle\\overset\{\(ii\)\}\{=\}\-\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\int\_\{s\\in S\}\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}P\_\{D\}\(s^\{h\}=s,a\_\{l\}^\{h\}=a\_\{l\},a\_\{e\}^\{h\}=a\_\{e\}\)\(\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s,a\)da\_\{e\}da\_\{l\}ds−∫s∈S∫al∈Al∫ae∈AePD\(s0=s,al0=al,ae0=ae\)\\displaystyle\-\\int\_\{s\\in S\}\\int\_\{a\_\{l\}\\in A\_\{l\}\}\\int\_\{a\_\{e\}\\in A\_\{e\}\}P\_\{D\}\(s^\{0\}=s,a\_\{l\}^\{0\}=a\_\{l\},a\_\{e\}^\{0\}=a\_\{e\}\)Eπθl,θe\[∑t=0T−1γt∇θerθe\(sh,ah\)\|s0=s\]\)daedalds\+λθe,\\displaystyle E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{t=0\}^\{T\-1\}\\gamma^\{t\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\|s^\{0\}=s\]\)da\_\{e\}da\_\{l\}ds\+\\lambda\\theta\_\{e\},=μe\(πθl,θe\)−μ^e\(Dθl,re\)\+λθe,\\displaystyle=\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\-\\hat\{\\mu\}\_\{e\}\(D\_\{\\theta\_\{l\},r\_\{e\}\}\)\+\\lambda\\theta\_\{e\},where\(vii\)\(vii\)uses the expression of equation \([12](https://arxiv.org/html/2605.08131#A2.E12)\)\.
## Appendix DOther needed gradients
###### Lemma D\.1\.
Suppose Assumption[6\.1](https://arxiv.org/html/2605.08131#S6.Thmtheorem1)holds, the first\-order gradients∇θlL\(θl,θe\)=μl\(πθl,θe\)−μ^l\(Dθl,re\),∇θlf\(θl,θe\)=Eπθl,θe\[∑h=0H−1γh\[\(μl\(sh,ah\)−μl\(sh\)\)Jl\(sh,ah\)T\]\]\+μl\(πθl,θe\)\\nabla\_\{\\theta\_\{l\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)=\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\-\\hat\{\\mu\}\_\{l\}\(D\_\{\\theta\_\{l\},r\_\{e\}\}\),\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\mu\_\{l\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{l\}\(s^\{h\}\)\)J\_\{l\}\(s^\{h\},a^\{h\}\)^\{T\}\]\]\+\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\),∇θef\(θl,θe\)=Eπθl,θe\[∑h=0H−1γh\[\(μe\(sh,ah\)−μe\(sh\)\)\(Jl\(sh,ah\)\)T\]\]\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\mu\_\{e\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{e\}\(s^\{h\}\)\)\(J\_\{l\}\(s^\{h\},a^\{h\}\)\)^\{T\}\]\]\. The second\-order gradients∇θlθe2L\(θl,θe\)=Eπθl,θe\[∑h=0H−1γh\(μe\(s,a\)−μe\(s\)\)μl\(s,a\)T\]\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\(\\mu\_\{e\}\(s,a\)\-\\mu\_\{e\}\(s\)\)\\mu\_\{l\}\(s,a\)^\{T\}\],∇θeθe2L\(θl,θe\)=Eπθl,θe\[∑h=0H−1γh\[\(μe\(sh,ah\)−μe\(sh\)\)μe\(sh,ah\)T\+∇θe2rθe\(sh,ah\)\]\]−1d∑i=0d∑h=0H−1γh∇θerθe\(sih,aih\)\+λ\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\mu\_\{e\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{e\}\(s^\{h\}\)\)\\mu\_\{e\}\(s^\{h\},a^\{h\}\)^\{T\}\+\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\]\]\-\\frac\{1\}\{d\}\\sum\_\{i=0\}^\{d\}\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{e\}\}r\_\{\\theta\_\{e\}\}\(s^\{ih\},a^\{ih\}\)\+\\lambda
###### Proof\.
Through the same process of calculating∇θeL\(θl,θe\)\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\), we can get the gradient∇θlL\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)following the same process in Lemma[5\.1](https://arxiv.org/html/2605.08131#S5.Thmtheorem1), whereμl\(πθl,θe\)≜Eπθl,θe\[∑h=0H−1γh∇θlrθl\(sh,ah\)\]\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\\triangleq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\]\.
The process for getting∇θlf\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)is shown below\. From the equation off\(θl,θe\)f\(\\theta\_\{l\},\\theta\_\{e\}\), we can see that∇θlf\(θl,θe\)=∇θlJl\(πθl,θe\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)=\\nabla\_\{\\theta\_\{l\}\}J\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\), then∇θlJl\(πθl,θe\)\\nabla\_\{\\theta\_\{l\}\}J\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)can be calculated\. The calculation of deriving∇θlJl\(πθl,θe\)\\nabla\_\{\\theta\_\{l\}\}J\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)is as follows:
∇θlJl\(πθl,θe\),\\displaystyle\\nabla\_\{\\theta\_\{l\}\}J\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\),=\(i\)∫s0∈SP0\(s0\)∫al0∈al∫ae0∈ae\[∇θlπ\(al0,ae0\|s0\)Jl\(s0,al0,ae0\)T\\displaystyle\\overset\{\(i\)\}\{=\}\\int\_\{s^\{0\}\\in S\}P\_\{0\}\(s^\{0\}\)\\int\_\{a\_\{l\}^\{0\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{0\}\\in a\_\{e\}\}\[\\nabla\_\{\\theta\_\{l\}\}\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)J\_\{l\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)^\{T\}\+π\(al0,ae0\|s0\)∇θlJl\(s0,al0,ae0\)T\]dal0dae0ds0,\\displaystyle\+\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\\nabla\_\{\\theta\_\{l\}\}J\_\{l\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)^\{T\}\]da\_\{l\}^\{0\}da\_\{e\}^\{0\}ds^\{0\},=∫s0∈SP0\(s0\)∫al0∈al∫ae0∈ae\[∇θlπ\(al0,ae0\|s0\)Jl\(s0,al0,ae0\)T\+π\(al0,ae0\|s0\)\(∇θlrθl\(s0,al0,ae0\)\\displaystyle=\\int\_\{s^\{0\}\\in S\}P\_\{0\}\(s^\{0\}\)\\int\_\{a\_\{l\}^\{0\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{0\}\\in a\_\{e\}\}\[\\nabla\_\{\\theta\_\{l\}\}\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)J\_\{l\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)^\{T\}\+\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\(\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)\+γ∫s1∈SP\(s1\|s0,al0,ae0\)∇θlJl\(s1\)\)ds1\]dal0dae0ds0,\\displaystyle\+\\gamma\\int\_\{s^\{1\}\\in S\}P\(s^\{1\}\|s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)\\nabla\_\{\\theta\_\{l\}\}J\_\{l\}\(s^\{1\}\)\)ds^\{1\}\]da\_\{l\}^\{0\}da\_\{e\}^\{0\}ds^\{0\},=\(viii\)∫s0∈SP0\(s0\)∫al0∈al∫ae0∈ae\{∇θlπ\(al0,ae0\|s0\)Jl\(s0,al0,ae0\)T\+π\(al0,ae0\|s0\)\[∇θlrθl\(s0,al0,ae0\)\\displaystyle\\overset\{\(viii\)\}\{=\}\\int\_\{s^\{0\}\\in S\}P\_\{0\}\(s^\{0\}\)\\int\_\{a\_\{l\}^\{0\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{0\}\\in a\_\{e\}\}\\\{\\nabla\_\{\\theta\_\{l\}\}\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)J\_\{l\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)^\{T\}\+\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\[\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)\+γ∫s1∈SP\(s1\|s0,al0,ae0\)∫al1∈al∫ae1∈ae∇θlπ\(al1,ae1\|s1\)Jl\(s1,al1,ae1\)T\\displaystyle\+\\gamma\\int\_\{s^\{1\}\\in S\}P\(s^\{1\}\|s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)\\int\_\{a\_\{l\}^\{1\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{1\}\\in a\_\{e\}\}\\nabla\_\{\\theta\_\{l\}\}\\pi\(a\_\{l\}^\{1\},a\_\{e\}^\{1\}\|s^\{1\}\)J\_\{l\}\(s^\{1\},a\_\{l\}^\{1\},a\_\{e\}^\{1\}\)^\{T\}\+π\(al1,ae1\|s1\)\(∇θlrθl\(s1,al1,ae1\)\+γ∫s2∈SP\(s2\|s1,al1,ae1\)∇θlJl\(s2\)\)ds2\]ds1\}dal0dae0ds0,\\displaystyle\+\\pi\(a\_\{l\}^\{1\},a\_\{e\}^\{1\}\|s^\{1\}\)\(\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{1\},a\_\{l\}^\{1\},a\_\{e\}^\{1\}\)\+\\gamma\\int\_\{s^\{2\}\\in S\}P\(s^\{2\}\|s^\{1\},a\_\{l\}^\{1\},a\_\{e\}^\{1\}\)\\nabla\_\{\\theta\_\{l\}\}J\_\{l\}\(s^\{2\}\)\)ds^\{2\}\]ds^\{1\}\\\}da\_\{l\}^\{0\}da\_\{e\}^\{0\}ds^\{0\},=Eπθl,θe\[∑h=0H−1γh\(∇θlπ\(alh,aeh\|sh\)π\(alh,aeh\|sh\)Jl\(sh,ah\)T\+∇θlrθl\(sh,ah\)\)\],\\displaystyle=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\(\\frac\{\\nabla\_\{\\theta\_\{l\}\}\\pi\(a\_\{l\}^\{h\},a\_\{e\}^\{h\}\|s^\{h\}\)\}\{\\pi\(a\_\{l\}^\{h\},a\_\{e\}^\{h\}\|s^\{h\}\)\}J\_\{l\}\(s^\{h\},a^\{h\}\)^\{T\}\+\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\)\],=Eπθl,θe\[∑h=0H−1γh\(∇θlln\(πθl,θe\)Jl\(sh,ah\)T\+∇θlrθl\(sh,ah\)\)\],\\displaystyle=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\(\\nabla\_\{\\theta\_\{l\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)J\_\{l\}\(s^\{h\},a^\{h\}\)^\{T\}\+\\nabla\_\{\\theta\_\{l\}\}r\_\{\\theta\_\{l\}\}\(s^\{h\},a^\{h\}\)\)\],=\(vii\)Eπθl,θe\[∑h=0H−1γh\[\(μl\(sh,ah\)−μl\(sh\)\)Jl\(sh,ah\)T\]\]\+μl\(πθl,θe\),\\displaystyle\\overset\{\(vii\)\}\{=\}E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\mu\_\{l\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{l\}\(s^\{h\}\)\)J\_\{l\}\(s^\{h\},a^\{h\}\)^\{T\}\]\]\+\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\),where\(vii\)\(vii\)use the expression of the equation \([12](https://arxiv.org/html/2605.08131#A2.E12)\)\.
The∇θef\(θl,θe\)\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)is calculated in the same way as the∇θlf\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)\.
The process for getting∇θe2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)is shown below\. As we proved in Lemma[5\.1](https://arxiv.org/html/2605.08131#S5.Thmtheorem1), the gradient∇θeL\(θl,θe\)=μe\(πθl,θe\)−μ^e\(Dθl,re\)\+λθe\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)=\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\-\\hat\{\\mu\}\_\{e\}\(D\_\{\\theta\_\{l\},r\_\{e\}\}\)\+\\lambda\\theta\_\{e\}, as a result, we can take the derivative of each term separately\. The derivative ofμe\(πθl,θe\)\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)w\.r\.tθe\\theta\_\{e\}is calculated as follows:
∇θeμe\(πθl,θe\),\\displaystyle\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\),=\(i\)∫s0∈SP0\(s0\)∫al0∈al∫ae0∈ae\[∇θeπ\(al0,ae0\|s0\)μe\(s0,al0,ae0\)T\\displaystyle\\overset\{\(i\)\}\{=\}\\int\_\{s^\{0\}\\in S\}P\_\{0\}\(s^\{0\}\)\\int\_\{a\_\{l\}^\{0\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{0\}\\in a\_\{e\}\}\[\\nabla\_\{\\theta\_\{e\}\}\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\\mu\_\{e\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)^\{T\}\+π\(al0,ae0\|s0\)∇θeμe\(s0,al0,ae0\)T\]dal0dae0ds0,\\displaystyle\+\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{e\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)^\{T\}\]da\_\{l\}^\{0\}da\_\{e\}^\{0\}ds^\{0\},=∫s0∈SP0\(s0\)∫al0∈al∫ae0∈ae\[∇θlπ\(al0,ae0\|s0\)μe\(s0,al0,ae0\)T\\displaystyle=\\int\_\{s^\{0\}\\in S\}P\_\{0\}\(s^\{0\}\)\\int\_\{a\_\{l\}^\{0\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{0\}\\in a\_\{e\}\}\[\\nabla\_\{\\theta\_\{l\}\}\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\\mu\_\{e\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)^\{T\}\+π\(al0,ae0\|s0\)\(∇θe2rθe\(s0,al0,ae0\)\+γ∫s1∈SP\(s1\|s0,al0,ae0\)∇θeμe\(s1\)\)ds1\]dal0dae0ds0,\\displaystyle\+\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\(\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)\+\\gamma\\int\_\{s^\{1\}\\in S\}P\(s^\{1\}\|s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{e\}\(s^\{1\}\)\)ds^\{1\}\]da\_\{l\}^\{0\}da\_\{e\}^\{0\}ds^\{0\},=\(viii\)∫s0∈SP0\(s0\)∫al0∈al∫ae0∈ae\{∇θlπ\(al0,ae0\|s0\)μe\(s0,al0,ae0\)T\\displaystyle\\overset\{\(viii\)\}\{=\}\\int\_\{s^\{0\}\\in S\}P\_\{0\}\(s^\{0\}\)\\int\_\{a\_\{l\}^\{0\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{0\}\\in a\_\{e\}\}\\\{\\nabla\_\{\\theta\_\{l\}\}\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\\mu\_\{e\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)^\{T\}\+π\(al0,ae0\|s0\)\[∇θe2rθe\(s0,al0,ae0\)\\displaystyle\+\\pi\(a\_\{l\}^\{0\},a\_\{e\}^\{0\}\|s^\{0\}\)\[\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)\+γ∫s1∈SP\(s1\|s0,al0,ae0\)∫al1∈al∫ae1∈ae∇θeπ\(al1,ae1\|s1\)μe\(s1,al1,ae1\)T\\displaystyle\+\\gamma\\int\_\{s^\{1\}\\in S\}P\(s^\{1\}\|s^\{0\},a\_\{l\}^\{0\},a\_\{e\}^\{0\}\)\\int\_\{a\_\{l\}^\{1\}\\in a\_\{l\}\}\\int\_\{a\_\{e\}^\{1\}\\in a\_\{e\}\}\\nabla\_\{\\theta\_\{e\}\}\\pi\(a\_\{l\}^\{1\},a\_\{e\}^\{1\}\|s^\{1\}\)\\mu\_\{e\}\(s^\{1\},a\_\{l\}^\{1\},a\_\{e\}^\{1\}\)^\{T\}\+π\(al1,ae1\|s1\)\(∇θe2rθe\(s1,al1,ae1\)\+γ∫s2∈SP\(s2\|s1,al1,ae1\)∇θeμe\(s2\)\)ds2\]ds1\}dal0dae0ds0,\\displaystyle\+\\pi\(a\_\{l\}^\{1\},a\_\{e\}^\{1\}\|s^\{1\}\)\(\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{1\},a\_\{l\}^\{1\},a\_\{e\}^\{1\}\)\+\\gamma\\int\_\{s^\{2\}\\in S\}P\(s^\{2\}\|s^\{1\},a\_\{l\}^\{1\},a\_\{e\}^\{1\}\)\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{e\}\(s^\{2\}\)\)ds^\{2\}\]ds^\{1\}\\\}da\_\{l\}^\{0\}da\_\{e\}^\{0\}ds^\{0\},=Eπθl,θe\[∑h=0H−1γh\(∇θeπ\(alh,aeh\|sh\)π\(alh,aeh\|sh\)μe\(sh,ah\)T\+∇θe2rθe\(sh,ah\)\)\],\\displaystyle=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\(\\frac\{\\nabla\_\{\\theta\_\{e\}\}\\pi\(a\_\{l\}^\{h\},a\_\{e\}^\{h\}\|s^\{h\}\)\}\{\\pi\(a\_\{l\}^\{h\},a\_\{e\}^\{h\}\|s^\{h\}\)\}\\mu\_\{e\}\(s^\{h\},a^\{h\}\)^\{T\}\+\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\)\],=Eπθl,θe\[∑h=0H−1γh\(∇θeln\(πθl,θe\)μe\(sh,ah\)T\+∇θe2rθe\(sh,ah\)\)\],\\displaystyle=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\(\\nabla\_\{\\theta\_\{e\}\}\\ln\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\\mu\_\{e\}\(s^\{h\},a^\{h\}\)^\{T\}\+\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\)\],=\(vii\)Eπθl,θe\[∑h=0H−1γh\[\(μe\(sh,ah\)−μe\(sh\)\)μe\(sh,ah\)T\+∇θe2rθe\(sh,ah\)\]\],\\displaystyle\\overset\{\(vii\)\}\{=\}E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\mu\_\{e\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{e\}\(s^\{h\}\)\)\\mu\_\{e\}\(s^\{h\},a^\{h\}\)^\{T\}\+\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\]\],where\(vii\)\(vii\)use the expression of the equation \([12](https://arxiv.org/html/2605.08131#A2.E12)\)\. With the result of∇θeμe\(πθl,θe\)\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\), the derivative of∇θeL\(θl,θe\)\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)w\.r\.tθe\\theta\_\{e\}is as follows:
∇θe2L\(θl,θe\)=∇θe\(∇θeL\(θl,θe\)\),\\displaystyle\\nabla^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)=\\nabla\_\{\\theta\_\{e\}\}\(\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\),=∇θe\(μe\(πθl,θe\)−μ^e\(Dθl,re\)\+λθe\),\\displaystyle=\\nabla\_\{\\theta\_\{e\}\}\(\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\-\\hat\{\\mu\}\_\{e\}\(D\_\{\\theta\_\{l\},r\_\{e\}\}\)\+\\lambda\\theta\_\{e\}\),=\(ii\)Eπθl,θe\[∑h=0H−1γh\[\(μe\(sh,ah\)−μe\(sh\)\)μe\(sh,ah\)T\+∇θe2rθe\(sh,ah\)\]\]\\displaystyle\\overset\{\(ii\)\}\{=\}E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\mu\_\{e\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{e\}\(s^\{h\}\)\)\\mu\_\{e\}\(s^\{h\},a^\{h\}\)^\{T\}\+\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\]\]−1d∑i=0d∑h=0H−1γh∇θe2rθe\(sih,aih\)\+λ\.\\displaystyle\-\\frac\{1\}\{d\}\\sum\_\{i=0\}^\{d\}\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\nabla\_\{\\theta\_\{e\}\}^\{2\}r\_\{\\theta\_\{e\}\}\(s^\{ih\},a^\{ih\}\)\+\\lambda\.
Through the same process of calculating∇θeμe\(πθl,θe\)\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\), the result is as follows:
∇θlθe2L\(θl,θe\)=Eπθl,θe\[∑h=0H−1γh\(μe\(s,a\)−μe\(s\)\)μl\(s,a\)T\]\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\(\\mu\_\{e\}\(s,a\)\-\\mu\_\{e\}\(s\)\)\\mu\_\{l\}\(s,a\)^\{T\}\]∎
## Appendix EProperties of the lower level optimization problem
###### Lemma E\.1\.
Suppose Assumption[6\.1](https://arxiv.org/html/2605.08131#S6.Thmtheorem1)holds, for anyθl∈ℝn\\theta\_\{l\}\\in\\mathbb\{R\}^\{n\}andθe∈ℝm\\theta\_\{e\}\\in\\mathbb\{R\}^\{m\},LLis continuously twice differentiable in\(θl,θe\)\(\\theta\_\{l\},\\theta\_\{e\}\)\. For anyθ¯1∈ℝn\\bar\{\\theta\}\_\{1\}\\in\\mathbb\{R\}^\{n\},∇θeL\(θ¯1,θe\)\\nabla\_\{\\theta\_\{e\}\}L\(\\bar\{\\theta\}\_\{1\},\\theta\_\{e\}\)is Lipschitz continuous \(w\.r\.tw\.r\.tθe\\theta\_\{e\}\) with constantLLθe\>0L\_\{L\_\{\\theta\_\{e\}\}\}\>0\. For anyθ¯1∈ℝn\\bar\{\\theta\}\_\{1\}\\in\\mathbb\{R\}^\{n\}andθ¯2∈ℝm\\bar\{\\theta\}\_\{2\}\\in\\mathbb\{R\}^\{m\}, we have‖∇θlθe2L\(θ¯1,θ¯2\)‖≤CLθlθe\\\|\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\}^\{2\}L\(\\bar\{\\theta\}\_\{1\},\\bar\{\\theta\}\_\{2\}\)\\\|\\leq C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}for some constantCLθlθe\>0C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\>0\. For anyθ¯1∈ℝn\\bar\{\\theta\}\_\{1\}\\in\\mathbb\{R\}^\{n\},∇θlθe2L\(θ¯1,θe\)\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\}^\{2\}L\(\\bar\{\\theta\}\_\{1\},\\theta\_\{e\}\)and∇θeθe2L\(θ¯1,θe\)\\nabla\_\{\\theta\_\{e\}\\theta\_\{e\}\}^\{2\}L\(\\bar\{\\theta\}\_\{1\},\\theta\_\{e\}\)are Lipschitz continuous \(w\.r\.tw\.r\.tθe\\theta\_\{e\}\) with constantsLLθlθe\>0L\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\>0andLLθeθe\>0L\_\{L\_\{\\theta\_\{e\}\\theta\_\{e\}\}\}\>0\. For anyθ¯2∈ℝm\\bar\{\\theta\}\_\{2\}\\in\\mathbb\{R\}^\{m\},∇θlθe2L\(θl,θ¯2\)\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\}^\{2\}L\(\\theta\_\{l\},\\bar\{\\theta\}\_\{2\}\)and∇θeθe2L\(θl,θ¯2\)\\nabla\_\{\\theta\_\{e\}\\theta\_\{e\}\}^\{2\}L\(\\theta\_\{l\},\\bar\{\\theta\}\_\{2\}\)are Lipschitz continuous \(w\.r\.tw\.r\.tθl\\theta\_\{l\}\) with constantsL¯Lθlθe\>0\\bar\{L\}\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\>0andL¯Lθeθe\>0\\bar\{L\}\_\{L\_\{\\theta\_\{e\}\\theta\_\{e\}\}\}\>0
###### Proof\.
Suppose thath1h\_\{1\}is a real\-valued function defined and differentiable on an intervalH1⊂ℝnH\_\{1\}\\subset\\mathbb\{R\}^\{n\}\. If‖∇h1‖\\\|\\nabla h\_\{1\}\\\|is bounded, thenh1h\_\{1\}is a Lipschitz function onH1H\_\{1\}\. So we need to prove∇θeθe2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)is bounded\. From Assumption[6\.1](https://arxiv.org/html/2605.08131#S6.Thmtheorem1), we can show that∃R1g\>0,‖∇rθl‖≤R1g\\exists R\_\{1g\}\>0,\\\|\\nabla r\_\{\\theta\_\{l\}\}\\\|\\leq R\_\{1g\}\.
‖μl\(s\)‖≤Eπθl,θe\[∑h=0H−1γhR1g\|s0=s\]≤\(i\)R1g1−γ,\\\|\\mu\_\{l\}\(s\)\\\|\\leq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}R\_\{1g\}\|s^\{0\}=s\]\\overset\{\(i\)\}\{\\leq\}\\frac\{R\_\{1g\}\}\{1\-\\gamma\},where\(i\)\(i\)uses the closed\-form of geometric series\. As a result,‖μl\(s\)‖\\\|\\mu\_\{l\}\(s\)\\\|is bounded, proved through the same way,‖μe\(s\)‖,‖μl\(s,a\)‖,‖μe\(s,a\)‖\\\|\\mu\_\{e\}\(s\)\\\|,\\\|\\mu\_\{l\}\(s,a\)\\\|,\\\|\\mu\_\{e\}\(s,a\)\\\|are also bounded\. Based on the Lemma[D\.1](https://arxiv.org/html/2605.08131#A4.Thmtheorem1), all elements of∇θeθe2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)are finite, therefore,‖∇θeθe2L\(θl,θe\)‖\\\|\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\\\|is bounded and the∇θeL\(θ¯1,θe\)\\nabla\_\{\\theta\_\{e\}\}L\(\\bar\{\\theta\}\_\{1\},\\theta\_\{e\}\)is Lipschitz continuous\. In the same way of proving‖∇θeθe2L\(θl,θe\)‖\\\|\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\\\|is bounded, we can show‖∇θlθe2L\(θl,θe\)‖\\\|\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\\\|is bounded\.
We need to prove∇θeθeθe3L\(θl,θe\)\\nabla\_\{\\theta\_\{e\}\\theta\_\{e\}\\theta\_\{e\}\}^\{3\}L\(\\theta\_\{l\},\\theta\_\{e\}\)and∇θlθeθe3L\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\\theta\_\{e\}\}^\{3\}L\(\\theta\_\{l\},\\theta\_\{e\}\)are bounded\. The proof of∇θlθeθe3L\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\\theta\_\{e\}\}^\{3\}L\(\\theta\_\{l\},\\theta\_\{e\}\)is bounded as follows:
∇θlθeθe3L\(θl,θe\),\\displaystyle\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\\theta\_\{e\}\}^\{3\}L\(\\theta\_\{l\},\\theta\_\{e\}\),=∇θe\(Eπθl,θe\[∑h=0H−1γh\(μe\(s,a\)−μe\(s\)\)μl\(s,a\)T\]\),\\displaystyle=\\nabla\_\{\\theta\_\{e\}\}\(E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\(\\mu\_\{e\}\(s,a\)\-\\mu\_\{e\}\(s\)\)\\mu\_\{l\}\(s,a\)^\{T\}\]\),=\(i\)Eπθl,θe\[∑h=0H−1γh\(∇θeμe\(s,a\)\)μl\(s,a\)T\)\+μe\(s,a\)\(∇θeμl\(s,a\)T\)\\displaystyle\\overset\{\(i\)\}\{=\}E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\(\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{e\}\(s,a\)\)\\mu\_\{l\}\(s,a\)^\{T\}\)\+\\mu\_\{e\}\(s,a\)\(\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{l\}\(s,a\)^\{T\}\)−\(∇θeμe\(s\)\)μl\(s,a\)T\)−μe\(s\)\(∇θeμl\(s,a\)T\)\]\.\\displaystyle\-\(\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{e\}\(s\)\)\\mu\_\{l\}\(s,a\)^\{T\}\)\-\\mu\_\{e\}\(s\)\(\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{l\}\(s,a\)^\{T\}\)\]\.Each gradient inside the expectation could be derived through the process of deriving∇θlμl\(πθl,θe\)\\nabla\_\{\\theta\_\{l\}\}\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)in the proof of Lemma[D\.1](https://arxiv.org/html/2605.08131#A4.Thmtheorem1)and these gradients are all finite with the same way of proving‖∇θeθe2L\(θl,θe\)‖\\\|\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\\\|is bounded\. The third\-order gradient∇θlθeθe3L\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\\theta\_\{e\}\}^\{3\}L\(\\theta\_\{l\},\\theta\_\{e\}\)is bounded with the smae process\. Therefore, the third\-order gradients ofL\(θl,θe\)L\(\\theta\_\{l\},\\theta\_\{e\}\)are all bounded\. Through the same procedure, we can prove∇θeθeθl3L\(θl,θe\)\\nabla\_\{\\theta\_\{e\}\\theta\_\{e\}\\theta\_\{l\}\}^\{3\}L\(\\theta\_\{l\},\\theta\_\{e\}\)and∇θlθeθl3L\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\\theta\_\{l\}\}^\{3\}L\(\\theta\_\{l\},\\theta\_\{e\}\)are bounded\. At the same time, the existence of∇θlθe2L\(θl,θe\),∇θeθe2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)are shown\. Analogously, the existence of∇θlθl2L\(θl,θe\),∇θeθl2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{l\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{l\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)could be proved in the same way\. The third\-order gradients ofL\(θl,θe\)L\(\\theta\_\{l\},\\theta\_\{e\}\)are bounded\. Therefore,LLis continuously twice differentiable in\(θl,θe\)\(\\theta\_\{l\},\\theta\_\{e\}\)
∎
## Appendix FProperties of the upper\-level optimization problem
###### Lemma F\.1\.
Suppose Assumption[6\.1](https://arxiv.org/html/2605.08131#S6.Thmtheorem1)holds, for anyθ¯1∈ℝn\\bar\{\\theta\}\_\{1\}\\in\\mathbb\{R\}^\{n\},∇θlf\(θ¯1;θe\)\\nabla\_\{\\theta\_\{l\}\}f\(\\bar\{\\theta\}\_\{1\};\\theta\_\{e\}\)and∇θef\(θ¯1;θe\)\\nabla\_\{\\theta\_\{e\}\}f\(\\bar\{\\theta\}\_\{1\};\\theta\_\{e\}\)are Lipschitz continuous \(w\.r\.tw\.r\.tθe\\theta\_\{e\}\) with constantsLfθl\>0L\_\{f\_\{\\theta\_\{l\}\}\}\>0andLfθe\>0L\_\{f\_\{\\theta\_\{e\}\}\}\>0\. For anyθ¯2∈ℝm\\bar\{\\theta\}\_\{2\}\\in\\mathbb\{R\}^\{m\},∇θef\(θl;θ¯2\)\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\};\\bar\{\\theta\}\_\{2\}\)is Lipschitz continuous \(w\.r\.tw\.r\.tθl\\theta\_\{l\}\) with constantsL¯fθe\>0\\bar\{L\}\_\{f\_\{\\theta\_\{e\}\}\}\>0 For anyθ¯1∈ℝn\\bar\{\\theta\}\_\{1\}\\in\\mathbb\{R\}^\{n\}andθ¯2∈ℝm\\bar\{\\theta\}\_\{2\}\\in\\mathbb\{R\}^\{m\}, we have‖∇θef\(θ¯1;θ¯2\)‖≤Cfθe\\\|\\nabla\_\{\\theta\_\{e\}\}f\(\\bar\{\\theta\}\_\{1\};\\bar\{\\theta\}\_\{2\}\)\\\|\\leq C\_\{f\_\{\\theta\_\{e\}\}\}for someCfθe\>0C\_\{f\_\{\\theta\_\{e\}\}\}\>0\.
###### Proof\.
‖Jl\(πθl,θe\)‖≤Eπθl,θe\[∑h=0H−1γhrθl\|s0=s\]≤\(i\)Rθl1−γ,\\\|J\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\\\|\\leq E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{\\theta\_\{l\}\}\|s^\{0\}=s\]\\overset\{\(i\)\}\{\\leq\}\\frac\{R\_\{\\theta\_\{l\}\}\}\{1\-\\gamma\},where\(i\)\(i\)uses the closed\-form of geometric series and‖rθl‖≤Rθl\\\|r\_\{\\theta\_\{l\}\}\\\|\\leq R\_\{\\theta\_\{l\}\}\. So the cumulative reward valueJlJ\_\{l\}is bounded\.
∇θlθef\(θl;θe\),\\displaystyle\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\}f\(\\theta\_\{l\};\\theta\_\{e\}\),=∇θe\(Eπθl,θe\[∑h=0H−1γh\[\(μl\(sh,ah\)−μl\(sh\)\)\(Jl\(sh,ah\)\)T\]\]\+μl\(πθl,θe\),\\displaystyle=\\nabla\_\{\\theta\_\{e\}\}\(E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\mu\_\{l\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{l\}\(s^\{h\}\)\)\(J\_\{l\}\(s^\{h\},a^\{h\}\)\)^\{T\}\]\]\+\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\),=\(i\)Eπθl,θe\[∑h=0H−1γh\[\(∇θeμl\(sh,ah\)−∇θeμl\(sh\)\)\(Jl\(sh,ah\)\)T\\displaystyle\\overset\{\(i\)\}\{=\}E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{l\}\(s^\{h\},a^\{h\}\)\-\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{l\}\(s^\{h\}\)\)\(J\_\{l\}\(s^\{h\},a^\{h\}\)\)^\{T\}\+\(μl\(sh,ah\)−μl\(sh\)\)\(∇θeJl\(sh,ah\)\)T\]\]\+∇θeμl\(πθl,θe\)\.\\displaystyle\+\(\\mu\_\{l\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{l\}\(s^\{h\}\)\)\(\\nabla\_\{\\theta\_\{e\}\}J\_\{l\}\(s^\{h\},a^\{h\}\)\)^\{T\}\]\]\+\\nabla\_\{\\theta\_\{e\}\}\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\.
Refer to the proof of Lemma[E\.1](https://arxiv.org/html/2605.08131#A5.Thmtheorem1), all elements in∇θlθef\(θl;θe\)\\nabla\_\{\\theta\_\{l\}\\theta\_\{e\}\}f\(\\theta\_\{l\};\\theta\_\{e\}\)are finite, itself is bounded\. Analogously,∇θeθef\(θl;θe\)\\nabla\_\{\\theta\_\{e\}\\theta\_\{e\}\}f\(\\theta\_\{l\};\\theta\_\{e\}\)is bounded under the same proofing process\. Through the same procedure , we can prove∇θeθlf\(θl;θe\)\\nabla\_\{\\theta\_\{e\}\\theta\_\{l\}\}f\(\\theta\_\{l\};\\theta\_\{e\}\)is bounded\. All element of∇θef\(θ¯1;θ¯2\)\\nabla\_\{\\theta\_\{e\}\}f\(\\bar\{\\theta\}\_\{1\};\\bar\{\\theta\}\_\{2\}\)are bounded\. Therefore, all elements for∇θef\(θl;θe\)\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\};\\theta\_\{e\}\)is bounded and it is bounded\. ∎
## Appendix GProperties of the approximation errors
Defineb12\(k\)=∇^θlθe2L\(θl\(k\),θe\(k\)\)−∇θlθe2L\(θl\(k\),θe\(k\)\)b\_\{12\}\(k\)=\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),b22\(k\)=∇^θeθe2L\(θl\(k\),θe\(k\)\)−∇θeθe2L\(θl\(k\),θe\(k\)\)b\_\{22\}\(k\)=\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),b1\(k\)=∇^θlf\(θl\(k\),θe\(k\)\)−∇θlf\(θl\(k\),θe\(k\)\)b\_\{1\}\(k\)=\\hat\{\\nabla\}\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),b2\(k\)=∇^θef\(θl\(k\),θe\(k\)\)−∇θef\(θl\(k\),θe\(k\)\)b\_\{2\}\(k\)=\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),b\(k\)=\[∇^θeθe2L\(θl\(k\),θe\(k\)\)\]−1∇^θef\(θl\(k\),θe\(k\)\)−\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1∇θef\(θl\(k\),θe\(k\)\)b\(k\)=\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)at iterationkk,ba\(k\)=∇^f\(θl\(k\),θe\(k\)\)−∇f\(θl\(k\),θe\(k\)\)b\_\{a\}\(k\)=\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)at the iterationkk\. Through the same procedure in the proof of the Lemma[F\.1](https://arxiv.org/html/2605.08131#A6.Thmtheorem1), we can get conclude that each element of forth\-order gradient ofL\(θl,θe\)L\(\\theta\_\{l\},\\theta\_\{e\}\)is bounded by the constantCLC\_\{L\}and each element of the third\-order gradient off\(θl\(k\),θe\(k\)\)f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)is bounded byCfC\_\{f\}\.
###### Lemma G\.1\.
The biasesb12\(k\)b\_\{12\}\(k\),b22\(k\)b\_\{22\}\(k\),b1\(k\)b\_\{1\}\(k\),b2\(k\)b\_\{2\}\(k\),b\(k\)b\(k\), andba\(k\)b\_\{a\}\(k\)are bounded,
‖b12\(k\)‖≤CLp2\(k\)m6\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\},\\\|b\_\{12\}\(k\)\\\|\\leq\\frac\{C\_\{L\}p^\{2\}\(k\)\\sqrt\{m\}\}\{6\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\},‖b22\(k\)‖≤CLp2\(k\)m6\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\},\\\|b\_\{22\}\(k\)\\\|\\leq\\frac\{C\_\{L\}p^\{2\}\(k\)\\sqrt\{m\}\}\{6\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\},‖b1\(k\)‖≤Cfp2\(k\)n6\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\},\\\|b\_\{1\}\(k\)\\\|\\leq\\frac\{C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}\}\{6\}\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\},‖b2\(k\)‖≤Cfp2\(k\)m6\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\},\\\|b\_\{2\}\(k\)\\\|\\leq\\frac\{C\_\{f\}p^\{2\}\(k\)\\sqrt\{m\}\}\{6\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\},‖b\(k\)‖≤2Cfθe\(CLp2\(k\)\+Cfp2\(k\)\)6mλ2\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\},\\\|b\(k\)\\\|\\leq\\frac\{2C\_\{f\_\{\\theta\_\{e\}\}\}\(C\_\{L\}p^\{2\}\(k\)\+C\_\{f\}p^\{2\}\(k\)\)\}\{6\\sqrt\{m\}\\lambda^\{2\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\},‖ba\(k\)‖\\displaystyle\\\|b\_\{a\}\(k\)\\\|≤Cfp2\(k\)n6\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\}\\displaystyle\\leq\\frac\{C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}\}\{6\}\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+2CLθlθeCLp2\(k\)\+2CLθlθemλCfp2\(k\)6mλ2\\displaystyle\+\\frac\{2C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}C\_\{L\}p^\{2\}\(k\)\+2C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\\sqrt\{m\}\\lambda C\_\{f\}p^\{2\}\(k\)\}\{6\\sqrt\{m\}\\lambda^\{2\}\}\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}\+CfθeCLp2\(k\)6mλ3\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}\\displaystyle\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+\\frac\{\{C\_\{f\_\{\\theta\_\{e\}\}\}\}C\_\{L\}p^\{2\}\(k\)\}\{6m\\lambda^\{3\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+2p4\(k\)CL\(CfθeCL\+mλCf\)36λ2\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}2,\\displaystyle\+\\frac\{2p^\{4\}\(k\)C\_\{L\}\(C\_\{f\_\{\\theta\_\{e\}\}\}C\_\{L\}\+\\sqrt\{m\}\\lambda C\_\{f\}\)\}\{36\\lambda^\{2\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}^\{2\},
###### Proof\.
According to the Lemma 1 in\[[32](https://arxiv.org/html/2605.08131#bib.bib35)\], the approximation errorb12l\(k\)b\_\{12l\}\(k\)for∇^θlθe2L\(θl,θe\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)is :
b12l\(k\)≤CLp2\(k\)6\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\},b\_\{12l\}\(k\)\\leq\\frac\{C\_\{L\}p^\{2\}\(k\)\}\{6\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\},whereb12l\(k\)b\_\{12l\}\(k\)represent thell\-th term of the biasb12l\(k\)b\_\{12l\}\(k\)atkk\-th iteration\.
‖b12\(k\)‖≤CLp2\(k\)m6\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}\.\\\|b\_\{12\}\(k\)\\\|\\leq\\frac\{C\_\{L\}p^\{2\}\(k\)\\sqrt\{m\}\}\{6\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\.Analogously, theb22\(k\)b\_\{22\}\(k\),b1\(k\)b\_\{1\}\(k\)andb2\(k\)b\_\{2\}\(k\)are also bounded\.
With the∇^θeθe2L\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)and∇^θef\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), we estimate the\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1∇θef\(θl\(k\),θe\(k\)\)\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)through conjugate gradient\.
‖∇^θeθe2L\(θl\(k\),θe\(k\)\)‖=‖∇θeθe2L\(θl\(k\),θe\(k\)\)\+b22\(k\)‖≥‖λI\+b22\(k\)‖\.\\\|\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\\\\ =\\\|\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\+b\_\{22\}\(k\)\\\|\\geq\\\|\\lambda I\+b\_\{22\}\(k\)\\\|\.\\\\Then we can tune the parameters ofb22\(k\)b\_\{22\}\(k\)such asΔ,α0\\Delta,\\alpha\_\{0\}andαl\\alpha\_\{l\}to let‖\[∇^θeθe2L\(θl,θe\)\]−1‖≤2mλ\\\|\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\]^\{\-1\}\\\|\\leq\\frac\{2\}\{\\sqrt\{m\}\\lambda\}and make sure the∇^θeθe2L\(θl,θe\)≥λ2I\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\\geq\\frac\{\\lambda\}\{2\}I
‖b\(k\)‖,\\displaystyle\\\|b\(k\)\\\|,=∥E\[\[∇^θeθe2L\(θl\(k\),θe\(k\)\)\]−1∇^θef\(θl\(k\),θe\(k\)\)\\displaystyle=\\\|E\[\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)−\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1∇θef\(θl\(k\),θe\(k\)\)\]∥,\\displaystyle\-\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]\\\|,≤\(iv\)∥E\[∇^θeθe2L\(θl\(k\),θe\(k\)\)\]−1\(∇^θeθe2L\(θl\(k\),θe\(k\)\)−∇θeθe2L\(θl\(k\),θe\(k\)\)\)\\displaystyle\\overset\{\(iv\)\}\{\\leq\}\\\|E\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\(\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\)\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1\]∥∥∇θef\(θl\(k\),θe\(k\)\)∥\+∥∇^θeθe2L\(θl\(k\),θe\(k\)\)\]−1b2\(k\)∥,\\displaystyle\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\]\\\|\\\|\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\+\\\|\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}b\_\{2\}\(k\)\\\|,≤\(v\)∥\[∇^θeθe2L\(θl\(k\),θe\(k\)\)\]−1∥∥∇^θeθe2L\(θl\(k\),θe\(k\)\)−∇θeθe2L\(θl\(k\),θe\(k\)\)∥∥\\displaystyle\\overset\{\(v\)\}\{\\leq\}\\\|\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\\|\\\|\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\\\|\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1∥∥∇θef\(θl\(k\),θe\(k\)\)∥\+∥∇^θeθe2L\(θl\(k\),θe\(k\)\)\]−1∥∥b2k∥,\\displaystyle\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\\|\\\|\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\+\\\|\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\\|\\\|b\_\{2\}\{k\}\\\|,≤\(vii\)2Cfθe‖b22\(k\)‖\+2mλ‖b2\(k\)‖mλ2,\\displaystyle\\overset\{\(vii\)\}\{\\leq\}\\frac\{2C\_\{f\_\{\\theta\_\{e\}\}\}\\\|b\_\{22\}\(k\)\\\|\+2\\sqrt\{m\}\\lambda\\\|b\_\{2\}\(k\)\\\|\}\{m\\lambda^\{2\}\},≤2Cfθe\(CLp2\(k\)\+Cfp2\(k\)\)6mλ2\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\},\\displaystyle\\leq\\frac\{2C\_\{f\_\{\\theta\_\{e\}\}\}\(C\_\{L\}p^\{2\}\(k\)\+C\_\{f\}p^\{2\}\(k\)\)\}\{6\\sqrt\{m\}\\lambda^\{2\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\},where\(vii\)\(vii\)uses the result of Lemma \([F\.1](https://arxiv.org/html/2605.08131#A6.Thmtheorem1)\)\.
‖ba\(k\)‖=E\[‖∇^f\(θl\(k\),θe\(k\)\)‖\]−‖∇f\(θl\(k\),θe\(k\)\)‖,\\displaystyle\\\|b\_\{a\}\(k\)\\\|=E\[\\\|\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\]\-\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|,=\(vii\)E\[∥∇^θlf\(θl\(k\),θe\(k\)\)−∇^θlθe2L\(θl\(k\),θe\(k\)\)\[∇^θeθe2L\(θl\(k\),θe\(k\)\)\]−1\\displaystyle\\overset\{\(vii\)\}\{=\}E\[\\\|\\hat\{\\nabla\}\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}∇^θef\(θl\(k\),θe\(k\)\)∥\]−∥∇f\(θl\(k\),θe\(k\)\)∥,\\displaystyle\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\]\-\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|,=∥∇θlf\(θl\(k\),θe\(k\)\)\+b1\(k\)−\(∇θlθe2L\(θl\(k\),θe\(k\)\)\+b12\(k\)\)\\displaystyle=\\\|\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\+b\_\{1\}\(k\)\-\(\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\+b\_\{12\}\(k\)\)\(\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1∇θef\(θl\(k\),θe\(k\)\)\+b\(k\)\)∥−∥∇f\(θl\(k\),θe\(k\)\)∥\\displaystyle\(\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\+b\(k\)\)\\\|\-\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|≤\(v\)‖b1\(k\)‖\+‖∇θlθe2L\(θl\(k\),θe\(k\)\)‖‖b\(k\)‖\\displaystyle\\overset\{\(v\)\}\{\\leq\}\\\|b\_\{1\}\(k\)\\\|\+\\\|\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\\\|b\(k\)\\\|\+‖\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1‖‖∇θef\(θl\(k\),θe\(k\)\)‖‖b12\(k\)‖\+‖b12\(k\)‖‖b\(k\)‖,\\displaystyle\+\\\|\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\\|\\\|\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\\\|b\_\{12\}\(k\)\\\|\+\\\|b\_\{12\}\(k\)\\\|\\\|b\(k\)\\\|,≤\(vii\)Cfp2\(k\)n6\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\}\\displaystyle\\overset\{\(vii\)\}\{\\leq\}\\frac\{C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}\}\{6\}\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+2CLθlθeCLp2\(k\)\+2CLθlθemλCfp2\(k\)6mλ2\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}\\displaystyle\+\\frac\{2C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}C\_\{L\}p^\{2\}\(k\)\+2C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\\sqrt\{m\}\\lambda C\_\{f\}p^\{2\}\(k\)\}\{6\\sqrt\{m\}\\lambda^\{2\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+CfθeCLp2\(k\)6mλ3\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}\\displaystyle\+\\frac\{\{C\_\{f\_\{\\theta\_\{e\}\}\}\}C\_\{L\}p^\{2\}\(k\)\}\{6m\\lambda^\{3\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+2p4\(k\)CL\(CfθeCL\+mλCf\)36λ2\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}2,\\displaystyle\+\\frac\{2p^\{4\}\(k\)C\_\{L\}\(C\_\{f\_\{\\theta\_\{e\}\}\}C\_\{L\}\+\\sqrt\{m\}\\lambda C\_\{f\}\)\}\{36\\lambda^\{2\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}^\{2\},where the first\(vii\)\(vii\)uses the result of Lemma \([5\.2](https://arxiv.org/html/2605.08131#S5.Thmtheorem2)\), and the second\(vii\)\(vii\)uses the result of Lemma \([F\.1](https://arxiv.org/html/2605.08131#A6.Thmtheorem1)\)\. ∎
### G\.1Proof of Theorem[6\.3](https://arxiv.org/html/2605.08131#S6.Thmtheorem3)
Following the guidance of\[[9](https://arxiv.org/html/2605.08131#bib.bib25)\], we choose an adaptive number of inner\-loop iterationstk=⌈k\+142⌉t\_\{k\}=\\lceil\\frac\{\\sqrt\[4\]\{k\+1\}\}\{2\}\\rceil\. This value⌈k\+142⌉\\lceil\\frac\{\\sqrt\[4\]\{k\+1\}\}\{2\}\\rceilbalances the trade\-off between computational cost \(minimizing inner loop iteration number\) and approximation accuracy \(reducing the error sufficiently fast\), enabling efficient and stable convergence of the bi\-level algorithm\. From the Lemma 2\.2 of\[[9](https://arxiv.org/html/2605.08131#bib.bib25)\],‖∇f\(θl\(k\),θe\(k\)\)−∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖≤C‖θe∗\(θl\(k\)\)−θe\(k\)‖\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|\\leq C\\\|\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\-\\theta\_\{e\}\(k\)\\\|,‖∇f\(θl\(k′\),θe∗\(θl\(k′\)\)\)−∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖≤Lf‖θl\(k′\)−θl\(k\)‖\\\|\\nabla f\(\\theta\_\{l\}\(k^\{\\prime\}\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k^\{\\prime\}\)\)\)\-\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|\\leq L\_\{f\}\\\|\\theta\_\{l\}\(k^\{\\prime\}\)\-\\theta\_\{l\}\(k\)\\\|whereC=Lfθl\+LfθeCLθlθeλ\+Cfθe\[LLθlθeλ\+LLθeθeCLθlθeλ2\],Lf=\(L¯fθe\+C\)CLθlθeλ\+Lfθl\+Cfθe\[L¯LθlθeCfθeλ\+L¯LθeθeCLθlθeλ2\],QL=LLθeλC=L\_\{f\_\{\\theta\_\{l\}\}\}\+\\frac\{L\_\{f\_\{\\theta\_\{e\}\}\}C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\}\{\\lambda\}\+C\_\{f\_\{\\theta\_\{e\}\}\}\[\\frac\{L\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\}\{\\lambda\}\+\\frac\{L\_\{L\_\{\\theta\_\{e\}\\theta\_\{e\}\}\}C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\}\{\\lambda^\{2\}\}\],L\_\{f\}=\\frac\{\(\\bar\{L\}\_\{f\_\{\\theta\_\{e\}\}\}\+C\)C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\}\{\\lambda\}\+L\_\{f\_\{\\theta\_\{l\}\}\}\+C\_\{f\_\{\\theta\_\{e\}\}\}\[\\frac\{\\bar\{L\}\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}C\_\{f\_\{\\theta\_\{e\}\}\}\}\{\\lambda\}\+\\frac\{\\bar\{L\}\_\{L\_\{\\theta\_\{e\}\\theta\_\{e\}\}\}C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}\}\{\\lambda^\{2\}\}\],Q\_\{L\}=\\frac\{L\_\{L\_\{\\theta\_\{e\}\}\}\}\{\\lambda\}denotes the condition number ofL\(θl,θe\)L\(\\theta\_\{l\},\\theta\_\{e\}\),M=maxθl∈θl‖θe\(0\)−θe∗\(θl\)‖M=\\max\_\{\\theta\_\{l\}\\in\\theta\_\{l\}\}\\\|\\theta\_\{e\}\(0\)\-\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\)\\\|,Dθl=maxx,y∈θl\{‖x−y‖\}D\_\{\\theta\_\{l\}\}=\\max\_\{x,y\\in\\theta\_\{l\}\}\\\{\\\|x\-y\\\|\\\}\. The proof of Theorem[6\.3](https://arxiv.org/html/2605.08131#S6.Thmtheorem3)is as follows:
###### Proof\.
First we compute the variance of∇^f\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\.
‖∇^f\(θl\(k\),θe\(k\)\)‖,\\displaystyle\\\|\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|,=\(vii\)‖∇^θlf\(θl\(k\),θe\(k\)\)−∇^θlθe2L\(θl\(k\),θe\(k\)\)\[∇^θeθe2L\(θl\(k\),θe\(k\)\)\]−1∇^θef\(θl\(k\),θe\(k\)\)‖,\\displaystyle\\overset\{\(vii\)\}\{=\}\\\|\\hat\{\\nabla\}\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\[\\hat\{\\nabla\}^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\hat\{\\nabla\}\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|,=∥∇θlf\(θl\(k\),θe\(k\)\)\+b1\(k\)−\(∇θlθe2L\(θl\(k\),θe\(k\)\)\+b12\(k\)\)\\displaystyle=\\\|\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\+b\_\{1\}\(k\)\-\(\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\+b\_\{12\}\(k\)\)\(\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1∇θef\(θl\(k\),θe\(k\)\)\+b\(k\)\)∥,\\displaystyle\(\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\+b\(k\)\)\\\|,≤\(v\)‖∇θlf\(θl\(k\),θe\(k\)\)‖\+‖b1\(k\)‖\+‖∇θlθe2L\(θl\(k\),θe\(k\)\)‖‖\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1‖\\displaystyle\\overset\{\(v\)\}\{\\leq\}\\\|\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\+\\\|b\_\{1\}\(k\)\\\|\+\\\|\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\\\|\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\\|‖∇θef\(θl\(k\),θe\(k\)\)‖\+‖∇θlθe2L\(θl\(k\),θe\(k\)\)‖‖b\(k\)‖\+‖b1\(k\)‖‖\[∇θeθe2L\(θl\(k\),θe\(k\)\)\]−1‖\\displaystyle\\\|\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\+\\\|\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\\\|b\(k\)\\\|\+\\\|b\_\{1\}\(k\)\\\|\\\|\[\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]^\{\-1\}\\\|‖∇θef\(θl\(k\),θe\(k\)\)‖\+‖b1\(k\)‖‖b\(k\)‖,\\displaystyle\\\|\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|\+\\\|b\_\{1\}\(k\)\\\|\\\|b\(k\)\\\|,≤\(vii\)Cfθl\+Cfp2\(k\)n6\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\}\\displaystyle\\overset\{\(vii\)\}\{\\leq\}C\_\{f\_\{\\theta\_\{l\}\}\}\+\\frac\{C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}\}\{6\}\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+CLθlθeCfθemλ\+2CLθlθeCfθe\(CLp2\(k\)\+Cfp2\(k\)\)6mλ2\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}\\displaystyle\+\\frac\{C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}C\_\{f\_\{\\theta\_\{e\}\}\}\}\{\\sqrt\{m\}\\lambda\}\+\\frac\{2C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}C\_\{f\_\{\\theta\_\{e\}\}\}\(C\_\{L\}p^\{2\}\(k\)\+C\_\{f\}p^\{2\}\(k\)\)\}\{6\\sqrt\{m\}\\lambda^\{2\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+CfθemλCfp2\(k\)n6\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\}\\displaystyle\+\\frac\{C\_\{f\_\{\\theta\_\{e\}\}\}\}\{\\sqrt\{m\}\\lambda\}\\frac\{C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}\}\{6\}\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+2Cfp2\(k\)nCfθe\(CLp2\(k\)\+Cfp2\(k\)\)36mλ2\\displaystyle\+\\frac\{2C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}C\_\{f\_\{\\theta\_\{e\}\}\}\(C\_\{L\}p^\{2\}\(k\)\+C\_\{f\}p^\{2\}\(k\)\)\}\{36\\sqrt\{m\}\\lambda^\{2\}\}\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\}\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\},\\displaystyle\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\},where the first\(vii\)\(vii\)uses the result of Lemma \([5\.2](https://arxiv.org/html/2605.08131#S5.Thmtheorem2)\), and the second\(vii\)\(vii\)uses the result of Lemma \([F\.1](https://arxiv.org/html/2605.08131#A6.Thmtheorem1)\) and Lemma \([G\.1](https://arxiv.org/html/2605.08131#A7.Thmtheorem1)\)\. Since∇^f\(θl\(k\),θe\(k\)\)\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)is bounded,
Var\(∇^f\(θl\(k\),θe\(k\)\)\),\\displaystyle Var\(\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\),≤\(Cfθl\+Cfp2\(k\)n6\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\}\\displaystyle\\leq\(C\_\{f\_\{\\theta\_\{l\}\}\}\+\\frac\{C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}\}\{6\}\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+CLθlθeCfθemλ\+2CLθlθeCfθe\(CLp2\(k\)\+Cfp2\(k\)\)6mλ2\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}\\displaystyle\+\\frac\{C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}C\_\{f\_\{\\theta\_\{e\}\}\}\}\{\\sqrt\{m\}\\lambda\}\+\\frac\{2C\_\{L\_\{\\theta\_\{l\}\\theta\_\{e\}\}\}C\_\{f\_\{\\theta\_\{e\}\}\}\(C\_\{L\}p^\{2\}\(k\)\+C\_\{f\}p^\{2\}\(k\)\)\}\{6\\sqrt\{m\}\\lambda^\{2\}\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+CfθemλCfp2\(k\)n6\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\}\\displaystyle\+\\frac\{C\_\{f\_\{\\theta\_\{e\}\}\}\}\{\\sqrt\{m\}\\lambda\}\\frac\{C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}\}\{6\}\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\+2Cfp2\(k\)nCfθe\(CLp2\(k\)\+Cfp2\(k\)\)36mλ2\\displaystyle\+\\frac\{2C\_\{f\}p^\{2\}\(k\)\\sqrt\{n\}C\_\{f\_\{\\theta\_\{e\}\}\}\(C\_\{L\}p^\{2\}\(k\)\+C\_\{f\}p^\{2\}\(k\)\)\}\{36\\sqrt\{m\}\\lambda^\{2\}\}\{\[n3−\(n−1\)3\]αl2\+\(n−1\)3αlα03\}\{\[m3−\(m−1\)3\]αl2\+\(m−1\)3αlα03\}\)2\.\\displaystyle\\\{\[n^\{3\}\-\(n\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(n\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\\\{\[m^\{3\}\-\(m\-1\)^\{3\}\]\\alpha\_\{l\}^\{2\}\+\(m\-1\)^\{3\}\\alpha\_\{l\}\\alpha\_\{0\}^\{3\}\\\}\)^\{2\}\.Then we need to find the total bias, the total biasbt\(k\)b\_\{t\}\(k\)is the sum of the bias from approximation and∇f\(θl\(k\),θe\(k\)\)−∇f\(θl\(k\),θe∗\(θl\(k\)\)\)\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)
‖bt\(k\)‖,\\displaystyle\\\|b\_\{t\}\(k\)\\\|,=‖E\[∇f\(θl\(k\),θe\(k\)\)\]−∇f\(θl\(k\),θe∗\(k\)\)‖,\\displaystyle=\\\|E\[\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\]\-\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(k\)\)\\\|,≤\(vii\)∥ba\(k\)∥\+∥rli\(QL−1QL\+1\)tk∥θe\(0\)−θe∗\(θl\(k\)\)∥,\\displaystyle\\overset\{\(vii\)\}\{\\leq\}\\\|b\_\{a\}\(k\)\\\|\+\\\|r\_\{li\}\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{t\_\{k\}\}\\\|\\theta\_\{e\}\(0\)\-\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\\\|,where\(vii\)\(vii\)adds the approximation errorrli\(QL−1QL\+1\)tk∥θe\(0\)−θe∗\(θl\(k\)\)r\_\{li\}\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{t\_\{k\}\}\\\|\\theta\_\{e\}\(0\)\-\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)from the lower level\. Next step is to find the bound forE\[‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\]E\[\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\]\.
f\(θl\(k\+1\),θe∗\(θl\(k\+1\)\)\),\\displaystyle f\(\\theta\_\{l\}\(k\+1\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\+1\)\)\),≤\(vi\)f\(θl\(k\),θe∗\(θl\(k\)\)\)\+⟨∇f\(θl\(k\),θe∗\(θl\(k\)\)\),θl\(k\+1\)−θl\(k\)⟩\+Lf2‖θl\(k\+1\)−θl\(k\)‖2,\\displaystyle\\overset\{\(vi\)\}\{\\leq\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\+\\langle\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\),\\theta\_\{l\}\(k\+1\)\-\\theta\_\{l\}\(k\)\\rangle\+\\frac\{L\_\{f\}\}\{2\}\\\|\\theta\_\{l\}\(k\+1\)\-\\theta\_\{l\}\(k\)\\\|^\{2\},=f\(θl\(k\),θe∗\(θl\(k\)\)\)−αk⟨∇f\(θl\(k\),θe∗\(θl\(k\)\)\),∇^f\(θl\(k\),θe\(k\)\)⟩\+Lfαk22‖∇^f\(θl\(k\),θe\(k\)\)‖2\.\\displaystyle=f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\-\\alpha\_\{k\}\\langle\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\),\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\rangle\+\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}\\\|\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\\\|^\{2\}\.
The expectation off\(θl\(k\+1\),θe∗\(θl\(k\+1\)\)\)f\(\\theta\_\{l\}\(k\+1\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\+1\)\)\)becomes:
E\[f\(θl\(k\+1\),θe∗\(θl\(k\+1\)\)\)\],\\displaystyle E\[f\(\\theta\_\{l\}\(k\+1\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\+1\)\)\)\],≤f\(θl\(k\),θe∗\(θl\(k\)\)\)−αk⟨∇f\(θl\(k\),θe∗\(θl\(k\)\)\),∇f\(θl\(k\),θe∗\(θl\(k\)\)\)\+bt\(k\)⟩\\displaystyle\\leq f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\-\\alpha\_\{k\}\\langle\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\),\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\+b\_\{t\}\(k\)\\rangle\+Lfαk22E‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)\+∇^f\(θl\(k\),θe\(k\)\)−∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2,\\displaystyle\+\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}E\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\+\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\-\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\},≤f\(θl\(k\),θe∗\(θl\(k\)\)\)−αk⟨∇f\(θl\(k\),θe∗\(θl\(k\)\)\),∇f\(θl\(k\),θe∗\(θl\(k\)\)\)\+bt\(k\)⟩\\displaystyle\\leq f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\-\\alpha\_\{k\}\\langle\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\),\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\+b\_\{t\}\(k\)\\rangle\+Lfαk22Var\(∇^f\(θl\(k\),θe\(k\)\)\)\+Lfαk22E‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\\displaystyle\+\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}Var\(\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\)\+\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}E\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\+Lfαk2⟨∇f\(θl\(k\),θe∗\(θl\(k\)\)\),bt\(k\)⟩,\\displaystyle\+L\_\{f\}\\alpha\_\{k\}^\{2\}\\langle\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\),b\_\{t\}\(k\)\\rangle,=f\(θl\(k\),θe∗\(θl\(k\)\)\)−\(αk−Lfαk22\)‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\\displaystyle=f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\-\(\\alpha\_\{k\}\-\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}\)\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}−\(αk−Lfαk2\)⟨∇f\(θl\(k\),θe∗\(θl\(k\)\)\),bt\(k\)⟩\+Lfαk22Var\(∇^f\(θl\(k\),θe\(k\)\)\)\+Lfαk22‖bt\(k\)‖2\.\\displaystyle\-\(\\alpha\_\{k\}\-L\_\{f\}\\alpha\_\{k\}^\{2\}\)\\langle\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\),b\_\{t\}\(k\)\\rangle\+\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}Var\(\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\)\+\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}\\\|b\_\{t\}\(k\)\\\|^\{2\}\.Chooseαk≤1Lf\\alpha\_\{k\}\\leq\\frac\{1\}\{L\_\{f\}\}and with the fact2⟨∇f\(θl\(k\),θe∗\(θl\(k\)\)\),bt\(k\)⟩≤‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\+‖bt\(k\)‖22\\langle\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\),b\_\{t\}\(k\)\\rangle\\leq\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\+\\\|b\_\{t\}\(k\)\\\|^\{2\}\.
E\[f\(θl\(k\+1\),θe∗\(θl\(k\+1\)\)\)\],\\displaystyle E\[f\(\\theta\_\{l\}\(k\+1\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\+1\)\)\)\],≤f\(θl\(k\),θe∗\(θl\(k\)\)\)−αk2‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\\displaystyle\\leq f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\-\\frac\{\\alpha\_\{k\}\}\{2\}\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\+αk2‖bt\(k\)‖2\+Lfαk22Var\(∇^f\(θl\(k\),θe\(k\)\)\),\\displaystyle\+\\frac\{\\alpha\_\{k\}\}\{2\}\\\|b\_\{t\}\(k\)\\\|^\{2\}\+\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}Var\(\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\),Rearrange terms,
∑k=0K−1αk2E\[‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\],\\displaystyle\\sum\_\{k=0\}^\{K\-1\}\\frac\{\\alpha\_\{k\}\}\{2\}E\[\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\],≤f\(θl\(0\),θe∗\(θl\(0\)\)\)−f∗\+∑k=0K−1\(αk2‖bt\(k\)‖2\+Lfαk22Var\(∇^f\(θl\(k\),θe\(k\)\)\)\)\.\\displaystyle\\leq f\(\\theta\_\{l\}\(0\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(0\)\)\)\-f^\{\*\}\+\\sum\_\{k=0\}^\{K\-1\}\(\\frac\{\\alpha\_\{k\}\}\{2\}\\\|b\_\{t\}\(k\)\\\|^\{2\}\+\\frac\{L\_\{f\}\\alpha\_\{k\}^\{2\}\}\{2\}Var\(\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\)\)\.For‖bt\(k\)‖2\\\|b\_\{t\}\(k\)\\\|^\{2\}, it is the linear combination ofp4\(k\),p6\(k\),p8\(k\),p2\(k\)\(QL−1QL\+1\)tk\+,p4\(k\)\(QL−1QL\+1\)tk,\(QL−1QL\+1\)2tkp^\{4\}\(k\),p^\{6\}\(k\),p^\{8\}\(k\),p^\{2\}\(k\)\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{t\_\{k\}\}\+,p^\{4\}\(k\)\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{t\_\{k\}\},\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{2t\_\{k\}\}\. ForVar\(∇^f\(θl\(k\),θe\(k\)\)\)\)Var\(\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\)\), it is the linear combination of1,p2\(k\),p4\(k\),p6\(k\),p8\(k\)1,p^\{2\}\(k\),p^\{4\}\(k\),p^\{6\}\(k\),p^\{8\}\(k\)\. For simplification, we useCsi\>0,i=1,2,…C\_\{si\}\>0,i=1,2,\\dotsto represent the constant for all combinations of terms involvep\(k\)p\(k\),αk\\alpha\_\{k\}andtkt\_\{k\}\. Then we can continue the calculation as follows:
1K∑k=0K−1E\[‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\],\\displaystyle\\frac\{1\}\{K\}\\sum\_\{k=0\}^\{K\-1\}E\[\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\],≤2Kαkf\(θl\(0\),θe∗\(θl\(0\)\)\)−f∗\+1K∑k=0K−1\(‖bt\(k\)‖2\+LfαkVar\(∇^f\(θl\(k\),θe\(k\)\)\)\),\\displaystyle\\leq\\frac\{2\}\{K\\alpha\_\{k\}\}f\(\\theta\_\{l\}\(0\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(0\)\)\)\-f^\{\*\}\+\\frac\{1\}\{K\}\\sum\_\{k=0\}^\{K\-1\}\(\\\|b\_\{t\}\(k\)\\\|^\{2\}\+L\_\{f\}\\alpha\_\{k\}Var\(\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\)\),≤\(viii\)2\(f\(θl\(0\),θe∗\(θl\(0\)\)\)−f∗\)αkK\+Cs1K∑k=0K−1p4\(k\)\+Cs2K∑k=0K−1p6\(k\)\+Cs3K∑k=0K−1p8\(k\)\\displaystyle\\overset\{\(viii\)\}\{\\leq\}\\frac\{2\(f\(\\theta\_\{l\}\(0\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(0\)\)\)\-f^\{\*\}\)\}\{\\alpha\_\{k\}K\}\+\\frac\{C\_\{s1\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}p^\{4\}\(k\)\+\\frac\{C\_\{s2\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}p^\{6\}\(k\)\+\\frac\{C\_\{s3\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}p^\{8\}\(k\)\+Cs4K∑k=0K−1p2\(k\)\(QL−1QL\+1\)tk\+Cs5K∑k=0K−1p4\(k\)\(QL−1QL\+1\)tk\+Cs6K∑k=0K−1\(QL−1QL\+1\)2tk\\displaystyle\+\\frac\{C\_\{s4\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}p^\{2\}\(k\)\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{t\_\{k\}\}\+\\frac\{C\_\{s5\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}p^\{4\}\(k\)\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{t\_\{k\}\}\+\\frac\{C\_\{s6\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{2t\_\{k\}\}\+Cs7K∑k=0K−1αk\+Cs8K∑k=0K−1αkp2\(k\)\+Cs9K∑k=0K−1αkp4\(k\)\+Cs10K∑k=0K−1αkp6\(k\)\\displaystyle\+\\frac\{C\_\{s7\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}\\alpha\_\{k\}\+\\frac\{C\_\{s8\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}\\alpha\_\{k\}p^\{2\}\(k\)\+\\frac\{C\_\{s9\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}\\alpha\_\{k\}p^\{4\}\(k\)\+\\frac\{C\_\{s10\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}\\alpha\_\{k\}p^\{6\}\(k\)\+Cs11K∑k=0K−1αkp8\(k\),\\displaystyle\+\\frac\{C\_\{s11\}\}\{K\}\\sum\_\{k=0\}^\{K\-1\}\\alpha\_\{k\}p^\{8\}\(k\),where\(viii\)\(viii\)expands each term of‖bt\(k\)‖2\\\|b\_\{t\}\(k\)\\\|^\{2\}andVar\(∇^f\(θl\(k\),θe\(k\)\)\)\)Var\(\\hat\{\\nabla\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)\)\)\. Choosep\(k\)=1kp\(k\)=\\frac\{1\}\{k\},αk=1LfK\\alpha\_\{k\}=\\frac\{1\}\{L\_\{f\}\\sqrt\{K\}\},tk=⌈k\+142⌉t\_\{k\}=\\lceil\\frac\{\\sqrt\[4\]\{k\+1\}\}\{2\}\\rceil\. Since0≤QL−1QL\+1<10\\leq\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}<1, we can conclude∑k=0K−1p2\(k\)\(QL−1QL\+1\)tk<∑k=0K−1p2\(k\)\\sum\_\{k=0\}^\{K\-1\}p^\{2\}\(k\)\(\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\)^\{t\_\{k\}\}<\\sum\_\{k=0\}^\{K\-1\}p^\{2\}\(k\)whenQL−1QL\+1≠0\\frac\{Q\_\{L\}\-1\}\{Q\_\{L\}\+1\}\\neq 0, then the convergence rate is as follows:
1K∑k=0K−1E\[‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\]≤Cs12K\+Cs13K\+Cs14KK\.\\frac\{1\}\{K\}\\sum\_\{k=0\}^\{K\-1\}E\[\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\]\\leq\\frac\{C\_\{s12\}\}\{\\sqrt\{K\}\}\+\\frac\{C\_\{s13\}\}\{K\}\+\\frac\{C\_\{s14\}\}\{K\\sqrt\{K\}\}\.AsK→∞K\\to\\infty,1K∑k=0K−1E\[‖∇f\(θl\(k\),θe∗\(θl\(k\)\)\)‖2\]→0\\frac\{1\}\{K\}\\sum\_\{k=0\}^\{K\-1\}E\[\\\|\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\\\|^\{2\}\]\\to 0, which shows thatE\[∇f\(θl\(k\),θe∗\(θl\(k\)\)\)\]E\[\\nabla f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}^\{\*\}\(\\theta\_\{l\}\(k\)\)\)\]decreases at the rate of𝒪\(1K\+1K\+1KK\)\\mathcal\{O\}\(\\frac\{1\}\{\\sqrt\{K\}\}\+\\frac\{1\}\{K\}\+\\frac\{1\}\{K\\sqrt\{K\}\}\)\. ∎
### G\.2Proof of Corollary[6\.4](https://arxiv.org/html/2605.08131#S6.Thmtheorem4)
Define the cumulative reward function of the expert asJe\(π\)≜Eπ\[∑h=0H−1γhrθe\(sh,ah\)\]J\_\{e\}\(\\pi\)\\triangleq E^\{\\pi\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}r\_\{\\theta\_\{e\}\}\(s^\{h\},a^\{h\}\)\]\. Ifrθer\_\{\\theta\_\{e\}\}is a linear reward function, we haverθe≜⟨θe,ϕ\(s,a\)⟩r\_\{\\theta\_\{e\}\}\\triangleq\\langle\\theta\_\{e\},\\phi\(s,a\)\\ranglewhere the featureϕ\(s,a\)∈ℝdθe\\phi\(s,a\)\\in\\mathbb\{R\}^\{d\_\{\\theta\_\{e\}\}\}anddθed\_\{\\theta\_\{e\}\}is the dimension ofθe\\theta\_\{e\}\. Then the expert’s feature expectation is formulated asμf\(π\)≜Eπ\[∑h=0H−1γhϕ\(sh,ah\)\]\\mu\_\{f\}\(\\pi\)\\triangleq E^\{\\pi\}\[\\sum\_\{h=0\}^\{H\-1\}\\gamma^\{h\}\\phi\(s^\{h\},a^\{h\}\)\]\. From Theorem[6\.3](https://arxiv.org/html/2605.08131#S6.Thmtheorem3), we can get‖μf\(πθe\)−μf\(πe\)‖2\\\|\\mu\_\{f\}\(\\pi\_\{\\theta\_\{e\}\}\)\-\\mu\_\{f\}\(\\pi\_\{e\}\)\\\|^\{2\}decreases in𝒪\(1K\)\\mathcal\{O\}\(\\frac\{1\}\{\\sqrt\{K\}\}\)\.
###### Proof\.
Je\(πθe\)−Je\(πe\)\\displaystyle J\_\{e\}\(\\pi\_\{\\theta\_\{e\}\}\)\-J\_\{e\}\(\\pi\_\{e\}\)=⟨θe,μf\(πθe\)−μf\(πe\)⟩\\displaystyle=\\langle\\theta\_\{e\},\\mu\_\{f\}\(\\pi\_\{\\theta\_\{e\}\}\)\-\\mu\_\{f\}\(\\pi\_\{e\}\)\\rangle≤maxθe∈Θ⟨θe,μf\(πθe\)−μf\(πe\)⟩\\displaystyle\\leq\\max\_\{\\theta\_\{e\}\\in\\Theta\}\\langle\\theta\_\{e\},\\mu\_\{f\}\(\\pi\_\{\\theta\_\{e\}\}\)\-\\mu\_\{f\}\(\\pi\_\{e\}\)\\rangle≤\(v\)maxθe∈Θ‖θe‖‖μf\(πθe\)−μf\(πe\)‖,\\displaystyle\\overset\{\(v\)\}\{\\leq\}\\max\_\{\\theta\_\{e\}\\in\\Theta\}\\\|\\theta\_\{e\}\\\|\\\|\\mu\_\{f\}\(\\pi\_\{\\theta\_\{e\}\}\)\-\\mu\_\{f\}\(\\pi\_\{e\}\)\\\|,=‖μf\(πθe\)−μf\(πe\)‖,\\displaystyle=\\\|\\mu\_\{f\}\(\\pi\_\{\\theta\_\{e\}\}\)\-\\mu\_\{f\}\(\\pi\_\{e\}\)\\\|,≤\(vii\)C15K4,\\displaystyle\\overset\{\(vii\)\}\{\\leq\}\\frac\{C\_\{15\}\}\{\\sqrt\[4\]\{K\}\},where\(vii\)\(vii\)uses the result‖μf\(πθe\)−μf\(πe\)‖2\\\|\\mu\_\{f\}\(\\pi\_\{\\theta\_\{e\}\}\)\-\\mu\_\{f\}\(\\pi\_\{e\}\)\\\|^\{2\}decreases in𝒪\(1K\)\\mathcal\{O\}\(\\frac\{1\}\{\\sqrt\{K\}\}\)andC15C\_\{15\}is the constant number which includes all influence factors other thanKK\. ∎
## Appendix HProof of Theorem[6\.2](https://arxiv.org/html/2605.08131#S6.Thmtheorem2)
The prove of Theorem[6\.2](https://arxiv.org/html/2605.08131#S6.Thmtheorem2)is as follows: According to the Algorithm 1 in\[[49](https://arxiv.org/html/2605.08131#bib.bib4)\], we need to compute the state frequency for theμe\(πθl,θe\)\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)\. For each state\-action pair, it needs to recursively compute for up toHHiterations\. As there areHHstate\-action pairs in one demonstration, the computational complexity for theμe\(πθl,θe\)\\mu\_\{e\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)is𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)as we seeHHas the deterministic factor\. Analogously, the computational complexity forμl\(πθl,θe\),μe\(s,a\),μe\(s\),μl\(s,a\),μl\(s\),Jl\(πθl,θe\)\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\),\\mu\_\{e\}\(s,a\),\\mu\_\{e\}\(s\),\\mu\_\{l\}\(s,a\),\\mu\_\{l\}\(s\),J\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)are𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)\. We can see that these factors with computational complexity𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)are expected to be calculated through backpropagation, and the backpropagation leads to𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)\. However, in coding, we can calculate these factors by sampling a finite number of trajectories, and the computational complexity becomes𝒪\(H\)\\mathcal\{O\}\(H\)\.
If we directly compute∇θlf\(θl\(k\),θe\(k\)\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),∇θlθe2L\(θl\(k\),θe\(k\)\)\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\),∇θe2L\(θl\(k\),θe\(k\)\)\\nabla^\{2\}\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\), and∇θef\(θl\(k\),θe\(k\)\)\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\}\(k\),\\theta\_\{e\}\(k\)\)instead of approximating, use the expression of∇θlf\(θl,θe\)=Eπθl,θe\[∑h=0H−1γh\[\(μl\(sh,ah\)−μl\(sh\)\)\(Jl\(sh,ah\)\)T\]\]\+μl\(πθl,θe\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)=E^\{\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\}\[\\sum^\{H\-1\}\_\{h=0\}\\gamma^\{h\}\[\(\\mu\_\{l\}\(s^\{h\},a^\{h\}\)\-\\mu\_\{l\}\(s^\{h\}\)\)\(J\_\{l\}\(s^\{h\},a^\{h\}\)\)^\{T\}\]\]\+\\mu\_\{l\}\(\\pi\_\{\\theta\_\{l\},\\theta\_\{e\}\}\)as an example,μl\(s\)\\mu\_\{l\}\(s\)is inside an expectation fromh=0h=0toH−1H\-1, we need to sum upμl\(s\)\\mu\_\{l\}\(s\)forHHtimes\. As a result, the computational complexity for∇θlf\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\)is𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)\. Analogously,∇θef\(θl,θe\)\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\),∇θlθe2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\),∇θeθe2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)are all same\.
For SPSA, the required terms aref\(θl,θe\),∇θeL\(θl,θe\),∇θlL\(θl,θe\)f\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla\_\{\\theta\_\{l\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\), these terms are summingHHbounded values, so their computational complexities are𝒪\(H\)\\mathcal\{O\}\(H\)\. As SPSA utilizesf\(θl,θe\),∇θeL\(θl,θe\),∇θlL\(θl,θe\)f\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla\_\{\\theta\_\{l\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)to approximate∇θlf\(θl,θe\),∇θef\(θl,θe\)\\nabla\_\{\\theta\_\{l\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla\_\{\\theta\_\{e\}\}f\(\\theta\_\{l\},\\theta\_\{e\}\),∇θlθe2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{l\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\),∇θeθe2L\(θl,θe\)\\nabla^\{2\}\_\{\\theta\_\{e\}\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)instead of directly computing\. The overall computational complexity of using SPSA matches the computational complexity off\(θl,θe\),∇θeL\(θl,θe\),∇θlL\(θl,θe\)f\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla\_\{\\theta\_\{e\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\),\\nabla\_\{\\theta\_\{l\}\}L\(\\theta\_\{l\},\\theta\_\{e\}\)\. Therefore, the overall computational of SPSA is𝒪\(H\)\\mathcal\{O\}\(H\)\.
According to the algorithm of SPSA, more policies need to be found compared to directly compute the hypergradient\. Use soft q learning\[[10](https://arxiv.org/html/2605.08131#bib.bib22)\]as an example, RL and MARL algorithms can be considered as sampling a finite number trajectories for each epoch\. Therefore the computational cost for each epoch is𝒪\(H\)\\mathcal\{O\}\(H\)and the overall computational cost is𝒪\(eH\)\\mathcal\{O\}\(eH\)whereeeis the total number of epochs\. As we considerHHas the decision factor, the computational cost of the multi\-agent RL is𝒪\(H\)\\mathcal\{O\}\(H\), which matches the computational complexity of SPSA\.
As a result, the computational complexity of SPSA is dominated by𝒪\(H\)\\mathcal\{O\}\(H\), and directly calculating the hypergradient is dominated by𝒪\(H2\)\\mathcal\{O\}\(H^\{2\}\)\.
## Appendix IExperiment Detail
The details of the experiments are shown in this section\. All Python3 codes are run on a Windows 10 desktop with 13th Gen Intel\(R\) Core\(TM\) i7\-13700KF CPU and 32 GB of RAM\. For each combination of algorithms and environments, we run 10 times to calculate mean values and standard deviations at each iteration\. Then the calculated mean values and standard deviations are plotted as shown in Section[7](https://arxiv.org/html/2605.08131#S7)figures\.
### I\.1MPE
The state, action, and observation spaces for the adversary and good agents are continuous\. For the adversary, it can observe the relative distance to the landmarks and the good agents, therefore the observation of the adversary isoa=\[pl1−pa,pl2−pa,pg1−pa,pg2−pa\]o\_\{a\}=\[p\_\{l1\}\-p\_\{a\},p\_\{l2\}\-p\_\{a\},p\_\{g1\}\-p\_\{a\},p\_\{g2\}\-p\_\{a\}\]wherepl1p\_\{l1\}is the position of the first landmark,pl2p\_\{l2\}is the position of the second landmark,pg1p\_\{g1\}is the position of the first good agent,pg2p\_\{g2\}is the position of the second good agent\. For each good agent, it can observe the relative distance to the target landmark, the landmarks, the adversary, and another good agent, therefore the observations for two good agents areog1=\[ptl−pg1,pl1−pg1,pl2−pg1,pa−pg1,pg2−pg1\]o\_\{g1\}=\[p\_\{tl\}\-p\_\{g1\},p\_\{l1\}\-p\_\{g1\},p\_\{l2\}\-p\_\{g1\},p\_\{a\}\-p\_\{g1\},p\_\{g2\}\-p\_\{g1\}\]andog2=\[ptl−pg2,pl1−pg2,pl2−pg2,pa−pg2,pg1−pg2\]o\_\{g2\}=\[p\_\{tl\}\-p\_\{g2\},p\_\{l1\}\-p\_\{g2\},p\_\{l2\}\-p\_\{g2\},p\_\{a\}\-p\_\{g2\},p\_\{g1\}\-p\_\{g2\}\]whereptlp\_\{tl\}is the position of the target landmark\. The actions of the adversary and the good agents are the velocities between0and11in four directions \(left, right, down, up\)\. Two good agents share the same return, which is rewarded based on the minimum distance of any agent to the target landmark and is penalized based on the distance between the adversary and the target landmark, therefore the reward of good agents isrg=−min\(‖ptl−pg1‖2,‖ptl−pg2‖2\)\+‖ptl−pa‖2r\_\{g\}=\-\\min\(\\\|p\_\{tl\}\-p\_\{g1\}\\\|\_\{2\},\\\|p\_\{tl\}\-p\_\{g2\}\\\|\_\{2\}\)\+\\\|p\_\{tl\}\-p\_\{a\}\\\|\_\{2\}\. The reward of the adversary is based on the distance to the target of the adversary, thereforera=−‖pta−pa‖2r\_\{a\}=\-\\\|p\_\{ta\}\-p\_\{a\}\\\|\_\{2\}, whereptap\_\{ta\}is the position of the adversary’s target\. In our simulation, we consider observations as states of the MG\.
### I\.2SMAC
In this scenario, we can only access the state, observation, and action information of agents\. The enemy is controlled by a built\-in game AI\. We consider observations as the states of the agents during learning\. For each agent, it can observe the following information corresponding to another agent and enemy: relative distance, relative x, relative y, health, shield, and unit type\. If an agent or an enemy is under attack, the shield reduces first and health reduces after the shield disappears\. There are77possible actions for each agent: move north, move south, move east, move west, attack the enemy, stop, and no\-op\. At each time step, each agent can know which action among these77possible actions are available and the agent chooses one action from available actions\. For example, the attack action is available when the enemy is in the shooting range of the agent\. The agent can only choose no\-op when its own health is0\. The agent gains rewards based on the damage dealt to the enemy and if the enemy is defeated\.
### I\.3Human\-robot interaction
The state of the robot is its locationsr=\(xr,yr\)∈ℝ2s\_\{r\}=\(x\_\{r\},y\_\{r\}\)\\in\\mathbb\{R\}^\{2\}, the action of the robot includes the horizontal and vertical velocities and defined asar=\(vrx,vry\),a\_\{r\}=\(v\_\{rx\},v\_\{ry\}\),wherevrx∈\[−0\.1,0\.1\],vry∈\[−0\.1,0\.1\]v\_\{rx\}\\in\[\-0\.1,0\.1\],v\_\{ry\}\\in\[\-0\.1,0\.1\]\. Similarly, the state of the human issh=\(xh,yh\)∈ℝ2s\_\{h\}=\(x\_\{h\},y\_\{h\}\)\\in\\mathbb\{R\}^\{2\}, the action of the human isah=\(vhx,vhy\),a\_\{h\}=\(v\_\{hx\},v\_\{hy\}\),wherevhx∈\[−0\.1,0\.1\],vhy∈\[−0\.1,0\.1\]v\_\{hx\}\\in\[\-0\.1,0\.1\],v\_\{hy\}\\in\[\-0\.1,0\.1\]\. At each time steptt, the robot chooses the actionar\(t\)a\_\{r\}\(t\)based on the current joint state\(sr\(t\),sh\(t\)\)\(s\_\{r\}\(t\),s\_\{h\}\(t\)\)and moves to the next statexr\(t\+1\)=xr\(t\)\+vrx\(t\),yr\(t\+1\)=yr\(t\)\+vry\(t\)x\_\{r\}\(t\+1\)=x\_\{r\}\(t\)\+v\_\{rx\}\(t\),y\_\{r\}\(t\+1\)=y\_\{r\}\(t\)\+v\_\{ry\}\(t\)\. Analogously, the motion dynamics of the human is given byxh\(t\+1\)=xh\(t\)\+vhx\(t\),yh\(t\+1\)=yh\(t\)\+vhy\(t\)x\_\{h\}\(t\+1\)=x\_\{h\}\(t\)\+v\_\{hx\}\(t\),y\_\{h\}\(t\+1\)=y\_\{h\}\(t\)\+v\_\{hy\}\(t\)\. In the experiment, the robot starts from an initial statesr\(0\)∈\[−0\.25,0\.25\]×\[−0\.4,0\.5\]s\_\{r\}\(0\)\\in\[\-0\.25,0\.25\]\\times\[\-0\.4,0\.5\]and aims to reach a circle goal region whose center is at\(0,0\.5\)\(0,0\.5\)with radius0\.050\.05\. The human starts fromsh\(0\)∈\[0\.4,0\.5\]×\[−0\.25,0\.25\]s\_\{h\}\(0\)\\in\[0\.4,0\.5\]\\times\[\-0\.25,0\.25\]and aims to reach a circle goal region whose center is at\(−0\.5,0\)\(\-0\.5,0\)with radius0\.050\.05\. Both the robot and the human are penalized when a collision happens\.
\(a\)Robot’s cumulative reward
\(b\)Human’s cumulative reward
\(c\)Collision rate
\(d\)Goal reaching rate
\(e\)Sample trajectory
\(f\)Distance
Figure 4:Human–robot interaction simulation results\. The cumulative rewards are calculated as described in Figure[2](https://arxiv.org/html/2605.08131#S7.F2)\. Similarly, the collision and goal\-reaching rates are computed based on the policies corresponding to the learned reward functions\. A collision is defined to occur when the distance between the human and the robot falls below a threshold\. The goal is considered reached only when both the human and the robot reach their respective destinations\.This experiment examines a HRI scenario at a crosswalk, where both the robot \(learner\) and the human \(expert\) aim to reach their respective destinations as efficiently as possible\. Additionally, the robot is expected to respect the human’s right\-of\-way\. Both agents operate in continuous state and action spaces: each agent has a44\-dimensional state and a22\-dimensional action space\.
Figures[4\(a\)](https://arxiv.org/html/2605.08131#A9.F4.sf1)and[4\(b\)](https://arxiv.org/html/2605.08131#A9.F4.sf2)demonstrate that the cumulative rewards of both the robot and the human converge to their respective ground\-truth values under BISIRL and MA\-IRL, consistent with earlier results\. Figure[4\(c\)](https://arxiv.org/html/2605.08131#A9.F4.sf3)shows that the collision rates for BISIRL and MA\-IRL also converge to the ground\-truth value, indicating that the robot successfully learns to respect the human’s right\-of\-way\. Initially, with randomly initialized reward functions, both agents move unpredictably and rarely collide\. As the learned reward functions improve, both agents pursue goals more directly, increasing collisions temporarily, followed by a decline as collision\-avoidance is prioritized\. Figure[4\(d\)](https://arxiv.org/html/2605.08131#A9.F4.sf4)further shows that the goal\-reaching rates under BISIRL and MA\-IRL similarly converge to the ground\-truth value, confirming that the learned reward functions enable both agents to reliably reach their destinations\. After approximately 100 iterations, reward functions learned by BISIRL and MA\-IRL result in policies that achieve high goal\-reaching success and low collision frequency\. In contrast, CIRL and ML\-IRL fail to match the ground\-truth performance across all three metrics, highlighting their limitations in capturing the objectives of both agents\. Figure[4\(e\)](https://arxiv.org/html/2605.08131#A9.F4.sf5)presents a representative trajectory under the learned reward functions of BISIRL, while Figure[4\(f\)](https://arxiv.org/html/2605.08131#A9.F4.sf6)plots the inter\-agent distance along this trajectory, confirming that both agents reach their goals while maintaining safe separation above the required threshold\.
### I\.4Security



Figure 5:Cyber security simulation results\.Left: Attack graph\.Middle: Defender’s reward\.Right: Attacker’s reward\. The cumulative rewards are calculated in the same way described in Figure[2](https://arxiv.org/html/2605.08131#S7.F2)\.We conduct a cybersecurity experiment to evaluate the proposed algorithm\. The experimental setup involves a defender \(learner\) and an attacker \(expert\) interacting on the attack graph in Figure[5](https://arxiv.org/html/2605.08131#A9.F5)\. The attacker attempts to compromise nodes in the graph\. The attacker’s objective is to compromise as many nodes as possible, whereas the defender’s objective is to protect the network by minimizing the number of compromised nodes\. Both the learner and the expert have discrete state and action spaces, with cardinalities of256256and88, respectively\.
Figure[5](https://arxiv.org/html/2605.08131#A9.F5)shows that the cumulative rewards of the proposed algorithm converge to those of MARL, consistent with previous experiments\.
There are88nodes and1010edges\. Each node represents a machine, and each edge represents an exploit between two nodes\. The decision\-making of the defender and the attacker is modeled as an MG\. The states∈\{0,1\}8s\\in\\\{0,1\\\}^\{8\}, represents the condition of each node where the value11means the current node is compromised by the attacker, and the value0is vice versa\. In each action pair, the attacker chooses one edge to attack, and the defender chooses one edge to block\. Suppose the attacker chooses to attack the edge\{i,j\}\\\{i,j\\\}\. If the nodeiiis already compromised and the defender does not block this edge, there is a probability for nodejjto be compromised\. For other situations, the nodejjkeeps clean\. Each edge has a cost for the attacker to utilize and a cost for the defender to block\. The attacker receives a reward when it successfully compromises a new node\. The net reward of the attacker for each state\-action pair is the sum of the reward and the cost\. For the defender, the reward is the sum of the opposite of the attacker’s reward and th the cost to block edges\.
For the security simulation, the attack graph is randomly generated\. We use Q\-learning to find the policies for the attacker and the defender\. During the training process, the attacker and the defender have a70%70\\%possibility to choose between the best action with60%60\\%possibility and the second best action with40%40\\%possibility\. Otherwise, the attacker and the defender randomly choose one action from the action space\. When we exploit the learned policies, the attacker and the defender choose between the best action with60%60\\%possibility and the second best action with40%40\\%possibility\.
## Appendix JLimitation
Currently, the proposed framework is based on the fully observed MG\. However, in some cases, the learner can not observe all the information about the environment\. Therefore, the limitation of the proposed framework is cannot directly apply to the partially observed situation, and we will develop an advanced algorithm to solve this limitation in the future\.Similar Articles
IB-RL: Isolated Bilateral Reinforcement Learning for Strategic Dialogue Agents
This paper introduces Isolated Bilateral Reinforcement Learning (IB-RL), a method where two dialogue roles co-evolve through joint rollouts while optimizing their own rewards independently. It addresses the static-counterpart mismatch in RL for strategic dialogue, showing improved generalization to unseen counterparts in Vehicle TeleSales and Deal-or-No-Deal benchmarks.
Quantifying Potential Observation Missingness in Inverse Reinforcement Learning
This paper identifies the problem of missing observations in inverse reinforcement learning (IRL) that can make expert actions appear suboptimal, and develops a practical algorithm to quantify the minimal perturbations needed for expert actions to appear optimal, validated on synthetic tasks, cancer treatment simulation, and ICU data.
Human-Feedback-Guided Multi-Agent Inverse Reinforcement Learning for Interactive Driving Behavior Modeling
该论文提出了一种人类反馈引导的多智能体逆强化学习框架(HFG-MAIRL),通过局部马尔可夫博弈和Bradley–Terry偏好反馈对交互式驾驶行为进行奖励建模,在AIDE数据集上超越了现有IRL基线。
AIPO: : Learning to Reason from Active Interaction
This paper introduces AIPO, a reinforcement learning framework that enhances LLM reasoning by allowing the model to actively consult collaborative agents during exploration to overcome capability boundaries.
Trust Region Inverse Reinforcement Learning: Explicit Dual Ascent using Local Policy Updates
This paper introduces Trust Region Inverse Reinforcement Learning (TRIRL), a method that combines monotonic dual improvement with efficient local policy updates to outperform state-of-the-art imitation learning methods. It addresses the trade-off between stability and computational cost in IRL by using trust-region constraints.