time series forecasting deep
**Deep Learning for Time Series Forecasting** is the **application of neural networks (RNNs, temporal convolutions, transformers) to predict future values of temporal sequences — modeling complex, nonlinear, multi-scale patterns in historical data from financial markets, weather systems, energy grids, and industrial processes, where deep learning methods increasingly outperform traditional statistical approaches (ARIMA, exponential smoothing) on multivariate, long-horizon, and cross-series forecasting tasks**.
**Architecture Classes**
**Recurrent Neural Networks (RNNs/LSTMs/GRUs)**:
- Process sequences step-by-step, maintaining a hidden state that summarizes the past.
- LSTM gates (forget, input, output) control information flow — theoretically capable of learning very long dependencies.
- DeepAR (Amazon): Autoregressive LSTM that outputs a probability distribution (Gaussian, negative binomial) at each step. Trained on many related time series simultaneously — shares patterns across series (demand forecasting across products).
- Limitation: Sequential processing prevents parallelization. Long sequences suffer from vanishing gradients despite LSTM gates.
**Temporal Convolutional Networks (TCN)**:
- 1D convolutions with dilated layers — exponentially increasing receptive field: dilation 1, 2, 4, 8, ... covers a history of 2^L timesteps with L layers.
- Causal convolution: no future leakage (only convolves with past and present).
- Advantages over RNN: fully parallelizable, stable gradients, deterministic receptive field.
- WaveNet (originally for audio) applied to time series: dilated causal convolutions + skip connections + conditioning variables.
**Transformer-Based**:
- Self-attention captures dependencies between any two time steps regardless of distance (no vanishing gradient, no sequential processing).
- **Informer**: Sparse attention (ProbSparse attention selects only top-K queries by KL divergence) — O(N log N) instead of O(N²). Distilling layers reduce sequence length progressively. Designed for long-horizon forecasting (720+ steps).
- **Autoformer**: Decomposes time series into trend and seasonal components. Auto-correlation mechanism replaces dot-product attention — computes period-based dependencies. State-of-the-art on long-term forecasting benchmarks.
- **PatchTST**: Divides time series into patches (like ViT patches for images). Each patch is a token. Channel-independent processing (each variable is forecasted independently). Strong performance with simpler architecture.
**Are DL Methods Actually Better?**
Controversial finding: simple linear models (DLinear — just a linear layer mapping past to future) match or outperform transformers on many benchmarks when properly tuned. NHITS (N-BEATS variant) — purely MLP-based — is competitive with transformers.
The truth: DL methods excel when:
- Many related series (transfer across series)
- Exogenous variables (weather, events, promotions)
- Complex nonlinear dynamics
- Long prediction horizons
Traditional methods (ARIMA, ETS) are competitive for:
- Single series with simple patterns
- Short horizons
- Small datasets
Deep Learning Time Series Forecasting is **the prediction technology that captures temporal patterns too complex for statistical formulas** — enabling accurate demand planning, resource allocation, and risk assessment in the dynamic, multivariate systems that drive modern operations.