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

Planning with Quantized Opponent Models

XiaoPeng Yu, Kefan Su, Zongqing LuNeurIPS 2025

Quantized Opponent Models (QOM) bridge the gap between expressive opponent modeling and tractable real-time planning. By compressing a vast space of opponent behaviors into a discrete "catalog" of latent types using a quantized autoencoder, the framework enables efficient Bayesian belief tracking and high-performance Monte-Carlo planning even under tight computational budgets.

The Challenge of Opponent Modeling

In multi-agent systems, an agent's success often depends on its ability to "read" its opponents. However, planning under this uncertainty is notoriously difficult.

Traditional type-based methods rely on manually defined behavior classes (e.g., "aggressive" vs. "passive"), which are hard to design and fail to scale to complex games. Conversely, model-free reinforcement learning can adapt to opponents but is often sample-inefficient and lacks a principled way to handle uncertainty.

The biggest technical hurdle is the "branching factor explosion" in search algorithms like Monte-Carlo Tree Search (MCTS). If an agent has to consider every possible move for every possible version of an opponent at every node in a search tree, the computation becomes impossible for real-time applications. QOM aims to make this belief-aware planning both expressive and computationally tractable.

The QOM Framework

The QOM framework operates in two distinct phases: Offline Preparation and Online Planning.

Overview of the QOM framework showing the transition from offline type discovery to online belief-aware planning.

1. Offline: Discovering the "Catalog"

Instead of relying on human-defined types, QOM uses a Vector Quantized-Variational Autoencoder (VQ-VAE). It takes a large library of opponent trajectories and compresses them into a finite set of $K$ latent "types" (codebook vectors). This turns an infinite policy space into a manageable, discrete catalog. Simultaneously, the system builds a payoff matrix that records how different agent policies perform against these discovered latent types.

2. Online: Bayesian Inference & Planning

During a live game, the agent maintains a Bayesian belief (a probability distribution) over which of the $K$ types the current opponent matches.

  • Belief Tracking: As the opponent acts, the agent uses the pre-trained decoder to efficiently update its belief.
  • Meta-Policy: The agent constructs a "soft best-response" meta-policy by mixing its own candidate policies based on the current belief.
  • Search Integration: This meta-policy serves as a dynamic prior for a variant of MCTS (specifically PUCT). Crucially, the belief is updated inside the search tree rollouts, allowing the agent to "plan to learn" about its opponent.

Key Insights

  • Quantization as a Regularizer: By forcing opponent behaviors into discrete "bins," the model avoids the complexity of continuous latent spaces while remaining more flexible than manual labels. This discretization is the "secret sauce" that makes Bayesian updates fast enough for real-time search.
  • Synergy of Inference and Planning: In QOM, planning and inference reinforce each other. Every rollout in the MCTS samples opponent actions from the current posterior and refines that posterior along the simulated path.
  • Amortized Likelihood: Using a pre-trained decoder to compute action likelihoods allows the agent to update its belief at every step without expensive re-training or complex particle filtering.

Experimental Results

The authors evaluated QOM across four diverse multi-agent environments, ranging from grid-worlds to high-dimensional continuous control: Pursuit-Evasion, Predator-Prey, Running-with-Scissors (RWS), and One-on-One Football.

Performance comparison showing QOM achieving higher mean returns across various search time budgets.

QOM consistently outperformed state-of-the-art baselines like POTMMCP and MBOM across all tested environments.

  • Efficiency at Low Budgets: QOM is particularly effective when computation time is limited. Because the latent types are compact, the agent reaches high performance much faster than methods relying on raw policy libraries or complex filtering.
  • Adaptability: In experiments where opponents abruptly switched strategies mid-game, QOM's Bayesian mechanism detected the shift and reallocated planning effort more rapidly than baselines.
  • Generalization: Even when faced with "unseen" opponent policies (those not in the original training library), QOM performed robustly by mapping them to the nearest known types in the latent space.

Limitations and Future Directions

While powerful, QOM currently relies on a pre-defined library of policies to discover types. If an opponent uses a strategy completely unlike anything seen offline, performance may degrade. Additionally, the model assumes the opponent's "type" doesn't change too wildly within a single planning horizon.

Future work could explore continual type discovery—learning new types on-the-fly—and applying the framework to hierarchical settings where opponents might have nested goals.

Summary updated

BibTeX
@inproceedings{yu2025planning,
  author = {XiaoPeng Yu and Kefan Su and Zongqing Lu},
  title = {{Planning with Quantized Opponent Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=LamTzqRHvL},
}
Figure