Toronto Researchers Use Nash-DQN to Solve Carbon Credit Markets
Researchers applied Nash-DQN to Canada's greenhouse gas offset credit market, showing regulated firms can substantially cut compliance costs by playing the equilibrium strategy.
ProTakeaways
- Nash-DQN applied to Canada's GHG offset credit market to approximate finite-agent Nash equilibria.
- Each agent chooses a trade rate and a probability of investing in offset-generating projects.
- Advantage function is locally quadratic with Cholesky-parameterised curvature, giving a closed-form Nash action.
- Four-agent experiment: 36% of excess emissions offset via generation, all firms beat the do-nothing baseline.
- Eight-agent experiment: 63% offset rate, large firms generate credits, small firms buy them.
- Full paper outlines methodology; no code release, and parameters are illustrative rather than calibrated.
Carbon offset markets are one of the more awkward corners of climate policy. Regulators hand out emissions caps, firms either pollute less or buy credits from someone who did, and everyone tries to figure out what the credits should cost. The trouble is that firms are strategic, the market is thin, and the math of computing optimal behaviour across many players is famously intractable. A team from the University of Toronto and the Oxford-Man Institute has just shown that a multi-agent reinforcement learning method called Nash-DQN can crack the problem cleanly enough to be useful.
Their new paper models Canada's federal greenhouse gas offset credit (OC) market as a finite-player stochastic game and uses deep Q-learning to approximate the Nash equilibrium. The headline result: firms that follow the learned equilibrium policy dramatically beat the do-nothing baseline of just paying penalties, and in an eight-firm market roughly 63% of excess emissions end up captured through offset projects rather than paid off in fines.
The market being modelled
A GHG offset credit is a certified financial derivative issued by a regulating body, where each credit represents one metric tonne of carbon dioxide equivalent. Firms earn credits by investing in verified projects like landfill reclamation or wetland restoration, and they can either submit them to the regulator to erase excess-emission penalties or trade them with other firms. Canada set the excess GHG penalty at \$50 per tonne of CO2 equivalent in 2022, scheduled to rise to \$170 by 2030, which gives the whole thing real financial teeth.
The market design creates a genuinely interesting game. Each firm has to decide two things at every time step: how fast to trade credits with other firms, and with what probability to invest in a project that generates new credits. Generation costs money and depresses the market price when supply increases; trading incurs friction; missing your compliance target incurs a linear penalty. That is the environment the RL agents live in.
Why Nash equilibria are the hard part
Obtaining finite-player Nash equilibria is in general an NP-complete problem, which is why prior work in this area either restricts to a single agent, two agents, or takes the mean-field limit (infinitely many identical players). Neither extreme captures a real offset market, which typically has a handful of large emitters with quite different generation capacities.
The authors use Nash-DQN from Casgrain, Ning and Jaimungal, which sidesteps the intractability by parameterising the game with neural networks. The trick is a decomposition: the Q-function is split into a state value V and an advantage function A, where the advantage measures the relative benefit of a specific action versus the optimal one. The advantage function is then forced to be locally quadratic in the actions, with the quadratic coefficients coming from a DNN. Because a concave quadratic has a unique maximiser, you can read the Nash policy directly off the network without ever running a game-theoretic solver at inference time.
How the algorithm actually runs
Each agent's policy network outputs two numbers: a trade rate (squashed by a scaled tanh) and a generation probability (squashed by a sigmoid). Training proceeds in the usual DQN loop, with a few adaptations worth noting:
- A Cholesky parameterisation keeps the quadratic form's leading block positive-definite, guaranteeing concavity in the agent's own action.
- A soft market-clearing loss penalises the sum of trade rates across agents, so nobody has to be arbitrarily designated as the residual buyer.
- A telescoping reward spreads each compliance-date penalty across the intervening time steps, so the network sees a useful gradient every batch instead of only at compliance dates.
- The OC price follows a Brownian bridge pinned to the penalty value at the end of each compliance period, which prevents arbitrage near compliance dates.
- Agents with identical parameters share networks, cutting compute in symmetric classes of firms.
What the experiments show
The team ran two settings: a four-agent market where all firms have the same 25-credit requirement but different generation capacities, and an eight-agent market with five heterogeneous classes ranging from small emitters to large ones. Training used 20,000 iterations with batch size 256, then 10,000 Monte Carlo rollouts evaluated the learned policies.
In the four-agent case, every firm ended up with a mean profit-and-loss between roughly -\$1,930 and -\$2,130, versus a -\$2,500 baseline for doing nothing. A total of 72.68 offset credits were generated across both compliance periods, meaning 36.3% of the 200 excess emissions were offset through generation rather than penalties. The largest agent effectively became the market's clearing house, selling down inventory to partially cover its generation costs while smaller agents bought.
The eight-agent run is more striking. All agents beat their benchmarks, and approximately 63% of excess emissions were offset through generation, with agents that have the ability to generate more credits being more inclined to generate in general. Small firms in Class E, which have limited project capacity, chose to buy their inventory from the market instead of investing.
Why this matters beyond the numbers
The obvious use case is for firms sitting inside a compliance market: the equilibrium policy is a concrete blueprint for how much to trade and how aggressively to fund generation projects given your requirement and generation cost. But the more interesting angle is the one the authors flag for regulators. Because Nash-DQN can re-solve the whole game quickly when you change parameters, it becomes a sandbox for policy design. Want to know what happens if you raise the penalty to \$170, tighten caps, or cap the share of a firm's obligation that can be met via offsets (as Quebec does at 8%)? Rerun the training and read off the new equilibrium behaviour.
There are limits worth being honest about. The market parameters were chosen for illustration rather than calibrated to real data, because the updated Canadian market is still verifying submitted projects and calibrating model parameters is a highly non-trivial problem that requires often proprietary knowledge of a firm's internal finances. Offset credit requirements are assumed deterministic and exogenous, which real emissions rarely are. And the OC price, while impacted by generation, is not fully endogenised: the Brownian-bridge dynamics are imposed rather than derived from agent behaviour. The authors call out all three as follow-up work, along with a principal-agent extension where a regulator with its own objective sits above the firms.
The paper builds on the earlier single- and two-agent treatment by Welsh and Jaimungal, and it does not appear to ship an open-source implementation alongside the preprint. For anyone building trading or compliance tooling in emissions markets, though, the recipe is spelled out in enough detail to reproduce: value-plus-advantage decomposition, quadratic advantage with Cholesky-parameterised curvature, soft clearing loss, Brownian-bridge price pinned at compliance dates, and shared networks within symmetric agent classes.