LOPT: Learning Optimal Pigovian Tax in Sequential Social Dilemmas

Yun Hua, Shang Gao, Wenhao Li, Haosheng Chen, Bo Jin, Xiangfeng Wang, Jun Luo, Hongyuan Zha

TL;DR

LOPT introduces economic externality theory to multi-agent reinforcement learning (MARL) to numerically quantify and mitigate social dilemmas. By training a centralized "tax planner" to dynamically tax socially harmful behaviors and subsidize beneficial ones, LOPT successfully aligns individual agent incentives with collective social welfare.

What Problem Does This Paper Address?

In mixed-motive multi-agent reinforcement learning (MARL) environments, self-interested agents independently maximizing their own rewards often create "social dilemmas." A classic example is the tragedy of the commons: what is individually rational leads to collectively suboptimal, or even catastrophic, outcomes.

Traditional MARL approaches either force a shared team reward (which scales poorly and ignores individual autonomy) or rely on decentralized learning (where agents frequently fail to coordinate). The core challenge is accurately quantifying how an individual agent's actions impact the group. Without a rigorous, numerical way to represent these societal impacts, it is incredibly difficult to design reward mechanisms that guide self-interested agents toward sustainable cooperation.

Methods

The authors propose Learning Optimal Pigovian Tax (LOPT), a framework deeply rooted in welfare economics.

  1. Quantifying Externalities: In economics, an externality is an unaccounted-for impact of one actor's actions on others (e.g., pollution). LOPT formalizes this in MARL by defining an agent's externality as the difference between the optimal joint social welfare and the welfare achieved when that specific agent deviates from the optimal policy.
  2. The Tax Planner: LOPT introduces a centralized reinforcement learning agent called the Tax Planner. Rather than controlling the agents directly, the planner observes the global state and joint actions, then outputs dynamic tax rates ($\theta$) and allowance/subsidy rates ($\delta$) for each agent.
  3. Reward Shaping via Internalization: Agents receive a modified reward. If an agent's action causes a negative externality, it is taxed; if it creates a positive externality, it is subsidized. To maintain a balanced budget, taxes are collected into a virtual "bank" and redistributed as allowances.
Figure 3: The Architecture of the LOPT. The centralized agent Tax planner allocate the Pigovian tax/allowance within a functional percentage formulation. Reward shaping is established based on the Pigovian tax/allowance to alleviate the social dilemmas.

Crucially, the authors provide theoretical proofs showing that training a centralized planner to maximize total social welfare is mathematically equivalent to approximating the theoretically optimal Pigovian tax.

Datasets

LOPT was evaluated on two standard MARL social dilemma benchmarks:

  • Escape Room (ER): A discrete environment where agents must cooperate to let others escape a room. However, the agents who pull the necessary levers receive a penalty, creating a strong incentive to defect and wait by the door.
  • Cleanup: A complex, visual grid-world environment. Agents get rewards by harvesting apples, but apples only spawn if agents spend time cleaning a river of waste. Cleaning waste provides no direct individual reward, creating a classic public goods dilemma. The authors tested this on $7 \times 7$, $10 \times 10$, and a highly challenging $18 \times 25$ map with 5 agents.

Key Insights and Ideas

  • Implicit Optimization: The most elegant finding (Theorem 2) is that the tax planner does not need to explicitly calculate complex, counterfactual externalities for every agent at every step. Simply training the planner to maximize global social welfare implicitly derives the optimal Pigovian tax structure.
  • Emergence of Labor Specialization: In the 5-agent Cleanup environment, LOPT naturally drives the emergence of a sophisticated division of labor. The tax planner automatically balances the ecosystem by heavily taxing full-time "harvesters" and using those funds to subsidize full-time "cleaners" and part-timers.
  • Mitigating Betrayal: Unlike previous incentive-learning methods (like LIO) that suffer from high variance and cyclical "betrayals" (where agents temporarily cooperate and then defect), LOPT's economically grounded framework provides a highly stable learning process.

Key Results

  • Escape Room: LOPT rapidly converged to the absolute optimal social welfare (scores of 8 for 2 agents, 9 for 3 agents). It consistently solved the dilemma in a single step without any agent betrayals, outperforming baselines like standard Policy Gradient and LIO.
Figure 2: Pigovian Tax/Allowance for Prisoner’s Dilemma.
  • Cleanup: LOPT achieved near-optimal social welfare across all map configurations. On the large $18 \times 25$ map with 5 agents, LOPT achieved a social welfare score of ~1400, vastly outperforming state-of-the-art baselines like PPO, SCM, and MOA, which struggled to maintain the delicate balance between environmental cleanup and harvesting.

Limitations and Future Work

The primary limitation of LOPT is its centralized architecture. The Tax Planner requires global observations of the environment state and the joint actions of all agents to compute the correct tax and allowance rates. This centralized bottleneck restricts the algorithm's scalability to massive, open-world environments with thousands of uncoordinated agents.

For future work, the authors aim to develop a decentralized Pigovian tax/allowance mechanism that can learn effective reward-shaping policies locally, thereby reducing computational complexity and eliminating the need for a centralized authority.

Summary updated

Abstract

In multi-agent reinforcement learning, each agent acts to maximize its individual accumulated rewards. Nevertheless, individual accumulated rewards could not fully reflect how others perceive them, resulting in selfish behaviors that undermine global performance. The externality theory, defined as ``the activities of one economic actor affect the activities of another in ways that are not reflected in market transactions,'' is applicable to analyze the social dilemmas in MARL. One of its most profound non-market solutions, ``Pigovian Tax'', which internalizes externalities by taxing those who create negative externalities and subsidizing those who create positive externalities, could aid in developing a mechanism to resolve MARL's social dilemmas. The purpose of this paper is to apply externality theory to analyze social dilemmas in MARL. To internalize the externalities in MARL, the \textbf{L}earning \textbf{O}ptimal \textbf{P}igovian \textbf{T}ax method (LOPT), is proposed, where an additional agent is introduced to learn the tax/allowance allocation policy so as to approximate the optimal ``Pigovian Tax'' which accurately reflects the externalities for all agents. Furthermore, a reward shaping mechanism based on the approximated optimal ``Pigovian Tax'' is applied to reduce the social cost of each agent and tries to alleviate the social dilemmas. Compared with existing state-of-the-art methods, the proposed LOPT leads to higher collective social welfare in both the Escape Room and the Cleanup environments, which shows the superiority of our method in solving social dilemmas.
BibTeX
@inproceedings{hua2023lopt,
  author = {Yun Hua and Shang Gao and Wenhao Li and Haosheng Chen and Bo Jin and Xiangfeng Wang and Jun Luo and Hongyuan Zha},
  title = {{LOPT: Learning Optimal Pigovian Tax in Sequential Social Dilemmas}},
  booktitle = {AAMAS},
  year = {2023},
}
Figure