arXiv Science⌕ Search

arXiv · 2611.27987

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

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-$λ$ 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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Sri Sairam Gautam B. 2026-05-18. Empirical Limits of Risk-Averse Reinforcement Learning versus Gas-Aware Routing in Deterministic DeFi Execution. https://arxiv.science/abs/2611.27987

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Trading Before a Committed Rebalance

A public forecast of a committed portfolio adjustment changes both the institution's preparation and the inventory that other traders choose to supply. We characterize its effect on institutional expenditure in a Bayesian quantity game with avoidable activation and uniform-price terminal completion. For scalar targets, every refinement weakly lowers cost when participation is fixed. Optional supply can reverse that ranking: costly inventory may expand too rapidly, or helpful inventory may expand too slowly. The second mechanism persists with smooth cost densities, no pre-event impact, equal temporary charges, and participation near one-half. Favorable comparisons nevertheless hold for centered targets and centered Gaussian signals. For portfolios, we give an exact matrix criterion under which information weakly lowers cost relative to no information for every centered target, even with optional basket activation. Outside these comparisons, equal forecast accuracy need not imply equal execution value. We solve the finite-player equilibrium, give a sufficient condition for uniqueness among all Bayesian equilibria, and identify when individual strategic size reverses the continuum comparison. Fixed-prior experiments based on ETF price paths assess the role of observed target shapes. They characterize the model's information comparisons without estimating activation costs or institutional losses.

q-fin.TR↗

Settlement Manipulation in Prediction Markets

Prediction markets increasingly list contracts settling on an asset price that holders can move by trading the underlying. We build a model showing that such contracts transfer wealth from prediction-market liquidity traders to manipulators and the prediction-market maker and harm price discovery in the underlying, even as it becomes more liquid. After the launch of Polymarket's five-minute Bitcoin contract, settlement-time spot order flow spikes, causing large price reversals after settlement. Manipulators capture a large amount of profit, mostly from retail. Manipulation is largely absent in the fifteen-minute contracts, and it disappeared from the five-minute contract once Polymarket began settling on a 60-second average price: lengthening the horizon or averaging the settlement price removes it.

q-fin.TR↗

Optimal execution in a fractional setting with reinforcement learning

We consider the problem of optimal liquidation with linear market impact, as in the seminal work of Almgren and Chriss, but with an asset driven by a fractional Brownian motion. For $H \neq 1/2$, we observe that the deterministic solution given by Almgren and Chriss is no longer optimal. We develop a strategy to exploit the information induced by the correlation between price increments. The strategy is derived from a policy gradient algorithm, parameterized by a neural network, trained to maximise the CARA utility, for which our method allows for significant improvements.

q-fin.TR↗