NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Model-Informed Flows for Bayesian Inference

Joohwan Ko, Justin Domke

Hierarchical models are essential in Bayesian inference for capturing complex, multi-level dependencies in data—such as student performance nested within classrooms, which are in turn nested within schools. However, these models frequently produce "funnel-shaped" posterior distributions that are notoriously difficult for standard algorithms to navigate.

A new paper, Model-Informed Flows for Bayesian Inference, introduces an architectural bridge combining two powerful ideas: Variationally Inferred Parameters (VIP) and Normalizing Flows. By formalizing the link between these methods, the authors developed Model-Informed Flows (MIF), an architecture that leverages a model's prior information and a novel translation term to capture complex posterior geometries accurately.

The Challenge of Funnel Geometries

Variational Inference (VI) approximates a complex, "true" posterior distribution with a simpler, tractable one. Standard approaches often use a Gaussian distribution, but hierarchical models create "funnels"—regions where the curvature changes sharply depending on the values of other variables.

Previously, researchers tackled this using two distinct tools:

  1. Variationally Inferred Parameters (VIP): Adaptively reparameterizes the model (switching between "centered" and "non-centered" views) to flatten these funnels.
  2. Normalizing Flows: Uses a sequence of invertible transformations to warp a simple distribution into a complex one.

Standard flows often ignore the specific mathematical form of the model's prior, forcing the neural network to "re-learn" the model's physics from scratch. Until now, the formal relationship between VIP and flows was unexplored.

Model-Informed Flows (MIF)

The researchers present a theoretical breakthrough demonstrating that a full-rank Gaussian combined with VIP is mathematically equivalent to a Forward Autoregressive Flow (FAF), provided the flow incorporates three specific ingredients:

  • Topological Ordering: Processing variables in the order defined by the model's hierarchy.
  • Prior Inputs: Feeding the model’s prior mean and scale functions directly into the flow's neural networks.
  • The Translation Term ($t_i$): A novel mechanism allowing the flow to shift based on previous noise variables ($\epsilon$), rather than just previous latent variables.

Based on this equivalence, the authors designed the Model-Informed Flow (MIF). Unlike standard flows that only condition on previous data points, MIF explicitly incorporates the model's prior expectations at every step of the transformation.

Key Results and Performance

MIF was evaluated against a rigorous suite of benchmarks known for difficult geometries, including hierarchical datasets (8Schools, German Credit, Neal’s Funnel, Radon, Movielens, IRT) and general datasets. It consistently matched or outperformed existing state-of-the-art methods.

Visualizing posterior approximations on a funnel distribution.
  • Mastering the Funnel: On the notorious "Neal's Funnel" distribution, where standard full-rank (FR) Gaussians fail, MIF achieved a KL-divergence of effectively 0.00. The visual comparison above highlights how MIF perfectly captures the funnel geometry compared to standard FR and FAF approaches.
  • State-of-the-Art ELBOs: Across almost every benchmark, MIF produced the highest Evidence Lower Bound (ELBO), providing the tightest approximation of the true posterior.
  • Ablation Insights: Removing the translation term ($t_i$), prior inputs, or topological ordering degrades performance, confirming that these "model-informed" structural components are critical to MIF's success.
Quantitative results comparing MIF against baselines and ablation variants.

Limitations and Future Directions

The primary limitation of MIF is computational speed. Because it is built on a Forward Autoregressive Flow, the sampling process is inherently sequential (e.g., $z_1$ must be calculated before $z_2$). This makes it slower to sample on modern parallel hardware like GPUs compared to Inverse Autoregressive Flows (IAFs). Future work may explore integrating the "model-informed" benefits of MIF into more parallelizable architectures without sacrificing the ability to capture tricky hierarchical funnels.

Summary updated

BibTeX
@inproceedings{ko2025model,
  author = {Joohwan Ko and Justin Domke},
  title = {{Model-Informed Flows for Bayesian Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=wEk10M4CPD},
}
Figure