Learning Optimal "Pigovian Tax" in Sequential Social Dilemmas

Yun Hua, Shang Gao, Wenhao Li, Bo Jin, Xiangfeng Wang, Hongyuan Zha

Abstract

Multi-agent reinforcement learning (MARL) often struggles with sequential social dilemmas where individual incentives conflict with collective welfare. This paper introduces Learning Optimal Pigovian Tax (LOPT), a framework that utilizes a centralized Tax Planner to internalize externalities. By learning to tax negative behaviors and subsidize cooperative ones, LOPT nudges self-interested agents toward optimal social outcomes.

Introduction

In many multi-agent environments, agents acting rationally to maximize their own rewards can lead to suboptimal outcomes for the group, a phenomenon known as the "Tragedy of the Commons." These scenarios are characterized by externalities: the side effects of an agent's actions on others that are not reflected in the agent's local reward signal. For example, in a shared resource environment, one agent's over-consumption provides them a quick gain but depletes the resource for everyone else.

Theoretical Foundation: The Pigovian Tax

The LOPT framework is grounded in the economic concept of the Pigovian tax. In classical economics, a Pigovian tax is applied to activities that generate negative externalities to align private costs with social costs.

Economic intuition of the Pigovian tax, illustrating how taxing marginal damage (MD) aligns private marginal cost (PMC) with social marginal cost (SMC) to eliminate deadweight loss.

As shown in Figure 1, when an activity produces a negative externality, the Social Marginal Cost (SMC) is higher than the Private Marginal Cost (PMC). The difference is the Marginal Damage (MD). By imposing a tax equal to MD, the agent's private cost matches the social cost, shifting the equilibrium from $Q_2$ to the socially optimal $Q_1$ and eliminating the deadweight loss.

The LOPT Framework

LOPT implements this economic theory within a MARL context. The architecture introduces a centralized Tax Planner agent that operates alongside the environment and the primary agents.

The LOPT framework architecture, showing the interaction between agents, the environment, and the centralized Tax Planner that modifies rewards to maximize social welfare.

Mechanism Design

  1. The Tax Planner: This agent observes the global state $s$ and the joint action $a$ of all agents. It does not take actions in the environment but outputs tax and allowance rates (represented as $\theta$ and $\delta$ in the theory, or $F_n$ in the architecture diagram).
  2. Reward Shaping: The planner modifies the extrinsic rewards $r_i$ from the environment. The adjusted reward $\hat{r}_i$ includes a penalty for negative externalities and a subsidy for positive ones.
  3. Social Welfare Optimization: The Tax Planner is trained as an RL agent to maximize the total social welfare ($r_{sw}$), defined as the sum of all agents' rewards.
  4. Internalization: Through this shaped reward, self-interested agents "internalize" the social impact of their actions, leading to emergent cooperation because the social cost has been integrated into their personal reward function.

Experimental Evaluation

The researchers evaluated LOPT in two benchmark Sequential Social Dilemmas:

  • Escape Room (ER): A coordination task where $M$ agents must sacrifice their own reward by standing on levers to allow $N-M$ agents to escape and receive a high reward. Without coordination, agents remain stuck in a low-welfare state.
  • Cleanup: A common-pool resource management game where agents must clean a river (a costly task) to allow apples to grow for harvesting. If everyone is selfish, the river stays dirty and everyone starves.

Key Results and Discussion

LOPT demonstrates significant improvements over baseline methods such as LIO (Learning to Incentivize Others) and MOA (Model of Other Agents).

Higher Social Welfare and Convergence

In the Escape Room scenario ($N=3, M=2$), LOPT consistently reaches the optimal social welfare of 9. Unlike peer-to-peer incentive methods, LOPT's centralized approach provides a stable "government-like" structure that prevents the volatility and betrayals often seen when agents try to reward each other.

Division of Labor

In the Cleanup environment, LOPT naturally fosters a division of labor. The Tax Planner identifies and subsidizes "cleaners," making the socially necessary but personally costly task of cleaning the river profitable for specific agents. This ensures a steady supply of resources for the "harvesters," who are in turn taxed to fund the subsidies, balancing the system's budget.

Scalability

LOPT maintains superior performance as environment complexity and agent populations increase. It successfully scaled from small $7\times7$ maps to larger $18\times25$ maps in Cleanup, outperforming decentralized methods that struggle with coordination in larger state spaces.

Conclusion and Future Work

LOPT successfully bridges economic theory and MARL to solve complex social dilemmas. By treating the Tax Planner as an RL agent, the system finds an equilibrium where individual greed serves the collective good. However, the current model relies on a "God's eye view" of the global state. Future research will focus on decentralizing the Pigovian tax mechanism to remove the requirement for a global observer, making the system more applicable to distributed, real-world scenarios.

Summary updated

BibTeX
@inproceedings{hua2023learning,
  author = {Yun Hua and Shang Gao and Wenhao Li and Bo Jin and Xiangfeng Wang and Hongyuan Zha},
  title = {{Learning Optimal "Pigovian Tax" in Sequential Social Dilemmas}},
  booktitle = {AAMAS},
  year = {2023},
}
Figure