Scalable Krylov Subspace Methods for Generalized Mixed Effects Models with Crossed Random Effects

Pascal Kündig, Fabio Sigrist
5/14/2025
stat.MEcs.LGstat.ML

Official code: pkuendig/KrylovGMMs (1 star, R, last commit 2025-12-18).

Abstract

Mixed-effects models are widely used to model data with hierarchical grouping structures and high-cardinality categorical predictor variables. However, for high-dimensional crossed random effects, sparse Cholesky decompositions, the current standard approach, can become prohibitively slow.

Show full abstract

In this work, we present Krylov subspace-based methods that address these computational bottlenecks and analyze them both theoretically and empirically. In particular, we derive new results on the convergence and accuracy of the preconditioned stochastic Lanczos quadrature and conjugate gradient methods for mixed-effects models, and we develop scalable methods for calculating predictive variances. In experiments with simulated and real-world data, the proposed methods yield speedups by factors of up to about 10,000 and are numerically more stable than Cholesky-based computations as implemented in state-of-the-art packages such as lme4 and glmmTMB. Our methodology is available in the open-source C++ software library GPBoost, with accompanying high-level Python and R packages.

View on arXivView PDF

Code Implementations(1)

Simulation studies and real-world applications for the paper "Scalable Krylov Subspace Methods for Generalized Mixed Effects Models with Crossed Random Effects"

11RMay 14, 202511 months ago

Similar Papers

Cite this paper

@article{kndig2025scalable,
  title  = {Scalable Krylov Subspace Methods for Generalized Mixed Effects Models with Crossed Random Effects},
  author = {Pascal Kündig and Fabio Sigrist},
  year   = {2025},
  eprint = {2505.09552},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.09552v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.09552.svg)](https://codeofpaper.com/paper/2505.09552)

Discussion