IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2607.10960.html

Reinforcement Learning for Execution under Dynamic Fees in a Closed-Loop DEX Simulator

Author

Listed:
  • Wen-Ting Wang

Abstract

Trader-facing dynamic fees are increasingly proposed for automated market makers (AMMs), but historical data do not identify how order flow would respond: trader-facing fees do not vary, trader types are latent, and a replayed tape is not a sequential decision environment. We therefore construct a minimal closed-loop simulator in which the missing signal exists by construction: two constant-product pools repriced by an equilibrium-inspired dynamic-fee rule, fee-sensitive noise flow, and closed-form CEX--AMM arbitrage. Equilibrium is used as a closure principle, not as an object the trader learns. Against a tuned benchmark ladder of schedule, planning, lookahead, and tabular policies, a small DQN is the only evaluated valid policy whose paired improvement over tuned one-step routing excludes zero. On a reserved final block of 1{,}000 seeds with completion forced to 1.0 for every policy, it reduces implementation shortfall under every tested intra-step ordering, by $13.3\bps$ of order notional under the pre-specified agent-last ordering, and the edge is concentrated in, and learned from, dynamic-fee environments: under constant fees the paired difference is indistinguishable from zero. The result is model-conditioned counterfactual evidence about execution control in AMMs, not evidence about historical traders, equilibrium play, or deployable profit.

Suggested Citation

  • Wen-Ting Wang, 2026. "Reinforcement Learning for Execution under Dynamic Fees in a Closed-Loop DEX Simulator," Papers 2607.10960, arXiv.org.
  • Handle: RePEc:arx:papers:2607.10960
    as

    Download full text from publisher

    File URL: https://arxiv.org/pdf/2607.10960
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Erhan Bayraktar & Asaf Cohen & April Nellis, 2024. "DEX Specs: A Mean Field Approach to DeFi Currency Exchanges," Papers 2404.09090, arXiv.org.
    2. Guillermo Angeris & Hsien-Tang Kao & Rei Chiang & Charlie Noyes & Tarun Chitra, 2019. "An analysis of Uniswap markets," Papers 1911.03380, arXiv.org, revised Feb 2021.
    3. Bertsimas, Dimitris & Lo, Andrew W., 1998. "Optimal control of execution costs," Journal of Financial Markets, Elsevier, vol. 1(1), pages 1-50, April.
    4. Leonardo Baggiani & Martin Herdegen & Leandro S'anchez-Betancourt, 2025. "Optimal Dynamic Fees in Automated Market Makers," Papers 2506.02869, arXiv.org, revised Jul 2026.
    5. Leonardo Baggiani & Martin Herdegen & Leandro Sanchez-Betancourt, 2026. "Competition between DEXs through Dynamic Fees," Papers 2603.09669, arXiv.org.
    6. 'Alvaro Cartea & Fayc{c}al Drissi & Marcello Monga, 2023. "Decentralised Finance and Automated Market Making: Predictable Loss and Optimal Liquidity Provision," Papers 2309.08431, arXiv.org, revised Jun 2024.
    7. Alfred Lehar & Christine Parlour, 2025. "Decentralized Exchange: The Uniswap Automated Market Maker," Journal of Finance, American Finance Association, vol. 80(1), pages 321-374, February.
    8. Philippe Bergault & Louis Bertucci & David Bouba & Olivier Guéant, 2024. "Automated market makers: mean-variance analysis of LPs payoffs and design of pricing functions," Digital Finance, Springer, vol. 6(2), pages 225-247, June.
    9. Guillermo Angeris & Tarun Chitra, 2020. "Improved Price Oracles: Constant Function Market Makers," Papers 2003.10001, arXiv.org, revised Jun 2020.
    10. 'Alvaro Cartea & Fayc{c}al Drissi & Marcello Monga, 2023. "Decentralised Finance and Automated Market Making: Execution and Speculation," Papers 2307.03499, arXiv.org, revised Jun 2025.
    11. Volodymyr Mnih & Koray Kavukcuoglu & David Silver & Andrei A. Rusu & Joel Veness & Marc G. Bellemare & Alex Graves & Martin Riedmiller & Andreas K. Fidjeland & Georg Ostrovski & Stig Petersen & Charle, 2015. "Human-level control through deep reinforcement learning," Nature, Nature, vol. 518(7540), pages 529-533, February.
    12. Wen-Ting Wang, 2026. "Causal Effects of Protocol-Fee Changes on Liquidity Provision in Automated Market Makers," Papers 2607.08525, arXiv.org.
    13. Steven Campbell & Philippe Bergault & Jason Milionis & Marcel Nutz, 2025. "Optimal Fees for Liquidity Provision in Automated Market Makers," Papers 2508.08152, arXiv.org.
    14. Cartea, Álvaro & Drissi, Fayçal & Monga, Marcello, 2025. "Decentralised finance and automated market making: Execution and speculation," Journal of Economic Dynamics and Control, Elsevier, vol. 177(C).
    15. Agostino Capponi & Ruizhe Jia, 2021. "The Adoption of Blockchain-based Decentralized Exchanges," Papers 2103.08842, arXiv.org, revised Jul 2021.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Farbod Ghasemlu, 2026. "Optimal Dynamic Fees for Automated Market Makers: A Stochastic Control Approach to Loss-Versus-Rebalancing," Papers 2606.21769, arXiv.org.
    2. Philippe Bergault & S'ebastien Bieber & Leandro S'anchez-Betancourt, 2025. "Optimal Exit Time for Liquidity Providers in Automated Market Makers," Papers 2509.06510, arXiv.org, revised Oct 2025.
    3. Alif Aqsha & Philippe Bergault & Leandro S'anchez-Betancourt, 2025. "Equilibrium Reward for Liquidity Providers in Automated Market Makers," Papers 2503.22502, arXiv.org.
    4. Chu, Gang & Dowling, Michael & Li, Xiao, 2026. "Impermanent loss in cryptocurrency," Journal of International Money and Finance, Elsevier, vol. 160(C).
    5. Philippe Bergault & Yadh Hafsi & Leandro S'anchez-Betancourt, 2026. "Trading in CEXs and DEXs with Priority Fees and Stochastic Delays," Papers 2602.10798, arXiv.org, revised Feb 2026.
    6. Agostino Capponi & 'Alvaro Cartea & Fayc{c}al Drissi, 2026. "The Viability of Blockchain Markets under Discrete Clearing and Paid Priority," Papers 2605.17425, arXiv.org.
    7. Fabi, Michele & Prat, Julien, 2025. "The economics of Constant Function Market Makers," Journal of Corporate Finance, Elsevier, vol. 91(C).
    8. Sunghun Ko, 2026. "Partially Active Automated Market Makers," Papers 2602.09887, arXiv.org.
    9. Daniele Maria Di Nosse & Fabrizio Lillo, 2026. "Mitigating Adverse Selection in Concentrated Liquidity AMMs with Dynamic Fees: An Agent-Based Model Approach," Papers 2606.23070, arXiv.org.
    10. Roger Lee, 2023. "All AMMs are CFMMs. All DeFi markets have invariants. A DeFi market is arbitrage-free if and only if it has an increasing invariant," Papers 2310.09782, arXiv.org, revised Dec 2023.
    11. Wenpin Tang, 2026. "Proof of Stake economy under centralized exchanges--a mean field model," Papers 2606.09003, arXiv.org.
    12. Leonardo Baggiani & Martin Herdegen & Leandro Sanchez-Betancourt, 2026. "Competition between DEXs through Dynamic Fees," Papers 2603.09669, arXiv.org.
    13. Marcello Monga, 2024. "Automated Market Making and Decentralized Finance," Papers 2407.16885, arXiv.org.
    14. Nam Anh Le, 2026. "Funding-Aware Optimal Market Making for Perpetual DEXs," Papers 2605.06405, arXiv.org.
    15. Cartea, Álvaro & Drissi, Fayçal & Monga, Marcello, 2025. "Decentralised finance and automated market making: Execution and speculation," Journal of Economic Dynamics and Control, Elsevier, vol. 177(C).
    16. Woo Jae Byun & Bumkyu Choi & Seongmin Kim & Joohyun Jo, 2023. "Practical Application of Deep Reinforcement Learning to Optimal Trade Execution," FinTech, MDPI, vol. 2(3), pages 1-16, June.
    17. Pranay Anchuri, 2026. "RAmmStein: Regime Adaptation in Mean-reverting Markets with Stein Thresholds -- Optimal Impulse Control in Concentrated AMMs," Papers 2602.19419, arXiv.org, revised Mar 2026.
    18. Ruofei Ma & Zhebiao Cai & Wenpin Tang & David Yao, 2025. "Optimal Decisions for Liquid Staking: Allocation and Exit Timing," Papers 2507.14810, arXiv.org, revised Dec 2025.
    19. Robin Fritsch & Andrea Canidio, 2024. "Measuring Arbitrage Losses and Profitability of AMM Liquidity," Papers 2404.05803, arXiv.org, revised Apr 2024.
    20. Maxim Bichuch & Zachary Feinstein, 2022. "Axioms for Automated Market Makers: A Mathematical Framework in FinTech and Decentralized Finance," Papers 2210.01227, arXiv.org, revised Feb 2025.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2607.10960. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: https://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.