Deep neural networks achieve remarkable accuracy in time series forecasting, but they typically operate as black boxes. In high-stakes domains like healthcare, finance, and energy grid management, a standalone numerical prediction is rarely enough. Practitioners need to know why a model expects a sudden spike or drop.
To bridge this gap, researchers have shifted from post-hoc explanations toward building architectures that are interpretable by design. Rather than trying to untangle a complex model's decisions after the fact, these approaches structure the network so that its internal operations map directly to human-understandable concepts.
Dynamic Feature and Temporal Selection via Attention
When dealing with multivariate time series, a model faces two fundamental questions: which variables matter, and when do they matter? Standard recurrent networks compress the entire historical sequence into a single hidden vector, washing away granular attribution.
To solve this, Yao Qin et al. introduced the Dual-Stage Attention-Based Recurrent Neural Network (DA-RNN) in A Dual-Stage Attention-Based Recurrent Neural Network for Time Series Prediction. The core intuition is to break the attention mechanism into two distinct, sequential stages to handle space and time separately:
- Input Attention (Spatial): Before updating the recurrent state, the model computes attention weights across all input features. If the model is predicting electricity demand, it might heavily weight temperature sensors while ignoring humidity.
- Temporal Attention: Once the features are weighted, a second attention mechanism scores the relevance of different historical time steps. This allows the model to explicitly look back at exactly the same hour last week or yesterday.
Raw Input Data ──► [ Stage 1: Input Attention ] ──► [ Stage 2: Temporal Attention ] ──► Forecast
(Which variables?) (Which time steps?)
Building on this spatial-temporal separation, Tryambak Gangopadhyay et al. developed the Spatiotemporal Attention Mechanism (STAM) in Spatiotemporal Attention for Multivariate Time Series Prediction and Interpretation. A key contribution of this framework is enforcing strict causality: the attention weights at any given step are mathematically constrained to prevent the model from using future information to explain past states. By inspecting these causal attention matrices, users can trace a prediction directly back to specific spatiotemporal coordinates in the input data.
Structural Decomposition via Basis Expansion
While attention weights indicate where a model is looking, they do not necessarily explain what the model sees. Classic statistical forecasting relies on decomposition—breaking a signal down into additive, distinct components like trend, seasonality, and residual noise.
The N-BEATS architecture, proposed by Boris N. Oreshkin et al. in N-BEATS: Neural basis expansion analysis for interpretable time series forecasting, forces a deep neural network to speak this traditional language through a "doubly residual" stacking principle.
Instead of using recurrent or attention layers, N-BEATS connects stacks of fully connected layers. Each block inside a stack performs two tasks: it predicts a "backcast" (reconstructing the historical input) and a "forecast" (predicting the future).
Input ──► [ Block 1 ] ──┬──► Forecast Component 1
│ (Backcast) │
▼ ▼
Residual ────► [ Block 2 ] ──► Forecast Component 2
The interpretability works through a clever architectural constraint on the final layer of each block. The authors restrict the forecast outputs to be linear combinations of specific mathematical basis functions:
- Trend Stack: The outputs are constrained to low-degree polynomials (e.g., $y = a + bt + ct^2$). This forces the stack to capture only slow, monotonic changes over time.
- Seasonality Stack: The outputs are constrained to periodic waveforms (sinusoids via Fourier series). This forces the stack to capture cyclical patterns.
By subtracting the backcast of the trend stack from the input before passing the remaining signal (the residual) to the seasonality stack, the network iteratively strips away layers of the signal. The final forecast is simply the sum of these clean, mathematically isolated components, providing a transparent look at how the model separates long-term growth from cyclical fluctuations.
Generative Explanations and Temporal Reasoning
The latest frontier in interpretable forecasting moves beyond mathematical decompositions and attention weights toward natural language justifications. Even a perfect trend-seasonality breakdown cannot explain why an external event, such as a financial news headline or a policy shift, alters a trajectory.
To address this, Xinli Yu et al. explored the integration of Large Language Models (LLMs) for financial forecasting in Harnessing LLMs for Temporal Data - A Study on Explainable Financial Time Series Forecasting. By prompting models like GPT-4 with both numerical time series data and textual context (such as earnings reports), the system can generate human-readable narratives that justify its quantitative predictions.
To formalize this capability without relying on closed-source APIs, Chenhan Yuan et al. introduced the ExpTime dataset and the TimeLlaMA model series in Back to the Future: Towards Explainable Temporal Reasoning with Large Language Models. Instead of treating time series purely as numerical vectors, this approach maps temporal sequences and external textual context into a shared semantic space.
By instruction-tuning an open-source LLM on multi-step temporal logic, the model learns to output a chain of reasoning before emitting its final forecast. This transforms the forecasting system from a silent calculator into an analytical partner capable of explaining its logic step-by-step.