English

Neural Hidden Markov Model with Adaptive Granularity Attention for High-Frequency Order Flow Modeling

Statistical Finance 2026-03-24 v1 Trading and Market Microstructure

Abstract

We propose a Neural Hidden Markov Model (HMM) with Adaptive Granularity Attention (AGA) for high-frequency order flow modeling. The model addresses the challenge of capturing multi-scale temporal dynamics in financial markets, where fine-grained microstructure signals and coarse-grained liquidity trends coexist. The proposed framework integrates parallel multi-resolution encoders, including a dilated convolutional network for tick-level patterns and a wavelet-LSTM module for low-frequency dynamics. A gating mechanism conditioned on local volatility and transaction intensity adaptively fuses multi-scale representations, while a multi-head attention layer further enhances temporal dependency modeling. Within this architecture, a Neural HMM with conditional normalizing flow emissions is employed to jointly model latent market regimes and complex observation distributions. Empirical results on high-frequency limit order book data demonstrate that the proposed model outperforms fixed-resolution baselines in predicting short-term price movements and liquidity shocks. The adaptive granularity mechanism enables the model to dynamically adjust its focus across time scales, providing improved performance particularly during volatile market conditions.

Keywords

Cite

@article{arxiv.2603.20456,
  title  = {Neural Hidden Markov Model with Adaptive Granularity Attention for High-Frequency Order Flow Modeling},
  author = {Tianzuo Hu},
  journal= {arXiv preprint arXiv:2603.20456},
  year   = {2026}
}

Comments

23 pages, 3 figures. Empirical study of multi-scale sequence modeling and latent regime dynamics in high-frequency financial data

R2 v1 2026-07-01T11:30:39.934Z