Agent-Temporal Credit Assignment for Optimal Policy Preservation in Sparse Multi-Agent Reinforcement Learning

Aditya Kapoor, Sushant Swamy, Kale-ab Abebe Tessera, Mayank Baranwal, Mingfei Sun, Harshad Khadilkar, Stefano V. AlbrechtCoCoMARL @ RLC 2024 · DOI

Introduction

In cooperative Multi-Agent Reinforcement Learning (MARL), agents must coordinate their actions to achieve a shared goal. A fundamental hurdle in these environments is the credit assignment problem, which manifests in two dimensions: temporal (identifying when critical actions occurred) and agent-based (identifying which agents were responsible). This complexity is exacerbated in sparse-reward settings, where feedback is infrequent and delayed, making it difficult for agents to discern which specific behaviors led to a successful outcome.

The $TAR^2$ Framework

To address these challenges, we introduce Temporal-Agent Reward Redistribution ($TAR^2$). This framework decomposes a sparse global episodic reward into dense, agent-specific signals through a two-stage process:

  1. Temporal Decomposition: The global reward is distributed across individual time steps using a temporal attention module that identifies pivotal moments in a trajectory.
  2. Agent Decomposition: The time-step rewards are further partitioned among agents based on their relative contributions, determined by an agent attention module.

$TAR^2$ builds upon the Agent Reward Learning (AREL) architecture but introduces a more robust mechanism for handling the temporal dimension alongside the agent dimension. By decoupling the calculation of credit from the policy learning process, $TAR^2$ allows for the use of simpler, more scalable algorithms like Independent PPO (IPPO) or Independent Q-Learning (IQL) in complex multi-agent environments.

Theoretical Foundations and Policy Preservation

A key contribution of $TAR^2$ is the theoretical guarantee that the redistributed rewards do not alter the optimal policy of the original environment. We prove that $TAR^2$ is equivalent to potential-based reward shaping. This is a critical property in RL theory because it ensures that the "densified" reward signal remains consistent with the original objective, preventing agents from learning sub-optimal behaviors to exploit intermediate rewards—a common pitfall in manual reward engineering.

Furthermore, we demonstrate that the policy gradient updates under $TAR^2$ are directionally consistent with the original sparse reward function. This consistency leads to more stable training trajectories and ensures that the learning process is less prone to the noise typically found in multi-agent systems.

Experimental Evaluation

The framework was evaluated on several challenging benchmarks, including SMACLite (a lightweight StarCraft II environment) and Google Research Football.

  • Efficiency and Convergence: In the SMACLite "5m_vs_6m" scenario, $TAR^2$ demonstrated significantly faster convergence compared to competitive baselines like AREL and IRCR.
  • Stability: The method exhibited lower variance across training runs, indicating more reliable learning in the face of environmental noise.
  • Versatility: $TAR^2$ is algorithm-agnostic, showing strong performance when integrated with both Independent PPO (IPPO) and Multi-Agent PPO (MAPPO).
  • Oracle Performance: The learned rewards allowed agents to achieve performance levels comparable to those trained with manually designed "Oracle" dense rewards, effectively automating the difficult process of reward engineering.

Conclusion and Future Work

$TAR^2$ provides a principled approach to solving the "who and when" problem in MARL. While the method requires a brief "warm-up" period (approximately 2,000 episodes) to train the reward model, it significantly enhances the ability of agents to learn in sparse-reward environments. Future research will explore the direct utilization of attention weights for better interpretability and investigate how the framework scales to massive multi-agent systems with dozens or hundreds of agents.

Summary updated

BibTeX
@misc{kapoor2024agent,
  author = {Aditya Kapoor and Sushant Swamy and Kale-ab Abebe Tessera and Mayank Baranwal and Mingfei Sun and Harshad Khadilkar and Stefano V. Albrecht},
  title = {{Agent-Temporal Credit Assignment for Optimal Policy Preservation in Sparse Multi-Agent Reinforcement Learning}},
  year = {2024},
  eprint = {2412.14779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.14779},
}
Figure