TL;DR
This paper introduces GP-LSTM, a model that combines the sequence-modeling inductive biases of Long Short-Term Memory (LSTM) networks with the principled uncertainty quantification of Gaussian processes (GPs). To make training scalable, the authors introduce a provably convergent semi-stochastic optimization algorithm with delayed kernel updates alongside structured kernel interpolation, achieving $\mathcal{O}(n)$ training time and $\mathcal{O}(1)$ test predictions.
What Problem Does This Paper Address?
Standard deep recurrent models like LSTMs excel at learning complex representations over sequential data, but they struggle to provide well-calibrated, full predictive probability distributions. Conversely, Gaussian processes provide principled Bayesian nonparametric uncertainty estimates and protect against overfitting, but standard stationary kernels cannot easily capture long-term sequential temporal dependencies or recurrent structures.
Furthermore, combining GPs with neural networks typically breaks standard mini-batch stochastic gradient descent (SGD) because the GP marginal likelihood requires inverting an $n \times n$ covariance matrix, preventing the objective from factorizing over data points.
Methods
- Recurrent Deep Kernels: The model transforms an input sequence $x \in \mathcal{X}^L$ using an LSTM map $\phi_W(x)$ into a low-dimensional latent space $\mathcal{H}$, feeding it into a base kernel (e.g., ARD/RBF): $$\tilde{k}(x, x') = k(\phi_W(x), \phi_W(x'))$$
- Semi-Stochastic Alternating Optimization: Because the GP negative log marginal likelihood (NLML) does not factorize across data points, standard SGD fails. The authors show that when the full kernel matrix $K$ is temporarily held fixed, the gradient with respect to network weights $W$ can be approximated via mini-batches. They propose an asynchronous scheme (Algorithm 2) where $W$ receives stochastic updates across mini-batches while the expensive kernel matrix $K$ is updated only periodically (e.g., once per epoch), proving its convergence under mild smoothness and delay assumptions.
- Scalable Inference via MSGP / SKI: Covariance matrices are projected onto a regular grid of inducing points via Structured Kernel Interpolation (SKI/KISS-GP). This exploits Kronecker and circulant/Toeplitz matrix structures using Fast Fourier Transforms (FFT) and conjugate gradients, yielding linear $\mathcal{O}(n)$ training complexity and constant $\mathcal{O}(1)$ per-point test prediction time.
Datasets
- Nonlinear System Identification: Benchmarks Actuator (1,024 steps) and Drives (500 steps).
- Smart Grid Forecasting: GEFCom 2012 power load forecasting (38,064 time steps) and wind power forecasting (130,963 time steps).
- Autonomous Driving Benchmark: Sensor telemetry from two real-world drives (~933,000 steps at 10 ms discretization, released via comma.ai). Tasks include speed estimation, gyro yaw prediction, lane sequence prediction (28 output dimensions), and lead vehicle position tracking.
Key Insights and Ideas
- Kernel Inverses Don't Require Batch Freezes: While $K^{-1}$ couples all training points, the change in $K$ across small mini-batch parameter updates is bounded. Exploiting asynchronous optimization principles allows practitioners to delay full-kernel recomputations without sacrificing convergence guarantees.
- Implicit Regularization Without Performance Loss: The GP's marginal likelihood includes an intrinsic Occam’s razor penalty that naturally resists overfitting, allowing GP-LSTMs to generalize effectively even on small datasets without requiring manual early stopping.
- Actionable Predictive Uncertainty: In safety-critical tasks like autonomous driving, GP-LSTM outputs full predictive distributions (spatial variance contours), providing meaningful confidence bounds around lead vehicle positions and lane markers that point-estimate LSTMs cannot offer.
Key Results
- System Identification: In autoregressive mode, GP-LSTM reduced RMSE to 0.13 on Drives (vs. 0.14 for LSTM, 0.16 for GP-NARX) and 0.14 on Actuator (vs. 0.19 for LSTM).
- Smart Grid & Autonomous Driving:
- On GEF power load, GP-LSTM achieved 0.17 RMSE compared to 0.45 for vanilla LSTM and 0.54 for NARX.
- On vehicle speed and yaw prediction, GP-LSTM reached 0.019 and 0.08 RMSE, respectively, outperforming standard LSTM (0.027 and 0.13).
- On lead vehicle tracking, GP-LSTM attained 0.32 RMSE (vs. 0.40 for LSTM).
- Scalability: Training time per epoch scaled strictly linearly with dataset size up to nearly 1 million data points, while prediction latency stayed virtually constant at around 5–7 ms per test point.
Limitations and Future Work
- Uncertainty Propagation: While GP-LSTM captures uncertainty at the prediction layer, it does not propagate input noise or latent state uncertainty through the recurrence itself (relying instead on MC dropout heuristics).
- Output Independence: Multi-dimensional outputs are modeled using independent GPs sharing the same recurrent feature representation rather than a fully coupled multi-task covariance structure.
- Future Directions: Incorporating stochastic gradient Markov Chain Monte Carlo (such as SG-HMC) to achieve a fully Bayesian treatment of LSTM weights, learning the input time-horizon dynamically, and using imitation-learning techniques like DAGGER for free simulation.
Summary updated