Manuscript Offprint

arXiv:2610.29245

CrashGym: Measuring the Decision Value of Experimentation for LLM Agents in Counterfactual Market Crashes

Haocheng Lu, Haoxuan Cheng, Mingyang Chen, Minjun Zhu

Abstract

Language-model agents are increasingly asked to run experiments, yet benchmarks rarely measure whether those experiments improve the decisions they are meant to inform. We introduce CrashGym, a deterministic, replayable limit-orderbook simulator in which an agent must choose between a deleveraging intervention and a liquidity backstop for a market about to suffer a shock-triggered crash. Before committing, the agent may query intervention experiments in a laboratory realization of the market. Its choice is then scored on an independently seeded target realization in which the simulator executes every feasible intervention, so regret relative to the best intervention is computed by directly simulating every alternative on the same target repeats, with no human or model-based judging. The simulator implements each amplification channel—persistent price impact, liquidity withdrawal, margin-driven liquidation, and an evolving strategy mix—as an explicit mechanism that can be switched on in stages. In a prospectively specified study on 24 newly sampled worlds, laboratory access reduces the mean regret of the one deployment with a complete record (Luna) from 8.878 to 3.785, a paired reduction of 5.092 utility units (nominal 95% world-bootstrap interval: 1.028–9.507), or 57.4% of the OBSERVEONLY mean. Prospective comparisons for two further deployments are incomplete; in a separate exploratory study, mean regret is lower with laboratory access for all four deployments evaluated. A laboratory whose strategy mix evolves endogenously yields no established advantage over one with a fixed mix. CrashGym thus measures the value of experimentation as avoided decision loss and lets simulator detail be judged by the decisions it supports.

1 Introduction

A market is about to fall sharply. A policy agent must recommend one of two interventions: force leveraged holders to cut their positions, or post a standing bid that supplies liquidity. Both are defensible a priori. Deleveraging can preempt the cycle of margin calls and forced selling, whereas a liquidity backstop can absorb that selling before it moves prices [1, 11, 25]. Which intervention is better depends on which amplification channel dominates in the market at hand. We ask whether an agent that can first experiment on a laboratory copy of the market chooses better, and by how much.

Language-model agents are increasingly evaluated as experimenters: they design studies, run code, and report findings [15,16,22][15, 16, 22]. Most evaluations, however, score the research process or its products—task completion, explanation quality, or recovery of a latent structure. Completing an experiment and benefiting from it are different outcomes. Measuring the benefit requires two ingredients that are rarely available together: the same decision-maker observed with and without experimental access, and the counterfactual outcome of every action it could have taken. The second ingredient is unobservable in historical data.

Approach. CrashGym supplies both ingredients inside a deterministic agent-based market (Figure 1). An agent receives a public observation, may query intervention experiments in a laboratory realization, and then commits to one intervention. The simulator executes every feasible intervention on an independent target realization that the agent never observes. Regret—the utility gap between the best intervention and the chosen one—is therefore exact for the realized target repeats. Comparing regret across information conditions yields the gross decision value of experimentation, a realized counterpart of the classical value of sample information [14, 21, 23]. Because the simulator's amplification channels are explicit mechanisms that can be enabled in stages, the same outcome also tests whether added simulator detail improves the decision it is meant to support.

Contributions.

• A counterfactual market laboratory. We describe an exchange core with exact integer accounting, event-sourced replay, and counter-based randomness, together with a crash construction whose amplification channels can be enabled in cumulative stages (Section 3).

Figure

Figure 1: Task overview. A world constructor w is instantiated with two disjoint seed cohorts. (a) In the laboratory cohort the agent may run intervention experiments and receives public eight-repeat summaries. (b) Its committed action is scored on the other cohort, where the simulator executes both feasible interventions; regret is the utility gap to the better one. Target outcomes are never visible to the agent. Under OBSERVE-ONLY, the agent decides from the initial observation alone.

• A decision-grounded evaluation task. A laboratory in which the agent acquires interventional evidence is separated from an independently seeded target on which every feasible intervention is executed and scored. This yields exact counterfactual regret for every decision (Section 4).

• Controlled evidence. With identical targets, we compare no access, two laboratory designs, and a tool placebo, sampling new worlds prospectively and using a stratified whole-world bootstrap (Section 5). Laboratory access lowers Luna’s mean regret by 5.092 units on 24 newly sampled worlds, meeting the prespecified criterion. An evolving strategy mix in the laboratory yields no established additional benefit (Section 6).

The measured value is avoided loss in simulator utility units. Net value would additionally require the costs of experimentation and inference, which we do not measure.

References (27)