Computation-Aware State-Space Model (CASSM)
- CASSM is a probabilistic framework for high-dimensional state-space models that combines low-rank projections and iterative solvers to enable tractable Bayesian inference.
- It reduces computational complexity by projecting high-dimensional observations into a lower-dimensional space and updating covariances via matrix-free methods.
- CASSM is applied in domains like climate modeling and neural data analysis, providing calibrated uncertainty estimates and efficient model learning.
The Computation-Aware State-Space Model (CASSM) provides a scalable, uncertainty-calibrated probabilistic framework for filtering, smoothing, and learning in high-dimensional state-space models (SSMs). Designed for applications where state or observation dimensions reach into the tens or hundreds of thousands, CASSM combines low-rank matrix approximations, iterative solvers, and explicit modeling of computational uncertainty to enable tractable and rigorous Bayesian inference. CASSM can be applied to spatiotemporal processes in climate modeling, high-dimensional neural data, and other regimes where classical Kalman filters are intractable due to cubic complexity and memory bottlenecks (Pförtner et al., 2024, Huml et al., 31 May 2026).
1. Foundational Gauss–Markov State–Space Model
CASSM is built upon the standard linear–Gaussian state-space model (LGSSM), where the latent state evolves as
and observations (or for neural data) follow
For neural dynamics, the model uses (with as the loading matrix), and is typically initialized with Gaussian priors for .
The Kalman filter and Rauch–Tung–Striebel (RTS) smoother provide exact filtering and smoothing recursions, but their time and memory complexity are intractable for large 0 or 1. As a result, approximate methods often sacrifice fidelity or underestimate uncertainty due to computational approximations (Pförtner et al., 2024, Huml et al., 31 May 2026).
2. Computation-Aware Approximations
CASSM mitigates scalability bottlenecks by combining two principal modifications:
- Low-Dimensional Actions/Projections: At each step, a matrix 2 or 3 (for neural data, 4) projects observations into a lower-dimensional space. The projected observation model yields
5
with 6 and 7. The Kalman update is performed in this subspace, reducing the inversion cost for the innovation covariance from 8 to 9.
- Iterative, Matrix-Free Covariance Representation: The state covariance is updated as a sequence of low-rank downdates without explicitly forming or storing the full 0 matrix:
1
where 2 collects downdate directions (computed using conjugate gradients or Lanczos iterations). The application of 3 involves only matvecs, making the procedure amenable to GPU acceleration (Pförtner et al., 2024).
If the number of downdate directions grows large, a truncated SVD keeps only the top 4 directions, with the remainder incorporated into an additive computational noise term:
5
thus ensuring conservative uncertainty inflation (Pförtner et al., 2024).
3. Modeling and Quantifying Computational Uncertainty
CASSM explicitly quantifies the uncertainty induced by computational approximations. The policy matrices 6 are treated as hyperparameters/contextual actions, and the approximate posterior 7 is penalized for divergence from the true predictive prior 8.
Training minimizes a computation-aware evidence lower bound (ELBO):
9
where 0 uses the full 1-dimensional (unprojected) likelihood. A compact numerical form involves only the approximate covariances of size 2 and 3 (Huml et al., 31 May 2026).
This ELBO structure ensures that both data fit and the divergence from the exact sequential prior are controlled, and the posterior variance reflects data noise and computational error, thereby avoiding overconfident inference commonly termed "variance starvation."
4. Inference Algorithms, Learning, and Complexity
The main filtering and smoothing operations in CASSM utilize matrix-free, GPU-accelerated iterative solvers. Key steps include:
- Filter Step: At each 4, the projected data and low-dimensional innovation are computed, followed by iterative conjugate-gradients or Lanczos solves to construct downdate directions for the covariance. Orthogonalization and SVD truncation are used as necessary.
- GPU Acceleration: Custom CUDA kernels enable efficient Gram matrix-vector products. Batched operations and low-level kernel routines are used for orthogonalization and Lanczos tridiagonalization (Pförtner et al., 2024).
- Parameter Learning: All model parameters and projection policies 5 are trained end-to-end via gradient methods (Adam). Differentiable SVDs circumvent instability in gradient computation through truncation steps (Huml et al., 31 May 2026).
The computational complexity per step is summarized as follows:
| Operation | Standard Kalman | CASSM |
|---|---|---|
| Covariance storage | 6 | 7 (downdates, 8) |
| Innovation inversion | 9 | 0 (1) |
| Overall time (per step) | 2 | 3 or 4 |
| Overall memory | 5 | 6 |
If 7 and 8 are small and kernel matvecs are 9 (or 0), the total cost is 1 time and 2 memory, linear in 3 and favorable relative to cubic/quadratic baseline (Pförtner et al., 2024).
5. Model Selection, Learnable Projections, and Policies
In CASSM, projection matrices 4 are not fixed but are treated as tunable policies:
- Entropy-Based Policy: Theoretically, the optimal 5 for minimizing posterior entropy projects onto the top 6 eigenvectors of the innovation covariance 7 [(Huml et al., 31 May 2026), Theorem 1]. However, direct computation is intractable for large 8, so 9 are parameterized (block-sparse, or structured) and learned end-to-end.
- Greedy and End-to-End Training: The parameterization supports backpropagation through time, and block-sparsity keeps the number of tunable parameters 0. Differentiable SVD algorithms ensure stable gradient flow through the low-rank truncation process.
- Flexibility: The policy selection can use coordinate actions, randomization, Bayesian-optimal variants, or conjugate-gradient directions. The iterative algorithm allows for per-step or global budget control of the compression parameter 1 (Pförtner et al., 2024).
This learnable subspace approach provides effective model-selection in the context of high-dimensional neural or spatiotemporal data when classical model selection is computationally unfeasible.
6. Empirical Scaling, Calibration Guarantees, and Extensions
CASSM’s key theoretical performance and empirical findings are:
- Calibration Guarantee: For RKHS-based spatiotemporal GP regression, the computation-aware smoother posterior mean and variance satisfy the exact worst-case calibration bound as the true posterior, i.e.,
2
thus the posterior uncertainty envelopes both data and computational errors (Pförtner et al., 2024).
- Empirical Results on Large-Scale Problems:
- On large-scale climate data (3, 4), CASSM achieves exponential improvement in MSE and NLL versus the number of CG steps 5, outperforming coordinate/random action baselines by orders of magnitude.
- In neural dynamics benchmarks (e.g., Lorenz attractor, primate datasets, zebrafish recordings), CASSM matches or outperforms deep sequence models (e.g., LFADS) in the low-trials/high-neurons regime, and delivers well-calibrated uncertainty, with 95% coverage between 0.90–0.92 compared to 60.7 for baseline GPFA models.
- On N = 8.8×10⁴ whole-brain zebrafish data, CASSM achieves MSE and NLL matching or surpassing LFADS, with GPFA unable to run due to memory (Huml et al., 31 May 2026).
A notable property is that truncation only inflates the posterior variance—never reducing filter mean accuracy—ensuring conservative inference.
CASSM is implemented in Julia (ComputationAwareKalman.jl) with custom GPU kernels, supports plug-and-play for SSMs with fast matvecs (e.g., PDE solvers, random Fourier features), and posterior sampling via Matheron's rule within 7 cost. Likelihood-based learning (e.g., EM) is possible, but gradient computation becomes involved when truncation is used (Pförtner et al., 2024).
7. Applications and Domain Relevance
CASSM is suited for domains demanding tractable, rigorous Bayesian inference in large latent or observed spaces:
- Spatiotemporal Gaussian Process Regression: Efficient for spatial grids with millions of points, such as climate datasets.
- Neural Data Analysis: Particularly effective in the scale-imbalanced regime, where the number of neurons (8) far exceeds the number of trials (9), avoiding overfitting and under-calibration typical in overparameterized deep models (Huml et al., 31 May 2026).
- Control and PDE Surrogates: Models with structured kernel covariance (e.g., Matérn, banded, or PDE-induced covariance) can exploit the CASSM framework for scalable, uncertainty-aware inference.
A plausible implication is that, by explicitly encoding computational error, downstream applications—for example, control design or policy learning—avoid the common pitfall of overconfident, unreliable uncertainties encountered when using purely approximate Bayesian filtering or smoothing without computation-aware mechanisms.
References:
(Pförtner et al., 2024) "Computation-Aware Kalman Filtering and Smoothing" (Huml et al., 31 May 2026) "Computation-Aware Kalman Filtering with Model Selection for Neural Dynamics"