Trajectory-Class-Aware Multi-Agent Reinforcement Learning
Hyungho Na, Kwanghyeon Lee, Sumin Lee, Il-Chul Moon
TL;DR
TRAMA tackles the generalization gap in multi-task MARL by enabling agents to infer and exploit trajectory-type information during execution. It constructs a discretized trajectory embedding space via a modified VQ-VAE with a trajectory-class-aware coverage loss, clusters trajectories to identify classes, and learns a trajectory-class-aware policy that conditions actions on the predicted class. A trajectory-class predictor operates on partial observations, while a trajectory-class representation model provides class-conditioned features to the action policy, enabling task-aware decisions across diverse tasks. Empirical results on SMACv2-based multi-task settings and standard benchmarks show that TRAMA improves learning efficiency and task performance, including in out-of-distribution scenarios, by leveraging unsupervised trajectory clustering and trajectory-class conditioning.
Abstract
In the context of multi-agent reinforcement learning, generalization is a challenge to solve various tasks that may require different joint policies or coordination without relying on policies specialized for each task. We refer to this type of problem as a multi-task, and we train agents to be versatile in this multi-task setting through a single training process. To address this challenge, we introduce TRajectory-class-Aware Multi-Agent reinforcement learning (TRAMA). In TRAMA, agents recognize a task type by identifying the class of trajectories they are experiencing through partial observations, and the agents use this trajectory awareness or prediction as additional information for action policy. To this end, we introduce three primary objectives in TRAMA: (a) constructing a quantized latent space to generate trajectory embeddings that reflect key similarities among them; (b) conducting trajectory clustering using these trajectory embeddings; and (c) building a trajectory-class-aware policy. Specifically for (c), we introduce a trajectory-class predictor that performs agent-wise predictions on the trajectory class; and we design a trajectory-class representation model for each trajectory class. Each agent takes actions based on this trajectory-class representation along with its partial observation for task-aware execution. The proposed method is evaluated on various tasks, including multi-task problems built upon StarCraft II. Empirical results show further performance improvements over state-of-the-art baselines.
