TAR: Temporal-Agent Reward Redistribution for Optimal Policy Preservation in Multi-Agent Reinforcement Learning

Aditya Kapoor, Kale-ab Abebe Tessera, Mayank Baranwal, Harshad Khadilkar, Stefano V. Albrecht, Limin SunarXiv 2025

Abstract

In cooperative multi-agent reinforcement learning (MARL), learning effective policies is challenging when global rewards are sparse and delayed. This difficulty arises from the need to assign credit across both agents and time steps, a problem that existing methods often fail to address in episodic, long-horizon tasks. We propose Temporal-Agent Reward Redistribution $TAR^2$, a novel approach that decomposes sparse global rewards into agent-specific, time-step-specific components, thereby providing more frequent and accurate feedback for policy learning. Theoretically, we show that $TAR^2$ (i) aligns with potential-based reward shaping, preserving the same optimal policies as the original environment, and (ii) maintains policy gradient update directions identical to those under the original sparse reward, ensuring unbiased credit signals. Empirical results on two challenging benchmarks, SMACLite and Google Research Football, demonstrate that $TAR^2$ significantly stabilizes and accelerates convergence, outperforming strong baselines like AREL and STAS in both learning speed and final performance. These findings establish $TAR^2$ as a principled and practical solution for agent-temporal credit assignment in sparse-reward multi-agent systems.

Introduction

In cooperative Multi-Agent Reinforcement Learning (MARL), agents often receive a single "team reward" only at the very end of an episode (e.g., a +1 for winning a game of football). This creates a massive credit assignment problem:

  1. Temporal Credit: Which specific actions across the hundreds of timesteps actually caused the win?
  2. Agent Credit: Which of the many agents was responsible for those key actions?

Existing methods like STAS or AREL try to learn how to redistribute this reward, but they are often "theoretically fragile." They rely on a neural network to perfectly predict rewards that sum up to the total team reward. If the network is even slightly off during training, the theoretical guarantee that the agents are learning the "right" task vanishes, often leading to sub-optimal behavior or training instability.

Methodology

The authors introduce TAR², which moves away from trying to make a neural network "guess" the right distribution. Instead, it uses a two-step architecture:

  1. Unconstrained Modeling: A dual-transformer neural network (using both Temporal and Agent Attention) learns "contribution scores" ($c_{i,t}$). These scores represent the raw, unnormalized importance of an agent's action at a specific time.
  2. Deterministic Normalization: A separate, non-learned step takes these raw scores and forces them to sum up to the total team reward through a shift-and-normalize scheme.
The TAR² architecture featuring dual-transformer modules for agent-temporal credit modeling and a deterministic normalization layer for reward redistribution.

Potential-Based Reward Shaping (PBRS)

The authors prove that this specific two-step structure is mathematically equivalent to a valid Potential-Based Reward Shaping (PBRS) function. In RL theory, PBRS is the "gold standard" because it is guaranteed to preserve the optimal policy—meaning the redistributed rewards will never trick the agents into learning a "wrong" shortcut that doesn't actually help win the game.

To further stabilize learning, TAR² uses:

  • Final-State Conditioning: The model looks at the end result of the trajectory to ground its credit assignments.
  • Inverse Dynamics Task: An auxiliary task that forces the network to predict an agent's action based on state changes, ensuring the learned representations are grounded in cause-and-effect rather than random correlations.

Experimental Setup

The researchers evaluated TAR² on two high-complexity MARL benchmarks:

  • SMACLite: A lightweight version of the StarCraft Multi-Agent Challenge. Scenarios included homogeneous unit battles (5m vs 6m) and heterogeneous coordination (3s5z).
  • Google Research Football (GRF): A physics-based soccer simulator. Scenarios included "3 vs 1 with Keeper," "Counterattack Easy," and "Pass and Shoot."

In both cases, the environments were modified to be "strictly episodic," meaning agents received zero reward until the very end of the simulation.

Results and Discussion

TAR² consistently achieved higher average returns and faster convergence than baselines like STAS, AREL, and uniform reward distribution.

Performance comparison of TAR² against various baselines (AREL, STAS, Uniform) across SMACLite and Google Research Football scenarios.

Key Insights

  • Decoupling is Key: By making the return constraint a structural part of the architecture (the normalization step), the system remains theoretically sound even when the neural network is still training.
  • Variance Reduction: By conditioning the reward model on the final outcome, the authors show that the learning target becomes significantly less noisy.
  • Robustness: In Google Research Football, where other joint credit assignment methods often failed or showed high variance, TAR² remained stable and reached near-optimal performance.
  • Ablation Proof: Removing the deterministic normalization step was the most detrimental change in ablation studies, proving that the policy-preservation guarantee is the primary driver of the method's success.

Conclusion

TAR² provides a robust and theoretically grounded approach to multi-agent credit assignment. While the transformer-based architecture might require optimization for systems with hundreds of agents, its ability to provide dense, per-agent signals from sparse rewards significantly improves learning efficiency. Future work will explore extending this framework to handle multiple sparse rewards throughout an episode and investigating the exploration-exploitation trade-offs of redistributed rewards.

Summary updated

Abstract

In cooperative multi-agent reinforcement learning (MARL), learning effective policies is challenging when global rewards are sparse and delayed. This difficulty arises from the need to assign credit across both agents and time steps, a problem that existing methods often fail to address in episodic, long-horizon tasks. We propose Temporal-Agent Reward Redistribution $TAR^2$, a novel approach that decomposes sparse global rewards into agent-specific, time-step-specific components, thereby providing more frequent and accurate feedback for policy learning. Theoretically, we show that $TAR^2$ (i) aligns with potential-based reward shaping, preserving the same optimal policies as the original environment, and (ii) maintains policy gradient update directions identical to those under the original sparse reward, ensuring unbiased credit signals. Empirical results on two challenging benchmarks, SMACLite and Google Research Football, demonstrate that $TAR^2$ significantly stabilizes and accelerates convergence, outperforming strong baselines like AREL and STAS in both learning speed and final performance. These findings establish $TAR^2$ as a principled and practical solution for agent-temporal credit assignment in sparse-reward multi-agent systems.
BibTeX
@misc{kapoor2025tar,
  author = {Aditya Kapoor and Kale-ab Abebe Tessera and Mayank Baranwal and Harshad Khadilkar and Stefano V. Albrecht and Limin Sun},
  title = {{TAR: Temporal-Agent Reward Redistribution for Optimal Policy Preservation in Multi-Agent Reinforcement Learning}},
  year = {2025},
  url = {https://openreview.net/forum?id=rDnuFgBkFY},
}
Figure