Imitation Learning of Factored Multi-agent Reactive Models

Tuan Anh LearXiv 2019 · arXiv

TL;DR

This paper introduces a novel approach to imitation learning for multi-agent systems, specifically focusing on learning reactive models for individual agents. By leveraging variational recurrent neural networks (VRNNs) with perceptual inputs, the authors achieve more realistic and better-calibrated uncertainty estimates for agent behavior compared to existing methods, demonstrated on fruit fly interactions.

What Problem Does This Paper Address?

Imitation learning aims to replicate observed behavior without explicit reward functions, which is crucial for tasks like simulating animal movements or training AI agents in complex environments. A key challenge in this field, especially for multi-agent systems, is accurately modeling the stochastic and reactive nature of individual agents. Traditional methods often rely on deterministic models or require complex coordination mechanisms, failing to capture the nuanced, probabilistic decision-making of biological agents. Furthermore, accurately estimating uncertainty in future behavior is vital for downstream applications like safety-critical decision-making or building robust simulators.

Methods

The core of this work is the application of Variational Recurrent Neural Networks (VRNNs), a type of deep generative model, to imitation learning. Unlike standard RNNs, VRNNs incorporate latent variables that allow for stochastic transitions and memory. The authors adapt VRNNs to a multi-agent setting by feeding perceptual inputs directly into the model for each agent, allowing them to learn reactive policies based on their immediate surroundings and internal states. This "VRNN with perceptual inputs" (VRNN-PI) approach learns stochastic policies, which are more biologically plausible than deterministic ones. The model jointly learns a generative component (predicting actions) and an inference network (estimating latent states), enabling efficient learning from observational data. They explore different variants of VRNN-PI, including those with discrete, continuous, or mixed latent states, to find the optimal configuration.

Datasets

The primary dataset used is the Fly-vs-Fly dataset, which contains annotated tracks of fruit flies interacting in a 2D environment. This dataset was previously used by Eyjolfsdottir et al. (2016) for similar imitation learning tasks. The authors use male-to-male interactions from this dataset, cleaning it into sequences of vectors representing actions and sensory inputs.

Key Insights and Ideas

  • Ego-centric, Reactive Modeling is Key: Learning policies based on an agent's direct perceptual input, rather than a global "god's eye view," leads to more realistic and biologically plausible behavior.
  • Stochasticity Matters: Biological agents are inherently stochastic. Using generative models like VRNNs that naturally produce probabilistic outputs is crucial for accurately capturing their behavior, especially compared to deterministic RNNs.
  • Uncertainty Estimates are Valuable: The calibrated uncertainty estimates provided by the VRNN-PI model are not just a byproduct but a useful feature for downstream tasks, enabling more robust decision-making and simulation.
  • Discrete Latents Boost Performance: Surprisingly, incorporating discrete latent variables significantly improved performance, even when combined with continuous latents, suggesting that discrete representations might be more effective for certain aspects of animal behavior modeling.

Key Results

The VRNN-PI models, particularly the Mixture VRNN-PI (combining discrete and continuous latents), demonstrated superior performance compared to a baseline stochastic RNN.

  • Qualitative: The VRNN-PI variants produced more realistic trajectories, capturing the alternating fast/slow movements and abrupt direction changes characteristic of real flies, unlike the more uniform and circular movements of the RNN.
  • Quantitative: Histograms of feature distributions (e.g., wing angles, body axes) from the Mixture VRNN-PI closely matched the ground truth distributions, with less noise than the RNN. The paper also highlights that the Mixture VRNN-PI provided the least noisy and most accurate uncertainty estimates over future trajectories.

Limitations and Future Work

  • Limitations: The authors acknowledge that while their model captures many aspects of fly behavior, the quality of predictions deteriorates over time, leading to more spread-out distributions compared to the ground truth. They also note that the continuous VRNN-PI variant could be too erratic.
  • Future Work: The authors suggest exploring joint modeling of actions and observations, incorporating more powerful inference networks (like normalizing flows), and improving representation learning of interpretable latents. They also propose investigating more advanced recurrent architectures, such as differentiable neural computers (DNCs) or neural Turing machines (NTMs), to capture longer-range temporal dependencies. The finding that discrete latents improve performance warrants further investigation into variance reduction methods for discrete variables.

Summary updated

Abstract

We apply recent advances in deep generative modeling to the task of imitation learning from biological agents. Specifically, we apply variations of the variational recurrent neural network model to a multi-agent setting where we learn policies of individual uncoordinated agents acting based on their perceptual inputs and their hidden belief state. We learn stochastic policies for these agents directly from observational data, without constructing a reward function. An inference network learned jointly with the policy allows for efficient inference over the agent's belief state given a sequence of its current perceptual inputs and the prior actions it performed, which lets us extrapolate observed sequences of behavior into the future while maintaining uncertainty estimates over future trajectories. We test our approach on a dataset of flies interacting in a 2D environment, where we demonstrate better predictive performance than existing approaches which learn deterministic policies with recurrent neural networks. We further show that the uncertainty estimates over future trajectories we obtain are well calibrated, which makes them useful for a variety of downstream processing tasks.
BibTeX
@misc{le2019imitation,
  author = {Tuan Anh Le},
  title = {{Imitation Learning of Factored Multi-agent Reactive Models}},
  year = {2019},
  eprint = {1903.04714},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.04714},
}
Figure