Toward Efficient Multi-Agent Exploration With Trajectory Entropy Maximization

Tianxu Li, Kun ZhuICLR 2025

TL;DR

Trajectory Entropy Exploration (TEE) is a novel multi-agent reinforcement learning (MARL) framework that breaks the "homogeneity trap" where agents with shared parameters behave too similarly. By maximizing the entropy of agent trajectories within a learned contrastive representation space, TEE incentivizes agents to discover diverse, specialized roles, leading to state-of-the-art performance on complex benchmarks like StarCraft II and Google Research Football.

What Problem Does This Paper Address?

In Multi-Agent Reinforcement Learning (MARL), a common trick for scalability is parameter sharing: all agents use the same neural network to make decisions. While efficient, this often leads to "lazy" exploration where agents behave like clones of one another. If a task requires agents to split up and take on different roles—like different players in a football match—parameter sharing can actually hinder progress because agents struggle to differentiate their behaviors.

Previous attempts to solve this used Mutual Information (MI) to make trajectories "identifiable" to specific agents. However, the authors point out a theoretical flaw: MI-based rewards often encourage agents to stick to "known" trajectories that are easy to identify, rather than exploring truly novel ones. This can lead to overfitting and local optima where agents stop exploring once they’ve established a distinct (but potentially suboptimal) identity.

Methods

The authors introduce Trajectory Entropy Exploration (TEE), which shifts the focus from identifiability to diversity.

The TEE architecture integrating trajectory representation learning and a particle-based entropy estimator with QMIX.

The method consists of three main components:

  1. Contrastive Trajectory Representations: To make sense of high-dimensional raw data, TEE uses an encoder and an autoregressive model (GRU) to map observation-action histories into a latent space. They use InfoNCE loss with learnable "identity representations" to ensure that even if agents start with similar behaviors, the model learns to distinguish their latent trajectories.
  2. Non-parametric Entropy Estimation: Instead of trying to model complex probability densities, TEE uses a particle-based estimator. It calculates the entropy based on the Euclidean distance between a trajectory "particle" and its $k$-nearest neighbors in the latent space. If an agent's trajectory is far from others, it represents high entropy (high novelty).
  3. Intrinsic Reward Integration: This entropy measure is converted into an intrinsic reward. For value-based methods like QMIX, they introduce an "intrinsic utility network" to train agents toward maximizing this entropy alongside the environment's team reward.

Datasets

The researchers evaluated TEE across several rigorous MARL benchmarks:

  • Pac-Men: A custom grid-world maze designed to test exploration. Agents must find dots in rooms connected by paths of varying lengths; only the shortest path is initially visible.
  • SMAC (StarCraft Multi-Agent Challenge): The standard benchmark for cooperative MARL, including "Super Hard" scenarios like corridor and 6h_vs_8z.
  • SMACv2: A more difficult version of SMAC with stochastic unit compositions and start positions.
  • Google Research Football (GRF): A physics-based football simulator requiring high-level coordination and strategic planning.

Key Insights and Ideas

  • The "Identity Trap": The paper provides a formal analysis showing that MI-based rewards can actually penalize agents for visiting new areas. Because a brand-new trajectory has no prior "identity" information, its variational reward can approach negative infinity, effectively scaring agents away from the unknown.
  • Learnable Identities vs. Fixed IDs: Instead of using one-hot vectors for agent IDs, TEE uses learnable embedding vectors. This allows the contrastive learner to more flexibly distinguish agents in the representation space, which is crucial for the entropy estimator to work.
  • Robustness to Homogeneity: Interestingly, TEE doesn't force diversity when it's not needed. In "focus fire" scenarios (where agents should act similarly to kill a single enemy), TEE still outperforms baselines, proving it can balance exploration with effective exploitation.

Key Results

TEE consistently outperformed state-of-the-art baselines (like QMIX, MAVEN, and EOI) across almost all tested scenarios.

Performance comparison showing TEE+QMIX achieving significantly higher average rewards than baseline methods.
  • Superior Exploration: In the Pac-Men task, TEE was the only method where agents successfully explored the longest paths to collect all dots, while baselines got stuck in the nearest rooms.
  • Win Rate Gains: In "Super Hard" SMAC scenarios, TEE achieved significantly higher win rates. For example, in the corridor scenario, TEE reached nearly a 90% win rate while vanilla QMIX struggled near 20%.
  • Scalability: TEE showed remarkable stability as the number of agents increased. In SMACv2 tests with up to 20 agents, TEE maintained high performance while baseline performance plummeted due to the exponential growth of the state-action space.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  • Metric Sensitivity: The current method relies on Euclidean distance in the latent space to measure policy differences. The authors suggest that developing more sophisticated, domain-specific policy difference measurements could further boost performance.
  • Computational Complexity: While more efficient than density modeling, calculating $k$-nearest neighbors and training the autoregressive trajectory encoder adds computational overhead compared to vanilla MARL algorithms.

Future work may involve refining the representation learning process or adapting the entropy estimator for even more massive-scale multi-agent systems.

Summary updated

BibTeX
@inproceedings{li2025toward,
  author = {Tianxu Li and Kun Zhu},
  title = {{Toward Efficient Multi-Agent Exploration With Trajectory Entropy Maximization}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=YvKJGYL4j7},
}
Figure