Enhancing Multi-Factor Stock Selection with Transformer Networks: A Comparative Analysis Against Traditional Machine Learning Models
Abstract
Traditional multi-factor stock selection models often fail to capture complex non-linear dynamics and long-range dependencies in financial markets. This study addresses these limitations by proposing a Transformer-based model, enhanced with Time2Vec, to predict daily stock returns in the Chinese A-share market (2020-2024). We rigorously compare its performance against traditional machine learning (e.g., OLS, XGBoost) and sequential architectures (LSTM, RNN) within a realistic backtesting framework that includes transaction costs. The Transformer model demonstrated superior performance, achieving a 16.41% annualized excess return, a 0.87 Sharpe ratio, and a 15.02% maximum drawdown, significantly outperforming all benchmarks. These findings validate that the Transformer’s self-attention mechanism is highly effective for modeling complex, long-term interactions among financial factors, offering a more robust methodology for quantitative investment.
BibTeX
@inproceedings{lu2025enhancing,
author = {Siqi Lu and Song Bi and Guowen Li},
title = {{Enhancing Multi-Factor Stock Selection with Transformer Networks: A Comparative Analysis Against Traditional Machine Learning Models}},
booktitle = {Procedia},
year = {2025},
doi = {10.1016/j.procs.2025.08.127},
}Ask Althea to put this paper to the test.
Loading related content...