REVIEW 2 major objections 5 minor 25 references
In a closed-loop DEX simulator with dynamic fees, a small DQN cuts implementation shortfall by 13.3 bps over tuned one-step routing, and the edge is learned only when fees reprice.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · grok-4.5
2026-07-14 08:02 UTC pith:U7I653AE
load-bearing objection Solid within-model RL-for-execution result with unusually clean evaluation hygiene; the novelty is the closed-loop dynamic-fee simulator and protocol, not a general market claim. the 2 major comments →
Reinforcement Learning for Execution under Dynamic Fees in a Closed-Loop DEX Simulator
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Under an equilibrium-inspired dynamic-fee closure, a small model-free DQN is the only evaluated valid policy whose paired improvement over validation-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 advantage is concentrated in and learned from dynamic-fee environments rather than from generic closed-loop timing.
What carries the argument
The closed-loop transition that composes the agent’s action with market-response operators (noise routing, arbitrage, oracle update, and the clipped linear dynamic-fee rule) in a declared intra-step order, together with a frozen reserved-seed evaluation protocol against a tuned policy ladder under forced completion.
Load-bearing premise
The market’s defensive response is adequately represented by the researcher-chosen clipped linear fee rule and the accompanying noise-routing and arbitrage operators; if that specific closure does not create the same fee-state timing structure as real dynamic-fee AMMs, the measured edge is an artifact of this model.
What would settle it
Retrain and re-evaluate the same DQN and lookahead ladder under a different fee closure (for example a nonlinear or solved Nash fee process, or constant fees already tested) on a held-out seed block; if the paired DQN–lookahead edge disappears or reverses under every dynamic-fee variant while remaining zero under constant fees, the central claim fails.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper constructs a minimal closed-loop DEX simulator with two constant-product pools, an equilibrium-inspired clipped linear dynamic-fee rule (Eq. 11), fee-sensitive noise routing, and closed-form CEX–AMM arbitrage, then evaluates execution policies under a strict protocol (common forced-terminal completion, tuned ladder, reserved final seed block). Against schedule, planning, lookahead, and tabular baselines, a small DQN is the only evaluated valid policy whose paired shortfall improvement over tuned one-step routing excludes zero; on the reserved 1,000-seed block with completion forced to 1.0 it reduces implementation shortfall under every tested intra-step ordering (13.3 bps under the pre-specified agent-last ordering). Fee-mode attribution shows the edge is concentrated in, and learned from, dynamic-fee environments; under constant fees the paired difference is indistinguishable from zero. The claim is explicitly scoped as model-conditioned counterfactual evidence about execution control, not historical identification, equilibrium play, or deployable profit.
Significance. If the result holds under the stated scope, the paper makes two useful contributions. First, it supplies a reusable evaluation discipline for closed-loop execution (action-responsive transitions with declared operator order, common completion semantics, a multi-rung tuned ladder, a frozen reserved seed block, and the transfer-versus-re-solving distinction) that is more careful than typical RL-for-execution claims. Second, it produces a clean within-model finding that model-free control can extract fee-state timing value that shallow planners and tuned one-step heuristics do not recover, with the advantage vanishing under constant fees. Strengths that should be credited include the reserved final block first evaluated after design freeze, paired seed-level bootstrap CIs, forced-terminal completion so shortfall is not traded against residual inventory, the full ladder including stochastic rollout and a hindsight reference, fee-mode and priority re-solving, and a public bit-reproducible implementation with content-hashed manifests. The external-validity premise (the specific fee closure) is already scoped and partially stress-tested; it does not overturn the internal claim.
major comments (2)
- §3.1–3.2 and Table 1: the fee coefficients (a_own, a_riv, a_orc) and clips are researcher-chosen design parameters, not estimated or solved from the cited Nash system. The paper already treats this as closure rather than equilibrium and reports coefficient perturbations that do not flip rankings, but a short additional sensitivity that replaces the linear rule with a qualitatively different (e.g., threshold or nonlinear) fee response would better separate “dynamic fees create timing value” from “this particular linearization creates timing value.” This is a scope-strengthening request, not a claim of internal inconsistency.
- §3.4 and Appendix A: the multi-step planners (deterministic K=2,3 and stochastic rollout with N=16) fail to close the gap to the DQN, yet deeper search, learned-value-guided search, and expectimax (rather than certainty-equivalent collapse) are not evaluated. The manuscript already notes this limitation; a brief discussion or one deeper-search ablation would make the “planning does not substitute for learning here” claim more robust, since limited depth/budget remains a competing explanation for the planner shortfall.
minor comments (5)
- Figure 2 and the abstract report 13.3 bps for agent-last; the body text sometimes uses −13.29. Standardize the rounding and sign convention (negative favors DQN) across abstract, figures, and text.
- §2.2 Eq. (3) and §3.3: the training–evaluation completion-rule switch is disclosed and audited, but a one-sentence reminder in the Figure 2 caption that every policy (not only the DQN) is evaluated under forced-terminal would reduce reader confusion.
- §3.5: the fee-cash vs. quoted-fee comparison (33.5 vs. 45 bps) is carefully caveated as “not a direct estimate of fee savings”; consider moving that caveat into the figure or table that first reports those numbers so it is not missed.
- Appendix C: the noise-routing logistic and arbitrage closed forms are clear; a single line stating that the deterministic planner’s forward model uses the exact mean noise volume (λ sinh(η)/η) would help readers who implement the ladder.
- References: several arXiv preprints are cited for concurrent fee-design work; ensure the final version updates any that have since appeared in venues, and keep the companion event-study citation consistent.
Circularity Check
No significant circularity: the headline is a held-out paired shortfall comparison inside a declared simulator, not a first-principles prediction forced by its inputs.
full rationale
The paper’s load-bearing claim is empirical and model-conditioned: under a researcher-specified closed-loop DEX (Eq. 11 fee closure, noise routing, closed-form arb), a small DQN is the only evaluated valid policy whose paired IS improvement over validation-tuned one-step lookahead excludes zero on a reserved final block of 1,000 seeds with forced completion 1.0 for every policy, with the edge concentrated in dynamic-fee modes. That estimand is not derived from, or equivalent to, the fee coefficients or the equilibrium literature by construction; it is a seed-averaged policy comparison after freeze (Algorithm 1). Equilibrium enters only as an explicit closure principle for the environment’s fee rule (Abstract; §3.1), not as a solved object the trader learns or a Nash claim the paper re-labels as prediction. The fee form is literature-inspired from Baggiani et al. (different authors); coefficients are disclosed researcher-chosen design parameters with robustness axes, not fits that force the DQN edge. Companion self-citation [25] motivates why historical tape cannot identify the counterfactual and is not used to certify the simulator result. Validation-tuned κ and checkpoint selection on disjoint seed blocks, then evaluation on untouched S_final, is standard ML hygiene rather than fitted-input-called-prediction. No uniqueness theorem, ansatz smuggled as theorem, or renaming of a known empirical law is load-bearing. The derivation chain is therefore self-contained simulation evidence with explicit scope limits (§4), not circular reduction of outputs to inputs.
Axiom & Free-Parameter Ledger
free parameters (7)
- fee response coefficients (a_own, a_riv, a_orc) =
(0.01, -0.005, 0.5)
- fee clip bounds [f_min, f_max] =
[1, 500] bps
- lookahead/planner urgency coefficients κ =
mode-specific 8 or 16
- noise median scales, dispersion η, routing sensitivity β =
λ±=2.0 Y; η=0.5; β=0.05/bps
- terminal penalty rate ρ and agent gas g =
ρ=0.02; g=2 X
- order size, horizon, pool reserves, base fee, oracle vol =
Q=50; H=50; f̄=30 bps; σ=0.5
- DQN architecture and training hyperparameters =
16-64-64-8; E=12000; Adam 1e-3
axioms (7)
- standard math Finite-horizon MDP with declared operator composition for market response (agent, noise, arb, oracle, fee) and no future-information leakage in observations.
- domain assumption Constant-product pool invariant with fees accruing outside reserves; venue cash cost as in Eq. (13).
- domain assumption External mid follows zero-drift GBM; arbitrage closes to fee-adjusted no-arbitrage ratio in closed form when profit exceeds gas.
- ad hoc to paper Noise traders route by softmax/logistic over effective execution cost of a 1Y probe (researcher-chosen reduced form).
- ad hoc to paper Clipped linear dynamic fee rule is a valid equilibrium-inspired closure for competing CPMMs (form from Baggiani et al., not a solved Nash system).
- domain assumption Forced-terminal completion makes episode score equal realized implementation shortfall and is applied identically to every policy.
- domain assumption Baseline pool depths are fixed over the horizon in the main environment.
invented entities (2)
-
Minimal closed-loop dynamic-fee DEX simulator (two CPMM pools + fee rule + noise + arb + execution agent)
no independent evidence
-
Closed-loop execution evaluation discipline (tuned ladder, reserved seed block, transfer vs re-solving, common completion)
no independent evidence
read the original 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.
Figures
Reference graph
Works this paper leans on
-
[1]
Almgren and N
R. Almgren and N. Chriss. Optimal execution of portfolio transactions.Journal of Risk, 3(2):5–39, 2001. 14
2001
-
[2]
Angeris and T
G. Angeris and T. Chitra. Improved price oracles: Constant function market makers. In Proceedings of the 2nd ACM Conference on Advances in Financial Technologies (AFT), pages 80–91, 2020
2020
-
[3]
Angeris, H.-T
G. Angeris, H.-T. Kao, R. Chiang, C. Noyes, and T. Chitra. An analysis of Uniswap markets. Cryptoeconomic Systems, 1(1), 2021
2021
-
[4]
L. Baggiani, M. Herdegen, and L. S´ anchez-Betancourt. Competition between DEXs through dynamic fees. arXiv:2603.09669, 2026
arXiv 2026
-
[5]
L. Baggiani, M. Herdegen, and L. S´ anchez-Betancourt. Optimal dynamic fees in automated market makers. arXiv:2506.02869, 2025
Pith/arXiv arXiv 2025
-
[6]
E. Bayraktar, A. Cohen, and A. Nellis. DEX Specs: a mean field approach to DeFi currency exchanges. arXiv:2404.09090, 2024
Pith/arXiv arXiv 2024
-
[7]
Bergault, L
P. Bergault, L. Bertucci, D. Bouba, and O. Gu´ eant. Automated market makers: Mean- variance analysis of LPs payoffs and design of pricing functions.Digital Finance, 6(2):225–247, 2024
2024
-
[8]
Bertsimas and A
D. Bertsimas and A. W. Lo. Optimal control of execution costs.Journal of Financial Markets, 1(1):1–50, 1998
1998
-
[9]
S. Campbell, P. Bergault, J. Milionis, and M. Nutz. Optimal fees for liquidity provision in automated market makers. arXiv:2508.08152, 2025
Pith/arXiv arXiv 2025
-
[10]
A. Capponi and R. Jia. The adoption of blockchain-based decentralized exchanges. arXiv:2103.08842, 2021
Pith/arXiv arXiv 2021
-
[11]
Cartea, F
´A. Cartea, F. Drissi, and M. Monga. Decentralised finance and automated market making: Execution and speculation.Journal of Economic Dynamics and Control, 177:105134, 2025
2025
-
[12]
Cartea, F
´A. Cartea, F. Drissi, and M. Monga. Decentralized finance and automated market making: Predictable loss and optimal liquidity provision.SIAM Journal on Financial Mathematics, 15(3):931–959, 2024
2024
-
[13]
Daian, S
P. Daian, S. Goldfeder, T. Kell, Y. Li, X. Zhao, I. Bentov, L. Breidenbach, and A. Juels. Flash Boys 2.0: Frontrunning in decentralized exchanges, miner extractable value, and consensus instability. InIEEE Symposium on Security and Privacy (S&P), pages 910–927, 2020
2020
-
[14]
J. Hasbrouck, T. J. Rivera, and F. Saleh. The need for fees at a DEX: How increases in fees can increase DEX trading volume.Management Science, Articles in Advance, 2026. doi:10.1287/mnsc.2023.00726
-
[15]
van Hasselt
H. van Hasselt. Double Q-learning. InAdvances in Neural Information Processing Systems 23 (NeurIPS), pages 2613–2621, 2010
2010
-
[16]
Henderson, R
P. Henderson, R. Islam, P. Bachman, J. Pineau, D. Precup, and D. Meger. Deep reinforce- ment learning that matters. InProceedings of the 32nd AAAI Conference on Artificial Intelligence, pages 3207–3214, 2018
2018
-
[17]
Hendricks and D
D. Hendricks and D. Wilcox. A reinforcement learning extension to the Almgren–Chriss framework for optimal trade execution. InIEEE Conference on Computational Intelligence for Financial Engineering & Economics (CIFEr), pages 457–464, 2014
2014
-
[18]
Lehar and C
A. Lehar and C. A. Parlour. Decentralized exchange: The Uniswap automated market maker.Journal of Finance, 80(1):321–374, 2025. 15
2025
-
[19]
J. Milionis, C. C. Moallemi, T. Roughgarden, and A. L. Zhang. Automated market making and loss-versus-rebalancing. arXiv:2208.06046, 2022
Pith/arXiv arXiv 2022
-
[20]
V. Mnih, K. Kavukcuoglu, D. Silver, et al. Human-level control through deep reinforcement learning.Nature, 518(7540):529–533, 2015
2015
-
[21]
Nevmyvaka, Y
Y. Nevmyvaka, Y. Feng, and M. Kearns. Reinforcement learning for optimized trade execution. InProceedings of the 23rd International Conference on Machine Learning (ICML), pages 673–680, 2006
2006
-
[22]
B. Ning, F. H. T. Lin, and S. Jaimungal. Double deep Q-learning for optimal execution. Applied Mathematical Finance, 28(4):361–380, 2021
2021
-
[23]
A. F. Perold. The implementation shortfall: Paper versus reality.Journal of Portfolio Management, 14(3):4–9, 1988
1988
-
[24]
R. S. Sutton and A. G. Barto.Reinforcement Learning: An Introduction. MIT Press, 2nd edition, 2018
2018
-
[25]
W.-T. Wang. Causal effects of protocol-fee changes on liquidity provision in automated market makers. arXiv:2607.08525, 2026. A Agent-first benchmark ladder Figure 6: Agent-first benchmark ladder on the final reserved seed block (90,000–90,999, n = 1,000; DynamicDuopoly, forced-terminal completion, agent-first ordering; 95% bootstrap CIs; completion is 1 ...
Pith/arXiv arXiv 2026
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.