arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.02247q-fin.CPcs.AIcs.CEcs.LGq-fin.TR
收藏

ByteGen:字节空间中订单簿事件的免分词生成模型

ByteGen: A Tokenizer-Free Generative Model for Orderbook Events in Byte Space

Stevens Institute of Technology(史蒂文斯理工学院)

Yang Li, Zhi Chen

AI总结:

针对高频订单簿建模中分词损失精度的问题,提出免分词字节级生成模型ByteGen,基于H-Net架构直接预测原始字节流,在CME比特币期货数据上验证了其能再现市场典型事实。

摘要:

高频限价订单簿(LOB)动力学的生成建模是量化金融中一个关键但尚未解决的挑战,对于稳健的市场模拟和策略回测至关重要。现有方法往往受限于简化的随机假设,或者在现代深度学习模型(如Transformer)的情况下,依赖于通过离散化和分箱处理影响金融数据高精度数值特性的分词方案。为解决这些局限,我们提出了ByteGen,一种直接对LOB事件的原始字节流进行操作的新型生成模型。我们的方法将该问题视为自回归的下一字节预测任务,为此我们设计了一种紧凑高效的32字节打包二进制格式来表示市场消息,且无信息损失。我们工作的核心创新在于完全消除了特征工程和分词,使模型能够从其最基础的表示中学习市场动态。我们通过改编H-Net架构来实现这一点,该架构是一种混合Mamba-Transformer模型,利用动态分块机制在无需预定义规则的情况下发现市场消息的内在结构。我们的主要贡献包括:1)首个用于LOB建模的端到端字节级框架;2)一种高效的打包数据表示;3)在高频数据上的全面评估。基于CME比特币期货超过3400万个事件进行训练,ByteGen成功再现了金融市场的关键典型事实,生成了真实的价格分布、重尾收益和突发性事件时序。我们的研究结果表明,直接从字节空间学习是建模复杂金融系统的一种有前景且高度灵活的范式,在标准市场质量指标上取得了具有竞争力的性能,且避免了分词带来的偏差。

英文摘要:

Generative modeling of high-frequency limit order book (LOB) dynamics is a critical yet unsolved challenge in quantitative finance, essential for robust market simulation and strategy backtesting. Existing approaches are often constrained by simplifying stochastic assumptions or, in the case of modern deep learning models like Transformers, rely on tokenization schemes that affect the high-precision, numerical nature of financial data through discretization and binning. To address these limitations, we introduce ByteGen, a novel generative model that operates directly on the raw byte streams of LOB events. Our approach treats the problem as an autoregressive next-byte prediction task, for which we design a compact and efficient 32-byte packed binary format to represent market messages without information loss. The core novelty of our work is the complete elimination of feature engineering and tokenization, enabling the model to learn market dynamics from its most fundamental representation. We achieve this by adapting the H-Net architecture, a hybrid Mamba-Transformer model that uses a dynamic chunking mechanism to discover the inherent structure of market messages without predefined rules. Our primary contributions are: 1) the first end-to-end, byte-level framework for LOB modeling; 2) an efficient packed data representation; and 3) a comprehensive evaluation on high-frequency data. Trained on over 34 million events from CME Bitcoin futures, ByteGen successfully reproduces key stylized facts of financial markets, generating realistic price distributions, heavy-tailed returns, and bursty event timing. Our findings demonstrate that learning directly from byte space is a promising and highly flexible paradigm for modeling complex financial systems, achieving competitive performance on standard market quality metrics without the biases of tokenization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑