Shaping Advice in Deep Multi-Agent Reinforcement Learning

Baicen Xiao, Bhaskar Ramasubramanian, Radha PoovendranarXiv 2021

Introduction

In Multi-Agent Reinforcement Learning (MARL), agents must learn to coordinate their actions to achieve common or competitive goals. A significant hurdle in this field is the "sparse reward" problem: environments where feedback is infrequent, occurring only after a long sequence of correct actions. This leads to a difficult credit assignment problem, where agents struggle to identify which specific actions contributed to a final success. While "reward shaping"—adding intermediate rewards—is a common solution, it often introduces "reward hacking," where agents optimize for the shaping signal rather than the actual task.

The SAM Framework

To address these challenges, the authors introduce SAM (Shaping Advice in deep Multi-agent reinforcement learning). SAM leverages potential-based reward shaping within the Centralized Training with Decentralized Execution (CTDE) paradigm.

The core of SAM is the use of a potential function $\phi$. The "shaping advice" provided to an agent is defined as the difference in potential between consecutive states: $F(s, s') = \gamma \phi(s') - \phi(s)$. Mathematically, this approach is guaranteed not to alter the optimal policy of the original task, as the total shaped reward over any cycle of states sums to zero.

The SAM architecture integrates potential-based shaping advice into a centralized training framework.

As shown in the architecture above, SAM builds upon the MADDPG algorithm. During training, a centralized critic has access to the global state and the actions of all agents. This critic incorporates the shaping advice to provide dense, frequent feedback, effectively guiding the agents toward the sparse goal without distracting them from the primary objective.

Experimental Evaluation

The researchers evaluated SAM using three modified tasks from the Multi-agent Particle World benchmark, each designed to feature sparse rewards:

  • Cooperative Navigation ($N=6$): Agents must coordinate to cover landmarks without collisions.
  • Physical Deception ($N=4$): Agents must reach a target landmark while deceiving an adversary.
  • Predator-Prey (3 predators, 1 prey): Slower predators must cooperate to capture a faster prey.

Key Results

The experimental results demonstrate that SAM significantly outperforms standard sparse-reward training and existing reward redistribution methods like IRCR (Iterative Relative Credit Refinement).

Performance comparison of SAM variants against Sparse and IRCR baselines across three benchmark tasks.

As illustrated in the performance plots, the "SAM-NonUniform" variant consistently achieves the highest scores and the fastest convergence. In Cooperative Navigation, while sparse-reward agents failed to learn the task entirely, SAM agents quickly reached near-optimal performance. Furthermore, SAM effectively stabilized learning in competitive scenarios like Physical Deception, where MARL often suffers from reward oscillations. Unlike IRCR, which redistributes rewards only at the end of an episode, SAM provides immediate, step-by-step feedback that is crucial for early-stage exploration.

Conclusion and Future Work

SAM provides a robust framework for accelerating learning in multi-agent systems with sparse rewards. By using theoretically grounded potential-based shaping, it offers a way to inject simple domain-specific "advice" that dramatically improves training efficiency without the risk of policy sub-optimization. Future work may explore adaptive potential functions that evolve alongside agent behavior to further enhance sample efficiency in complex, high-dimensional environments.

Summary updated

BibTeX
@misc{xiao2021shaping,
  author = {Baicen Xiao and Bhaskar Ramasubramanian and Radha Poovendran},
  title = {{Shaping Advice in Deep Multi-Agent Reinforcement Learning}},
  year = {2021},
  eprint = {2103.15941},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.15941},
}
Figure