Skip to main content
QUICK REVIEW

[Paper Review] Efficient Amortised Bayesian Inference for Hierarchical and Nonlinear Dynamical Systems

Geoffrey Roeder, Paul K. Grant|arXiv (Cornell University)|May 28, 2019
Gaussian Processes and Bayesian InferenceComputer Science10 citations
TL;DR

This paper proposes VI-HDS, a scalable, amortized Bayesian inference framework for hierarchical and nonlinear dynamical systems using differentiable ODEs and block-conditional variational autoencoders. It enables fast, accurate inference across multiple biological devices by combining white-box mechanistic models with black-box neural networks, achieving zero-shot generalization and superior scalability over MCMC while maintaining interpretability and predictive accuracy.

ABSTRACT

We introduce a flexible, scalable Bayesian inference framework for nonlinear dynamical systems characterised by distinct and hierarchical variability at the individual, group, and population levels. Our model class is a generalisation of nonlinear mixed-effects (NLME) dynamical systems, the statistical workhorse for many experimental sciences. We cast parameter inference as stochastic optimisation of an end-to-end differentiable, block-conditional variational autoencoder. We specify the dynamics of the data-generating process as an ordinary differential equation (ODE) such that both the ODE and its solver are fully differentiable. This model class is highly flexible: the ODE right-hand sides can be a mixture of user-prescribed or "white-box" sub-components and neural network or "black-box" sub-components. Using stochastic optimisation, our amortised inference algorithm could seamlessly scale up to massive data collection pipelines (common in labs with robotic automation). Finally, our framework supports interpretability with respect to the underlying dynamics, as well as predictive generalization to unseen combinations of group components (also called "zero-shot" learning). We empirically validate our method by predicting the dynamic behaviour of bacteria that were genetically engineered to function as biosensors. Our implementation of the framework, the dataset, and all code to reproduce the experimental results is available at https://www.github.com/Microsoft/vi-hds .

Motivation & Objective

  • To address the computational inefficiency of traditional MCMC methods in inferring parameters of nonlinear ODE-based dynamical systems in high-throughput biological experiments.
  • To develop a scalable, amortized inference framework that supports hierarchical variability across individuals, groups, and populations in dynamical systems.
  • To enable zero-shot generalization to unseen group compositions by leveraging compositional structure in the model.
  • To combine interpretable mechanistic (white-box) dynamics with flexible black-box neural network components for improved model fit and robustness.
  • To support rapid, closed-loop iteration across competing mechanistic hypotheses using a unified, differentiable inference framework.

Proposed method

  • The framework uses a conditional variational autoencoder (CVAE) with block-conditional factorization to model hierarchical latent variables at individual, group, and population levels.
  • The data-generating process is defined by a fully differentiable ODE, with right-hand sides composed of both user-specified equations (white-box) and neural networks (black-box).
  • Inference is performed via stochastic optimization of the variational lower bound (ELBO), leveraging reverse-mode automatic differentiation for end-to-end backpropagation through the ODE solver.
  • Amortized inference enables fast posterior approximation across large datasets by sharing inference networks across similar systems.
  • The model supports joint learning of multiple devices and signals, enabling transfer of statistical strength and improved generalization.
  • Plausibility constraints are enforced in the black-box model, such as non-negative state variables and separate production/degradation terms, to ensure biological interpretability.

Experimental results

Research questions

  • RQ1Can amortized variational inference over a differentiable, block-conditional VAE achieve scalable and accurate inference for hierarchical nonlinear dynamical systems?
  • RQ2Can a hybrid model combining white-box ODEs and black-box neural networks improve predictive accuracy while preserving interpretability?
  • RQ3To what extent can the model generalize to unseen group compositions (zero-shot learning) in synthetic biology applications?
  • RQ4How does the framework scale to large, high-throughput datasets from automated labs compared to traditional MCMC methods?
  • RQ5Can the joint inference of multiple devices improve predictive performance and model robustness?

Key findings

  • The VI-HDS framework achieves predictive accuracy comparable to state-of-the-art MCMC methods but with significantly faster training times, enabling scalable inference on large datasets.
  • The black-box model accurately predicts the non-monotonic YFP response to C12 treatments, while the white-box model shows imprecise predictions at final time points, indicating model misspecification.
  • Zero-shot generalization to held-out devices is successfully demonstrated, with the black-box model accurately predicting responses for previously unseen R33-S34 devices.
  • The model enables rapid comparison between white-box and black-box dynamics, revealing that the white-box model exhibits more accentuated transient variations in [YFP] and [CFP] than the black-box model.
  • Joint inference across multiple devices improves predictive performance and provides an upper bound on achievable accuracy for any prescribed model.
  • The framework supports efficient closed-loop model iteration by enabling gradient-based optimization of model structure and parameters, facilitating active learning in synthetic biology.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.