Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

HATRPO-W: Adaptive Trust Region Optimization

Updated 8 July 2026
  • The paper introduces HATRPO-W, a multi-agent trust-region policy optimization method that reallocates KL budgets based on per-agent natural-gradient geometry to boost learning efficiency.
  • It employs a KKT-based approach to solve a global budget allocation problem, offering adaptive trust region sizes for heterogeneous agents in cooperative MARL settings.
  • Empirical results show that HATRPO-W delivers lower variance, faster convergence, and higher returns compared to uniform KL threshold methods.

HATRPO-W is a multi-agent trust-region policy optimization method for cooperative multi-agent reinforcement learning (MARL) that extends Heterogeneous-Agent Trust Region Policy Optimization (HATRPO) by allocating the Kullback-Leibler (KL) divergence threshold across agents under a single global KL budget. Introduced in “Multi-Agent Trust Region Policy Optimisation: A Joint Constraint Approach” (Shek et al., 14 Aug 2025), it is a Karush-Kuhn-Tucker-based (KKT-based) method that optimizes threshold assignment under global KL constraints. Its motivating premise is that assigning each agent the same KL threshold can be suboptimal in heterogeneous settings, producing slow or locally optimal updates; HATRPO-W instead redistributes trust-region budgets according to per-agent natural-gradient geometry, while preserving the sequential update structure of HATRPO (Shek et al., 14 Aug 2025).

1. Research lineage and nomenclature

HATRPO-W is not the original HATRPO. The 2021 work “Trust Region Policy Optimisation in Multi-Agent Reinforcement Learning” introduced HATRPO and HAPPO, established the multi-agent advantage decomposition lemma and the sequential policy update scheme, and justified the monotonic improvement property of HATRPO/HAPPO; that work does not define a variant named “HATRPO-W” (Kuba et al., 2021). The 2023 work “Heterogeneous-Agent Reinforcement Learning” likewise develops HATRL, derives HATRPO and HAPPO by tractable approximations, and introduces HAML as a general template for cooperative MARL algorithmic designs, but it also does not define a variant named “HATRPO-W” (Zhong et al., 2023).

Within that lineage, HATRPO-W should be understood as a later refinement of trust-region budgeting rather than a replacement for the sequential trust-region framework itself. The underlying algorithmic substrate remains the HATRPO regime of agent-by-agent policy improvement in heterogeneous-agent settings; the innovation is the replacement of uniform per-agent KL thresholds by an adaptive allocation under a joint constraint (Shek et al., 14 Aug 2025).

2. Cooperative-game formulation and the HATRPO baseline

HATRPO-W is formulated in a cooperative Markov (stochastic) game with agents i∈{1,…,N}i \in \{1,\dots,N\}, global state s∈Ss \in S, and joint action a=(a1,…,aN)∈A=∏iAia=(a_1,\dots,a_N) \in A=\prod_i A_i. The joint policy factorizes as

π(⋅∣s)=∏i=1Nπi(⋅∣s),\pi(\cdot|s)=\prod_{i=1}^N \pi_i(\cdot|s),

while agents may be heterogeneous, with different observation modalities, action spaces, and policy parameterizations θi\theta_i. Centralized training with decentralized execution is assumed (Shek et al., 14 Aug 2025).

Let dπ(s)d^{\pi}(s) denote the discounted state visitation distribution under the joint policy π\pi, and define the joint advantage

Aπ(s,a)=Qπ(s,a)−Vπ(s).A^{\pi}(s,a)=Q^{\pi}(s,a)-V^{\pi}(s).

For agent ii, holding other agents at their old policies, the per-agent advantage used in HATRPO is

Aiπold(s,ai)  ≜  Ea−i∼π−iold(⋅∣s)[ Aπold(s,(ai,a−i)) ].A_i^{\pi^{\text{old}}}(s,a_i) \;\triangleq\; \mathbb{E}_{a_{-i} \sim \pi_{-i}^{\text{old}}(\cdot|s)} \big[\,A^{\pi^{\text{old}}}(s,(a_i,a_{-i}))\,\big].

The standard HATRPO surrogate for agent ii updating from πiold\pi_i^{\text{old}} to πinew\pi_i^{\text{new}}, with other agents fixed at π−iold\pi_{-i}^{\text{old}}, is

max⁡πinew    Es∼dπold,  ai∼πiold(⋅∣s)[πinew(ai∣s)πiold(ai∣s) Aiπold(s,ai)],\max_{\pi_i^{\text{new}}} \;\; \mathbb{E}_{s \sim d^{\pi^{\text{old}}},\; a_i \sim \pi_i^{\text{old}}(\cdot|s)} \left[ \frac{\pi_i^{\text{new}}(a_i\mid s)}{\pi_i^{\text{old}}(a_i\mid s)} \,A_i^{\pi^{\text{old}}}(s,a_i) \right],

subject to the per-agent KL trust region

Es∼dπold[KL ⁣(πiold(⋅∣s) ∥ πinew(⋅∣s))]  ≤  εi.\mathbb{E}_{s \sim d^{\pi^{\text{old}}}} \big[ \mathrm{KL}\!\big(\pi_i^{\text{old}}(\cdot\mid s)\,\Vert\,\pi_i^{\text{new}}(\cdot\mid s)\big) \big] \;\le\; \varepsilon_i.

Standard HATRPO assigns each agent the same KL threshold. HATRPO-W replaces that uniform assignment by an adaptive allocation under a single global budget (Shek et al., 14 Aug 2025).

The natural-gradient quantities are

gi  ≜  Es∼dπold,  ai∼πiold[∇θilog⁡πiold(ai∣s)  Aiπold(s,ai)],g_i \;\triangleq\; \mathbb{E}_{s \sim d^{\pi^{\text{old}}},\; a_i \sim \pi_i^{\text{old}}} \big[ \nabla_{\theta_i}\log \pi_i^{\text{old}}(a_i\mid s)\; A_i^{\pi^{\text{old}}}(s,a_i) \big],

and

Fi  ≜  Es∼dπold,  ai∼πiold[∇θilog⁡πiold(ai∣s)  ∇θilog⁡πiold(ai∣s)⊤].F_i \;\triangleq\; \mathbb{E}_{s \sim d^{\pi^{\text{old}}},\; a_i \sim \pi_i^{\text{old}}} \big[ \nabla_{\theta_i}\log \pi_i^{\text{old}}(a_i\mid s)\; \nabla_{\theta_i}\log \pi_i^{\text{old}}(a_i\mid s)^\top \big].

Under the TRPO quadratic approximation, the predicted improvement for agent ii with KL budget εi\varepsilon_i is

ΔJipred(εi)  =  2 εi  gi⊤Fi−1gi.\Delta J_i^{\text{pred}}(\varepsilon_i) \;=\; \sqrt{2\,\varepsilon_i}\;\sqrt{g_i^\top F_i^{-1} g_i}.

Writing ci≜gi⊤Fi−1gic_i \triangleq g_i^\top F_i^{-1} g_i and αi≜2 ci\alpha_i \triangleq \sqrt{2\,c_i} makes the threshold-allocation problem explicit (Shek et al., 14 Aug 2025).

3. Global KL allocation and the KKT solution

The central idea of HATRPO-W is to replace uniform per-agent trust regions with a single weighted global constraint. Given weights wi>0w_i>0, the joint budget is

∑i=1Nwi  Es∼dπold[KL ⁣(πiold(⋅∣s) ∥ πinew(⋅∣s))]  ≤  εtot.\sum_{i=1}^N w_i\;\mathbb{E}_{s \sim d^{\pi^{\text{old}}}} \big[ \mathrm{KL}\!\big(\pi_i^{\text{old}}(\cdot\mid s)\,\Vert\,\pi_i^{\text{new}}(\cdot\mid s)\big) \big] \;\le\; \varepsilon_{\text{tot}}.

Under the standard TRPO per-agent approximation,

Es[KL(⋅)]≈12Δθi⊤FiΔθi≤εi,\mathbb{E}_s[\mathrm{KL}(\cdot)] \approx \frac{1}{2}\Delta\theta_i^\top F_i \Delta\theta_i \le \varepsilon_i,

so the global constraint reduces to ∑iwi εi≤εtot\sum_i w_i\,\varepsilon_i \le \varepsilon_{\text{tot}} (Shek et al., 14 Aug 2025).

HATRPO-W chooses εi\varepsilon_i by solving

max⁡ε1,…,εN≥0∑i=1NΔJipred(εi)  =  ∑i=1Nαiεis.t.∑i=1Nwi εi≤εtot.\max_{\varepsilon_1,\dots,\varepsilon_N \ge 0} \quad \sum_{i=1}^N \Delta J_i^{\text{pred}}(\varepsilon_i) \;=\; \sum_{i=1}^N \alpha_i \sqrt{\varepsilon_i} \quad \text{s.t.}\quad \sum_{i=1}^N w_i\,\varepsilon_i \le \varepsilon_{\text{tot}}.

The corresponding Lagrangian is

L(ε,λ,μ)  =  ∑i=1Nαiεi  −  λ ⁣(∑i=1Nwi εi−εtot)  −  ∑i=1Nμi εi,\mathcal{L}(\varepsilon,\lambda,\mu) \;=\; \sum_{i=1}^N \alpha_i \sqrt{\varepsilon_i} \;-\; \lambda\!\left(\sum_{i=1}^N w_i\,\varepsilon_i - \varepsilon_{\text{tot}}\right) \;-\; \sum_{i=1}^N \mu_i\,\varepsilon_i,

with dual variables λ≥0\lambda \ge 0 and μi≥0\mu_i \ge 0. For each ii with εi>0\varepsilon_i>0,

∂L∂εi  =  αi2 εi  −  λ wi  −  μi  =  0⟹εi  =  (αi2 λ wi)2.\frac{\partial \mathcal{L}}{\partial \varepsilon_i} \;=\; \frac{\alpha_i}{2\,\sqrt{\varepsilon_i}} \;-\; \lambda\,w_i \;-\; \mu_i \;=\; 0 \quad\Longrightarrow\quad \varepsilon_i \;=\; \left(\frac{\alpha_i}{2\,\lambda\,w_i}\right)^2.

Substituting into the active budget constraint yields

λ  =  12 1εtot∑i=1Nαi2wi.\lambda \;=\; \tfrac{1}{2}\, \sqrt{ \frac{1}{\varepsilon_{\text{tot}}} \sum_{i=1}^N \frac{\alpha_i^2}{w_i} }.

The resulting closed-form allocation is

εi∗  =  εtot αi2/wi2∑j=1Nαj2/wj  =  εtot ci/wi2∑j=1Ncj/wj.\varepsilon_i^* \;=\; \varepsilon_{\text{tot}}\, \frac{\alpha_i^2/w_i^2}{\sum_{j=1}^N \alpha_j^2/w_j} \;=\; \varepsilon_{\text{tot}}\, \frac{c_i/w_i^2}{\sum_{j=1}^N c_j/w_j}.

In the special case wi=1w_i=1,

εi∗  =  εtot ci∑j=1Ncj,ci=gi⊤Fi−1gi.\varepsilon_i^* \;=\; \varepsilon_{\text{tot}}\, \frac{c_i}{\sum_{j=1}^N c_j}, \qquad c_i = g_i^\top F_i^{-1} g_i.

The paper characterizes this as a separable “water-filling–like” problem and interprets the optimum through the leveling rule

αi2 εi∗ wi  =  λ∀i,\frac{\alpha_i}{2\,\sqrt{\varepsilon_i^*}\,w_i} \;=\; \lambda \quad\forall i,

so that agents with larger cic_i receive a larger share of the global KL budget, moderated by wiw_i (Shek et al., 14 Aug 2025).

4. Per-agent TRPO step and sequential training procedure

Once the KKT-optimal thresholds are computed, each agent performs the standard TRPO step with its personalized budget: Δθi  =  2 εigi⊤Fi−1gi  Fi−1gi,θinew  =  θiold+Δθi.\Delta \theta_i \;=\; \sqrt{ \frac{2\,\varepsilon_i}{g_i^\top F_i^{-1} g_i} }\; F_i^{-1} g_i, \qquad \theta_i^{\text{new}} \;=\; \theta_i^{\text{old}} + \Delta \theta_i. HATRPO-W therefore changes the step size allocation, not the local trust-region mechanism itself. Agents with higher cic_i make larger steps, but all remain within personalized trust regions (Shek et al., 14 Aug 2025).

A training iteration proceeds in four stages. First, trajectories are collected under the current joint policy πold\pi^{\text{old}}, and per-agent gradients gig_i together with Fisher-vector products for Fi−1giF_i^{-1}g_i are estimated, typically by conjugate gradient. Second, the thresholds εi∗\varepsilon_i^* are computed in closed form from the KKT solution. Third, agents are updated sequentially, each using its natural-gradient step and an optional line search to ensure the realized average KL satisfies

Es[KL(πiold∥πinew)]≤εi∗.\mathbb{E}_s[\mathrm{KL}(\pi_i^{\text{old}}\Vert\pi_i^{\text{new}})] \le \varepsilon_i^*.

Fourth, already-updated agents are kept fixed while proceeding to the next agent, and new trajectories are collected for the next outer iteration (Shek et al., 14 Aug 2025).

The overhead of the allocation itself is O(N)O(N), since it only requires a single pass to compute ∑jcj/wj\sum_j c_j/w_j. The dominant cost remains per-agent conjugate gradient for Fix=giF_i x = g_i, reported as O(KCG⋅∣θi∣)O(K_{\text{CG}} \cdot |\theta_i|) per agent and iteration, using only Fisher-vector products (Shek et al., 14 Aug 2025).

5. Guarantees and theoretical interpretation

The theoretical status of HATRPO-W is inherited from the trust-region structure of HATRPO. Under standard TRPO assumptions, when the surrogate is optimized under a KL trust region and the line search or damping ensures that the realized KL respects εi\varepsilon_i, HATRPO’s sequential per-agent updates retain the joint monotonic improvement guarantee; HATRPO-W does not alter the per-agent TRPO guarantee, but only reallocates the KL budgets εi\varepsilon_i under a global cap (Shek et al., 14 Aug 2025). The allocation subproblem is strictly concave in εi\varepsilon_i over εi≥0\varepsilon_i \ge 0, its constraints are linear, and the KKT system has a unique solution when εtot>0\varepsilon_{\text{tot}}>0 and ci≥0c_i \ge 0; feasibility holds for any εtot≥0\varepsilon_{\text{tot}}\ge 0 (Shek et al., 14 Aug 2025).

This guarantee structure rests on earlier HATRPO theory. The 2021 formulation establishes the multi-agent advantage decomposition lemma, the sequential policy update scheme, and a monotonic improvement theorem stating that a sequence of joint policies updated by the theoretical algorithm satisfies J(πk+1)≥J(πk)J(\boldsymbol{\pi}_{k+1})\geq J(\boldsymbol{\pi}_{k}) for all kk, with convergence to Nash equilibria under randomized update order in cooperative Markov games (Kuba et al., 2021). The 2023 HARL framework generalizes this perspective through HATRL and HAML, and proves that algorithms derived from HAML inherently enjoy monotonic improvement of joint return and convergence to Nash Equilibrium (Zhong et al., 2023).

A common misconception is to treat HATRPO-W as a weighted objective over agents. The defining construction is narrower: it is a weighted or globally budgeted allocation of KL thresholds, not a redefinition of the cooperative reward. The objective being optimized in the allocation stage is the sum of TRPO-predicted improvements ∑iαiεi\sum_i \alpha_i\sqrt{\varepsilon_i} under ∑iwiεi≤εtot\sum_i w_i \varepsilon_i \le \varepsilon_{\text{tot}} (Shek et al., 14 Aug 2025).

6. Empirical behavior, comparison, and limitations

HATRPO-W is evaluated on a matrix game, a differential Gaussian game, and Multi-Agent MuJoCo benchmarks including Ant, HalfCheetah, Hopper, and Walker with heterogeneous agent decompositions such as 2×42\times4 Ant, 4×24\times2 Ant, and 8×18\times1 Ant. Baselines are MADDPG, MAPPO, HAPPO, and HATRPO, with centralized training, sequential agent updates, consistent hardware, 5 seeds on MuJoCo, and at least 10 seeds on the smaller games (Shek et al., 14 Aug 2025). The reported findings are that both HATRPO-W and HATRPO-G improve final performance over HATRPO, with gains exceeding 22.5%22.5\%, while HATRPO-G can reach approximately 25.2%25.2\%. HATRPO-W is reported to demonstrate lower variance and more stable learning dynamics across tasks, to reduce steps to 99%99\% of maximum reward in the 4-agent matrix game under tighter KL budgets, to escape local optima in the differential game by adaptive allocation to the high-impact agent, and to achieve notably higher returns on Ant and HalfCheetah variants with KL usage heatmaps showing meaningful, non-uniform allocation over time (Shek et al., 14 Aug 2025).

The comparison with HATRPO-G clarifies the role of the weighted KKT solution. HATRPO-W solves a principled KKT system under a global budget and produces a closed-form εi∗\varepsilon_i^* proportional to cic_i, whereas HATRPO-G greedily prioritizes agents with the highest local gain per KL and allocates budget iteratively. The paper characterizes HATRPO-W as typically yielding smoother, lower-variance training, while HATRPO-G can be more aggressive and may produce faster initial improvement at the cost of higher variance (Shek et al., 14 Aug 2025).

The principal limitations are also explicit. Performance is sensitive to εtot\varepsilon_{\text{tot}}: budgets that are too small can overly constrain learning, while budgets that are too large can break the surrogate’s guarantees. Misallocation can occur if cic_i is noisy because of poor advantage estimates or inaccurate Fisher approximations. Computational overhead remains that of TRPO/HATRPO, since conjugate gradient and Fisher-vector products are still required per agent. The method remains on-policy, so off-policy corrections must be handled carefully to maintain KL control. The formulation is compatible with discrete and continuous policies, but accurate KL estimation is required; Gaussian policies should use exact KL, and categorical policies use a sum over logits (Shek et al., 14 Aug 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to HATRPO-W.