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

Introduction

In the realm of Multi-Agent Reinforcement Learning (MARL), autonomous agents independently optimizing their individual objectives often encounter social dilemmas. These are situations where rational, self-interested behavior leads to collectively disastrous outcomes—a phenomenon famously illustrated by the "Tragedy of the Commons." If every agent greedily harvests a shared resource without maintaining it, the resource eventually depletes, and everyone loses.

The fundamental challenge in addressing these dilemmas lies in the fact that an agent’s local reward function rarely accounts for its impact on others. In economics, these unaccounted-for impacts are known as externalities. A negative externality, such as pollution, harms others while saving the polluter money. Conversely, a positive externality benefits others at the agent's own expense.

Economic concept of externalities and Pigovian tax

Existing MARL solutions often rely on handcrafted reward shaping or peer-to-peer incentivization protocols. However, these approaches frequently lack a rigorous theoretical foundation for determining exactly how much an agent should be rewarded or penalized to achieve a socially optimal outcome.

The LOPT Framework

To bridge this gap, researchers propose LOPT (Learning Optimal Pigovian Tax), a novel method drawing directly from the economic theory of Pigovian taxes. Traditionally, a Pigovian tax is levied on market activities that generate negative externalities, set equal to the social cost of those externalities to correct inefficient market outcomes.

LOPT introduces a two-tier learning structure to internalize these externalities within MARL:

  1. The Tax Planner: A centralized reinforcement learning agent that observes the global state and the joint actions of all agents. Its objective is to maximize Social Welfare (the sum of all agents' rewards). The planner's "actions" consist of applying tax and allowance rates to each agent.
  2. The Agents: Independent learners who receive a modified reward signal. Their new reward is their original environmental reward minus taxes for negative impacts, plus allowances for positive contributions.
LOPT System Architecture

Unlike previous methods that rely on fixed or heuristic-based incentives, LOPT mathematically proves that a centralized planner maximizing social welfare will implicitly approximate the optimal Pigovian tax. This learning process is qualitatively equivalent to internalizing the true value of externalities, aligning individual self-interest with the greater good of the group.

Experimental Environments

LOPT was evaluated on two classic MARL benchmarks designed to trigger social dilemmas:

  • Escape Room: A scenario where $N$ agents must cooperate to allow $M$ agents to exit. Pulling a door-opening lever incurs a personal cost, while exiting provides a high reward. Selfish agents will wait by the door, leading to a stalemate.
  • Cleanup: A grid-world "Tragedy of the Commons." Agents are rewarded for eating apples, which only grow if an aquifer is kept clean. Cleaning provides no direct reward and detracts from harvesting time. If everyone harvests and no one cleans, apple production ceases.

Key Insights and Results

  • Internalizing the "Invisible" Impact: LOPT treats the social dilemma as a measurement problem. By using the Tax Planner to quantify how much an agent's action deviates from the socially optimal joint action, it creates a numerical bridge between individual and collective goals.
  • Emergent Labor Specialization: In the Cleanup environment, LOPT naturally induces role specialization. Because the system subsidizes cleaning and taxes harvesting, some agents become full-time cleaners while others harvest. The harvesters' taxes effectively fund the cleaners, making historically "unselfish" behavior personally profitable.
  • Stability Over Betrayal: In Escape Room, baseline algorithms often exhibit high variance because agents learn to "betray" each other after initial cooperation. LOPT demonstrates significantly more stable convergence; the dynamic tax structure makes betrayal economically irrational.
  • Superior Performance and Scalability: Across both environments, LOPT consistently achieved higher total social welfare than state-of-the-art baselines like LIO (Learning to Incentivize Others) and MOA (Model of Other Agents). Furthermore, LOPT scaled effectively to larger environments (e.g., an $18 \times 25$ Cleanup map with 5 agents), maintaining high resource production where other methods collapsed.

Limitations and Future Directions

While LOPT presents a robust theoretical and empirical step forward, it has limitations. Currently, the Tax Planner acts as a centralized entity requiring global observations of all states and actions, which is often unrealistic in massive, decentralized real-world systems. Future work should explore decentralized tax and allowance mechanisms.

Additionally, training an auxiliary planner agent introduces computational overhead. Finally, exploring "budget-balanced" systems—where the total tax collected exactly equals the total allowances paid—remains a fascinating direction for ensuring long-term economic stability in multi-agent ecosystems.

Summary updated

Abstract

Multi-agent reinforcement learning (MARL) has emerged as a powerful framework for modeling autonomous agents that independently optimize their individual objectives. However, in mixed-motive MARL environments, rational self-interested behaviors often lead to collectively suboptimal outcomes situations commonly referred to as social dilemmas. A key challenge in addressing social dilemmas lies in accurately quantifying and representing them in a numerical form that captures how self-interested agent behaviors impact social welfare. To address this challenge, \textit{externalities} in the economic concept is adopted and extended to denote the unaccounted-for impact of one agent's actions on others, as a means to rigorously quantify social dilemmas. Based on this measurement, a novel method, \textbf{L}earning \textbf{O}ptimal \textbf{P}igovian \textbf{T}ax (\textbf{LOPT}) is proposed. Inspired by Pigovian taxes, which are designed to internalize externalities by imposing cost on negative societal impacts, LOPT employs an auxiliary tax agent that learns an optimal Pigovian tax policy to reshape individual rewards aligned with social welfare, thereby promoting agent coordination and mitigating social dilemmas. We support LOPT with theoretical analysis and validate it on standard MARL benchmarks, including Escape Room and Cleanup. Results show that by effectively internalizing externalities that quantify social dilemmas, LOPT aligns individual objectives with collective goals, significantly improving social welfare over state-of-the-art baselines.
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