< back

STBM+: Advanced Stochastic Trading Behavior Model for Financial Markets using Residual Blocks or Transformers

Masanori HIRANO, Kiyoshi IZUMI, Hiroki SAKAJI

New Generation Computing, Springer, vol.40, no.1, pp. 7-24, 2022


This study proposes a new model to reverse engineer and predict traders’ behavior for the financial market. This trial is essential to build a more reliable simulation because the reliability of models is a fundamental issue in the increasing use of simulations. Thus, we tried to build a behavior model of financial traders through the traders’ future action predicting using the actual order data. This study focused on one category of traders employing high-frequency market-making (HFT-MM) trading in financial markets. In our experiments, we build models for predicting the next actions of each trader and evaluate how correctly these models successfully predict trades’ future actions in the next one minutes. Although the task is the same as previous work, this study newly used an architecture based on the transformer and residual block, and a loss function based on the Kullback-Leibler divergence (KLD). In addition, we established a new evaluation metric. Consequently, our new models, both transformer-based and residual-block-based models, outperformed the previous model based on LSTM in terms of both old and new evaluation metrics. These results suggested that transformer and residual block are effective in capturing traders’ behaviors. In addition, the KLD-based new loss function also showed better results than the previous MSE-based loss function. We assumed it is because the KLD-based loss function has a better fitting to this task due to its mathematical form.


Financial Market; Behavior Modeling; Trader Model; High-frequency Trading;




  title={{STBM+: Advanced Stochastic Trading Behavior Model for Financial Markets using Residual Blocks or Transformers}},
  autor={Masanori HIRANO and Kiyoshi IZUMI and Hiroki SAKAJI},
  journal={New Generation Computing},