Manuscript Offprint

arXiv:2610.19831

CTIA-ODE: Continuous-Time Inter-Variable Attention for Long-Term Time Series Forecasting

Chengyi Pan, Huangqimei Zheng, Hao Xue

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Although multivariate time series forecasting has broad application prospects, effectively incorporating exogenous variables remains challenging. Prevailing discrete-time architectures often impose rigid temporal alignment across heterogeneous variables, which may limit their ability to capture continuously evolving external effects. To address this limitation, we introduce CTIA-ODE, a continuous-time forecasting framework centered on Continuous-Time Inter-Variable Attention (CTIA). Specifically, CTIA is embedded within an ordinary differential equation (ODE) solver, enabling the continuously evolving endogenous trajectory to dynamically query a static exogenous context along the integration path without requiring explicit temporal alignment. To improve the stability of the continuous latent dynamics, we further introduce a dual-stabilization strategy: architecturally, a Linear Residual Augmentation (LRA) module provides a macroscopic trend anchor, while an Outlier-Robust Hybrid Loss (ORHL) mitigates the influence of heavy-tailed anomalies during optimization. Extensive experiments across eight real-world datasets demonstrate that CTIA-ODE achieves state-of-the-art forecasting performance across diverse datasets and prediction horizons, while maintaining a favorable accuracy-efficiency trade-off with a compact memory footprint and low inference latency, particularly under long-horizon forecasting settings. Anonymous code is available at https://anonymous.4open.science/r/CTIA-ODE-15A6/.

1 INTRODUCTION

Time series forecasting plays a crucial role in numerous key domains, including economics (Zhao et al., 2026), weather evolution (Pan et al., 2026) and healthcare management (Che et al., 2025). In real-world complex systems, such as power grids or financial markets, the severe fluctuations of target endogenous variables are fundamentally driven by external factors like holidays, macroeconomic indicators (Carriero et al., 2024), or extreme weather (Zhao et al., 2026; Zhou et al., 2025; Dong et al., 2026). Ignoring these exogenous variables in forecasting models directly caps the predictive upper bound, as they cannot anticipate systemic state shifts brought by external shocks (Wang et al., 2024; Alaali, 2026).

The mainstream approaches in recent years have mainly been based on Recurrent Neural Networks (RNNs) (Lin et al., 2025) and Transformers (Zhao et al., 2026; Liu et al., 2025; Chen et al., 2025b). RNNs rely on the step-by-step update of hidden states to process sequences, smoothly capturing dynamic temporal dependencies (Alharthi & Mahmood, 2024; Sun et al., 2026). Transformer architectures utilize global self-attention mechanisms to achieve parallel computation across time steps, demonstrating exceptional expressive power in capturing long-range temporal correlations.

∗^{*}Corresponding author.

(a) Continuous-Time Asymmetric Fusion

Figure

(b) Multivariate Forecasting Performance (Average MSE)

Figure

(c) Hidden State Cosine Similarity Over Time

Figure

(d) t-SNE Visualization of Latent Dynamics

Figure

Figure 1: Motivation and empirical characteristics of CTIA-ODE. (a) Real-world exogenous variables may exhibit missing values, temporal misalignment, and frequency mismatch, motivating an asymmetric continuous-time fusion paradigm. (b) Forecasting performance on representative benchmarks. (c) Evolution of hidden-state similarity over the integration process, illustrating the difference between discrete representations and the continuous latent dynamics of CTIA-ODE. (d) t-SNE visualization of the learned latent states, providing a qualitative view of their temporal organization and representation stability.

(Zhao et al., 2026; Soe & Win, 2026). However, when attempting to simultaneously capture cross-correlations among multiple variables, both paradigms frequently fall into over-parameterization (Li & Lin, 2024). Real-world data is often limited in samples and accompanied by unpredictable noise(Godahewa et al., 2021); overly complex dependency modeling mechanisms and excessively deep network architectures easily lead to severe overfitting (Zhao et al., 2026; Zhou et al., 2025; Huang et al., 2023). This not only degrades the model's generalization ability but also causes precious high-frequency dynamic information to be over-smoothed (Hu et al., 2026). This issue is not limited to prediction accuracy, but also concerns how latent representations evolve during forecasting. As illustrated in Figure 1(c–d), we therefore examine both the temporal evolution and latent-space organization of hidden states, providing complementary evidence for the continuous dynamics modeled by CTIA-ODE.

Beyond latent representation dynamics, incorporating exogenous variables introduces another layer of difficulty. Exogenous and endogenous variables possess distinctly different physical meanings (Zhou et al., 2025; Bi et al., 2024). Conflating them indiscriminately not only creates massive computational redundancy but also induces unnecessary reverse causal interference (Cheong et al., 2026; Zhou et al., 2025; Wang et al., 2024). Therefore, striking a balance between endogenous and exogenous features is particularly important. In past deep learning research, the many-to-one forecasting paradigm with exogenous variables was insufficiently explored (Han et al., 2026; Zhou et al., 2025), but recently this core pain point has rapidly become a major focus in the time series community (Zhou et al., 2025). Cutting-edge methods have proposed various fusion strategies. TimeXer employs an asymmetric representation granularity, utilizing global endogenous tokens to interact with exogenous variable tokens (Wang et al., 2024). CrossLinear introduces a cross-correlation embedding module to integrate external information (Zhou et al., 2025). ChronosX incorporates covariates into pretrained time series models (Cheong et al., 2026).

Despite significant progress, existing methods still face important limitations in incorporating exogenous information. To circumvent variable frequency mismatches, many approaches reduce the role of exogenous variables to simple auxiliary contextual representations (Liu et al., 2026; Wu et al., 2025; Zhou et al., 2025). However, a more fundamental challenge arises from the discrete ar-chitectures commonly used for multivariate forecasting (Bartolucci et al., 2019; Zhang et al., 2024). When heterogeneous endogenous and exogenous sequences are forced into strict step-by-step temporal alignment, substantial computational redundancy arises, while the resulting symmetric interactions frequently introduce unnecessary interference between primary and auxiliary variables (Yuan et al., 2026; Habiba et al., 2026). Consequently, conventional discrete attention mechanisms have difficulty modeling continuous interactions between an evolving endogenous trajectory and heterogeneous exogenous information without explicit temporal alignment (Wang et al., 2024).

Based on the above analysis, this study introduces a continuous-time perspective based on ordinary differential equations (ODEs) (Rubanova et al., 2019; Kidger et al., 2020) and proposes CTIA-ODE, a continuous-time forecasting architecture centered on Continuous-Time Inter-Variable Attention (CTIA). The model evolves the latent endogenous representation through an ODE solver while allowing the continuously evolving trajectory to dynamically generate query representations along the integration path. These queries interact with a static exogenous context constructed from external variables, enabling continuous-time cross-variable interaction without explicit step-by-step temporal alignment. To enhance the stability of the resulting latent dynamics, CTIA-ODE further incorporates a Linear Residual Augmentation (LRA) module and an Outlier-Robust Hybrid Loss (ORHL). As illustrated in Figure 1, this asymmetric design separates the evolving endogenous trajectory from the exogenous context while allowing information to flow continuously from the latter to the former.

Our primary contributions are summarized as follows:

• We propose CTIA-ODE, a continuous-time forecasting architecture centered on Continuous-Time Inter-Variable Attention (CTIA). This asymmetric mechanism enables the continuously evolving endogenous trajectory to dynamically query a static exogenous context, achieving cross-variable interaction without explicit temporal alignment or quadratic temporal complexity.

• We introduce a dual-stabilization strategy to safeguard the continuous latent dynamics. Architecturally, a Linear Residual Augmentation (LRA) module provides a macroscopic trend anchor; during optimization, an Outlier-Robust Hybrid Loss (ORHL) suppresses gradient spikes and mitigates the influence of heavy-tailed anomalies, significantly improving the robustness of the learned vector field.

• Comprehensive evaluations across eight real-world benchmarks demonstrate that CTIA-ODE achieves state-of-the-art performance. Beyond superior predictive accuracy, our framework exhibits a favorable accuracy-efficiency trade-off, operating with a compact memory footprint and low inference latency, particularly under extreme long-horizon settings.

References (54)

  • Enhanced linear and vision transformer-based architectures for time series forecasting
  • Hybrid renewable energy systems: Influence of short term forecasting on model predictive control performance
  • Spatiotemporal learning with decoupled causal attention for multivariate time series
  • Macroeconomic forecasting with large language models (opens arXiv in a new tab)
  • Fusion-driven multimodal learning for biomedical time series in surgical care
  • Multivariate time series prediction with multi-feature analysis
  • Neural ordinary differential equations
  • Mode: Efficient time series prediction with mamba enhanced by low-rank neural odes (opens arXiv in a new tab)
  • A closer look at transformers for time series forecasting: Understanding why they work and where they struggle
  • Assessing electricity demand forecasting with exogenous data in time series foundation models (opens arXiv in a new tab)
  • Ftsformer: A financial-initiated multi-scale transformer with exogenous fusion for time series forecasting
  • Augmented neural odes
  • Dish-ts: A general paradigm for alleviating distribution shift in time series forecasting
  • Normalized robust pca with adaptive reconstruction error minimization
  • Monash time series forecasting archive (opens arXiv in a new tab)
  • Efficiently Modeling Long Sequences with Structured State Spaces
  • Emerging trends and open challenges in time series modeling
  • Causal-inspired regularization and dynamic embeddings network for time series forecasting and energy saving of household electricity
  • Liquid time-constant networks
  • Bridging past and future: Distribution-aware alignment for time series forecasting
  • Crossgnn: Confronting noisy multivariate time series via cross interaction refinement
  • Neural controlled differential equations for irregular time series
  • A comprehensive survey of deep learning for time series forecasting: Architectural diversity and open challenges
  • Reversible instance normalization for accurate time-series forecasting against distribution shift
  • Shape and time distortion loss for training deep time series forecasting models
  • Improving adaptivity via over-parameterization in sequence models
  • Revisiting long-term time series forecasting: An investigation on linear mapping (opens arXiv in a new tab)
  • Segrnn: Segment recurrent neural network for long-term time series forecasting
  • Are global dependencies necessary? scalable time series forecasting via local cross-variate modeling
  • Attribution of nonstationary changes in the annual runoff of the weihe river using the de-nonstationarity method
  • itransformer: Inverted transformers are effective for time series forecasting
  • Timer-xl: Long-context transformers for unified time series forecasting
  • Dissecting neural odes
  • A time series is worth 64 words: Long-term forecasting with transformers
  • N-beats: Neural basis expansion analysis for interpretable time series forecasting (opens arXiv in a new tab)
  • Cityscalecast: Spatiotemporal gnn for city-scale weather prediction with graphcast-guided parallel modeling and multi-step forecasting in sendai
  • Latent ordinary differential equations for irregularly-sampled time series
  • Cognos: Universal enhancement for time series anomaly detection via constrained gaussian-noise optimization and smoothing (opens arXiv in a new tab)
  • Adaptive scaling-enhanced dual attention postlstm model for time series data
  • A review of deep learning methods for irregularly sampled medical time series data
  • Timexer: Empowering transformers for time series forecasting with exogenous variables
  • Is mamba effective for time series forecasting? Neurocomputing, 619:129178, 2025
  • Millgnn: Learning multi-scale lead-lag dependencies for multi-variate time series forecasting
  • Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting
  • Timesnet: Temporal 2d-variation modeling for general time series analysis
  • Tackling data heterogeneity in federated time series forecasting
  • Are transformers effective for time series forecasting? In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pp. 11121–11128, 2023
  • Asymmetric attention model for ride-sharing problem based on time-varying road networks
  • Autoformer: Efficient hierarchical autoregressive transformer for time series prediction
  • Crossformer: Transformer utilizing cross-dimension dependency for multivariate time series forecasting
  • A survey of transformer networks for time series forecasting
  • Informer: Beyond efficient transformer for long sequence time-series forecasting
  • Crosslinear: Plug-and-play cross-correlation embedding for time series forecasting with exogenous variables
  • Wavelet mixture of experts for time series forecasting