Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hierarchical Bayesian eBExVar Model

Updated 16 December 2025
  • 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 CC groups, each with MM observations. For each group ii, the measurements consist of covariates xi,m∈RDx_{i,m} \in \mathbb{R}^D and responses yi,m∈Ry_{i,m} \in \mathbb{R}. The generative process is defined as follows:

  • Observation model: yi,m∼N(xi,m⊤βi,σ−1)y_{i,m} \sim \mathcal{N}(x_{i,m}^\top \beta_i, \sigma^{-1})
  • Group coefficients: βi∼N(Δ,s−1ID)\beta_i \sim \mathcal{N}(\Delta, s^{-1}I_D)
  • Global mean: Δ∼N(0,W−1)\Delta \sim \mathcal{N}(0, W^{-1}), W=diag(w1,...,wD)W = \text{diag}(w_1, ..., w_D)
  • Precisions:
    • σ∼Gamma(a0,b0)\sigma \sim \text{Gamma}(a_0, b_0) (noise precision)
    • MM0 (group coefficients prior precision)
    • MM1, MM2 (ARD precision for each coefficient)

The joint density has the factorization:

MM3

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:

MM4

The approximate posterior is optimized by maximizing the evidence lower bound (ELBO):

MM5

with explicit decomposition into expected log-joint probabilities and entropies for each factor. All MM6-factors adopt conjugate forms (Normal or Gamma), and closed-form coordinate ascent updates are available:

  • MM7
  • MM8
  • MM9
  • ii0
  • ii1

Explicit update formulas for all variational parameters are derived, exploiting expectations under current ii2 distributions.

3. Computational Complexity and Algorithmic Structure

The full coordinate ascent variational inference algorithm iteratively updates each ii3-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 ii4, requiring ii5 for each group if inputs are dense, for a total ii6 (with ii7 from inverting the shared covariance of ii8). This is efficient for moderate ii9 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 xi,m∈RDx_{i,m} \in \mathbb{R}^D0: For each predictor, xi,m∈RDx_{i,m} \in \mathbb{R}^D1, and xi,m∈RDx_{i,m} \in \mathbb{R}^D2, supporting variable selection at the model level.
  • Extended mean-field: A new variational factor xi,m∈RDx_{i,m} \in \mathbb{R}^D3 is incorporated, with closed-form Bernoulli log-odds updates when conjugate.
  • Deeper hierarchical structure: Additional levels are introduced (e.g., subject xi,m∈RDx_{i,m} \in \mathbb{R}^D4 item xi,m∈RDx_{i,m} \in \mathbb{R}^D5 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 xi,m∈RDx_{i,m} \in \mathbb{R}^D6 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 xi,m∈RDx_{i,m} \in \mathbb{R}^D7 and ARD (automatic relevance determination) on xi,m∈RDx_{i,m} \in \mathbb{R}^D8.
  • Principled model selection: Via inclusion indicators xi,m∈RDx_{i,m} \in \mathbb{R}^D9 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 yi,m∈Ry_{i,m} \in \mathbb{R}0 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).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hierarchical Bayesian Model (eBExVar).