Does a Trading Policy Need to Know What It Trades? Microstructure Invariance and Zero-Shot Transfer of Execution Policies

Hieu Tran, Hong YuarXiv 2026 · arXiv

TL;DR

Reinforcement learning (RL) policies for trade execution can generalize across vastly different assets—from Nasdaq stocks to crypto—by using "microstructure invariance" to normalize market data into universal units. A single policy trained on 2019 Nasdaq data transfers successfully to unseen stocks, future years, and even different exchanges, proving that markets "look alike" when measured in their own natural units of time, size, and price.

What Problem Does This Paper Address?

In financial markets, every asset is different. A high-volume stock like Apple has a massive queue of orders and a tight bid-ask spread, while a small-cap stock might trade only a few times an hour with a wide spread. Traditionally, trading algorithms are calibrated asset-by-asset to handle these differences in scale.

For reinforcement learning, this presents a massive challenge for zero-shot generalization. If you train an agent to trade one stock, it usually fails on another because the "scales" are all wrong. The authors investigate whether we can find a universal representation—a set of "invariant units"—that makes all markets look the same to a single RL policy.

Methods

The researchers leverage the theory of microstructure invariance, which suggests that if you measure time in "mean time between trades," size in "mean trade size," and price in "mean spread," the underlying dynamics of different markets become statistically similar.

Key components of their approach include:

  • Exact Queue Replay: They developed a high-fidelity simulator that replays historical Nasdaq TotalView-ITCH data with nanosecond precision, accurately tracking an order's position in the queue.
  • Representation Testing: They compared eleven different ways to represent the market state, including raw physical units (seconds, cents), standard normalizations (z-scores), and theoretically-derived invariant units (MS and KO units).
  • Learning Algorithms: They primarily used Fitted Q-Iteration (FQI) with gradient-boosted trees (LightGBM) to learn the "advantage" of waiting in a queue versus crossing the spread immediately. They also validated results with Neural FQI and PPO.
The "make-or-take" decision and why invariant units help normalize fill probabilities across different stocks.

Datasets

The study uses an extensive and diverse set of data:

  • Nasdaq Stocks: Training on 954 stocks from 2019; testing on 1,964 unseen stocks from 2020–21 and 2,629 stocks from 2025–26.
  • Coinbase Crypto Pairs: 16 USD-quoted pairs to test cross-market transfer.
  • IEX Exchange: Data from a second US exchange to test cross-venue transfer.
  • Synthetic Controls: "Zero-intelligence" order book models where market symmetries are known exactly.
  • Pendulums: A non-financial benchmark (CARL) used to verify the general principles of invariance and transfer gaps.

Key Insights and Ideas

  • Markets are Scale-Invariant: A policy that only sees an asset through its recent trade rate, size, and spread performs nearly as well as a policy trained specifically on that asset.
  • Units Save Data, Not Just Performance: While neural networks can eventually "learn" their own normalization if given enough raw data and descriptors, using invariant units makes the learning process roughly 10x more data-efficient.
  • The "Transfer Gap" Trap: A common way to evaluate transfer is to see how much performance is lost compared to a policy trained on the target task. The authors prove (Proposition 4) that this "transfer gap" is a weak metric. In a large pool of assets, a comparator policy barely adapts to any single new asset, so even a poor representation might show a deceptively small gap.
  • Extrapolation Limits: Invariance helps within the range of scales seen during training, but no representation could successfully extrapolate to entirely new "spread regimes" (e.g., moving from small-tick to large-tick stocks if the agent hadn't seen them before).
Zero-shot costs for different representations. Invariant units (MS+tick) lead the pack, though transfer gaps are small across the board.

Key Results

  • Zero-Shot Success: The universal MS+tick policy costs within 0.015 spreads per share of a policy that actually saw the test stock during training.
  • Cross-Market Transfer: Policies trained on Nasdaq stocks successfully transferred to Coinbase crypto pairs, beating simple baselines and coming within a narrow margin of crypto-trained policies.
  • Economic Impact: In terms of basis points (bp), the zero-shot policy saved significant costs (e.g., saving 6.17 bp relative to always crossing the spread in 2020–21).
  • Data Efficiency: As shown in Figure 3, raw features need significantly more training episodes to match the performance that invariant units achieve almost immediately.
Figure 1: One policy for every asset? (a) The decision we study: a buy order resting at the best bid can wait or cross the spread. (b, c) Why units might suffice: the probability that a 100-share order joining the best bid fills within a horizon varies widely across 1,189 training stock-days when time is in seconds, and far less in each stock’s own mean time between trades (thick lines: medians within terciles of the relative tick, the price increment over the volatility per trade). (d) The test: policies trained once on 2019 Nasdaq stocks are evaluated unchanged on orange days; comparators trained on the test market use the grey days.

Limitations and Future Work

  • Non-Intrusive Replay: The simulation assumes the agent's own trades do not change the behavior of other market participants (no market impact).
  • Single Venue: The replay only covers a single exchange's displayed book, ignoring dark pools, midpoint liquidity, or smart order routing.
  • Atom of Execution: The study focuses on the "make-or-take" decision for a single order. The authors suggest that the next step is applying these invariant principles to parent order scheduling, where market impact becomes a dominant factor.
  • Regulatory Changes: Future work could test these policies against upcoming changes like the US half-penny tick, which will fundamentally shift the spread regimes of many stocks.

Summary updated

Abstract

Execution algorithms are calibrated asset by asset, because the queues, trade rates and bid-ask spreads they face differ by orders of magnitude across assets. For reinforcement learning this is zero-shot generalisation across contexts of very different scales, and microstructure invariance proposes a normalisation fixed by theory: measured in each asset's own units of time, size and price, markets look alike. In an exact order-by-order replay of public Nasdaq data, we train policies once, on 954 stocks in 2019, to choose between waiting in the queue and crossing the spread, and evaluate them unchanged on 1,964 unseen stocks in 2020-21, 2,629 stocks in 2025-26, crypto pairs and a second exchange. First, a policy that sees a stock only through its recent trade rate, trade size, spread and price increment (tick) costs within 0.015 spreads per share (a fifth of what learning saves) of a policy whose training data included the stock, and the stock's own history does not help it; it comes within a similar margin of policies trained on the second exchange when every episode counts equally, and within a wider one on crypto. Second, in mean cost before fees, invariant units beat raw units, z-scores and asset descriptors, but by under a basis point: most of their advantage is information and a common cost scale that a learner can also take as plain inputs, and none of the representations tested extrapolates to unseen spread regimes. Third, a near-zero transfer gap to a pooled comparator is weak evidence that a representation is right: we show that such a comparator detects only a small share of what a poor representation loses, and confirm it in synthetic markets and on pendulums.
BibTeX
@misc{tran2026does,
  author = {Hieu Tran and Hong Yu},
  title = {{Does a Trading Policy Need to Know What It Trades? Microstructure Invariance and Zero-Shot Transfer of Execution Policies}},
  year = {2026},
  eprint = {2611.08701},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08701},
}
Figure