Quantum Temporal Fusion Transformer
Krishnakanta Barik, Goutam Paul
TL;DR
The QTFT paper tackles multi-horizon time series forecasting by extending the classical TFT with a quantum-classical hybrid framework that can run on NISQ devices using variational quantum algorithms. It systematically replaces key TFT submodules with quantum counterparts—via encoding, variational circuits, and quantum attention—while preserving the overall architecture. The study demonstrates that QTFT can achieve lower training and testing losses than the classical TFT across weather and stock datasets, with additional gains when incorporating a quantum LSTM (QLSTM). This work suggests a promising path for leveraging near-term quantum hardware to enhance deep learning models for sequential forecasting tasks, with scalable architecture and broad applicability in domains requiring probabilistic forecasts. $\tau_{\max}$, horizon-aware inputs, and quantile outputs are central to evaluating performance and reliability in real-world decision contexts.
Abstract
The \textit{Temporal Fusion Transformer} (TFT), proposed by Lim \textit{et al.}, published in \textit{International Journal of Forecasting} (2021), is a state-of-the-art attention-based deep neural network architecture specifically designed for multi-horizon time series forecasting. It has demonstrated significant performance improvements over existing benchmarks. In this work, we introduce the Quantum Temporal Fusion Transformer (QTFT), a quantum-enhanced hybrid quantum-classical architecture that extends the capabilities of the classical TFT framework. The core idea of this work is inspired by the foundation studies, \textit{The Power of Quantum Neural Networks} by Amira Abbas \textit{et al.} and \textit{Quantum Vision Transformers} by El Amine Cherrat \textit{et al.}, published in \textit{ Nature Computational Science} (2021) and \textit{Quantum} (2024), respectively. A key advantage of our approach lies in its foundation on a variational quantum algorithm, enabling implementation on current noisy intermediate-scale quantum (NISQ) devices without strict requirements on the number of qubits or circuit depth. Our results demonstrate that QTFT is successfully trained on the forecasting datasets and is capable of accurately predicting future values. In particular, our experimental results on two different datasets display that the model outperforms its classical counterpart in terms of both training and test loss. These results indicate the prospect of using quantum computing to boost deep learning architectures in complex machine learning tasks.
