Mixed-Model Log-Likelihood Evaluation via a Blocked Cholesky Factorization
Pub. online: 28 October 2026
Type: Computing In Data Science
Open Access
Received
1 June 2026
1 June 2026
Accepted
8 September 2026
8 September 2026
Published
28 October 2026
28 October 2026
Abstract
Bates et al. (2015) described the evaluation of the profiled log-likelihood of a linear mixed-effects model by updating a sparse, symmetric positive-definite matrix and computing its Cholesky factor, as implemented in the lme4 package for R. Here we present enhancements to the derivation and theoretical presentation of the result and to its implementation using a blocked Cholesky factorization in the MixedModels.jl package for Julia (Bezanson et al., 2017). The gain in computational efficiency is primarily due to three factors: (1) the new derivation allows us to compute the penalized sum of squared residuals without computing the conditional estimates of the fixed-effects parameters and the conditional modes of the random effects at each optimization step, (2) the blocked Cholesky representation and careful ordering of the random effects terms reduces the amount of “fill-in” that occurs during the Cholesky factorization, and (3) the multiple dispatch feature of the Julia language allows us to use specialized algorithms for different kinds of matrices instead of relying on generic algorithms during the Cholesky factorization. To show the effectiveness of the blocked Cholesky approach we use it to fit a linear mixed model to over 32 million ratings of movies in the MovieLens ml-32m (Harper and Konstan, 2016) data set. The model incorporates random effects for over 200,000 movies and over 80,000 participants. Further enhancements to these computational methods are suggested.
Supplementary material
Supplementary MaterialThe supplementary material for this article is available on the official website of the Journal of Data Science at https://jds-online.org/. It may include additional results, appendices, tables, figures, code, and data.
References
Baayen RH, Davidson DJ, Bates DM (2008). Mixed-effects modeling with crossed random effects for subjects and items. Journal of Memory and Language, 59: 390–412. https://doi.org/10.1016/j.jml.2007.12.005
Bates D, Maechler M, Bolker BM, Walker S (2015). Fitting linear mixed-effects models using lme4. Journal of Statistical Software, 67(1): 1–48. https://doi.org/10.18637/jss.v067.i01
Bezanson J, Edelman A, Karpinski S, Shah VB (2017). Julia: A fresh approach to numerical computing. SIAM Review, 59(1): 65–98. https://doi.org/10.1137/141000671
Chen Y, Davis TA, Hager WW, Rajamanickam S (2008). Algorithm 887: CHOLMOD, supernodal sparse Cholesky factorization and update/downdate. ACM Transactions on Mathematical Software, 35(3): 1–14. https://doi.org/10.1145/1391989.1391995
Danisch S, Krumbiegel J (2021). Makie.jl: Flexible high-performance data visualization for Julia. Journal of Open Source Software, 6(65): 3349. https://doi.org/10.21105/joss.03349
Fühner T, Granacher U, Golle K, Kliegl R (2021). Age and sex effects in physical fitness components of 108,295 third graders including 515 primary schools and 9 cohorts. Scientific Reports, 11(1): 17566. https://doi.org/10.1038/s41598-021-97000-4
Gustavson FG, Wasniewski J, Dongarra JJ, Langou J (2010). Rectangular full packed format for Cholesky’s algorithm: Factorization, solution and inversion, ACM Transactions on Mathematical Software, 37(2): 1–21. https://doi.org/10.1145/1731022.1731028
Harper FM, Konstan JA (2016). The MovieLens datasets. ACM Transactions on Interactive Intelligent Systems, 5(4): 1–19. https://doi.org/10.1145/2827872
Murray I (2016). Differentiation of the Cholesky decomposition. https://arxiv.org/abs/1602.07527.
Pearson H, Ledford H, Hutson M, Van Noorden R (2025). Exclusive: The most-cited papers of the twenty-first century. Nature, 640(8059): 588–592. https://doi.org/10.1038/d41586-025-01125-9