HRformer: A Hybrid Relational Transformer for Stock Time Series Forecasting

Stock trend prediction is a complex and crucial task due to the dynamic and nonlinear nature of stock price movements. Traditional models struggle to capture the non-stationary and volatile characteristics of financial time series. To address this challenge, we propose the Hybrid Relational Transformer (HRformer), which specifically decomposes time series into multiple components, enabling more accurate modeling of both short-term and long-term dependencies in stock data. The HRformer mainly comprises three key modules: the Multi-Component Decomposition Layer, the Component-wise Temporal Encoder (CTE), and the Inter-Stock Correlation Attention (ISCA). Our approach first employs the Multi-Component Decomposition Layer to decompose the stock sequence into trend, cyclic, and volatility components, each of which is independently modeled by the CTE to capture distinct temporal dynamics. These component representations are then adaptively integrated through the Adaptive Multi-Component Integration (AMCI) mechanism, which dynamically fuses their information. The fused output is subsequently refined by the ISCA module to incorporate inter-stock correlations, leading to more accurate and robust predictions. Extensive experiments on the NASDAQ100 and CSI300 datasets demonstrate that HRformer consistently outperforms state-of-the-art methods, e.g., achieving about 0.83% higher Accuracy and 1.78% higher F1-score than TDformer on NASDAQ100, with Sharpe Ratios of 1.5354 on NASDAQ100 and 0.5398 on CSI300, especially in volatile market conditions. Backtesting results validate its practical utility in real-world trading scenarios, showing its potential to enhance investment decisions and portfolio performance.

Authors

Institutions

Publication Details

Journal
Electronics
Published
2025-11-15
DOI
https://doi.org/10.3390/electronics14224459
Citations
1
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
2.11

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

HRformer: A Hybrid Relational Transformer for Stock Time Series Forecasting

Haijiao Xu, Yilin Wu, J. P. Zheng, Hongyang Wan et al.
1 citations
Electronics
Stock Market Forecasting Methods
2.11
article

HRformer: A Hybrid Relational Transformer for Stock Time Series Forecasting

Haijiao Xu, Yilin Wu, J. P. Zheng, Hongyang Wan, Liang Xie
article en
1 citations

Abstract

Stock trend prediction is a complex and crucial task due to the dynamic and nonlinear nature of stock price movements. Traditional models struggle to capture the non-stationary and volatile characteristics of financial time series. To address this challenge, we propose the Hybrid Relational Transformer (HRformer), which specifically decomposes time series into multiple components, enabling more accurate modeling of both short-term and long-term dependencies in stock data. The HRformer mainly comprises three key modules: the Multi-Component Decomposition Layer, the Component-wise Temporal Encoder (CTE), and the Inter-Stock Correlation Attention (ISCA). Our approach first employs the Multi-Component Decomposition Layer to decompose the stock sequence into trend, cyclic, and volatility components, each of which is independently modeled by the CTE to capture distinct temporal dynamics. These component representations are then adaptively integrated through the Adaptive Multi-Component Integration (AMCI) mechanism, which dynamically fuses their information. The fused output is subsequently refined by the ISCA module to incorporate inter-stock correlations, leading to more accurate and robust predictions. Extensive experiments on the NASDAQ100 and CSI300 datasets demonstrate that HRformer consistently outperforms state-of-the-art methods, e.g., achieving about 0.83% higher Accuracy and 1.78% higher F1-score than TDformer on NASDAQ100, with Sharpe Ratios of 1.5354 on NASDAQ100 and 0.5398 on CSI300, especially in volatile market conditions. Backtesting results validate its practical utility in real-world trading scenarios, showing its potential to enhance investment decisions and portfolio performance.

ElectronicsVol. 14(22)
Wuhan University of Technology (CN), Guangdong University of Education (CN)
Natural Science Foundation of Guangdong Province
Openalex Percentile: Top 9%
Stock Market Forecasting Methods
2.11
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.