Ppo struggles to match analytical trading strategy under uncertainty

When a Correct Reward Is Not Enough: Diagnosing and Guiding PPO in an Analytically Solved Broker-Trader Game

Artificial Intelligence

Summary

The paper looks at how a common reinforcement learning method, called PPO, performs in a financial trading game where the best strategy is already known through math. When there is no random uncertainty, PPO can learn to act like the optimal strategy. But when there is randomness in the market, PPO doesn't perform well because its way of evaluating possible actions isn't reliable. The authors also find that starting PPO from the known solution helps when the market changes slightly.

What this means in practice

  • For financial algorithm developers: Assess and improve reinforcement learning agents for trading by comparing them against known analytic benchmarks in simulation.
  • For control systems engineers: Use analytically solved financial models as starting points for RL adaptation when system parameters change, improving reliability.

Authors

Siu Tung Wong, Carlo Campajola

Abstract

Reinforcement learning (RL) is increasingly used for financial optimal-control problems when complex dynamics make analytical strategies difficult to obtain. There are financial mathematics literactures which provides many solved models whose equations and controls could evaluate and guide learning; we ask whether RL can exploit these results. We place a proximal policy optimisation (PPO) agent in an analytically solved continuous-time broker--trader game. PPO replaces the broker and chooses its trading speed while interacting with an informed trader and stochastic uninformed order flow. We derive a finite-step reward from the broker's continuous-time payoff and verify its discrete implementation through grid refinement and an exact one-step identity. With zero uninformed flow, a validation-selected PPO--FFNN approaches the reference action. With stochastic uninformed flow, the tested PPO--FFNN and PPO--LSTM remain inaccurate, although supervised learning confirms that their actors can represent the action. Monte Carlo diagnostics show that their critics do not reliably rank nearby actions; potential-based reward shaping also gives no reliable improvement. Under partial information, a causal certainty-equivalent controller based on the broker's observable history remains close to the reference, while PPO has larger errors and lower payoffs. Finally, we freeze the analytical policy and train PPO to adjust it after the execution cost changes. Halving the cost yields a repeatable improvement that closes \(2.22\%\) of the gap to the changed-cost reference. The analytical solution therefore provides both a benchmark for diagnosing RL and a useful starting policy for adaptation.