Abstract
Multi-agent imitation learning (MAIL) often struggles with training instability and compounding errors. We present SS-MAIL, a framework that introduces a self-supervised regression loss for the discriminator and a "Trajectory Forcing" curriculum. By transforming the binary classification task of the discriminator into a continuous regression task, SS-MAIL creates a dense "funnel" reward landscape that guides agents toward expert behavior even from distant states. Experiments on synthetic and real-world datasets demonstrate superior stability, robustness to noise, and the ability to capture multi-modal behaviors.
The Challenge: Compounding Errors and Sparse Rewards
Imitation Learning (IL) aims to teach agents to perform tasks by observing expert demonstrations. However, current approaches face significant hurdles in multi-agent environments:
- Behavioral Cloning (BC): While simple, BC suffers from compounding errors. Small deviations from the expert path lead the agent into unfamiliar states where it cannot recover. Additionally, BC often fails to capture multi-modal behaviors, frequently "averaging" distinct expert paths (e.g., trying to drive through a wall between two lanes).
- Adversarial Imitation Learning (AIL): Methods like GAIL use a discriminator to distinguish expert from agent behavior. While better at handling distribution shifts, AIL is notoriously unstable. The binary discriminator often provides "sparse" rewards—it signals that the agent is failing but offers no clear gradient or "path" toward improvement.
SS-MAIL addresses these issues by creating a denser reward landscape and a more stable training curriculum.
The SS-MAIL Framework
The authors introduce three core components to stabilize multi-agent learning:
SS-AIL: From Binary to Continuous Rewards
Instead of a binary discriminator (Expert vs. Agent), SS-MAIL uses a self-supervised regression approach. The system creates "interpolated" trajectories by taking a weighted average of the agent's path and the expert's path (parameterized by $\alpha$). The discriminator is then trained to predict this $\alpha$ value.
This transforms the reward landscape from a flat plateau with a sharp drop-off into a smooth "funnel." This funnel provides a continuous gradient that pulls the agent toward the expert trajectory from much further away in the state space.
Trajectory Forcing Curriculum
To further stabilize training, SS-MAIL employs a novel curriculum-learning technique called Trajectory Forcing. In the early stages of training, the model is only required to predict very short sequences. As training progresses, the length of the generated trajectory increases exponentially. This prevents the agent from being overwhelmed by compounding errors early on and significantly improves sample efficiency.
Graph-Based Architecture
The policy utilizes a Graph Encoder to infer latent interaction graphs between agents and a Graph Soft Actor-Critic (G-SAC) to learn a centralized policy. This allows the model to capture complex, non-linear dependencies between multiple agents.
Key Insights and Results
The "Funnel" Reward and Negative Alpha
The authors found that sampling "negative $\alpha$" values—trajectories that move away from the expert—is crucial. This helps the discriminator learn what a "bad" direction looks like, completing the vector field around the expert's path and preventing the agent from drifting.
Robustness and Multi-Modality
- Y-Junction Task: In a synthetic environment where agents must choose between two forks, SS-MAIL successfully "picked a side," whereas BC-based methods attempted to drive between the lanes. SS-MAIL also showed superior convergence compared to GAIL and WAIL, which suffered from massive fluctuations.
- Noisy Mocap: On real-world motion capture data with added Gaussian noise, SS-MAIL demonstrated a much slower increase in compounding errors over time. While baseline models drifted further from the path as trajectories lengthened, SS-MAIL's error slope actually decreased.
Conclusion
SS-MAIL provides a robust framework for multi-agent imitation learning by replacing sparse binary rewards with a dense, self-supervised regression signal. Combined with Trajectory Forcing, this approach mitigates the instability of adversarial methods and the compounding errors of behavioral cloning. Future work will explore the scalability of this graph-based architecture to "swarm" scenarios involving dozens or hundreds of agents.
Summary updated