Pinning the group-level variance parameters to speed computation for hierarchical models
Summary
A discussion on the Stan Forums highlighted methods to accelerate computation for large hierarchical models. One key recommendation involves pinning group-level variance parameters or covariance matrices to pre-chosen values derived from subject-matter information, noting that inference is often not highly sensitive to these parameters if they are within a reasonable range. A research idea proposes drawing multiple variance parameter values from a prior, running fast inferences (MCMC or optimization/Laplace approximation) for each, and then averaging the results using stacking. Additionally, the use of zero-avoiding gamma priors for group-level variance parameters, or Wishart priors for covariance matrices, is suggested. Utilizing Pathfinder to obtain effective starting values for joint parameter estimation is also presented as a successful strategy to mitigate computational challenges like the funnel problem.
Key takeaway
For AI Scientists working with large hierarchical models, consider pinning group-level variance parameters based on domain knowledge to significantly reduce computation time. You should also explore using Pathfinder for initial parameter values to improve estimation efficiency and address common convergence issues like the funnel problem.
Key insights
Pinning group-level variance parameters can significantly speed up hierarchical model computation.
Principles
- Inference is often robust to group-level variance.
- Zero-avoiding priors aid marginal maximum likelihood.
Method
Pin group-level variance parameters to subject-matter informed values; alternatively, draw values from a prior, run fast inferences, and average results via stacking.
In practice
- Use gamma priors for group-level variances.
- Employ Wishart priors for covariance matrices.
- Use Pathfinder for starting values.
Topics
- Hierarchical Models
- Bayesian Inference
- Variance Estimation
- Prior Distributions
- Pathfinder Algorithm
Best for: AI Scientist, AI Researcher, Data Scientist, Research Scientist
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Statistical Modeling, Causal Inference, and Social Science.