arXiv:2502.07071q-fin.TRcs.AI2025-02被引 6

用扩散模型生成逼真高频订单簿数据,提升交易策略测试效果

TRADES: Generating Realistic Market Simulations with Diffusion Models

  • 基于Transformer的扩散模型,条件生成订单簿时间序列
  • 预测得分比现有最佳方法提升3.27和3.48,验证数据有效性
  • 开源框架DeepMarket+合成数据集,支持策略评估与市场影响实验

金融市场是高噪声、非线性、波动性强且持续演化的复杂系统,建模难度极大。本文提出一种基于Transformer的去噪扩散概率引擎(TRADES),用于生成真实且响应灵敏的限价订单簿(LOB)市场仿真数据,可支撑交易策略校准、市场冲击实验及合成市场数据生成。为填补生成模型评估指标空白,我们引入预测得分(基于MAE),通过在合成数据上训练股价预测模型并在真实数据上测试来衡量生成质量。在两只股票上的对比实验显示,预测得分分别优于当前最优方法3.27和3.48,证明生成数据具备下游金融任务实用性。此外,我们验证了仿真系统的现实性与响应能力,其能有效学习条件分布并响应实验代理行为,为策略标定与市场影响分析提供可能。为此,我们开发了首个基于深度学习的开源订单簿仿真框架DeepMarket,项目中包含由TRADES生成的合成订单簿数据集。

原文摘要 · Abstract (English)

Financial markets are complex systems characterized by high statistical noise, nonlinearity, volatility, and constant evolution. Thus, modeling them is extremely hard. Here, we address the task of generating realistic and responsive Limit Order Book (LOB) market simulations, which are fundamental for calibrating and testing trading strategies, performing market impact experiments, and generating synthetic market data. We propose a novel TRAnsformer-based Denoising Diffusion Probabilistic Engine for LOB Simulations (TRADES). TRADES generates realistic order flows as time series conditioned on the state of the market, leveraging a transformer-based architecture that captures the temporal and spatial characteristics of high-frequency market data. There is a notable absence of quantitative metrics for evaluating generative market simulation models in the literature. To tackle this problem, we adapt the predictive score, a metric measured as an MAE, to market data by training a stock price predictive model on synthetic data and testing it on real data. We compare TRADES with previous works on two stocks, reporting a 3.27 and 3.48 improvement over SoTA according to the predictive score, demonstrating that we generate useful synthetic market data for financial downstream tasks. Furthermore, we assess TRADES's market simulation realism and responsiveness, showing that it effectively learns the conditional data distribution and successfully reacts to an experimental agent, giving sprout to possible calibrations and evaluations of trading strategies and market impact experiments. To perform the experiments, we developed DeepMarket, the first open-source Python framework for LOB market simulation with deep learning. In our repository, we include a synthetic LOB dataset composed of TRADES's generated simulations.

扩散模型订单簿仿真金融生成模型量化交易

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。