Reinforcement Learning for Execution under Dynamic Fees in a Closed-Loop DEX Simulator
Wen-Ting Wang
cs.LG, q-fin.CP, stat.ML
Submitted: 2026-07-12
Code: https://github.com/egpivo/amm-lab
License: http://creativecommons.org/licenses/by/4.0/
The gist: 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
Terminology
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 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.
Sources
- Competition between DEXs through Dynamic Fees
- Optimal Dynamic Fees in Automated Market Makers
- DEX Specs: A Mean Field Approach to DeFi Currency Exchanges
- Optimal Fees for Liquidity Provision in Automated Market Makers
- The Adoption of Blockchain-based Decentralized Exchanges
- Automated Market Making and Loss-Versus-Rebalancing
- Causal Effects of Protocol-Fee Changes on Liquidity Provision in Automated Market Makers
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks