Policy Optimization Algorithm with Activation Likelihood-Ratio for Multi-agent Reinforcement Learning

Lu Jia, Binglin Su, Dongkuan Xu, Yewei Wang, Jing Fang, Jun WangNeural 2024

Abstract

As a ubiquitous on-policy reinforcement learning algorithm, proximal policy optimization (PPO) has achieved the state-of-the-art performance in both single-agent and cooperative multi-agent scenarios. However, it still suffers from the instability and inefficiency of the policy optimization with the non-strictly restricted likelihood-ratio in clipping strategy. In this work, we propose an activation likelihood-ratio (ALR) for solving this issue. The ALR is restricted by a tanh activation function, and it can be employed in multiple functional clipping strategies. The resulted ALR clipping strategy produces a smooth but precipitous objective curve, which can provide high policy update stationarity and efficiency. The ALR clipping strategy is incorporated into the PPO loss function, thus resulting in the method proximal policy optimization with activation likelihood-ratio (PPO-ALR). The rationality and superiority of the ALR-based target function are proved and analyzed. Moreover, experiments on the Pistonball cooperative multi-agent game show that PPO-ALR produces competitive and superior results compared with the standard PPO, PPO with rollback, and PPO smoothed algorithms, especially its high efficiency and success probability in searching optimal policies in multi-agent environments.

Introduction

Proximal Policy Optimization (PPO) is a foundational algorithm in reinforcement learning, favored for its clipping mechanism that prevents drastic policy updates and ensures stable learning. However, in Multi-Agent Reinforcement Learning (MARL), PPO faces significant challenges. The environment is inherently non-stationary because multiple agents learn and change simultaneously, causing the "ground truth" for any single agent to shift constantly.

Standard PPO employs a "hard" clipping strategy that can become inefficient or unstable when the likelihood ratio—the difference between the new and old policy—approaches the boundaries of the allowed trust region. This often results in the "lazy agent" problem or premature convergence to sub-optimal strategies, as gradients near the clipping boundaries are not sufficiently informative.

The Activation Likelihood-Ratio (ALR) Method

To address these limitations, we introduce the Activation Likelihood-Ratio (ALR). In standard PPO, the objective is based on the ratio $r_t(\theta) = \frac{\pi_\theta(a_t|s_t)}{\pi_{\theta_{old}}(a_t|s_t)}$. PPO-ALR replaces this raw ratio with a function $f(r, \epsilon)$ activated by a hyperbolic tangent (tanh):

$$f(r, \epsilon) = \frac{\epsilon}{\tanh(\epsilon)} \tanh(r-1) + 1$$

This approach offers several key advantages over traditional clipping and its variants:

  1. Gradient Shaping: Unlike standard PPO, which maintains a constant gradient inside the clipping range, ALR’s tanh curve is steepest at the center (where the ratio is 1). This ensures the algorithm updates most aggressively when the policy is stable and slows down as it approaches clipping boundaries.
  2. Smoothness: The objective curve is continuously differentiable and smooth, avoiding the "jagged" updates characteristic of standard clipping or "rollback" versions of PPO.
  3. Strict Restriction: It dynamically adjusts policy update speeds, providing a "soft landing" as the ratio nears trust region limits.
Comparison of objective functions for standard PPO, PPO-RB, and PPOS under positive and negative advantage conditions.

Experimental Evaluation

The algorithm was evaluated using the Pistonball environment from the PettingZoo library, a cooperative game where multiple "pistons" must coordinate vertical movements to roll a ball across the screen. We tested the algorithm with 15 agents (low complexity) and 20 agents (high complexity) to assess coordination as the state-action space expands.

Key Results

MAPPO-ALR was compared against standard MAPPO, MAPPO with Rollback (RB), and Smoothed MAPPO (PPOS):

  • Success Rate: In the 15-agent scenario, MAPPO-ALR achieved a success rate of 0.497, significantly outperforming standard MAPPO’s 0.379.
  • Scalability: In the 20-agent task, the performance gap widened. MAPPO-ALR maintained a success rate of 0.388, while standard MAPPO plummeted to 0.107.
  • Efficiency: MAPPO-ALR demonstrated the most rapid decline in average episode length, indicating that agents learned optimal coordination strategies faster than baseline algorithms.

Discussion and Insights

The core innovation of PPO-ALR is the optimization of behavior inside the trust region. By maximizing gradients at the start of the search and tapering them at the borders, ALR maintains a safe update zone without sacrificing efficiency. Furthermore, MAPPO-ALR preserves "policy update diversity" by maintaining a stable proportion of updates near the boundary, preventing the likelihood ratio collapse often seen in standard MAPPO.

While PPO-ALR shows clear advantages in stability and robustness to hyperparameters like the clipping parameter ($\epsilon$), it does introduce some computational overhead due to the activation functions. Future work will focus on extending this approach to competitive environments, continuous action spaces, and heterogeneous agent scenarios.

Summary updated

BibTeX
@inproceedings{jia2024policy,
  author = {Lu Jia and Binglin Su and Dongkuan Xu and Yewei Wang and Jing Fang and Jun Wang},
  title = {{Policy Optimization Algorithm with Activation Likelihood-Ratio for Multi-agent Reinforcement Learning}},
  booktitle = {Neural},
  year = {2024},
  doi = {10.1007/s11063-024-11705-x},
}
Figure