MAAIP: Multi-Agent Adversarial Interaction Priors for imitation from fighting demonstrations for physics-based characters

Mohamed Younes, Ewa Kijak, Richard Kulpa, Simon Malinowski, Franck Multon

Abstract

This paper presents Multi-Agent Adversarial Interaction Priors (MAAIP), a framework designed to enable physics-based characters to learn complex, stylized fighting interactions from unstructured motion capture data. By decoupling individual motion quality from interactive behavior through a dual-discriminator approach—comprising a Single Motion Prior and an Interaction Prior—the system allows agents to simulate realistic combat scenarios such as boxing and QwanKiDo. Our results demonstrate that agents can inherit the idiosyncratic styles of demonstrators and respond reactively to opponents without manually defined reward functions, while remaining controllable via auxiliary task-specific rewards.

1. Introduction

The synthesis of realistic movement for physics-based characters remains a cornerstone of computer animation, particularly for interactive applications like video games and virtual reality. While single-agent imitation learning has seen significant progress, extending these techniques to multi-agent interactions—where characters must react dynamically to one another—presents a substantial challenge. Traditional methods often rely on labor-intensive, manually designed reward functions that fail to capture the nuance, timing, and "flair" of human martial arts. This work introduces MAAIP to bridge the gap between individual motion fidelity and interactive realism.

2. Problem Statement

Combat is a high-stakes "dance" requiring precise distance management, timing, and reactive maneuvers like parrying or dodging. Hard-coding these behaviors is brittle and often results in robotic movements. Conversely, training agents in a vacuum leads to a lack of interpersonal coordination. The primary objective is to develop a system that can learn both the "vocabulary" of individual moves and the "grammar" of interaction from limited, unstructured demonstration data, where specific actions (e.g., "punch," "block") are not explicitly labeled.

3. Methodology

The MAAIP framework extends Multi-Agent Generative Adversarial Imitation Learning (MAGAIL) by introducing two distinct learned reward functions, or "priors":

3.1 Single Motion Prior ($D^M$)

The Single Motion Prior is a discriminator trained on a large dataset of individual actor movements. Its role is to evaluate the "naturalness" of an agent's pose and velocity transitions, ensuring the character adheres to human-like movement patterns and avoids physically implausible artifacts.

3.2 Interaction Prior ($D^I$)

The core innovation of this work is the Interaction Prior. Trained on a smaller dataset of two-actor interactions, this discriminator focuses on the joint state transitions between the agent and its opponent. By analyzing the statistical distribution of how real humans react to one another, $D^I$ provides the reward signal necessary for agents to learn reactive behaviors like maintaining distance or timing a counter-attack.

3.3 Training and Execution

The system utilizes Multi-Agent Proximal Policy Optimization (MAPPO) within a Centralized Training and Decentralized Execution (CTDE) paradigm. During training, the value function has access to the full global state. However, during simulation, each agent operates based only on its local observations and a simplified set of opponent features (e.g., relative position and velocity), ensuring the model is applicable to real-time interactive environments.

4. Datasets and Experimental Setup

The framework was evaluated using two distinct datasets:

  • Boxing: Focused on upper-body dynamics, including jabs, hooks, and slips. This utilized 15 minutes of single-actor data and 3 minutes of interaction data.
  • QwanKiDo: A complex Sino-Vietnamese martial art involving full-body movements, kicks, and sweeps. This utilized 10 minutes of single-actor data and 3 minutes of interaction data. Notably, these datasets are unstructured, requiring the agents to autonomously discover the underlying patterns of combat without manual annotation.

5. Key Results

5.1 Qualitative Realism and Style

Agents trained with MAAIP exhibited high levels of agility and the ability to identify "openings" in an opponent's defense. Furthermore, the agents inherited the specific stylistic idiosyncrasies of the original MoCap participants, preserving the "flair" of the source demonstrations.

5.2 Quantitative Control and Task Integration

The framework allows for the integration of auxiliary rewards to guide behavior. When a "damage minimization" reward (based on contact forces) was introduced, agents became significantly more defensive. In the QwanKiDo scenario, mean contact force dropped from 4038N to 123N. Additionally, agents successfully performed navigation tasks—such as moving toward a target heading—while simultaneously engaged in combat. The Single Motion Prior proved essential for maintaining natural footwork during these multi-objective scenarios.

6. Discussion and Limitations

While MAAIP represents a significant step forward, several challenges remain. The system is susceptible to "mode collapse," where agents may over-rely on a single effective move. Additionally, the current architecture excels at short-term reactive "reflexes" but lacks the capacity for long-term strategic planning. Future work will explore scaling the framework to group interactions and incorporating higher-fidelity physical impact data, as the current training data relies on "shadow combat" for safety.

7. Conclusion

MAAIP demonstrates that by combining individual motion vocabularies with interaction-focused priors, physics-based characters can learn to fight with both realism and style. This approach reduces the need for manual reward engineering and opens new possibilities for creating dynamic, lifelike agents in interactive media.

Summary updated

BibTeX
@article{younes2023maaip,
  author = {Mohamed Younes and Ewa Kijak and Richard Kulpa and Simon Malinowski and Franck Multon},
  title = {{MAAIP: Multi-Agent Adversarial Interaction Priors for imitation from fighting demonstrations for physics-based characters}},
  journal = {Proc. ACM Comput. Graph. Interact. Tech.},
  year = {2023},
  doi = {10.1145/3606926},
}
Figure