Hierarchical Bayesian eBExVar Model
- eBExVar is a hierarchical Bayesian model that extends regression frameworks by incorporating flexible variable selection mechanisms like spike-and-slab priors.
- It uses a mean-field variational inference procedure with closed-form updates to efficiently optimize the evidence lower bound for complex grouped data.
- The model supports adaptive shrinkage at both group and global levels, enabling principled inference and model selection in multi-level structures.
A hierarchical Bayesian model (eBExVar) is an extension of classical Bayesian hierarchical linear regression frameworks that incorporates flexible variable selection mechanisms, such as spike-and-slab or inclusion indicators, and can be extended to more complex hierarchical structures and nonconjugate likelihoods. This class of models enables structured regularization and principled inference in the presence of multi-level, grouped data, allowing adaptive shrinkage and selection of relevant predictors at group and global levels (Becker, 2018).
1. Hierarchical Bayesian Linear Regression: Model Structure
The foundational model considers data collected for groups, each with observations. For each group , the measurements consist of covariates and responses . The generative process is defined as follows:
- Observation model:
- Group coefficients:
- Global mean: ,
- Precisions:
- (noise precision)
- (group coefficients prior precision)
- , (ARD precision for each coefficient)
The joint density has the factorization:
This structure allows the model to borrow strength across groups while adapting to group-specific heterogeneity.
2. Variational Inference and Mean-Field Factorization
Due to the computational expense of Markov Chain Monte Carlo in large hierarchical models, a mean-field variational inference approximation is employed. The variational family factorizes as:
The approximate posterior is optimized by maximizing the evidence lower bound (ELBO):
with explicit decomposition into expected log-joint probabilities and entropies for each factor. All -factors adopt conjugate forms (Normal or Gamma), and closed-form coordinate ascent updates are available:
Explicit update formulas for all variational parameters are derived, exploiting expectations under current distributions.
3. Computational Complexity and Algorithmic Structure
The full coordinate ascent variational inference algorithm iteratively updates each -factor given the current estimates of expectations from the others, following:
Initialize all variational parameters
repeat
for i=1…C do
compute E[σ], E[s], E[Δ]
update Σ_{β_i}, μ_{β_i}
end for
compute E[β_i], Σ_{β_i}
update Σ_Δ, μ_Δ
update a_n, b_n for q(σ)
update c_n, d_n for q(s)
for d=1…D do
update e_n, f_{n,d} for q(w_d)
end for
optionally compute ELBO
until ELBO converged
The complexity per sweep is dominated by updates of , requiring for each group if inputs are dense, for a total (with from inverting the shared covariance of ). This is efficient for moderate or when sufficient statistics are pre-computed.
4. eBExVar Extensions: Variable Selection and Deeper Hierarchies
The eBExVar model generalizes the above by introducing additional structured flexibility:
- Spike-and-slab or Bernoulli inclusion indicators : For each predictor, , and , supporting variable selection at the model level.
- Extended mean-field: A new variational factor is incorporated, with closed-form Bernoulli log-odds updates when conjugate.
- Deeper hierarchical structure: Additional levels are introduced (e.g., subject item context), each with appropriate Gaussian and Gamma priors, leading to multi-level exchangeable modeling.
- Nonconjugate extensions: For models with, e.g., logistic link functions, either local variational bounds or black-box variational inference with Monte Carlo gradients replace closed-form updates.
Adaptations to the inference algorithm include additional coordinate updates for and possible reparameterization of weight precisions (spike versus slab).
5. Flexible Modeling and Practical Considerations
The hierarchical Bayesian model (eBExVar extension) accommodates:
- Group-level and global shrinkage: Adaptive sharing of information via and ARD (automatic relevance determination) on .
- Principled model selection: Via inclusion indicators with Beta–Bernoulli hyperpriors, variable selection is integrated with estimation.
- Scalability: The variational approximation and closed-form updates permit efficient inference at scale, in contrast to standard MCMC methods.
- Generalizability: The framework can be extended for multi-level, nested, or crossed grouping structures with minimal adjustment to the variational inference pipeline (Becker, 2018).
A plausible implication is that this class of models provides a general, modular, and computationally efficient framework for hierarchical variable selection and regularized estimation in high-dimensional grouped data scenarios.
6. Connections and Further Extensions
The eBExVar model is positioned at the intersection of Bayesian variable selection, hierarchical modeling, and scalable variational inference. Possible directions for further development include:
- Replacement of ARD-Gamma priors by mixture-of-Gamma and point-masses for spike-and-slab structures.
- Extension to non-conjugate likelihoods (e.g., for classification tasks) via black-box variational inference.
- Inclusion of multi-way random effects and crossed random structures through additional hierarchical plates.
- Monitoring the ELBO throughout optimization as a convergence criterion ensures that the variational posterior approaches local optima.
This suite of models inherits the interpretability and flexibility of Bayesian hierarchical regression while supporting scalable, exact-analytic variational inference and integrative model selection (Becker, 2018).