All notes Research

MoE for Order Execution

100 retrainings per configuration of a crypto execution agent. The experts didn't help, and what counted as failure depended on how we counted.

Joint work with Alexander Ardaiz and Ali Habibnia at the Dataism Lab for Quantitative Finance. Preprint: arXiv:2610.03369. Everything below is from version 2 of the paper.

The setup

Take a fixed inventory of Bitcoin and liquidate it over a fixed horizon, replaying 5-minute BTC/USDT limit order book data from Binance. Score each attempt with Implementation Shortfall.

Six configurations compete. The baseline is a single Double Deep Q-Learning agent (DDQL). The proposal is a Mixture of Experts: the training episodes are partitioned with K-means into K∈{2,4,8} groups, and each group trains its own DDQL expert. Two dense networks, widened until their parameter count matches the K=4 and K=8 expert budgets, are the capacity control. If a single wide network does whatever the mixture does, the answer was capacity, not experts.

Distributions, not runs

A deep RL agent trained twice with different seeds is two different policies. So we retrained every configuration 100 times on shared seeds and shared evaluation episodes, and compared the distributions of outcomes rather than single runs. Pairing by seed is what turns a pile of summary statistics into paired tests.

What we found

No learned configuration significantly improved mean execution cost over the single agent. Under the specification we report, every one of them had a higher mean shortfall than TWAP (0.39 bps) and than selling everything at once (0.21 bps). That comparison is in a frictionless replay, with a terminal-urgency penalty that makes early liquidation nearly costless.

Whether the experts "fixed" failure depends on what you count. The classic failure in execution RL is an agent that never trades and takes the forced liquidation at the end. Counted per run, the mixture looks like a cure: 11 of 100 DDQL runs never trade in any of their 500 evaluation episodes, and no run of the K≥4 mixtures does. Counted per episode, it looks like the opposite: the share of evaluation episodes with no trade rises from 11.1% for DDQL to 24.9% at K=8 (estimated with a cost-matching proxy). Across six specifications, no K=8 run is idle in all 500 episodes, yet in five of them between 1.1% and 28.7% of its episodes never trade.

The training setup mattered more than the architecture. On a device-matched baseline, annealing the exploration schedule alone took DDQL from 12 collapsed runs out of 100 to none, and to 0 idle episodes out of 50,000. Under the original reward, expert partitioning was not needed to suppress collapse. The fixes also interact: combining the annealed schedule with the paper's aligned reward brought collapse back in 19 of 30 runs, and with all three changes in 48 of 100.

Stability and tail risk moved apart. Across-seed dispersion was lowest at K=8, but not monotone in K and not robust to family-wise correction. Within-policy tail risk got steadily worse as K grew. "Reduces risk" can be half true in the most misleading way.

The part I'd keep

My share of the work was mostly the evaluation: the repeated-training protocol, and the verification suite that audited the pipeline against its own specification. That auditing is also why version 2 of the preprint corrects how version 1 counted inactive episodes and expert occupancy.

The lesson I carry from it: the level you count at is a modelling decision, not a reporting detail, and a result you can't decompose into the choices that produced it isn't a finding yet. Going from 30 seeds to 100 changed which differences were significant, and the change still didn't tell us the mechanism.