Training agents in Multi-Agent Reinforcement Learning (MARL) is notoriously difficult when feedback is limited to a single, shared reward at the end of an episode. This paper introduces AREL (Agent-Temporal Attention for Reward Redistribution), a Transformer-inspired method that decomposes delayed episodic rewards into dense, step-by-step rewards by calculating the specific contributions of each agent at every time step. By integrating these dense rewards into standard MARL algorithms, AREL significantly accelerates learning and boosts performance in complex environments.
The Credit Assignment Challenge
Reinforcement learning relies on reward signals to guide agent behavior. However, in many complex scenarios, agents receive a single, delayed reward at the end of an episode (e.g., a "Win" or "Loss"). In multi-agent settings, this creates a two-fold credit assignment problem:
- Temporal Credit Assignment: Identifying which specific actions along the episode's timeline led to the final outcome.
- Multi-Agent Credit Assignment: Determining which specific agent's action was decisive among many acting simultaneously.
Existing methods often struggle to address both dimensions. Single-agent temporal methods do not scale well to multiple agents, while multi-agent methods typically assume dense, step-by-step rewards are already available. AREL bridges this gap by redistributing a single global episodic reward into individual, step-by-step rewards for each agent.
The AREL Framework
AREL is a plug-and-play reward redistribution module that can be attached to standard MARL algorithms like QMIX or MADDPG. It utilizes a Transformer-inspired attention mechanism split into two distinct blocks:
- Temporal Attention Module ($f_{tem}$): Analyzes a single agent's trajectory over time to identify critical states and actions.
- Agent Attention Module ($f_{agt}$): Examines all agents at a single time step to determine how they influenced one another.
By concatenating these modules, AREL evaluates the entire joint trajectory and predicts a step-by-step reward for each agent. To train this module, the authors use a regression loss to ensure the sum of predicted step rewards equals the actual episodic reward, combined with variance-based regularization. This regularization prevents the model from predicting sparse rewards (e.g., assigning all reward to one time step), forcing it to generate the dense, smooth signals necessary for efficient RL training.
Experimental Results
The authors evaluated AREL on standard MARL benchmarks modified to provide only episodic rewards: Particle World and the StarCraft Multi-Agent Challenge (SMAC).
Key Insights
- Credit Assignment vs. Exploration: Intelligently redistributing rewards (AREL) led to better performance than using state-of-the-art strategic exploration techniques like MAVEN.
- Essential Agent Attention: Ablation studies showed that removing the Agent Attention module causes performance to plummet, confirming that determining who acted is as vital as when they acted.
- Dense Reward Learning: Visualizations showed that AREL naturally learns to reward task-critical actions—such as moving toward a landmark—even without explicit step-by-step feedback from the environment.
In Particle World, AREL consistently achieved the highest average rewards across all tasks and agent counts (up to 15 agents), significantly outperforming baselines like RUDDER and IRCR. In SMAC, AREL achieved the highest win rates in challenging maps like 2s3z (~80% win rate) and 3s_vs_5z.
Conclusion and Future Work
AREL demonstrates that sophisticated credit assignment through attention mechanisms can overcome the limitations of sparse, delayed rewards in MARL. While highly effective, the primary limitation is the computational overhead of training Transformer-based modules alongside deep RL algorithms. Future research will focus on making these attention-based mechanisms more lightweight and scalable for massive multi-agent systems.
Summary updated