Manuscript Offprint
arXiv:2610.03598When a Correct Reward Is Not Enough: Diagnosing and Guiding PPO in an Analytically Solved Broker-Trader Game
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 literatures 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.
CCS Concepts
• Computing methodologies → Reinforcement learning; • Applied computing → Economics.
1 Introduction
Optimal execution balances execution costs against inventory exposure and adverse price movements. Reinforcement learning (RL) is attractive when richer market dynamics make analytical strategies difficult to obtain. We ask whether RL can recover an analytically known broker strategy from its performance criterion and use that strategy after the environment changes.
Our environment follows the continuous-time game of Cartea, Jaimungal, and Sánchez-Betancourt [3], who model the interaction between a broker, an informed trader, and an uninformed trader. The broker internalises client orders and hedges in the lit market. Informed flow contains private information, while rapid trading is costly and slow trading leaves inventory exposed. Their analytical equilibrium gives an action at every state, allowing same-state action comparisons together with realised payoffs and inventory trajectories.
Prior studies use RL to adjust an Almgren–Chriss schedule, learn liquidation policies against analytical benchmarks, or structure actor–critic learning with closed-form policy and value functions [8, 15, 24]. They do not test whether a finite-step reward recovers the known state-dependent strategy in this broker–trader game. Analytical-policy initialisation and adaptation have also been proposed [21, 24]. We separate discretisation, policy learning, and hidden-state estimation.
We study three research questions:
• RQ1: Full-information control. Can PPO–FFNN and PPO–LSTM recover the broker’s analytical trading strategy when every relevant state variable is observed?
• RQ2: Partial-information control. How closely can PPO–FFNN and PPO–LSTM approach the certainty-equivalent benchmark [16] when the informed trader’s inventory, signal, and current trading rate are hidden?
• RQ3: Adapting an analytical policy. When the execution cost differs from the value used to calculate the analytical policy, can PPO learn an adjustment that improves the unchanged policy?
Section 2 reviews related work, Section 3 introduces the environment, Section 4 answers RQ1–RQ2, and Section 5 answers RQ3.
2 Related Work
Analytical execution and broker games:
Analytical execution models relate trading actions to inventory, impact, order flow, and predictive signals [2, 4]. Broker-trader games add strategic interaction because hedging affects prices while client orders change the broker's inventory and information [3, 25]. We use the known broker action as the RL target.
RL for optimal execution:
RL has learned liquidation schedules through value-based methods, PPO, and continuous-time actor-critic [12, 14, 17, 19, 21]. Hybrid methods adjust or initialise from an analytical schedule, or embed closed-form structure [8, 21, 24]. The broker-trader equilibrium instead permits same-state action comparisons. Although policy gradients have convergence results for linear-quadratic control [6], PPO remains sensitive to implementation and evaluation choices [1, 5, 7].
Analytical guidance and reward shaping:
Analytical equations can guide learning and provide a benchmark. Prior work adds a Hamilton–Jacobi–Bellman loss or closed-form policy and value structure [18, 24]. Residual RL adds a learned action to an existing controller [11]; in Section 5, we use it to adjust the frozen broker action after the execution cost changes. We also test potential-based shaping, which preserves policy ordering [20, 23]. RL under partial information:
With hidden state, an agent can summarise observations recurrently or estimate the hidden variables explicitly [10, 13]. We compare feedforward and recurrent PPO with a certainty-equivalent controller that updates such an estimate from observable history.
3 Environment Design
3.1 Broker Execution Game
Our baseline is the continuous-time broker-trader model of Cartea, Jaimungal, and Sánchez-Betancourt [3]. An informed trader sends orders to the broker at rate , uninformed clients generate flow , and the broker hedges the resulting inventory in a lit market at rate . The informed trader responds to a predictive signal process . PPO chooses the broker's trading rate , while the informed trader follows its analytical feedback rule and the uninformed flow remains exogenous.
Let and denote broker and informed-trader inventories, the price-impact state, and the midprice. Their dynamics are
The broker’s trade changes inventory, incurs execution cost, and affects the price at which its remaining inventory is valued.
The analytical solution gives the feedback controls
The time-dependent coefficients , and follow from the Riccati equations in [3]. In the simulator, the informed trader applies Equation (3) at every state generated by the broker's actions. Therefore even if the PPO agent takes suboptimal-actions, the informed trader continues to use the analytical feedback rule and does not operate in subgame nash equilibrium. We refer to it as the analytical-feedback trader.
The environment uses Gymnasium 1.3.0 and PPO–FFNN is implemented with Stable-Baselines3 2.9.0 and PPO–LSTM with SB3-Contrib 2.9.0. The main parameters are , , , , , , , , and , with . Initially and all other states are zero. Here is the broker's lit-market execution-cost coefficient, while and determine the transaction prices for informed and uninformed client flow; , are impact and resilience; , are running inventory penalties; and , are terminal inventory penalties. Thus gives zero resilience and removes the broker's running, but not terminal, inventory penalty.
Let be the broker's cash. The broker maximises
After substituting the cash and price dynamics, this equals an action-independent constant plus , with
(5)
Thus is the broker’s total expected payoff, while is its action-dependent payoff rate during trading.
3.2 Discrete PPO Environment
We divide into intervals and use left-endpoint Euler-Maruyama transitions . Define , , , and . The finite-grid dynamics are
(6)
The three terms are independent Gaussian increments with variance . We define as the fraction of the trading horizon remaining. Full-information PPO receives , , , , , , and . Partial-information PPO receives , , , , , and , while and are hidden. Before entering either network, is centred at 100, is multiplied by 1,000, and and the previous action are divided by 100; we found these rescaling provides better results as they place the network inputs on comparable numerical scales; the dynamics and reported payoffs remain in the model's original units.
After the action has been executed, the broker observes and can reconstruct the informed flow from the inventory transition:
The broker therefore cannot use when choosing , but can use the reconstructed value when forming its estimates for decision .
When a Correct Reward Is Not Enough: Diagnosing and Guiding PPO in an Analytically Solved Broker–Trader Game

next decision; past is now reconstructible
Figure 1: Information and feedback for one broker decision. The policy maps the full- or partial-information observation to a trading rate, which is clipped to before the environment updates the state and reward. Red variables are hidden under partial information; past informed flow is reconstructible at decision . The reference action is evaluated at every PPO state.
Table 1: Networks and training settings. The reported zero-flow FFNN uses an initial log standard deviation of 3; the other FFNN and LSTM experiments use 0. Checkpoints are selected by mean payoff on 50 separate validation paths.
| Setting | PPO-FFNN | PPO-LSTM | Analytical policy with PPO adjustment |
|---|---|---|---|
| Actor / critic | Actor and critic each use two fully connected 64-unit ReLU hidden layers | Actor and critic each use 24-unit LSTM and a fully connected 64-unit Tanh hidden layer | Fixed analytical action; two-layer, width-64 Tanh correction network; two-layer, width-128 Tanh critic |
| PPO Section 4 use | Block B: , log std 3; , log std 0. Block C: supervised, . Block D: , log std 0Adam; rate ; ; GAE ; clip 0.2; batch 250; ten epochs; value/entropy coefficients 0.5/0; gradient norm 0.5; normalised advantages; state-dependent exploration sampled every four steps | Blocks B and D: log std 0. Block C: supervised, | Not used in Section 4 |
| Training / selection | transitions; five training seeds; activation and checkpoints selected by finite-grid payoff on separate validation paths | 100 critic-only warm-up and 800 joint updates; four environments 1,024 steps; actor/critic rates ; , advantage-estimation , clip 0.1, batch 1,024, ten epochsFive training seeds; checkpoints at updates 50, 100, 200, 400, and 800; the highest mean payoff on 50 common validation paths is selected; final evaluation on 100 previously unused paths | |
| Supervised diagnostic | ReLU FFNN and Tanh LSTM with the same actor shapes as PPO; Adam at , 100 epochs; 40/20/40 analytical train/validation/test episodes | Not used | |
3.3 Finite-step reward
Let . The transitions used in the reward calculation are
Applying the exact discrete product rule gives
while the terminal-inventory term satisfies
Adding the cash increment cancels . Therefore, define the accumulated finite-grid objective and its one-step increment by
The terms are the cross-products generated by the discrete product rule and squared-inventory increment. The remaining term, , is the change in inventory value caused by the unpredictable price innovation. Its conditional expectation is zero, so the reward supplied to PPO is
We write . Summing Equation (11) shows that this expected return equals the expected cash-and-inventory objective in Equation (4), up to the fixed initial value. On one realised path, the two accumulated quantities differ by the omitted price innovations . The analytical payoff is undiscounted, so we set .
3.4 Environment Step
We use PPO as our main algorithm [22] and compare FFNN and LSTM actors, each trained for four million environment transitions. At time , the policy samples a raw action (“Raw” denotes the network output before clipping), while the environment executes , as shown in Figure 1. PPO evaluates the likelihood of the raw action during training. We record how often clipping occurs and the size of the adjustment between the raw and executed actions. The informed trader calculates from the state at time before either action changes the state.
4 Experimental Results
We now answer the research questions introduced in Section 1. Block A verifies the reference action used throughout the experiments. Blocks B–C answer RQ1 by testing full-information PPO, actor capacity under supervised learning, the PPO critic's ability to rank nearby actions, and potential-based reward shaping. Block D answers RQ2 by comparing partial-information PPO with a certainty-equivalent (CE) controller. Section 5 answers RQ3.
Table 1 gives the training settings; code and fixed experiment configurations will be released after peer review. Each PPO configuration uses five training seeds and four million transitions per seed. Because PPO performance can deteriorate late in training, we evaluate checkpoints every 0.4 million transitions on 50 validation paths and select the checkpoint with the highest average broker payoff. After checkpoint selection, every trained policy is evaluated on the same 250 test paths, which are not used for training or checkpoint selection. The reported 95% Student-t intervals are calculated across five independently trained policies, all evaluated on the same test paths.
4.1 Block A: Continuous and finite-grid alignment
Block A tests whether the comparison with PPO is affected by discretising the continuous-time game. The simulator applies Equation (2) at every step of the Euler–Maruyama simulator. Let . The finite-grid linear–quadratic (LQ) action is , where is the time-dependent feedback vector obtained from the backward recursion below. We use the reference action as shown in Figure 1, . This gives a feasible reference in the PPO action range; the unconstrained LQ action is .
To solve the finite-grid problem, write the Euler transition and reward as
(13)
where . If the next-step value has quadratic coefficient , moving one step backwards gives
The complete value is , where . For noise covariance , . The constant does not change the optimal action but is used in the reward-shaping experiment below. Since , is the unique unconstrained maximiser. Completing the square gives . We estimate it by
where M is the number of test paths, and is the action taken by the agent. We refer to this quantity as the LQ loss.
We therefore replay the continuous analytical feedback and the finite-grid LQ feedback on 250 common market paths at three time resolutions. Table 2(a) shows that the action RMSE and LQ loss both decrease as the grid is refined. At the grid used for training, , they are 0.003389 and . The linear dynamics and Gaussian innovations make every unconstrained reference action Gaussian. If its mean and standard deviation at decision k are and , the union bound gives
For the zero-flow reference this bound is , and no crossing occurs on 500 additional simulated paths.
A separate numerical check verifies Equation (11) to floating-point precision. Together, the grid, action-bound, and reward checks show that these numerical effects are much smaller than the PPO errors reported below.
4.2 Block B: Full-information PPO recovery
We first set , the zero-uninformed-flow model also considered in [3]. We then set to introduce stochastic uninformed flow. Five independently initialised policies per architecture observe the full state and train for four million transitions. We compare each action by the policy with .
For the zero-flow FFNN, we use an initial log standard deviation of 3. Table 2(b) reports an LQ loss of and an action RMSE of across five independently trained roots. Figure 2 shows that the selected FFNN approaches the zero-flow reference, whereas the LSTM remains inaccurate. Table 2(d) shows that the PPO agents tested with also remain inaccurate. Thus, for RQ1, PPO-FFNN can approach the full-information strategy when , but we do not obtain similar performance after introducing stochastic uninformed flow.
4.3 Block C: Actor capacity and learning diagnostics
Block C tests whether the FFNN and LSTM can reproduce when that action is supplied directly. With , we train a ReLU FFNN and a Tanh LSTM through supervised learning, using as labels and the supervised learning has the same architectures as the PPO actors. We evaluate them on analytical test trajectories and then allow each actor to control the simulator.
Table 2(c) shows that supervised learning substantially reduces the test error of both architectures. The supervised FFNN also remains close to the reference when it controls the simulator, whereas the LSTM result varies considerably across training seeds. Supervised learning therefore shows that both networks can approximate during testing. Figure 2 shows the performance of the models. Reward and critic diagnostics:
Starting from the full-information baseline ( , ReLU FFNN), we change one component at a time to probe the sensitivity of PPO. The analytical broker action and corrected reward do not depend on the midprice . We therefore remove to test whether this input
When a Correct Reward Is Not Enough: Diagnosing and Guiding PPO in an Analytically Solved Broker–Trader Game
Table 2: Summary of Blocks A–D. Action RMSE is the root mean squared difference between the broker action and the stated reference action (). (a) compares the continuous analytical action with at three time steps. (b) compares full-information PPO with when . (c) evaluates the supervised FFNN and LSTM on analytical test states and then when their actions determine subsequent states. (d) reports payoff, payoff shortfall from the clipped reference, and action RMSE when . In (b) and (d), the reference is recalculated at each state reached by the controller. Brackets are 95% intervals across five training seeds; the LSTM entry 11.85–339.70 is the five-seed range. Higher payoff is better; lower LQ loss, payoff shortfall, and RMSE are better.
(a) Block A: Grid alignment
| Steps | LQ loss | Action RMSE | |
|---|---|---|---|
| 1,000 | 0.016835 | ||
| 2,000 | 0.008468 | ||
| 5,000 | 0.003389 |
(c) Block C: Direct action supervision
| Actor | Supervised test RMSE | Supervised closed-loop RMSE |
|---|---|---|
| FFNN-ReLU | 2.31 [1.99,2.63] | 2.06 [1.27,2.85] |
| LSTM-Tanh | 2.62 [2.44,2.81] | 11.85–339.70 |
(b) Block B: Full information,
| Policy | Unconstrained LQ diagnostic | Action RMSE |
|---|---|---|
| FFNN-ReLU | ||
| LSTM-Tanh |
(d) : feasible comparisons
| Info. | Controller | Shortfall | RMSE | |
|---|---|---|---|---|
| Full | Clipped reference | 0.1303 | 0 | 0 |
| Full | FFNN-ReLU | -7.060 | 7.191 | 20.449 |
| Full | LSTM-Tanh | -39.194 | 39.324 | 31.284 |
| Partial | CE estimate | 0.1297 | 0.00061 | 0.732 |
| Partial | FFNN-ReLU | -21.680 | 21.810 | 24.819 |
| Partial | LSTM-Tanh | -24.108 | 24.238 | 26.585 |


Figure 2: Trajectories and PPO diagnostics. Panels (a)–(b) show the zero-flow experiment and (c)–(d) the change from to 0.0006. Lines are means and bands span the 5th–95th percentiles; (a)–(b) use signed symmetric-log vertical scales. Panel (e) uses separate payoff scales and normalises progress by each training budget; markers denote checkpoints. Panels (f)–(g) show losses smoothed over 25 updates and averaged across five training seeds. PPO–FFNN/LSTM are from Block B and “Analytical policy + PPO” from Section 5. The dotted line marks the end of its 100-update critic warm-up.
makes PPO learning more difficult, and verify the effects of the correction by removing it or multiplying the reward by 100. Every condition uses five seeds, four million training transitions per seed, and the same numbers of validation and test paths. Table 3 reports the resulting payoff, action RMSE, and critic explained variance. Removing the correction or the price input does not produce a consistent payoff change across seeds. Multiplying the reward by 100 lowers the payoff for every seed, showing that PPO is sensitive to reward scale.
Table 3: Full-information ReLU FFNN ablations at . is evaluated using Equation (12), and action RMSE is calculated using . Explained Variance (EV) is the critic's value predictions at the selected checkpoint. Relative to the corrected baseline, paired payoff changes (95% intervals) are 1.48[-7.34, 10.31] without the term, -29.24[-33.93, -24.54] after multiplying rewards by 100, and -1.09[-8.56, 6.37] without . Higher payoff and EV, and lower RMSE, are better.
| Training reward / input | Action RMSE | EV | |
|---|---|---|---|
| Corrected / with | |||
| First order / with | |||
| Corrected / with | |||
| Corrected / without |
PPO learns a state-value function . Since , the Bellman relation gives
We test whether the critic correctly ranks two actions near the trained policy. At a test state that is not used to train or select the critic, let be the deterministic policy action and set . Clipping is inactive in these 120 comparisons, so the two actions are 20 units apart. For Monte Carlo sample , is the immediate reward after taking action , and is the resulting next state. Replacing with and averaging over simulated transitions gives
where , is the sum of the remaining rewards from Monte Carlo sampling after selecting action at decision . is the action preference predicted by the critic using the immediate reward and next-state value, while is the action preference estimated from the complete simulated returns (if and have the same sign, it indicates that the critic correctly ranks the two actions). The two candidate actions use the same market innovations and future policy noise, and Monte Carlo simulations are averaged for each comparison.
We also compare with the Monte Carlo return of the current policy at 24 test states per seed. The critics can distinguish states with generally higher or lower expected remaining returns, but Figure 3 shows that they cannot reliably rank two nearby actions taken from the same state. Inaccurate local action ranking is therefore a plausible source of weak PPO performance in .
Potential-based reward shaping:
We next test whether the long-horizon broker payoff provides insufficient information about the quality of each action. The potential is computed from the finite-grid LQ solution, which is used to shape our reward from Equation (12). The PPO is trained with
Because and the initial state is fixed, the shaped and original episode returns differ by the same constant. Reward shaping therefore changes the learning signal without changing the ordering of policies [20]. Since is calculated from the unconstrained finite-grid LQ problem it can produce trading speeds that lie outside the action range, the squared term measures deviation from the unconstrained LQ action.
We train ten FFNN policies, five with the original reward in Equation (12) and 5 with the shaped reward in Equation (18). Each pair has the same initial weights, market paths, and training settings. Shaping increases mean payoff by 1.57 (95% interval [-5.00,8.14]) and reduces action RMSE by 1.76 (95% interval [-4.50,8.02]); both changes are favourable in three of five seeds. It also increases the per-step reward standard deviation by approximately 75%. Raw training actions cross the feasible range in approximately 0.1% of decisions under either reward. Under this protocol, shaping changes the learning signal but does not reliably recover .
4.4 Block D: Partial-information control
Block D asks how closely PPO can approach the causal CE controller when both use the same information available before each decision. PPO observes , while , and the current informed-trader rate are hidden before acting. The CE controller uses the game dynamics and the broker's causal history
to estimate the hidden components and . It then substitutes these estimates into the finite-grid feedback rule:
Specifically, the CE controller forms
After observing , the controller reconstructs the informed flow that has already occurred and updates the informed trader's inventory:
Writing and , we rearrange the informed trader's feedback equation to estimate the signal:
The estimated informed-trader inventory and predictive signal are combined with the observed state variables to calculate the CE action at the next decision. On 250 test paths, the reconstructed informed-trader inventory has negligible error, while the predicted signal and pre-action informed flow have RMSE 0.0141 and 0.873. The remaining error is caused by the new signal innovation, which is unavailable before the broker acts.
When a Correct Reward Is Not Enough: Diagnosing and Guiding PPO in an Analytically Solved Broker-Trader Game

Figure 3: Learning diagnostics. Left and centre: each point compares and at one of 120 test states. The horizontal axis is their difference in cumulative reward estimated by Monte Carlo; the vertical axis is the difference predicted using the immediate reward and critic value of the next state. Each point is , where both differences subtract the payoff of from . In the top-right region, both estimates prefer ; in the bottom-left region, both prefer . In the top-left region, Monte Carlo prefers but the critic predicts , while in the bottom-right region, Monte Carlo prefers but the critic predicts . Pearson correlation measures whether the critic difference increases with the Monte Carlo difference, while Spearman correlation measures whether the critic ranks the action comparisons in the same order as Monte Carlo. The pooled Pearson and Spearman correlations are 0.216 and 0.053, and sign accuracy is 51.7%. Horizontal bars are 95% Monte Carlo intervals; open points indicate decisions where and appear equally good within this uncertainty. Without including open points the remaining 71 points show a sign accuracy is 49.3%. Right: each seed's payoff shortfall from the clipped reference, with ; diamonds and bars show the mean and 95% Student-t interval. Correlations closer to one and higher sign accuracy are better; lower payoff shortfall is better.
Table 2(d) shows that the CE controller remains close to , while both partial-information PPO agents have substantially lower payoffs and larger action errors. The broker's observable history therefore contains enough information for accurate control in this environment, but the PPO agents do not learn to use that history as effectively. This answers RQ2.
5 Adapting the Analytical Policy with PPO
We now address RQ3 by testing the direction we introduced in Section 1 and proposed in [21, 24]: using an analytical policy as the starting point for RL. Our proposed method would be to freeze the analytical broker action and train PPO to correct execution-cost misspecification through a residual adjustment [11].
Let denote the broker environment with execution-cost coefficient . We calculate the analytical policy in the original environment , where , and train the PPO adjustment in .
Frozen analytical policy:
In , we evaluate and store the analytical coefficients and from [3], with the optimal action
Equation (21) has the same broker-feedback form as Equation (2), and the superscript 0 identifies coefficients calculated in . On 100 test paths generated at , the frozen and replayed analytical trajectories have trading-speed and inventory RMSEs of and , respectively.
PPO adjustment after a cost change:
In , the analytical action calculated in remains fixed and PPO learns an additive correction:
Here, is the action generated by the frozen analytical policy and is the residual adjustment learned by PPO. The residual is a two-layer, width-64 Tanh FFNN of the full-information observation in (we also tested the ReLU setup from Block B, the wider exploration improves learning when , but it lowers payoff for all five residual policies; thus we found this Tanh setup to be the best for our misspecification problem). Its output layer is initialised at zero, so the initial policy mean equals . PPO then trains the residual without an additional adjustment bound or penalty. Gaussian exploration is centred on the combined mean, and the environment clips sampled actions to . Table 1 reports the remaining training settings.
All three cost experiments use full information and . We test in . The informed trader's coefficients are recomputed at the true cost, while the broker retains the coefficients from and does not observe as an input. A separate PPO adjustment is trained for each cost. For evaluation, is recomputed at the true cost. For each seed, we evaluate five checkpoints on 50 validation paths and, as in Section 4, select the checkpoint with the highest mean finite-grid broker payoff. The selected policy is then evaluated on 100 common test paths.
When the execution cost is halved, all five PPO adjustments improve the test payoff. The mean increase is 0.00519, with a 95% interval of [0.00296, 0.00743] across the five independently trained policies, and closes 2.22% of the gap between the unchanged policy and the changed-cost reference. The largest residual action on the
Table 4: Finite-grid payoff after changing execution cost. “Reference” is recalculated in , while “frozen” uses . Brackets are 95% Student-t intervals over five training seeds after averaging 100 common paths. Higher payoff and change are better.
| Reference | Frozen | PPO adjusted | Change (95% CI) | |
|---|---|---|---|---|
| 0.0006 | 0.53010 | 0.29632 | 0.30151 | 0.00519 [0.00296, 0.00743] |
| 0.0012 | 0.06882 | 0.06882 | 0.06901 | 0.00019 [-0.00041, 0.00079] |
| 0.0018 | -0.15783 | -0.16164 | -0.16145 | 0.00019 [-0.00034, 0.00071] |
lower-cost test paths is 1.41, and final-action clipping occurs on of decisions. PPO therefore provides a small, repeatable improvement only in the lower-cost case tested here.
6 Discussion and Conclusion
We studied whether PPO can recover and subsequently adapt an analytically known broker strategy. For RQ1, we have shown that PPO–FFNN approaches under full information when , however when , the policies remain inaccurate. The finite-step reward and grid-refinement results show that these errors are not caused by numerical issues, while supervised learning shows that the FFNN can approximate and execute the reference action on states generated by the analytical policy. The critic diagnostic shows inaccurate local action ranking can contribute to the difficulty of learning from rewards.
For RQ2, the certainty-equivalent controller remains close to the reference action when the informed trader's inventory and signal are hidden. Its performance shows that the available history supports accurate control in this environment, while PPO–FFNN and PPO–LSTM do not learn to use that information as effectively.
For RQ3, the frozen analytical policy provides an accurate starting strategy after the execution cost changes. Residual PPO produces a small and repeatable payoff improvement when the cost is halved. The analytical solution is therefore useful both as a benchmark for diagnosing learned policies and as a prior for subsequent adaptation, thus providing some evidence of analytical policy initialisation being useful [21].
The numerical checks and supervised learning make discretisation, reward implementation, and insufficient FFNN capacity unlikely to be the primary limitations. A more plausible explanation is the interaction between exploration and reward-based value estimation. Wider initial exploration improves PPO when , but performance remains poor after stochastic uninformed flow is introduced, where the critic also shows weak local action ranking. Partial information additionally requires relevant information to be recovered from past observations. When an analytical policy is already available, wider exploration can instead move the adjustment away from a useful starting point, while conservative adjustments produce a small improvement under the lower-cost misspecification.
Future work can use analytical value or action-value information to improve the local learning signal, study alternative action and policy parameterisations, and develop structured residual policies for nonlinear costs or uncertain market impact. Under partial information, it would be interesting to test the performance of the model by introducing a filter into the actor, and practical applications for the partial information setting would include having a flow.
References
[1] Marcin Andrychowicz, Anton Raichuk, Piotr Stańczyk, Manu Orsini, Sertan Girgin, Raphaël Marinier, Léonard Hussenot, Matthieu Geist, Olivier Pietquin, Marcin Michalski, Sylvain Gelly, and Olivier Bachem. 2020. What Matters In On-Policy Reinforcement Learning? A Large-Scale Empirical Study. arXiv:2006.05990 [cs.LG] doi:10.48550/arXiv.2006.05990
[2] Álvaro Cartea and Sebastian Jaimungal. 2016. Incorporating Order-Flow into Optimal Execution. Mathematics and Financial Economics 10, 3 (2016), 339–364. doi:10.1007/s11579-016-0162-z
[3] Álvaro Cartea, Sebastian Jaimungal, and Leandro Sánchez-Betancourt. 2026. Nash Equilibrium between Brokers and Traders. Finance and Stochastics (2026). doi:10.1007/s00780-026-00595-7 Published online 27 May 2026.
[4] Philippe Casgrain and Sebastian Jaimungal. 2019. Trading Algorithms with Learning in Latent Alpha Models. Mathematical Finance 29, 3 (2019), 735–772. doi:10.1111/mafi.12194
[5] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Firdaus Janoos, Larry Rudolph, and Aleksander Madry. 2020. Implementation Matters in Deep RL: A Case Study on PPO and TRPO. In International Conference on Learning Representations. https://openreview.net/forum?id=r1etN1rtPB
[6] Maryam Fazel, Rong Ge, Sham M. Kakade, and Mehran Mesbahi. 2018. Global Convergence of Policy Gradient Methods for the Linear Quadratic Regulator. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 80). PMLR, 1467–1476. https://proceedings.mlr.press/v80/fazel18a.html
[7] Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. 2018. Deep Reinforcement Learning That Matters. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, Vol. 32. 3207–3214. doi:10.1609/aaai.v32i1.11694
[8] Dieter Hendricks and Diane Wilcox. 2014. A Reinforcement Learning Extension to the Almgren–Chriss Framework for Optimal Trade Execution. In 2014 IEEE Conference on Computational Intelligence for Financial Engineering & Economics (CIFEr). IEEE, 457–464. doi:10.1109/CIFEr.2014.6924109
[9] Desmond J. Higham. 2001. An Algorithmic Introduction to Numerical Simulation of Stochastic Differential Equations. SIAM Rev 43, 3 (2001), 525–546. doi:10.1137/S0036144500378302
[10] Maximilian Igl, Luisa M. Zintgraf, Tuan Anh Le, Frank Wood, and Shimon Whiteson. 2018. Deep Variational Reinforcement Learning for POMDPs. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 80). PMLR, 2117–2126. https://proceedings.mlr.press/v80/igl18a.html
[11] Tobias Johannink, Shikhar Bahl, Ashvin Nair, Jianlan Luo, Avinash Kumar, Matthias Loskyll, Juan Aparicio Ojea, Eugen Solowjow, and Sergey Levine. 2019. Residual Reinforcement Learning for Robot Control. In 2019 International Conference on Robotics and Automation (ICRA). IEEE, 6023–6029. doi:10.1109/ICRA.2019.8794127
[12] Christos Spyridon Koulouris and Carlo Campajola. 2026. Memory-Induced Supra-Competitive Outcomes Between Deep Reinforcement Learning Agents in Optimal Trade Execution. arXiv:2605.20348 [q-fin.CP] doi:10.48550/arXiv.2605.20348
[13] Gaspard Lambrechts, Adrien Bolland, and Damien Ernst. 2022. Recurrent Networks, Hidden States and Beliefs in Partially Observable Environments. Transactions on Machine Learning Research (2022). https://openreview.net/forum?id=dkHfV3wB2l
[14] Siyu Lin and Peter A. Beling. 2020. An End-to-End Optimal Trade Execution Framework based on Proximal Policy Optimization. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20, Christian Bessiere (Ed.). International Joint Conferences on Artificial Intelligence Organization, 4548–4554. doi:10.24963/ijcai.2020/627 Special Track on AI in FinTech.
[15] Andrea Macri and Fabrizio Lillo. 2024. Reinforcement Learning for Optimal Execution when Liquidity is Time-Varying. arXiv:2402.12049 [q-fin.TR] doi:10.48550/arXiv.2402.12049
[16] Horia Mania, Stephen Tu, and Benjamin Recht. 2019. Certainty Equivalence Is Efficient for Linear Quadratic Control. In Advances in Neural Information Processing Systems, Vol. 32. Curran Associates, Inc. https://proceedings.neurips.cc/paper/2019/hash/5dbc8390f17e019d300d5a162c3ce3bc-Abstract.html
[17] Ciamac C. Moallemi and Muye Wang. 2022. A Reinforcement Learning Approach to Optimal Execution. Working paper, current revision February 1, 2022.
[18] Amartya Mukherjee and Jun Liu. 2023. Bridging Physics-Informed Neural Networks with Reinforcement Learning: Hamilton-Jacobi-Bellman Proximal Policy Optimization (HJBPPO). In ICML 2023 Workshop on New Frontiers in Learning, Control, and Dynamical Systems. arXiv:2302.00237 [cs.LG] https://arxiv.org/abs/2302.00237
When a Correct Reward Is Not Enough: Diagnosing and Guiding PPO in an Analytically Solved Broker-Trader Game
[19] Yuriy Nevmyvaka, Yi Feng, and Michael Kearns. 2006. Reinforcement Learning for Optimized Trade Execution. In Proceedings of the 23rd International Conference on Machine Learning. Association for Computing Machinery, 673–680. doi:10.1145/1143844.1143929
[20] Andrew Y. Ng, Daishi Harada, and Stuart Russell. 1999. Policy Invariance under Reward Transformations: Theory and Application to Reward Shaping. In Proceedings of the 16th International Conference on Machine Learning. Morgan Kaufmann, 278–287. https://ai.stanford.edu/~ang/papers/icml99-shaping.pdf
[21] Brian Ning, Franco Ho Ting Lin, and Sebastian Jaimungal. 2021. Double Deep Q-Learning for Optimal Execution. Applied Mathematical Finance 28, 4 (2021), 361–380. doi:10.1080/1350486X.2022.2077783
[22] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal Policy Optimization Algorithms. arXiv:1707.06347 [cs.LG] https://arxiv.org/abs/1707.06347
[23] Henry Sowerby, Zhiyuan Zhou, and Michael L. Littman. 2022. Designing Rewards for Fast Learning. arXiv:2205.15400 [cs.LG] doi:10.48550/arXiv.2205.15400
[24] Boyu Wang, Xuefeng Gao, and Lingfei Li. 2026. Reinforcement Learning for Continuous-Time Optimal Execution: Actor-Critic Algorithm and Error Analysis. Finance and Stochastics 30 (2026), 597–655. doi:10.1007/s00780-026-00589-5
[25] Xuchen Wu and Sebastian Jaimungal. 2024. Broker-Trader Partial Information Nash-Equilibria. arXiv:2412.17712 [q-fin.MF] doi:10.48550/arXiv.2412.17712