Paper: arXiv 2611.27987

Authors: Sri Sairam Gautam B

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.

Complexity vs Empirical Score

  • Math Complexity: 7.5/10
  • Empirical Rigor: 8.0/10
  • Quadrant: Holy Grail — high math complexity, high empirical rigor

Why this score: The paper presents a sophisticated mathematical framework for DeFi execution, combining RL with CVaR. It rigorously tests this against a calibrated environment, demonstrating strong empirical methodology. The findings regarding the limitations of model-free RL against a gas-aware oracle are a significant contribution.

Research Flowchart

  flowchart TD
    A["Research Goal: Evaluate Risk-Averse RL vs. Gas-Aware Routing in DeFi Execution"] --> B{"Key Methodology: PPO with CVaR Penalty"};
    B --> C["Data/Inputs: Live Uniswap V2, EIP-1559 AR(1) Gas, Real Swap Events, Stress-Volatility Gas Shocks"];
    C --> D["Computational Processes: Train PPO (1M steps, 5 λ, 5 seeds) vs. Myopic Gas-Aware Oracle"];
    D --> E{"Initial Finding: Specification-Gaming Pathology (Forced Terminal Liquidation)"};
    E --> F["Corrected Environment: Retrain and Evaluate"];
    F --> G["Key Finding: PPO Captures 79% of Oracle, Gas History Fails to Close Gap, No Dominance for MLP Policies"];

Evidence Card

What the authors claim, on what data, and who has checked it. Read from the paper's own text by a language model: every quote is verbatim, nothing was re-run. How to read this card

Proposes

We propose a Proximal Policy Optimisation (PPO) agent with a Rockafellar‑Uryasev Conditional Value‑at‑Risk (CVaR) penalty and a dual‑head Chow‑Ghavamzadeh critic, trained on a calibrated deterministic AMM/MEV environment and benchmarked against a myopic gas‑aware oracle.

Source sentence
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.

Assumes 4

  • Slippage on a Uniswap V2 pool follows the closed‑form constant‑product invariant and is deterministic. model
    Source sentence
    First, slippage on a Uniswap V2 pool is not stochastic; the post-trade reserves are determined exactly by the constant-product invariant [3].
  • Every pending swap is publicly visible, allowing a rational arbitrageur to sandwich the trader whenever profit exceeds gas cost. model
    Source sentence
    Second, every pending swap is publicly visible in the mempool, so a rational arbitrageur can sandwich the trader’s order with two paired transactions whenever the resulting profit exceeds gas cost [4], [5].
  • The base fee follows an AR(1)‑lognormal process fitted to the most recent 200 EIP‑1559 fee‑history records. statistical
    Source sentence
    We fit, via ordinary least squares on the most recent 200 EIP-1559 fee-history records [10], log bt+1 = µb + ϕb(log bt −µb) + σbεb t, (3) log pprio t = α + β log bt + σpεp t , (4) with εb t, εp t ∼N(0, 1) independent.
  • Gas cost is computed as ct = (bt + pprio_t)·gasLimit·ρETH/10^18 with a fixed gasLimit of 2×10^5. execution
    Source sentence
    Total gas cost in the quote token is ct = (bt + pprio t ) · gasLimit · ρETH/1018, (5) where ρETH is the ETH price in quote units and gasLimit = 2 × 105 is the standard swap gas budget.

Data

  • Live Uniswap V2 WETH/USDC reserves and fee‑history · Ethereum mainnet crypto-onchain public
    WETH/USDC pool
    Source sentence
    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. We construct an end-to-end execution environment calibrated to live Uniswap V2 WETH/USDC reserves, an EIP-1559 AR(1)-lognormal gas process fitted to 200 consecutive mainnet blocks, and cyclic replay of

Costs

Modeled Costs are part of the reported headline results.

Gas cost is explicitly modeled using the formula ct = (bt + pprio_t)·gasLimit·ρETH/10^18 with gasLimit = 2×10^5.

Source sentence
Total gas cost in the quote token is ct = (bt + pprio t ) · gasLimit · ρETH/1018, (5) where ρETH is the ETH price in quote units and gasLimit = 2 × 105 is the standard swap gas budget.

Finds 5

  • On the corrected environment, the strongest PPO variant captures 79% of the myopic gas‑aware oracle (46,542 ± 673 USDC vs 58,786 ± 616 USDC). performance
    Source sentence
    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.
  • No empirical evidence that the tested model‑free PPO policies dominate the myopic gas‑aware oracle. negative
    Source sentence
    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.
  • The best PPO run achieves 79.2% of the analytical oracle, outperforming the TWAP baseline by 23% but underperforming the oracle by 21%. performance
    Source sentence
    The best PPO cell is the gas-history λ = 0.0 run at 46,542 USDC, which is 79.2% of the 58,786 USDC analytical oracle and is materially above the twap baseline at 37,847 USDC. PPO outperforms twap by 23% but underperforms the analytical oracle by 21%.
  • Extending the observation with three blocks of gas history does not close the performance gap to the oracle. negative
    Source sentence
    Gas history does not rescue PPO.
  • A three‑block gas‑history extension did not close the gap to the oracle within 10^6 training steps. negative figure from elsewhere in the paper
    Source sentence
    A three-block gas-history extension did not close the gap to the oracle within 106 steps.

Checked by others

No other paper in the archive has been found to support or contradict these findings (compared with 14 related papers). Coverage is partial, so this is neither replication nor refutation.

Code

No repository by the authors found in the paper.

Extracted 2026-11-24 · same card as JSON · A language model chose these items: check the source sentence before relying on one.