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 sSs \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)    Eaiπiold(s)[Aπold(s,(ai,ai))].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 sSs \in S0 updating from sSs \in S1 to sSs \in S2, with other agents fixed at sSs \in S3, is

sSs \in S4

subject to the per-agent KL trust region

sSs \in S5

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

sSs \in S6

and

sSs \in S7

Under the TRPO quadratic approximation, the predicted improvement for agent sSs \in S8 with KL budget sSs \in S9 is

a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i0

Writing a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i1 and a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i2 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 a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i3, the joint budget is

a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i4

Under the standard TRPO per-agent approximation,

a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i5

so the global constraint reduces to a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i6 (Shek et al., 14 Aug 2025).

HATRPO-W chooses a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i7 by solving

a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i8

The corresponding Lagrangian is

a=(a1,,aN)A=iAia=(a_1,\dots,a_N) \in A=\prod_i A_i9

with dual variables π(s)=i=1Nπi(s),\pi(\cdot|s)=\prod_{i=1}^N \pi_i(\cdot|s),0 and π(s)=i=1Nπi(s),\pi(\cdot|s)=\prod_{i=1}^N \pi_i(\cdot|s),1. For each π(s)=i=1Nπi(s),\pi(\cdot|s)=\prod_{i=1}^N \pi_i(\cdot|s),2 with π(s)=i=1Nπi(s),\pi(\cdot|s)=\prod_{i=1}^N \pi_i(\cdot|s),3,

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

Substituting into the active budget constraint yields

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

The resulting closed-form allocation is

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

In the special case π(s)=i=1Nπi(s),\pi(\cdot|s)=\prod_{i=1}^N \pi_i(\cdot|s),7,

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

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

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

so that agents with larger θi\theta_i0 receive a larger share of the global KL budget, moderated by θi\theta_i1 (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\theta_i2 HATRPO-W therefore changes the step size allocation, not the local trust-region mechanism itself. Agents with higher θi\theta_i3 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 θi\theta_i4, and per-agent gradients θi\theta_i5 together with Fisher-vector products for θi\theta_i6 are estimated, typically by conjugate gradient. Second, the thresholds θi\theta_i7 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

θi\theta_i8

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 θi\theta_i9, since it only requires a single pass to compute dπ(s)d^{\pi}(s)0. The dominant cost remains per-agent conjugate gradient for dπ(s)d^{\pi}(s)1, reported as dπ(s)d^{\pi}(s)2 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 dπ(s)d^{\pi}(s)3, 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 dπ(s)d^{\pi}(s)4 under a global cap (Shek et al., 14 Aug 2025). The allocation subproblem is strictly concave in dπ(s)d^{\pi}(s)5 over dπ(s)d^{\pi}(s)6, its constraints are linear, and the KKT system has a unique solution when dπ(s)d^{\pi}(s)7 and dπ(s)d^{\pi}(s)8; feasibility holds for any dπ(s)d^{\pi}(s)9 (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 π\pi0 for all π\pi1, 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 π\pi2 under π\pi3 (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 π\pi4 Ant, π\pi5 Ant, and π\pi6 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 π\pi7, while HATRPO-G can reach approximately π\pi8. HATRPO-W is reported to demonstrate lower variance and more stable learning dynamics across tasks, to reduce steps to π\pi9 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 Aπ(s,a)=Qπ(s,a)Vπ(s).A^{\pi}(s,a)=Q^{\pi}(s,a)-V^{\pi}(s).0 proportional to Aπ(s,a)=Qπ(s,a)Vπ(s).A^{\pi}(s,a)=Q^{\pi}(s,a)-V^{\pi}(s).1, 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 Aπ(s,a)=Qπ(s,a)Vπ(s).A^{\pi}(s,a)=Q^{\pi}(s,a)-V^{\pi}(s).2: 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 Aπ(s,a)=Qπ(s,a)Vπ(s).A^{\pi}(s,a)=Q^{\pi}(s,a)-V^{\pi}(s).3 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.