Abstract
Recurrent Neural Networks, particularly Long Short-Term Memory (LSTM) networks, are powerful tools for time series forecasting but are often criticized for their "black box" nature. This paper introduces DeLELSTM (Decomposition-based Linear Explainable LSTM), a novel architecture designed to make LSTMs interpretable by decomposing hidden states into historical and "fresh" information. By utilizing a tensorized structure and linear approximation, DeLELSTM distinguishes whether a variable's influence on a forecast stems from its long-term history or an instantaneous change. Evaluated on multivariate datasets such as PM2.5 levels and electricity consumption, DeLELSTM demonstrates competitive predictive accuracy while providing transparent, time-varying importance scores that align with physical reality.
Introduction
While LSTMs excel at capturing complex temporal dependencies, their lack of interpretability is a significant hurdle in high-stakes domains like healthcare and finance. Existing explainability methods often provide static importance scores or rely on post-hoc gradients, failing to account for two critical aspects of time series data:
- Dynamic Impact: Variable importance changes over time.
- Heterogeneous Dependencies: Some variables influence the future through long-term trends, while others matter due to sudden, instantaneous spikes.
DeLELSTM addresses these gaps by explicitly modeling both long-term and instantaneous effects within the network architecture itself.
Methodology
The DeLELSTM framework consists of three primary stages designed to balance predictive power with mathematical transparency.
Dual LSTM Architecture
The model employs a Standard LSTM to capture global patterns through a shared hidden state $H_t$, alongside a Tensorized LSTM. In the tensorized component, each input variable is assigned a unique row in a hidden state matrix $h_t$. This ensures that feature-specific information remains distinct before the final prediction phase.
Linear Decomposition and Interpretability
The core innovation lies in approximating the global hidden state ($H_t$) as a linear combination of:
- Long-term effects: Represented by previous variable-specific states ($h_{t-1}$).
- Instantaneous influence: Represented by the change in those states ($\Delta h_t = h_t - h_{t-1}$).
By using a linear least-squares criterion for this approximation, the model derives weights ($\alpha$ and $\beta$) that serve as transparent importance measures for every variable at each time step. This "linearity for clarity" approach allows the model to maintain the non-linear processing capabilities of LSTMs while providing the interpretability of a regression model.
Experimental Results
DeLELSTM was evaluated on three real-world datasets: PM2.5 air quality in Beijing, US electricity consumption, and international exchange rates.
Predictive Performance and Feature Selection
The model achieved state-of-the-art performance (lowest RMSE, MAE, and MAPE) on the Electricity dataset and remained highly competitive on others compared to baselines like RETAIN and IMV-LSTM. Furthermore, in "sufficiency" tests—where only the top 50% of "important" features were retained—DeLELSTM's selected features led to significantly better predictive performance than those from other explainable models, validating the accuracy of its importance scores.
Temporal Transparency
A key strength of DeLELSTM is its ability to visualize how different effects evolve over time. For instance, in the Electricity dataset, the model identifies how certain factors maintain steady influence while others fluctuate with daily activity cycles.
As shown in Figure 2, the model distinguishes between the "memory" of a variable (long-term) and its "freshness" (instantaneous). For example, weather variables like wind speed or precipitation often show more volatile instantaneous impacts compared to the more stable long-term trends of consumption itself.
Conclusion
DeLELSTM successfully bridges the gap between deep learning performance and model interpretability for time series. By decomposing hidden states into long-term and instantaneous components, it provides researchers with a granular view of variable influence. While the current model treats variables individually, future work aims to incorporate multi-variable interactions to capture even more complex real-world dynamics.
Summary updated