Optimal Economic Policy Design via Two-level Deep Reinforcement Learning
Stephan Zheng et al., 2021
Learn economic behavior and economic policy together.
Agents learn to pursue their own interests. A planner learns rules that improve a chosen social objective.
| Economic agents | Social planner | |
|---|---|---|
| Choose | How to gather, trade, and build | Income tax rates |
| Learn to improve | Own utility from income and effort | A measure of social welfare |
| Respond to | Resources, other agents, and taxes | The economy agents create |
When the planner changes taxes, it changes the incentives the agents are learning under.
Agents collect resources, trade, and build houses. Skill and resource access give them different opportunities.
Early exploration can be costly. The training procedure helps agents keep exploring long enough to learn.
In a one-step economy, each agent chooses labor independently.


The learned policy closely matches the Saez solution in both welfare and tax rates.
Zheng et al. (2021), Figure 3a–b. Five training seeds; error bars show standard error. N.S. = not significant.
Four-agent OpenQuadrant. Separate experiments optimize each welfare objective.


Paper results, Figure 3c–d (four-agent panels). Gains compare with Saez. Ten training seeds; error bars show standard error.
Implementing the AI Economy
World · Worker · Agent · Learning
Market · Tax and welfare · Two-level learning
Change coverage and the seed. Harvest resources, then watch them regrow as time advances automatically.
Select the world to move with the arrow keys. Gather wood and stone, then press B to build on clear ground.
Agents move according to a policy, a probability distribution for taking an action given the observed state. Step through a recorded PPO policy.
Policies evolve through experience to increase return. Watch how 4 versions differ after varying levels of training on episodes of length 120.
CNNs and LSTMs compute action probabilities towards maximizing future reward as well as what that expected future reward would be. PPO compares the estimated and actual reward sequence to improve both networks.
Watch how a market lets workers buy and sell resources to reduce labor costs of crossing the map.
Four workers on the full 25 × 25 map. Compare their learned activities with trading off or on, using the same skills and training budget.
Every 100 steps, workers pay tax on their income. Follow the coin into the government pool and back out as an equal rebate.
Choose two tax policies to watch on the full map. Compare all four on the right: how do production and its distribution change?
Workers adapt as the planner learns taxes. Compare no curriculum with gradual taxes and entropy in recorded episodes.