---
title: Empirical Limits of Risk-Averse Reinforcement Learning versus Gas-Aware Routing in Deterministic DeFi Execution
url: https://www.ml-quant.com/papers/arxiv/2611.27987/
site: ML-Quant (https://www.ml-quant.com)
updated: 2026-11-30
license: Summaries CC BY 4.0; links go to the original sources
index: https://www.ml-quant.com/llms.txt
identifier: arXiv:2611.27987
source_url: https://arxiv.org/abs/2611.27987
featured: 2026-11-27
citations: unknown
topic: Crypto & DeFi
---


# Empirical Limits of Risk-Averse Reinforcement Learning versus Gas-Aware Routing in Deterministic DeFi Execution

A trained PPO agent captures only 79 percent of a simple gas-aware oracle for order execution on Uniswap, suggesting model-free methods lag for deterministic market microstructure.

- Source: https://arxiv.org/abs/2611.27987
- Identifier: arXiv:2611.27987
- Released: 2026-11-24
- First featured: Quant Letter No. 141 (2026-11-27): https://www.ml-quant.com/issues/2026-11-27/
- Citations (Semantic Scholar): not tracked
- Published in: not yet
- Topic: Crypto & DeFi
- Authors: Sri Sairam Gautam B

## Abstract (arXiv, CC0)

The migration of order execution to Automated Market Makers (AMMs) introduces two deterministic frictions absent from classical microstructure: closed-form constant-product slippage and Maximal Extractable Value (MEV) sandwich attacks gated by gas costs. We construct an end-to-end execution environment calibrated to live Uniswap V2 reserves, an EIP-1559 AR(1) gas process, and real Swap events, utilising stress-volatility gas shocks to make the MEV trigger informative. A Proximal Policy Optimisation (PPO) agent with a Rockafellar-Uryasev Conditional Value-at-Risk (CVaR) penalty and a dual-head Chow-Ghavamzadeh critic is trained for one million steps across five risk-aversion levels and seeds, benchmarked against a myopic gas-aware oracle. We document a reproducible specification-gaming pathology: prior to a patch, a forced terminal liquidation routed through a no-MEV code path artificially inflated returns threefold and was preferentially exploited by higher-$λ$ runs. On the corrected environment, the strongest PPO variant captures 79\% of the myopic gas-aware oracle (46,542 $\pm$ 673 vs 58,786 $\pm$ 616 USDC), and extending the observation with three blocks of gas history fails to close the gap. We find no empirical evidence that the tested model-free MLP policies dominate this myopic gas-aware oracle, which can be evaluated in $\mathcal{O}(\log ε^{-1})$ time per block. This result is robust to a $\sim$16x trunk-capacity expansion and a variance-controlled gas-history ablation. Code and reproducibility materials are available upon request.

## Related

- [Decentralised Finance and Automated Market Making: Predictable Loss and Optimal Liquidity Provision](https://www.ml-quant.com/papers/arxiv/2309.08431/): The study outlines the wealth dynamics of strategic liquidity providers in constant product markets, proposes an optimal liquidity provision strategy, and uses Uniswap v3 data to show its effectiveness.
- [Decentralised Finance and Automated Market Making: Execution and Speculation](https://www.ml-quant.com/papers/ssrn/4144743/): The study investigates automated market makers, particularly constant product market makers, and develops two optimal trading strategies using stochastic optimal control tools, as demonstrated with Uniswap v3 data.
- [A theoretical framework for fees in AMMs](https://www.ml-quant.com/papers/arxiv/2404.03976/): The study explores the workings of arbitrage in decentralized finance automated market makers (AMMs), aiming to understand how AMMs can optimize revenue or minimize losses, and models the dynamics of arbitrage activity.
- [Axioms for Automated Market Makers: A Mathematical Framework in FinTech and Decentralized Finance](https://www.ml-quant.com/papers/arxiv/2210.01227/): Mathematical Framework: The research introduces a new framework for Automated Market Makers, suggesting a unique fee structure and a novel AMM that reduces divergence loss.
- [Learning from DeFi: Would Automated Market Makers Improve Equity Trading?](https://www.ml-quant.com/papers/ssrn/4531670/): The study suggests that optimally designed automated market makers could potentially save U.S. investors billions in transaction costs each year.
- [FirstSwap: Pre-Consensus Trade Approvals for Decentralized Market Design](https://www.ml-quant.com/papers/arxiv/2611.10254/): Introduces FirstSwap, a decentralized exchange giving traders early price guarantees before consensus via a scaled admissibility protocol, improving welfare and reducing arbitrage losses.
