HRFT: Mining High-Frequency Risk Factor Collections End-to-End via Transformer
Authors:
Preprint
Abstract
In quantitative trading, it is common to find patterns in short term volatile trends of the market. These patterns are known as High Frequency (HF) risk factors, serving as key indicators of future stock price volatility. Traditionally, these risk factors were generated by financial models relying heavily on domain-specific knowledge manually added rather than extensive market data. Inspired by symbolic regression (SR), which infers mathematical laws from data, we treat the extraction of formulaic risk factors from high-frequency trading (HFT) market data as an SR task. In this paper, we challenge the manual construction of risk factors and propose an end-to-end methodology, Intraday Risk Factor Transformer (IRFT), to directly predict complete formulaic factors, including constants. We use a hybrid symbolic-numeric vocabulary where symbolic tokens represent operators/stock features and numeric tokens represent constants. We train a Transformer model on the HFT dataset to generate complete formulaic HF risk factors without relying on a predefined skeleton of operators. It determines the general shape of the stock volatility law up to a choice of constants. We refine the predicted constants (a, b) using the Broyden Fletcher Goldfarb Shanno algorithm (BFGS) to mitigate non-linear issues. Compared to the 10 approaches in SRBench, a living benchmark for SR, IRFT gains a 30% excess investment return on the HS300 and SP500 datasets, with inference times orders of magnitude faster than theirs in HF risk factor mining tasks.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- Mining the factor zoo: Estimation of latent factor models with sufficient proxiesJournal of Econometrics, 2023
- Statistical Evaluation of Deep Learning Models for Stock Return ForecastingComputational Economics, 2022
- Factor models with many assets: Strong factors, weak factors, and the two-pass procedureJournal of Econometrics, 2022
- Stock price prediction using deep learning and frequency decompositionExpert Systems with Applications, 2021
- Augmented factor models with applications to validating market risk factors and forecasting bond risk premiaJournal of Econometrics, 2021
- Portfolio optimization with return prediction using deep learning and machine learningExpert Systems with Applications, 2021
- Using principal component analysis to estimate a high dimensional factor model with high-frequency dataJournal of Econometrics, 2017
- Determining the number of factors when the number of factors can increase with sample sizeJournal of Econometrics, 2017
- Graphics processing units and genetic programming: an overviewSoft Computing, 2011
- The empirical risk–return relation: A factor analysis approach☆Journal of Financial Economics, 2007