Skip to content
Open access

Enhancing TimeXer with TCN and differential attention for multivariate stock forecasting

Sep 2026 · Complex & Intelligent Systems · 0 citations

TL;DR

DAT-TimeXer is proposed, a structure-aware adaptation of TimeXer for closing-price forecasting that achieves the lowest mean forecasting errors among the compared models in the one-step evaluations and maintains lower errors at horizons of 1, 3, 5, and 10 in the evaluated multi-step tasks.

Abstract

Multivariate stock forecasting requires models that can preserve short-lived price dynamics while using auxiliary market variables without amplifying unstable cross-variable relations. TimeXer provides an Endo/Exo dual-branch architecture that separates target-sequence modeling from auxiliary-variable interaction, but its patch-level tokenization may underrepresent fine-grained local transitions, while standard Exo-branch attention may be sensitive to redundant or weakly informative variables. This paper proposes DAT-TimeXer, a structure-aware adaptation of TimeXer for closing-price forecasting. The model introduces a temporal convolutional network before tokenization to encode causal and dilated local temporal patterns at the original resolution, and applies multi-head differential attention exclusively to the Exo branch. By contrasting two independently learned attention maps, the Exo-side module refines auxiliary-variable dependencies before Endo–Exo interaction while preserving target-sequence dynamics in the Endo branch. Experiments are conducted on three Chinese A-share series and nine U.S.-listed stocks using chronological splits, training-only feature screening, and one-step and multi-step forecasting settings. DAT-TimeXer achieves the lowest mean forecasting errors among the compared models in the one-step evaluations and maintains lower errors at horizons of 1, 3, 5, and 10 in the evaluated multi-step tasks. Cross-asset ablation, chronological subperiod, statistical, and attention analyses provide further evidence for the complementary contributions of pre-tokenization TCN enhancement and Exo-specific differential attention. The added components introduce moderate computational overhead relative to TimeXer.

Read PDF

Similar papers

Open access Aug 2026

A Stock Market Price Prediction Model Integrating a CNN–Transformer Dual-Channel Dynamic Attention Architecture

A CNN–Transformer dual-channel architecture equipped with a dynamic attention fusion module for stock price forecasting that reduces mean absolute error and root mean square error and remains effective across markets with differing volatility profiles is introduced.

Chengcheng Han, Jing-Wei Guo, Xingyu Feng · 0 citations

Persistent Structure Meets Dynamic Attention: Cross-Variable Priors for Multivariate Time Series Forecasting

A Params-Per-Pair diagnostic is introduced that predicts from dataset properties alone whether structural priors will help and reveals a horizon-dependent complementarity: the structural prior contributes 33% of the gain at short horizons but 88% at long horizons, confirming that time-invariant knowledge compensates as...

C. Mohapatra, Rohit Malshe, J. Pachón · 0 citations
Open access Aug 2026

CASCADED GLOBAL–LOCAL REPRESENTATION LEARNING FOR FINANCIAL TIME-SERIES FORECASTING

The findings indicate that passing attention-derived context into a bidirectional memory module offers a practical means of combining long-horizon structure with local temporal variation, although computational cost remains relevant for latency-sensitive trading applications.

Hao Wu · 0 citations
Book Open access Aug 2026

Disentangled Dual-Granularity Learning for Market-Adaptive Stock Return Forecasting under Non-Stationary Environments

Deep learning has emerged as a prominent paradigm in stock return forecasting, demonstrating remarkable capabilities in extracting non-linear patterns from historical stock data. However, existing approaches often process stock features as a monolithic input with fixed temporal receptive fields. This structural inflexi...

Minghui Su, Xiao-Bo Guo, Deyu Tian et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.