When Your Own Order Moves the Clock: Size-Aware Competing-Risk Hazards for Limit Order Fills

A limit order is an offer to buy or sell at a fixed price that waits in a queue until someone trades against it. How long it waits, and whether it ever fills, is a survival problem. Survival analysis is the statistics of "time until an event," built to handle cases where the event is never observed because the observation window closes first. Recent deep survival models predict fill times well from historical order book data. They all share a hidden assumption from economics, the price-taker assumption: the trader's own order is treated as too small to change the market around it. That is reasonable for a 100-share order. It is not reasonable for an order that is a large fraction of the visible queue. A large order signals intent, so other traders cancel, quotes move away, and the order is stranded rather than filled.

We propose to make the trader's own order size an explicit, structurally constrained input to a competing-risks hazard model. Competing risks means the order can exit in more than one way. Here the two exits are "filled" and "displaced," where displaced means the price moved away from the order. Own size is allowed to push these two exits in opposite, known directions, and its effect may fade over time. The claim is falsifiable. Price-taker fill models should be well calibrated for small orders and increasingly miscalibrated as order size grows relative to queue depth. A model that separates "what the market would do anyway" from "what my footprint does" should close that gap, and that should translate into lower execution cost in a reactive market simulator.

Core Claim and What Is New

Two recent models frame fill prediction as survival analysis on order book data. Deep Attentive Survival Analysis in Limit Order Books combines dilated convolutions, attention and a monotone decoder trained on the right-censored log-likelihood over Nasdaq LOBSTER data. KANFormer adds queue position and agent-level behavioural features and fits Weibull survival curves on Euronext CAC 40 futures. Both are evaluated on passive order logs and both treat cancellations as uninformative censoring. The first paper explicitly lists market impact for larger orders as future work.

Two other papers motivate the opposite view. Robust Reinforcement Learning in Finance shows that trading agents trained as price-takers lose their profits as volume scales. It also shows that the direction of impact matters: symmetric uncertainty sets make agents freeze, while directional (elliptic) sets do not. A Decision-Focused Predict-then-Bid Framework shows a similar gain from modelling endogenous price response for large storage bids, but it uses point price forecasts with no time-to-event structure.

Our contribution sits in that gap. It is a cause-specific proportional hazards model in which the agent's order size, measured relative to queue depth, enters through a footprint term. That term is sign-constrained and allowed to vary in time:

$$h_k(t \mid x, s) = h_{0k}(t)\,\exp\big(f_k(x) + g_k(s, t)\big), \quad k \in \{\text{fill}, \text{displace}\}.$$

The symbols are defined as follows. $h_k$ is the instantaneous rate of exit by cause $k$ at time $t$ since submission, given the order has not exited yet. $h_{0k}$ is an unspecified baseline rate for that cause. $x$ is the market state (book depth, recent flow, queue position). $s$ is own order size divided by displayed depth at the order's price level. $f_k$ is a neural network over market state. $g_k$ is the footprint term.

The constraints on the footprint term encode the directional insight of the elliptic-set paper as monotonicity. $g_{\text{fill}}$ is non-increasing in $s$, $g_{\text{displace}}$ is non-decreasing in $s$, and both satisfy $g_k(0, t) = 0$. The last condition means a vanishing order recovers the price-taker model exactly.

Letting $g_k$ depend on $t$ deliberately breaks the proportional hazards assumption for the footprint alone. Impact that fades over time makes hazard curves cross. Preference Models assume Proportional Hazards of Utilities shows that crossing curves are exactly where proportional-hazards-type estimators go wrong. The market-state part keeps the semi-parametric Cox structure for stability.

The same structural move already exists on the pricing side. CoxCP and BayesCoxCP use a Cox model of buyer valuation with price as the time axis. They obtain support stability and fast regret, but assume past prices never shift the baseline. We do not pursue that pricing variant. It has no real benchmark in the file, whereas order book data does.

Research Program

The first component is a diagnostic study that tests the premise before building anything. We train a price-taker survival model on LOBSTER message data for the nine Nasdaq stocks used by the Deep Attentive paper, and on CAC 40 futures if access permits. We then measure calibration and discrimination on held-out orders, stratified by size-to-depth ratio $s$. The project is motivated only if error grows with $s$. If calibration is flat across $s$ at observed scales, the price-taker assumption is adequate for these markets, and we report that as the finding.

The second component is the model above, fitted by maximizing the cause-specific partial likelihood. The market-state network $f_k$ uses the same convolution-plus-attention encoder as the Deep Attentive paper, so that only the footprint term and the competing-risk treatment differ from the baseline. The monotone footprint term $g_k$ is a small monotone network over $(s, t)$.

Identification is the honest weak point. Order size in logs is chosen by traders who may know something. We address this in three ways. First, we condition on agent-level features where available, as KANFormer does. Second, we use the constraint $g_k(0, t)=0$ as a built-in check: the estimated footprint should be indistinguishable from zero in the smallest-$s$ decile. Third, we test footprint estimates against counterfactual order injection in a generative simulator.

The third component is a decision layer. A simple execution policy must work a parent order within a deadline. At each step it chooses the price level and size of child orders to minimize implementation shortfall, meaning the difference between the realized execution price and the price at decision time. Displacement under this policy forces repricing at worse levels. The policy is evaluated inside LOBS5, the state-space generative order book model benchmarked in LOB-Bench. LOB-Bench reports an average $L_1$ distance between generated and real market impact curves of 2.45 for LOBS5, versus 126 for RWKV-6. LOBS5 is therefore the only simulator in the file with evidence that it reacts to injected orders roughly like the real market.

Baselines

The naive reference point is an empirical fill-rate table. It uses a Kaplan–Meier fill curve, the standard nonparametric survival estimate, computed per price level relative to the best quote and ignoring all other state. A policy that rests at the level with the best historical fill-adjusted cost is what a desk would do without any model. Beating it on implementation shortfall is the minimum bar.

The strongest existing predictive methods are the two price-taker deep survival models. For KANFormer on CAC 40 futures the file reports a C-index of 0.72, an integrated AUC of 0.76 (versus 0.47 for ConvTrans without agent features), a right-censored log-likelihood score of 0.53 and an integrated Brier score of 0.027 (KANFormer). For the Deep Attentive model the file reports only a relative figure, an average 85% improvement in negative RCLL over MLP survival models; no absolute value on LOBSTER is available in the file. We will retrain both on our splits with an identical hyperparameter search budget and the same input features. Beating them means three things. Our model must match them within noise in the smallest-$s$ stratum, where it should collapse to the same model. It must have significantly lower integrated Brier score and cause-specific calibration error in the top two $s$ deciles. Those gains must hold across stocks.

The key ablation is the same price-taker architecture with $s$ appended as an ordinary input feature, trained with displacement treated as censoring. This isolates whether the gains come from the structural ingredients or merely from giving the network size information. The structural ingredients are the separate displacement cause, the sign constraints and the time-varying footprint. Two further ablations remove one ingredient each: competing risks without constraints, and constraints without competing risks.

On the decision side, the elliptic robust RL agent is the strongest impact-aware alternative. The file reports a Sharpe ratio of 2.48 on META, versus 1.74 for standard RL and −0.28 for symmetric robust RL (Robust RL in Finance). That result comes from a minute-level trading task, not from limit order execution, so the number is not directly comparable. We will reimplement its directional slippage idea as an execution policy in the same LOBS5 environment, with matched training compute, and compare implementation shortfall.

Why not just…?

Why not just add order size as a feature to KANFormer? This is the most serious threat, and it is why that variant is the central ablation rather than a strawman. An unconstrained network given $s$ will learn whatever correlation the logs contain. Large resting orders in logs are disproportionately placed by traders who expect fills, so the learned size effect can carry the wrong sign. Such a network also has no reason to extrapolate sensibly beyond the observed range of $s$. If the plain-feature model matches ours in the top $s$ deciles and in the simulator, our structural constraints add nothing, and we will say so.

Why not just use a parametric Weibull survival curve, as KANFormer does? A Weibull hazard is monotone, so it cannot represent impact that rises after submission and then fades. That pattern is exactly what the time-varying footprint term is meant to capture. The semi-parametric baseline also avoids committing to a curve shape. CoxCP shows this kind of flexibility costs little computationally (CoxCP). We nonetheless run a Weibull version of our model to measure how much the shape restriction actually costs.

Why not skip hazards and use robust RL with directional uncertainty sets? The elliptic sets in Robust RL in Finance have fixed orientation and model impact as continuous slippage. They say nothing about when a resting order exits or whether it fills at all, which is the quantity that limit order placement depends on. The head-to-head comparison in LOBS5 settles whether that extra resolution matters.

Why not just train an execution policy directly in the simulator and drop the explicit model? That would inherit every bias of the simulator. LOBS5's impact curves are close to reality on average but not exact. An explicit hazard model fitted on real logs and only validated in the simulator keeps the real data as the source of truth. We also report a direct RL policy as a reference.

Decisive Checks

Four results decide the project. First, price-taker survival models must show calibration error rising with size-to-depth ratio on held-out LOBSTER orders; without this, the premise fails. Second, our model must match the price-taker models in the small-order stratum and beat both them and the size-as-feature ablation in the large-order strata on integrated Brier score and cause-specific calibration. Third, the estimated footprint must have the constrained signs without the constraint being active at the boundary, and it must agree in sign and rough magnitude with footprints measured by injecting orders of varied size into LOBS5. Fourth, the execution policy built on our model must reduce implementation shortfall relative to the Kaplan–Meier, price-taker and elliptic baselines, with the advantage growing as parent order size grows. That growth with size is the signature of a model that has stopped assuming the trader is a price-taker.