Recursive Quantum Long Short-Term Memory for Stable Short-Horizon Temperature Forecasting

Mu-En Lee, Yen-Ku Liu, Samuel Yen-Chi Chen, Yun-Cheng TsaiarXiv 2026

TL;DR

This paper demonstrates that incorporating a recursive "metacore" structure into a Quantum Long Short-Term Memory (QLSTM) network significantly stabilizes and improves short-horizon weather forecasting. Compared to standard QLSTMs, the recursive architecture achieves faster convergence, lower prediction errors, and a smaller generalization gap across multiple temporal window lengths. Crucially, it mitigates the high performance variance typically caused by random quantum circuit initializations.

What Problem Does This Paper Address?

Hybrid quantum-classical models like QLSTMs show promise for sequential data processing by replacing standard classical neural network layers with Variational Quantum Circuits (VQCs). However, training VQCs is notoriously difficult due to optimization hurdles like barren plateaus (vanishing gradients) and extreme sensitivity to random weight initialization. This often leads to unstable training and unpredictable performance across different runs.

The authors address this instability within the context of short-horizon temperature forecasting. Weather data contains complex, localized seasonal patterns where reliable information propagation through time is critical, making it an ideal testbed for evaluating the stability and generalization of sequential quantum architectures.

Methods

The authors conduct a rigorous empirical comparison between a standard QLSTM and a Recursive QLSTM.

  • Standard QLSTM: Replaces the classical affine transformations within the LSTM's gating mechanisms with VQCs. These circuits encode classical features into quantum states, apply parameterized rotations and entangling operations, and return expectation values to the classical recurrent loop.
  • Recursive QLSTM: Augments this design by implementing a recursive metacore transformation (MetaCore_Single_NN). Instead of treating the quantum feature map as an isolated, one-shot operation at each timestep, the recursive formulation reuses intermediate quantum representations. This enhances temporal information propagation across the sequence while keeping the underlying quantum circuit compact.

The overall experimental workflow is illustrated in Figure 1.

Experimental workflow for comparing QLSTM and Recursive QLSTM architectures.

Datasets

The models were evaluated using a real-world meteorological dataset:

  • Toronto City Weather Stations Data: Historical daily observations provided by Environment and Climate Change Canada, spanning May 1, 2024, to April 30, 2026.
  • Features: An 8-dimensional input space consisting of calendar seasonality (sine and cosine encodings of the day of the year), year number, daily mean/minimum/maximum temperatures, and heating/cooling degree days.
  • Task: One-step-ahead prediction of daily minimum and maximum temperatures. The dataset was split chronologically into 80% training and 20% held-out test data.

Key Insights and Ideas

  • Faster Practical Convergence ($t_{95}$): Although both architectures reach their absolute lowest test loss at similar training epochs, the Recursive QLSTM reaches 95% of its total improvement significantly earlier. It rapidly finds a near-optimal performance range, saving practical training time.
  • Beating the "Initialization Lottery": Standard QLSTMs exhibit high performance variance depending on their random seed initialization. The recursive model yields much tighter error bars across 20 random seeds, indicating highly repeatable and dependable performance.
  • True Generalization, Not Overfitting: Highly expressive quantum circuits often risk overfitting small datasets. However, the Recursive QLSTM consistently reduced the train-test generalization gap, proving that its recursive mechanism helps the model learn robust, transferable temporal structures.

Key Results

  • Lower Prediction Errors: The Recursive QLSTM consistently achieved an aggregate Mean Absolute Error (MAE) below 3.9°C across all tested window lengths ($L \in \{8, 16, 32\}$), whereas the standard QLSTM hovered between 4.1°C and 4.2°C (see Figure 4).
Fig. 3. Aggregate held-out test MAE and RMSE for QLSTM and Recursive QLSTM across window lengths of 8, 16, and 32. Metrics are evaluated at the minimum-test-loss epoch of each seed and averaged across 20 random seeds.
  • Suppressed Tail Errors: The 95th-percentile absolute error (P95 AE) dropped noticeably (e.g., from 10.25°C down to 8.97°C at $L=8$). Minimizing large residual errors is operationally vital for weather applications, where missing extreme temperature drops or spikes carries high real-world costs.
  • Target-wise Consistency: The performance gains were uniform across both minimum and maximum temperature tracks, showing reduced absolute bias and tighter variance (see Figure 2).
Fig. 4. Target-wise held-out test-error comparison for next-day maximum and minimum temperature. Metrics are evaluated at the minimum-test-loss epoch of each seed.
  • Robust Generalization: The train-test generalization gap was cut by roughly one-quarter to one-third compared to the standard QLSTM baseline (see Figure 5).
Fig. 5. Train–test generalization-gap comparison for QLSTM and Recursive QLSTM across window lengths of 8, 16, and 32. Results are shown at the minimum-test-loss epoch and at the final training epoch. Error bars denote the standard deviation across 20 random seeds.

Limitations and Future Work

  • Ideal Simulations: The study relies entirely on simulated quantum circuits. It remains to be seen how the recursive architecture handles the noise and decoherence characteristic of real Noisy Intermediate-Scale Quantum (NISQ) hardware.
  • Narrow Scope: The evaluation is restricted to a single geographic location, a single forecasting horizon, and fixed hyperparameters.
  • No Quantum Advantage Claimed: The authors explicitly state that these results do not establish a general "quantum advantage" over state-of-the-art classical forecasting models.
  • Future Directions: The authors suggest expanding future benchmarks to include multiple weather stations, longer forecasting horizons, noisy or missing data environments, and comparisons against stronger classical baselines (like standard classical LSTMs or Transformers).

Summary updated

BibTeX
@misc{lee2026recursive,
  author = {Mu-En Lee and Yen-Ku Liu and Samuel Yen-Chi Chen and Yun-Cheng Tsai},
  title = {{Recursive Quantum Long Short-Term Memory for Stable Short-Horizon Temperature Forecasting}},
  year = {2026},
  eprint = {2609.20594},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.20594},
}
Figure