Empirical Limits of Risk-Averse Reinforcement Learning versus Gas-Aware Routing in Deterministic DeFi Execution
Sri Sairam Gautam B
Key points
From the paper's conclusion- 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 \epsilon^{-1})$ time per block.
Abstract
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-$\lambda$ 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 \epsilon^{-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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Risk Management in Decentralized Finance: Applications of Perpetual Continuous-Installment Options to Automated Market Makers and Lending ProtocolsDistributed Ledger Technologies: Research and Practice · 2026
- EVAGE: Autonomous MEV Generation and Adaptation via Multi-Agent HarnessarXiv · 2026
- Tight Characterizations of AMM Mechanism Design under Weak EfficiencyarXiv · 2026
- The Term Structure of Implied Fee Rates in Liquidity PoolsarXiv · 2026
- Mixture-of-Experts for Cryptocurrency Order Execution: Training Stability, Tail Risk, and Failure ModesarXiv · 2026
- FirstSwap: Pre-Consensus Trade Approvals for Decentralized Market DesignarXiv · 2026