New paper: Efficient exact Gaussian process inference via incremental block-matrix updates

Brooks Musangu’s work on Efficient Exact Gaussian Process Inference via Incremental Block-Matrix Identity Updates was just published in Neural Computation.

Gaussian process factor analysis (GPFA) is a widely used method to extract smooth, low-dimensional latent trajectories from neural population recordings. Fitting it requires inverting large kernel and posterior covariance matrices, at a cost that grows cubically with trial length and is paid again for each unique trial length in a dataset.

We show that this cost can be shared across trials. When trials share Gaussian process parameters, the kernel matrix of a longer trial contains that of a shorter trial as a sub-block. Block-matrix identities then let us grow matrix inverses and log-determinants from shorter to longer trials, such that each update only costs as much as the difference in trial lengths, while keeping inference exact. On synthetic data and on recordings from monkey motor cortex, this yielded 2-2.7x speed-ups over standard implementations. A comparison to sparse inducing-point GPFA furthermore showed that approximate inference is only faster when using few inducing points, at the cost of worse model fits.

The method is available in BlockInverseGPFA, a scikit-learn-compatible Python package that builds on the GPFA implementation of the Elephant toolkit. It supports arbitrary scikit-learn Gaussian process kernels, adds a new variance-explained metric for GPFA, and provides modular preprocessing of spike trains.

All the details: