This blog post summarizes the paper: "Adaptive Parameter Sharing for Multi-Agent Reinforcement Learning" by Li et al.
TL;DR
AdaPS (Adaptive Parameter Sharing) introduces a brain-inspired masking mechanism for multi-agent reinforcement learning that allows heterogeneous agents to specialize without exploding the model's parameter count. By mapping different agent "identities" to specific subnetworks within a single shared model, it achieves high performance and diversity while maintaining the memory efficiency of simple parameter sharing.
What Problem Does This Paper Address?
In Multi-Agent Reinforcement Learning (MARL), researchers face a constant tug-of-war between scalability and heterogeneity.
- The Scalability Issue: If you give every agent its own unique neural network (No Parameter Sharing), the number of parameters to train grows linearly with the number of agents. This becomes computationally impossible for large-scale systems.
- The Heterogeneity Issue: To save memory, many researchers use "Naive Parameter Sharing," where every agent shares the exact same network. While efficient, this fails when agents have different roles or goals (e.g., a medic vs. a soldier in a game). The network struggles to produce sufficiently different strategies for different roles.
Existing middle-ground solutions, like Selective Parameter Sharing (SePS), group similar agents together, but the model size still increases with the number of agent types. The authors of this paper sought a way to provide "specialized" logic for different agent types without adding any extra trainable parameters.
Methods
The authors propose AdaPS (Adaptive Parameter Sharing), which draws inspiration from how the human brain activates different regions for different tasks. The process works in three main stages:
- Identity Encoding: First, the system uses a Variational Autoencoder (VAE) to observe agent trajectories and extract an "identity vector" ($z$) for each agent. This vector captures the agent's intrinsic characteristics, such as its specific reward functions or transition models.
- Clustering: Agents are grouped into $K$ clusters based on these identity vectors using the K-means algorithm.
- Network Mask Mapping: This is the core innovation. The cluster centers are fed into a fixed, randomly initialized mapping network. This network outputs a probability for each neuron in the main policy network. By applying a threshold, they generate a binary mask.
- Subnetwork Execution: During training and inference, an agent uses the shared policy network, but only the neurons "unlocked" by its cluster's mask are active. This effectively creates distinct, overlapping subnetworks for different agent types within one single set of weights.
Crucially, because the mapping network is fixed and random, it introduces zero additional training parameters.
Datasets
The researchers evaluated AdaPS on three diverse MARL benchmarks:
- Blind-particle Spread (BPS): A modified environment where agents must navigate to landmarks matching their own color, but they are "blind" to their own color and must learn it through interaction.
- Level-based Foraging (LBF): A coordination task where agents forage for food. Success depends on the levels of both the agents and the food items.
- Coloured Multi-Robot Warehouse (C-RWARE): A sparse-reward environment where robots must deliver specific colored shelves to matching stations.
Key Insights and Ideas
- The "Brain" Analogy: Instead of building a new "brain" for every agent type, AdaPS treats the neural network like a shared resource where different "circuits" (subnetworks) are activated based on the task at hand.
- Implicit Specialization: By using masks, agents in the same cluster share experience directly (promoting sample efficiency), while agents in different clusters develop diverse strategies because they are literally using different parts of the network.
- Efficiency is King: AdaPS manages to match the performance of models that are 30x larger (like NoPS) while using the same number of parameters as the most basic "naive" sharing methods.
Key Results
- Performance vs. Size: In the BPS environment with 30 agents, AdaPS achieved performance comparable to the "No Parameter Sharing" (NoPS) baseline. However, NoPS required 3000% more parameters than AdaPS.
- Superior Coordination: In the Level-based Foraging (LBF) task, AdaPS outperformed all baselines, including SePS. The authors attribute this to AdaPS's ability to balance experience sharing with the need for distinct sub-structures.
- Sample Efficiency: Because agents within a cluster share the same subnetwork, they learn from each other's experiences, leading to faster convergence than methods that treat every agent as totally unique.
Limitations and Future Work
- Fixed Hyperparameters: The masking threshold ($\lambda$) and the number of clusters ($K$) are currently set manually. The authors suggest that adaptively learning these values could further improve performance.
- Pre-training Requirement: AdaPS requires a small amount of initial trajectory data to train the VAE for identity encoding. While this is much less data than the full RL training process, it is still an extra step.
- Mask Overlap: The paper uses a random mapping network to ensure "uniform" masks, but it doesn't deeply explore how the degree of overlap between subnetworks affects learning. Too much overlap might hinder specialization, while too little might hinder beneficial experience sharing.
Summary updated