Learning When to Transfer among Agents: An Efficient Multiagent Transfer Learning Framework

Tianpei Yang, Weixun Wang, Hongyao Tang, Jianye Hao, Zhaopeng Meng, Wulong Liu, Yujing Hu, Yingfeng Chen

Abstract

Multiagent Reinforcement Learning (MARL) is often limited by extreme sample inefficiency as the joint state-action space scales with the number of agents. We present the Multiagent Policy Transfer Framework (MAPTF), an approach that accelerates learning by allowing agents to adaptively "borrow" policies from their peers. By framing policy transfer as an option learning problem and employing Successor Representations (SR) to mitigate inconsistencies in local rewards, MAPTF enables robust knowledge sharing. Our evaluations on complex benchmarks show that MAPTF significantly improves training speed and final performance compared to state-of-the-art MARL algorithms.

Introduction

Training agents from scratch in multiagent environments is prohibitively slow because the complexity grows exponentially with the agent count. Transfer learning offers a solution by leveraging existing knowledge, yet it faces two critical challenges:

  1. The "Who and When" Problem: Determining which peer to imitate and when to stop to avoid "negative transfer"—where an agent adopts suboptimal behaviors from a peer.
  2. Sample Inconsistency: Agents often operate with different local observations and reward functions. Directly imitating a peer's actions can lead to unstable training if their underlying goals are misaligned.

Methodology: Transfer as an Option

MAPTF addresses these challenges by treating policy transfer as a temporal abstraction, or an Option.

The MAPTF architecture, illustrating the interaction between agents, the environment, and the Option Module for policy transfer.

Successor Representation Option (SRO) Learning

To handle sample inconsistency, MAPTF utilizes Successor Representations (SR). SR decouples environment dynamics (state transitions) from specific reward weights. By learning the "expected future state occupancy" independently, the framework can accurately estimate the value of a peer's policy even when agents have divergent goals.

Adaptive Policy Imitation

The framework includes an Option Module that learns which peer serves as the best "teacher" for a given state. The "student" agent minimizes a transfer loss (e.g., KL divergence) to mimic the selected teacher. This imitation is weighted by a decaying function $f(t)$, ensuring that agents rely on peer knowledge early in training but transition to self-learned expertise as they specialize. A termination function $\beta$ allows the system to automatically detect when a peer's policy is no longer helpful.

Experimental Setup

The framework was evaluated on two major benchmarks:

  • Pac-Man: Tested across three scenarios of increasing difficulty: OpenClassic, MediumClassic, and OriginalClassic.
  • Multiagent Particle Environment (MPE): Included tasks such as Predator-Prey and Cooperative Navigation, scaling from 4 to 12 agents to test efficiency in larger teams.

Key Insights

  • Decoupling Dynamics from Rewards: The use of SRO is a pivotal innovation. Since environment physics are typically shared among agents, learning the "map" of the world (SR) separately from individual "goals" (Rewards) allows for cleaner knowledge transfer.
  • Safety via Termination: The inclusion of a termination function acts as a safety valve, preventing the adoption of bad habits from peers.
  • Collective Intelligence: Benefits of MAPTF scale with the number of agents, suggesting that larger groups provide a richer pool of collective knowledge for individual acceleration.

Results and Discussion

MAPTF consistently outperformed standard baselines, including PPO, MADDPG, and QMIX.

Average reward over training episodes for MAPTF compared to PPO and DVM baselines on three Pac-Man scenarios.

As shown in Figure 3, MAPTF (blue) achieves higher average rewards faster than both PPO and DVM (a state-of-the-art policy distillation method). In the MPE Predator-Prey task with 12 agents, MAPTF demonstrated superior scalability, reaching high performance levels much earlier than vanilla MARL algorithms. Ablation studies confirmed that removing the SRO component leads to significant performance degradation, highlighting its necessity for handling heterogeneous multiagent data.

Conclusion and Future Work

MAPTF provides a robust framework for efficient multiagent transfer learning. While it focuses on knowledge transfer, future work could integrate centralized option-value functions to improve explicit coordination among agents. Additionally, automating the tuning of the imitation decay factor $\mu$ and extending the framework to heterogeneous teams are promising research directions.

Summary updated

BibTeX
@inproceedings{yang2021learning,
  author = {Tianpei Yang and Weixun Wang and Hongyao Tang and Jianye Hao and Zhaopeng Meng and Wulong Liu and Yujing Hu and Yingfeng Chen},
  title = {{Learning When to Transfer among Agents: An Efficient Multiagent Transfer Learning Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=GAiM0RXrMfF},
}
Figure