DeformTime: Capturing Variable Dependencies with Deformable Attention for Time Series Forecasting
Yuxuan Shu, Vasileios Lampos
TL;DR
DeformTime addresses the challenge of leveraging exogenous predictors in multivariate time series forecasting by introducing deformable attention blocks that learn inter-variable and intra-variable dependencies. The model employs a variable deformable attention block (V-DAB) and a temporal deformable attention block (T-DAB) within a dual-branch encoder, augmented by a neighbourhood-aware input embedding (NAE) and positional encodings, followed by a GRU-based decoder. Across six real-world datasets, including infectious disease applications with many exogenous predictors, DeformTime achieves an average MAE reduction of 7.2% compared with strong baselines, with larger gains in disease forecasting tasks and longer horizons. The method demonstrates robust performance, scalable memory usage, and clear ablation-supported benefits from modeling variable interactions and multi-granularity temporal patterns, suggesting practical value for real-time MTS monitoring and forecasting.
Abstract
In multivariable time series (MTS) forecasting, existing state-of-the-art deep learning approaches tend to focus on autoregressive formulations and often overlook the potential of using exogenous variables in enhancing the prediction of the target endogenous variable. To address this limitation, we present DeformTime, a neural network architecture that attempts to capture correlated temporal patterns from the input space, and hence, improve forecasting accuracy. It deploys two core operations performed by deformable attention blocks (DABs): learning dependencies across variables from different time steps (variable DAB), and preserving temporal dependencies in data from previous time steps (temporal DAB). Input data transformation is explicitly designed to enhance learning from the deformed series of information while passing through a DAB. We conduct extensive experiments on 6 MTS data sets, using previously established benchmarks as well as challenging infectious disease modelling tasks with more exogenous variables. The results demonstrate that DeformTime improves accuracy against previous competitive methods across the vast majority of MTS forecasting tasks, reducing the mean absolute error by 7.2% on average. Notably, performance gains remain consistent across longer forecasting horizons.
