NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Auto-Encoding Bayesian Inverse Games

Xinjie Liu, Lasse Peters, Javier Alonso-Mora, ufuk topcu, David Fridovich-Keil

TL;DR

When robots interact with humans, knowing others' hidden intents (like intended destinations or preferred speeds) is critical, but existing inverse game solvers rely on point estimates that struggle with ambiguity and risk collisions. This paper introduces a structured Variational Autoencoder (VAE) that embeds a differentiable dynamic game solver directly into its decoder pipeline. This allows the model to learn multimodal prior and posterior distributions over unknown game parameters from unlabeled interaction data, delivering uncertainty-aware Bayesian inference in real time without solving games at runtime.

What Problem Does This Paper Address?

In dynamic, interactive environments—such as autonomous driving through an intersection—an agent's decisions directly couple with those of others. Dynamic noncooperative game theory naturally models these interactions as Generalized Nash Equilibrium Problems (GNEPs). However, in practice, a robot lacks full information about other participants' private objectives (e.g., whether an oncoming vehicle plans to turn left or continue straight).

While inverse dynamic games attempt to infer these missing parameters from observed trajectory data, standard Maximum Likelihood Estimation (MLE) methods only return a single point estimate. When observations are ambiguous or uninformative (e.g., before an oncoming vehicle begins turning), MLE can produce overconfident, incorrect estimates that cause catastrophic planning failures. Existing Bayesian alternatives (like particle filters or unscented Kalman filters) are computationally prohibitive—demanding numerous game solves per time step—or limited to simple unimodal distributions.

Methods

The authors propose Auto-Encoding Bayesian Inverse Games, framing parameter estimation as amortized variational inference within a structured VAE:

  • Structured Decoder with an Embedded Game Solver: Unlike standard VAEs where decoders are arbitrary neural networks, here the decoder factors through the game itself: $$\text{Latent } z \xrightarrow{d_\phi} \text{Game parameters } \theta \xrightarrow{T_\Gamma} \text{Equilibrium trajectory } \tau^* \to \text{Observation likelihood } p(y|\tau^*)$$ The neural network $d_\phi$ maps an isotropic Gaussian latent variable $z \sim \mathcal{N}(0, I)$ to interpretable game parameters $\theta$, which are then passed to a forward game solver $T_\Gamma$.

  • End-to-End Training via Implicit Differentiation: To optimize the evidence lower bound (ELBO), gradients must flow through the game solver. The authors backpropagate through the solver (the PATH solver for mixed complementarity problems) using implicit differentiation.

  • Game-Free Runtime Sampling: During deployment, to sample from the posterior $p_\phi(\theta \mid y)$, the system only evaluates the encoder $e_\psi(y)$ to obtain $q_\psi(z \mid y)$, draws latent samples $z$, and passes them through the decoder network $d_\phi(z)$. Generating 1,000 belief samples takes only $\sim 7\text{ ms}$ because no game needs to be solved at runtime for inference.
  • Integration with Downstream Motion Planners: Inferred posterior samples are clustered and fed into a multi-hypothesis contingency game solver (planning in expectation, B-PinE) or used to extract a Maximum A Posteriori estimate (B-MAP).

Datasets

The approach is evaluated on simulated multi-agent driving scenarios created with kinematic bicycle and double-integrator dynamics:

  • Two-Player Intersection Dataset: 560 closed-loop interaction rollouts sliced into 34,600 15-step trajectory snippets. Opponent goal locations are drawn from a 2D bimodal Gaussian mixture (turning left vs. going straight).
  • Two-Player Highway Dataset: 20,000 15-step velocity observation trajectories where human desired speed is drawn from a bimodal distribution with peaks at 30% and 70% of maximum velocity ($20\text{ m/s}$).
  • Four-Player Intersection Setup: A qualitative multi-agent scenario scaling the model to infer goals for three independent human drivers simultaneously.

Key Insights and Ideas

  • Games as Inductive Biases in Representation Learning: Forcing the latent space to map through an explicit forward game solver forces $d_\phi(z)$ to output true game parameters (e.g., target destinations), enabling unsupervised discovery of human intent from raw trajectories.
  • Amortization Solves the Online Bottleneck: Conventional Bayesian inverse game methods repeatedly solve optimization problems online to maintain beliefs. Moving the game solver entirely to offline training allows the robot to infer continuous, multimodal posteriors at $\sim 150\text{ Hz}$.
  • Handling Unobservable States Gracefully: When a vehicle's intent is obscured (e.g., stuck behind a slower car on a highway), the posterior naturally widens and falls back to the learned multimodal prior rather than latching onto an arbitrary point estimate.

Key Results

  • Drastic Reduction in Collisions: In a 1,500-trial Monte Carlo evaluation of the intersection scenario where the human turns left across the robot's path (Setting S1):
  • B-PinE (Ours): 0.0% collision rate.
  • B-MAP (Ours): 0.78% collision rate.
  • Randomly-initialized MLE (R-MLE): 17.05% collision rate.
  • Bayesian-prior-initialized MLE (BP-MLE): 16.28% collision rate.
  • Static Prior baseline (St-BP): 17.83% collision rate.
  • Maintained Efficiency: The safety gains did not come at the expense of deadlock; robot costs remained comparable to ground-truth oracle planning.
  • Speed: Generating 1,000 posterior samples takes $\approx 7\text{ ms}$, enabling online belief updates at $\sim 150\text{ Hz}$ in multi-agent settings.

Limitations and Future Work

  • Deterministic Decoder Assumption: The mapping from latent variable $z$ to game parameters $\theta$ is modeled as deterministic ($p_\phi(\theta \mid z) = \delta(\theta - d_\phi(z))$). Extending to stochastic decoders (hierarchical VAEs or diffusion models) could improve fidelity.
  • Passive Inference: The planner acts under uncertainty but does not actively probe or "nudge" other agents to elicit revealing actions (active information gathering / dual control).
  • Game Model Fidelity: The framework assumes the underlying forward game structure (cost function structure and constraints) is known up to parameter vector $\theta$, and limits opponents to open-loop generalized Nash equilibria rather than full feedback or bounded-rationality models.

Summary updated

BibTeX
@inproceedings{liu2024auto,
  author = {Xinjie Liu and Lasse Peters and Javier Alonso-Mora and ufuk topcu and David Fridovich-Keil},
  title = {{Auto-Encoding Bayesian Inverse Games}},
  booktitle = {The 16th International Workshop on the Algorithmic Foundations of Robotics (WAFR)},
  year = {2024},
  url = {https://openreview.net/forum?id=0QjbMfjbES},
}
Figure