arXiv:2611.02091cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02091

HQNN-CL: Regime-Aware Hybrid Quantum Neural Network with Continual Learning for Financial Forecasting

Muhammad Atif Saeed, Akhtar Jamil, Subhan Ullah

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

Muhammad Atif Saeed*

Department of Artificial Intelligence & Data Science National University of Computer & Emerging Sciences Islamabad, Pakistan atif.saeed@isb.nu.edu.pk

Akhtar Jamil

Department of Computer Science National University of Computer & Emerging Sciences Islamabad, Pakistan akhtar.jamil@nu.edu.pk

Subhan Ullah

Department of Cyber Security National University of Computer & Emerging Sciences Islamabad, Pakistan subhan.ullah@nu.edu.pk

ABSTRACT

Financial time-series forecasting is still difficult owing to the non-stationary nature of the market, regime changes, and catastrophic forgetting, which makes conventional deep learning models hard to adapt in the long term. To achieve uncertainty-aware robust financial forecasting in the face of changing market conditions, this study proposes a Hybrid Quantum-Classical Neural Network with Continual Learning (HQNN-CL). The proposed framework combines Gaussian Hidden Markov Model (HMM) based regime detection, BiLSTM temporal encoding, adaptive-depth parameterized quantum circuits, Elastic Weight Consolidation (EWC), experience replay, and probabilistic forecasting in a single architecture. The framework was tested on four real-time stock datasets: Microsoft, Systems Limited, Teradata and Tata Consultancy Services, and compared with seven state-of-the-art forecasting models, including recurrent and Transformer-based models. The experimental results show that HQNN-CL has outperformed other methods on the Systems Limited (RMSE = 3.0149) and Teradata (RMSE = 0.8909) datasets and is within 0.32% and 0.40% of the best baseline method for Microsoft and Tata Consultancy Services, respectively. The proposed framework also generates well-calibrated probabilistic forecasts within the range of 89.5% to 96.5% empirical coverage rate, has zero catastrophic forgetting (BWT = 0.0000) for all sequential learning tasks, and consistently shows positive forward transfer. Ablation and statistical significance analyses also validate the performance of adaptive quantum feature learning and continual adaptation under heterogeneous market conditions, regime-wise. In addition to competitive forecasting accuracy, HQNN-CL offers tangible advantages, such as uncertainty-aware risk assessment, regime-adaptive learning, and fewer retraining needs, fitting to the continuously changing landscape of finance. The results show the hybrid quantum learning with continual adaptation offers a practical and scalable framework for the next-generation intelligent financial forecasting.

Keywords Hybrid Quantum Neural Networks · Continual Learning · Regime Detection · Financial Forecasting · Non-Stationary Markets

*Corresponding author.

1 Introduction

In quantitative finance, predicting future trends in financial time-series is one of the basic problems, as accurate forecasts can aid in portfolio management, risk assessment, and making investment decisions[1]. The difficulty arises in that financial markets are naturally non-stationary and characterized by sudden shifts from a low volatility regime to a transitional regime and to a high volatility regime [2]. The statistical relationships learnt from the historical observations could thus lose its information as market conditions change. Furthermore, models that are used for a long time should be able to accept new observations as they arrive and not forget what they have learned [3]. These features render financial forecasting quite different from traditional stationary sequence prediction and necessitate models that can simultaneously model nonlinear temporal dynamics, adjust in response to evolving market regimes and express uncertainty in future forecasts.

Classical recurrent architectures such as recurrent neural networks (RNNs), long short-term memory (LSTM) networks and gated recurrent units (GRUs) have been widely used for financial sequence modelling and are able to capture temporal dependencies from past observations [4]. In more recent years, quantum machine learning (QML) has been proposed as an alternative type of computation, in which parameterized quantum circuits (PQCs) use quantum state representations, superposition and entanglement to model complex nonlinear relationships [5, 6]. Hybrid quantum-classical forecasting models generally go hand in hand with variational quantum circuits, which act on a compact latent representation extracted classically [7]. Although recent advances have been made, the current strategies are based on a fixed market distribution with a static quantum circuit configuration[8]. As a result, they fail to explicitly adjust circuit complexity to varying volatility regimes, and must be conventionally retrained with new observations as they arrive. In sequential retraining, the parameters from previous market dynamics can be overwritten, resulting in catastrophic forgetting [9, 10]. In addition, most hybrid QML forecasting methods involve point forecasts and fail to offer calibrated forecasts of predictive uncertainty, thus restricting their use during volatile and rapidly changing markets [11].

This paper introduces HQNN-CL, a hybrid quantum/classical continual learning framework for non-stationary forecasting in the financial market. The proposed architecture is based on first identifying the latent market states with a Gaussian Hidden Markov Model (HMM) applied to log-return and realized-volatility observations. A bidirectional LSTM is then used to encode the historical sequences in a quantum compatible small feature space with a regime conditioned bidirectional LSTM. This representation is then fed into an adaptive-depth parameterized quantum circuit that has different active entanglement depths, depending on the detected volatility regime, so that the circuit can transform shallower during stable periods and have a greater representational power during complex high-volatility conditions. For sequential market adaptation, Elastic Weight Consolidation (EWC) and experience replay are combined on the classical network parameters as well as on the quantum rotation angles in order to maintain the dynamics of previous time steps and introduce new observations. A probabilistic prediction head is finally designed to model the aleatoric and epistemic uncertainty, using heteroscedastic variance estimation and Monte Carlo Dropout, and then calibrating the resulting prediction intervals with a temperature. The prediction problem is posed on next-step log-returns and price levels are then reconstructed from the most recent observed closing price, thus avoiding a strongly trending, out-of-distribution price series for extrapolation. The main contributions of this work are summarized as follows:

  • To solve the non-stationary financial forecasting problem, this work suggests a regime-adaptive hybrid quantum-classical architecture: HQNN-CL, which combines market regime detection, temporal sequence encoding and quantum feature transformation.

  • First, this work proposes to use a regime-adaptive parameterized quantum circuit that adaptively changes its active depth based on the market volatility that has been detected, allowing for controllable quantum representational capacity under different market regimes.

• Then, introduces experience replay to a shared classical-quantum parameter space, allowing for sequential model updates with restricted catastrophic forgetting between various, temporally evolving financial tasks.

  • Finally, formulates a calibrated probabilistic forecasting mechanism that accounts for both the aleatoric and the epistemic uncertainty, and that gives point forecasts but also produces empirically calibrated prediction intervals.

The rest of this paper is structured as follows. The related literature on financial forecasting and continual learning and hybrid quantum computing is discussed in Section 2. The proposed HQNN-CL framework and methodology are presented in Section 3. The experiments setup, datasets, baseline models, and evaluation metrics are described in section 4. Experimental results for ablation, uncertainty, and continual learning are reported and discussed in Section 5. Finally in Section 6, the paper is concluded and future research directions are outlined.

References (24)