For high-dimensional hierarchical models, consider exchangeability of effects across covariates instead of across datasets

Brian L. Trippe, Hilary K. Finucane, Tamara Broderick

TL;DR

When applying Bayesian hierarchical regression across multiple datasets or groups, standard practice assumes regression coefficients are exchangeable across groups while learning correlations across covariates. This paper shows that when the number of covariates ($D$) exceeds the number of groups ($Q$), this classical approach breaks down; flipping the assumption to enforce exchangeability across covariates (ECov) dramatically improves risk, reduces parameter estimation burden from $\mathcal{O}(D^2)$ to $\mathcal{O}(Q^2)$, and yields superior predictive performance in high-dimensional tasks.

What Problem Does This Paper Address?

Hierarchical linear models are standard tools for "borrowing strength" across multiple related groups of data (e.g., multi-task learning or multi-site studies). Since the seminal work of Lindley and Smith (1972), standard Bayesian convention has been EGroup: assuming effect sizes are exchangeable across groups and correlated across covariates.

However, modern applications frequently encounter settings where the number of features far exceeds the number of groups ($D \gg Q$)—such as statistical genetics (millions of genetic variants across dozens of traits) or transfer learning using deep neural network embeddings. In such regimes, estimating the $D \times D$ covariance matrix across features requires learning $\mathcal{O}(D^2)$ parameters, severely outnumbering the available observations and leading to catastrophic statistical degradation.

Methods

The authors propose ECov (Exchangeability across Covariates):

  • Model Formulation: Rather than assuming exchangeability across groups, ECov treats effects across covariates as conditionally independent draws from a shared distribution: $$\beta_d \stackrel{\text{i.i.d.}}{\sim} \mathcal{N}(0, \Sigma)$$ where $\beta_d \in \mathbb{R}^Q$ contains the effects of covariate $d$ across all $Q$ groups, and $\Sigma$ is a $Q \times Q$ covariance matrix capturing relatedness between groups.

  • Empirical Bayes via Expectation-Maximization (EM): The unknown group covariance matrix $\Sigma$ is estimated via marginal maximum likelihood using an EM algorithm:

  • Linear Regression: Uses exact Gaussian posterior conjugacy for the E-step.
  • Logistic Regression: Extends the framework to binary classification by using a Laplace approximation to obtain the posterior mode and curvature.
  • Connection to James–Stein Shrinkage: The authors prove that under an orthogonal design, the maximum marginal likelihood estimator $\hat{\beta}_{\text{ECov}}$ shrinks singular vectors analogously to a matrix version of the positive-part James–Stein estimator.

Datasets

The authors evaluated ECov across synthetic data and three real-world, non-genetic benchmarks:

  1. Synthetic Data: Simulated groups ($Q = 10$) across varying dimensions $D \in [2, 500]$ with correlated vs. independent ground-truth effects.
  2. Community Law Enforcement: A US policing dataset with $D = 117$ demographic/socioeconomic community predictors across $Q = 4$ crime-region groups ($N_q \in [400, 600]$).
  3. Blog Post Popularity: Predicting reader engagement from $D = 279$ post features split into $Q = 3$ groups by length, downsampled to $N_q = 500$.
  4. CIFAR-10 Embeddings (Transfer Learning): $D = 128$-dimensional pre-trained neural network representations evaluated on $Q = 8$ binary image classification tasks, with small sample sizes ($N_q \in [100, 1000]$).

Key Insights and Ideas

  • Flipping the Covariance Burden: Modeling group relationships requires learning only a $Q \times Q$ covariance ($\mathcal{O}(Q^2)$ parameters) instead of a $D \times D$ covariance ($\mathcal{O}(D^2)$), providing massive statistical efficiency when $D > Q$.
  • Frequentist Domination Guarantees:
  • When $D > 2Q + 2$, moment-matched ECov strictly dominates ordinary least squares (OLS) in squared error risk.
  • Conversely, when $D > Q/2 - 1$, standard EGroup is strictly dominated by OLS.
  • Empirical Bayes ECov (via marginal likelihood) strictly dominates its moment-matched counterpart uniformly for all true parameter values.
  • When Does Joint Modeling Help?: Through an asymptotic analysis ($D \to \infty$), the authors show via the Schur-Horn theorem that the asymptotic gain of ECov over independent group modeling is strictly positive whenever groups are correlated, achieving maximal gains in intermediate signal-to-noise regimes.

Key Results

  • Predictive Accuracy: Across all three real-world benchmarks, ECov outperformed classical EGroup, independent Bayesian ridge regression, un-pooled least squares/MLE, and completely pooled regression at $>95\%$ nominal statistical confidence:
  • Blog Popularity: MSE dropped from $\sim 1.05$ (EGroup) and $\sim 0.78$ (Independent) to $\sim 0.60$ (ECov).
  • Law Enforcement: MSE dropped from $\sim 0.52$ (EGroup) and $\sim 0.43$ (Independent) to $\sim 0.35$ (ECov).
  • CIFAR-10: Classification error decreased from $\sim 21\%$ (Independent Bayes) and $\sim 23.5\%$ (MLE) down to $\sim 19.3\%$ (ECov).
  • Computational Efficiency: The EM algorithm converged in seconds on a standard 36-core CPU ($2.04\text{s}$ for Law Enforcement, $6.89\text{s}$ for Blog Data, and $37.14\text{s}$ for CIFAR-10).

Limitations and Future Work

  • Feature Homogeneity Assumption: ECov treats all covariates monolithically. If some covariates possess distinct structural identities (e.g., combining low-dimensional metadata with high-dimensional image embeddings), a uniform exchangeability prior across all features may be misspecified.
  • Prior Restrictions: The primary model enforces a zero-mean prior ($\mathbb{E}[\beta_d] = 0$) and relies on Gaussian assumptions; extensions to non-Gaussian or sparsity-inducing priors remain open.
  • Approximations in Classification: The logistic regression variant relies on a Laplace approximation rather than exact posterior integration.

Summary updated

BibTeX
@inproceedings{trippe2021high,
  author = {Brian L. Trippe and Hilary K. Finucane and Tamara Broderick},
  title = {{For high-dimensional hierarchical models, consider exchangeability of effects across covariates instead of across datasets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=gtdX0yWygoI},
}
Figure