Controllable Financial Market Generation with Diffusion Guided Meta Agent
Yu-Hao Huang, Chang Xu, Yang Liu, Weiqing Liu, Wu-Jun Li, Jiang Bian
TL;DR
This work tackles controllable financial market generation by introducing DigMA, a two-stage framework that unifies a diffusion-based meta-controller with a market-aware order generator. The meta-controller learns intraday market-state dynamics under scenario targets using a conditional diffusion model, while the order generator employs a meta agent with financial priors to produce realistic orders within a simulated double-auction exchange. Across two real tick datasets, DigMA demonstrates strong controllability and fidelity to stylized facts, and it provides an effective, efficient generative environment for downstream high-frequency trading tasks. The approach enables scenario-based testing and counterfactual analyses with real-time generation speed, offering practical value for research and development in finance.
Abstract
Generative modeling has transformed many fields, such as language and visual modeling, while its application in financial markets remains under-explored. As the minimal unit within a financial market is an order, order-flow modeling represents a fundamental generative financial task. However, current approaches often yield unsatisfactory fidelity in generating order flow, and their generation lacks controllability, thereby limiting their practical applications. In this paper, we formulate the challenge of controllable financial market generation, and propose a Diffusion Guided Meta Agent (DigMA) model to address it. Specifically, we employ a conditional diffusion model to capture the dynamics of the market state represented by time-evolving distribution parameters of the mid-price return rate and the order arrival rate, and we define a meta agent with financial economic priors to generate orders from the corresponding distributions. Extensive experimental results show that DigMA achieves superior controllability and generation fidelity. Moreover, we validate its effectiveness as a generative environment for downstream high-frequency trading tasks and its computational efficiency.
