atlas

Research map / Probabilistic and scientific modeling / Variational and generative sampling

Hamiltonian Monte Carlo Inference of Marginalized Linear Mixed-Effects Models

NeurIPS 2024 · Probabilistic and scientific modeling › Variational and generative sampling · approach: Stochastic gradient MCMC · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows how to marginalize random effects in linear mixed-effects models inside HMC via fast linear algebra (matrix inversion/determinant lemmas with tree-structured design), reducing per-step cost to linear in N for one random-effect class and speeding up NUTS in NumPyro.

Problem

Efficient Bayesian inference with HMC in linear mixed-effects models is hampered by funnel geometry and high dimension of random effects, and manual marginalization is difficult and naively cubic in cost.

Approach

Vectorized analytic marginalization of random effects in LMMs, where the tree structure of the design matrix makes the core matrix block-diagonal so the log-density and recovery steps run in time linear in the number of observations for one random-effect class; with scaled-identity covariances, all classes can be marginalized using an eigendecomposition of B^T B.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Marginalize u1, u2, or u3 instead of sampling all random effectsNUTS · ETH instructor evaluationsrunning time: 13417 (98) -> 5004 (1468); 2607 (3); 3071 (4)Helped
Marginalize all random effects instead of sampling themNUTS · ETH instructor evaluationsrunning time (s): 13417 (98) -> 631 (12)Helped
Use vectorized rather than scalar marginalizationMarginalized MCMC · Electric companyrunning time (s): 1249 (95) -> 252 (23)Helped
Use vectorized rather than scalar marginalizationMarginalized MCMC · Pulmonary fibrosisrunning time (s): 2208 (80) -> 178 (3)Helped
Use vectorized rather than scalar marginalizationMarginalized MCMC · Electric companycompilation time (s): 552 (4) -> 7 (0)Helped
Use vectorized rather than scalar marginalizationMarginalized MCMC · Pulmonary fibrosiscompilation time (s): 727 (11) -> 10 (1)Helped
Marginalize u2 rather than leave random effects untransformed (ablation)HMC · Grouse ticksdivergent transitions: 42.60 (25.76) -> 0.00 (0.00)Helped
Marginalize u1 rather than leave random effects untransformed (ablation)HMC · Grouse ticksdivergent transitions: 42.60 (25.76) -> 14.60 (13.85)Helped
Reparameterize both u1 and u2 instead of leaving them untransformed (ablation)HMC · Grouse ticksdivergent transitions: 42.60 (25.76) -> 431.60 (507.37)Hurt
Reparameterize rather than marginalize u2HMC · Grouse ticksrunning timeHelped
Marginalize random effectsHMC · Grouse ticksrunning time: about 20%Helped
Marginalize random effectsHMC · Cognitive science LMMsESS per iterationHelped

Surprising findings

Limitations

Experimental setup

Datasets: ETH instructor evaluations grouse ticks electric company pulmonary fibrosis pupil size dillonE1 dutch eeg english gg05 mandarin mandarin2

Benchmarks: ETH instructor evaluations grouse ticks electric company pulmonary fibrosis 9 cognitive science LMM datasets

Metrics: wall-clock running time effective sample size ESS per iteration divergent transitions R-hat

Baselines: No marginalization HMC Non-centered reparameterization Naive marginalization Marginalized MCMC (automatic scalar marginalization)

Builds on: NUTS NumPyro Stan BRMS marginalized MCMC

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy