
smolgp
State Space Models for O(Linear/Log) Gaussian Processes
smolgp is a standalone extension of the tinygp package that implements scalable & GPU-parallelizable Gaussian Processes in JAX using the state space representation. It is particularly suited for integrated measurements (such as long exposures in astronomy), jointly modeling data from multiple instruments, and for scalable implementations of popular kernels that traditionally lack quasiseparable structure (e.g. the quasiperiodic kernel).
The smolgp API is designed to be as similar to tinygp as possible. In almost all cases, you can simply find-and-replace "smol" with "tiny" in your existing code.
- A Kalman filter and RTS smoother compatible with
tinygp-like GP kernels. - Scalable (O(N)) solving with integrated (and possibly overlapping) measurements from multiple instruments (see Rubenzahl and Hattori et al. 2026).
- Parallelized versions of 1 (see Särkkä and García-Fernández 2020) and 2 (see Rubenzahl and Hattori et al. 2026).
- see also Yaghoobi and Särkkä 2024 and its implementation.
- Approximations of popular GP kernels that lack quasiseparability (e.g., ExpSineSquared, Quasiperiodic) that can utilize the O(N) state space solvers.
- A convenient and optimally-efficient model-building framework to assemble multicomponent GPs and compute per-component distributions.
Check out the docs for more information, including tutorials: https://smolgp.readthedocs.io/
Please raise issues here and/or reach out to Ryan Rubenzahl and/or So Hattori.
You can install the most recent release from PyPI, e.g. with uv:
uv add smolgp
Or, you can simply clone this repository and install locally:
git clone https://github.com/smolgp-dev/smolgp.git
cd smolgp
uv pip install -e .
If you use smolgp in your research, please cite the relevant software release and published paper. The cffconvert tool can be used to generate a bibtex entry from the included CITATION.cff (or just use the "cite this repository" button on the GitHub sidebar).
This repo is maintained by Ryan Rubenzahl and So Hattori.