# Differentiable Belief-based Opponent Shaping

*Aarav G Sane, Karthik Sivachandran, Rohan Paleja*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154944) · [Open on the map](../papers.html#p154944)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Multi-Agent Strategic Interaction](../pgroup/435.md) · Type: new method · Keywords: belief-based opponent shaping, multi-agent reinforcement learning, hidden-role games, belief dynamics, gradient aggregation

Areas: [AI Agents](../areas/agents.md) › Agent Systems and Interactions › Multi-Agent Reinforcement Learning

## Summary
Differentiable Belief-based Opponent Shaping (D-BOS) introduces a first-order method that shapes opponent behavior by differentiating through belief updates in hidden-role games.

## Explained to a 5-year-old
In a game with many players, you can try to change what other players think. The new idea lets a player learn how to do this by looking at how beliefs update. It works by thinking about how others might believe things after each move. This helps the player act in a way that naturally leads others to cooperate or work together. It works especially well when players have mixed goals.

## Explained to a 5-year-old, longer
In a game where many friends play together, sometimes you want to help them think in a certain way. The new idea is about learning how to change what your friends believe without telling them directly. It looks at how friends update their thoughts after each action, like a puzzle. By understanding these belief changes, the player can choose actions that guide the friends' thoughts. This helps the player get along better and work together more easily. The method works even when there are many observers watching the game. It uses a special way of calculating how beliefs change step by step. The approach does not need to force friends to be nice or mean; it just follows the game's rewards. In hidden-role games, where some players have secret roles, this can be very useful. The biggest improvements happen when players have mixed goals, like some wanting to cooperate and others to compete. By shaping beliefs, the player can naturally steer the group toward better coordination. This makes playing games with many people smoother and more fun.

## For a technical reader
The paper presents a way to influence other agents in multi-agent reinforcement learning by shaping their beliefs rather than their policies. It does this by differentiating through a belief update model that predicts how observers infer the opponent's state after each step. Gradients from multiple observers are aggregated so a single agent can learn a strategy that naturally leads to desired coordination. Experiments on hidden-role games show the approach outperforms standard baselines like PPO and BBM, especially in mixed-motive scenarios. This belief-space formulation provides a flexible, reward-driven method for opponent shaping without hard-coding deceptive or cooperative objectives.

## Problem
In multi-agent reinforcement learning, influencing other agents' beliefs to achieve coordination is challenging because existing opponent shaping methods operate within an opponent's parameter or policy space, and belief manipulation often relies on hard-coded objectives.

## Method
The approach treats each observer's belief as the shaped opponent state and differentiates through k-step softmax-Bayes belief dynamics, aggregating gradients over multiple observers' inferred belief trajectories to guide the agent's policy.

## Results
The approach achieves superior performance compared to PPO and BBM on hidden-role games, especially in mixed-motive settings.

## Contributions
It introduces a belief-space formulation for opponent shaping that differentiates through belief dynamics, enabling natural emergence of strategies from environment rewards and extending to multiple observers.

## Research questions this paper is counted under

- [How can multi-agent reinforcement learning agents effectively coordinate when joint action spaces are huge and exploration is sparse?](../q/10.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154944)
