Papers
Topics
Authors
Recent
Search
2000 character limit reached

Transport RJMCMC via Normalizing Flows

Updated 9 March 2026
  • The paper introduces transport RJMCMC as a method that leverages deep normalizing flows to construct diffeomorphic maps for near-optimal transdimensional proposals.
  • It transforms complex, dimension-changing moves into tractable operations in a common reference space, achieving high acceptance (70%-90%) and improved mixing.
  • Normalizing flows are trained via maximum likelihood or variational inference to approximate target distributions, enhancing scalability and effective posterior estimation.

Transport Reversible Jump Markov Chain Monte Carlo (RJMCMC) methods via normalizing flows represent a significant advance for efficient Bayesian model selection and transdimensional inference. These methods utilize deep normalizing flows to construct diffeomorphic transport maps between complex model posteriors and a common reference distribution, enabling near-optimal proposals for dimension-changing jumps in RJMCMC. This approach circumvents the low acceptance rates and poor mixing inherent in classic RJMCMC by transforming transdimensional moves into near-trivial operations under the reference measure, as formalized in the works of Davies et al. (Davies et al., 2022) and subsequent extensions (Yin et al., 14 Dec 2025).

1. Mathematical Structure of Transport RJMCMC

Transport RJMCMC (TRJ) operates on a state space

X=kK{k}×Θk,\mathcal{X} = \bigcup_{k\in\mathcal{K}} \{ k \} \times \Theta_k,

where each kk denotes a discrete model and θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k} parameterizes model kk. The conditional target is πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k). To facilitate dimension-matching jumps, TRJ constructs for each model kk a transport diffeomorphism Tk:ΘkRnkT_k: \Theta_k \to \mathbb{R}^{n_k} satisfying ideally Tkπk=νnkT_{k\sharp}\pi_k = \nu^{n_k} for a reference (e.g., standard normal) product measure νnk\nu^{n_k}.

A transdimensional move from (k,θk)(k, \theta_k) to kk0 proceeds by:

  1. Mapping kk1 to the reference kk2;
  2. If kk3, drawing kk4; if kk5, truncating kk6 appropriately;
  3. Establishing kk7 through a volume-preserving pairing kk8, e.g., concatenation or permutation in reference space;
  4. Inverting kk9 by θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}0.

This construction reduces general dimension-changing proposals to invertible, tractable mappings in reference coordinates, leveraging the expressiveness of normalizing flows to approximate the necessary transports (Davies et al., 2022, Yin et al., 14 Dec 2025).

2. Metropolis–Hastings Acceptance Criteria

The TRJ acceptance probability for a proposed move θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}1 is

θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}2

where θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}3 is the model-jump proposal probability and θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}4 (resp. θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}5) is the reference density for auxiliary variables θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}6 (resp. θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}7).

Exact Transport Case:

If each θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}8 is an exact transport and the pairing θkΘkRnk\theta_k\in \Theta_k \subset \mathbb{R}^{n_k}9 preserves kk0, the acceptance simplifies to

kk1

With kk2, all cross-model moves are accepted (kk3), yielding rejection-free RJMCMC (Davies et al., 2022).

Approximate Flows:

Empirically, with trained flows, acceptance rates for cross-model moves typically exceed kk4–kk5 for expressive architectures such as rational-quadratic masked autoregressive flows (RQMA), far surpassing naive or affine RJMCMC (Davies et al., 2022, Yin et al., 14 Dec 2025).

3. Architecture and Training of Normalizing Flows

Flow Parameterization

  • Davies et al. (Davies et al., 2022):
    • kk8: Affine standardization (empirical mean/variance).
    • kk9: Sigmoid/Logit transforms between πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)0 and πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)1.
    • πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)2: Stack of three masked-autoregressive spline transforms (RQMA) with rational-quadratic splines (10 bins/11 knots), conditioned by neural networks (two hidden layers, size πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)3).
  • Yin & Jiao (Yin et al., 14 Dec 2025):

Uses RealNVP coupling flows for each model, with "scale" πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)4 and "translation" πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)5 functions parameterized by neural networks. Flows are either model-specific or amortized via a single conditional network with the model index as context.

Training Objective

  • Maximum Likelihood:

Train πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)6 to maximize the expected likelihood of reference samples mapped by πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)7, i.e.,

πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)8

Yin & Jiao (Yin et al., 14 Dec 2025) minimize the reverse KL divergence between the flow-based variational approximation πk(θk)=π(k,θk)/π(k)\pi_k(\theta_k) = \pi(k, \theta_k)/\pi(k)9 and kk0. Unlike pilot-run-based training, this enables fitting with samples drawn directly from the base distribution, promoting scalability and eschewing expensive MCMC pilot runs.

Amortized and Conditional Flows

For large or structured model spaces, conditional normalizing flows (CTRJ) are trained to map from a model-and-parameter-augmented reference to any model's parameterization, supporting efficient transport and dramatically reduced training cost (Davies et al., 2022, Yin et al., 14 Dec 2025).

4. Implementation Workflow and Pseudocode

A schematic pseudocode of the TRJ sampler is as follows:

kk9 (Davies et al., 2022, Yin et al., 14 Dec 2025)

5. Empirical Performance and Benchmarks

Experimental Results

  • Sinh–Arcsinh Toy Example:

With known analytic transports, TRJ achieves rejection-free moves. Approximate flows (RQMA or RealNVP) yield nearly the same performance; affine flows result in noticeably worse mixing and slower convergence of model probabilities (Davies et al., 2022, Yin et al., 14 Dec 2025).

  • Bayesian Factor Analysis (6×6 covariance):

RQMA-based TRJ greatly outperforms classical Lopes–West proposals and affine flows in mixing and variance reduction (Bartolucci Bridge Estimator), offering lower RMSE in model-probability estimates at fixed computational cost (Davies et al., 2022, Yin et al., 14 Dec 2025).

  • Block Variable Selection/Robust Regression:

Standard auxiliary-variable proposals nearly fail to mix between separated modes. Individual (affine/RQMA) flows and conditional flows (CTRJ) both achieve high acceptance and excellent mixing. CTRJ matches the performance of multiple separate flows at much lower training cost (Davies et al., 2022, Yin et al., 14 Dec 2025).

  • TRJ-VI-NF Comparisons:

Directly minimizing the reverse KL produces maps that closely approximate the true transport, yielding higher acceptance rates, smaller variance in model probability estimates, and effective sample sizes for between-model jumps 2–3× larger than prior methods (Yin et al., 14 Dec 2025).

6. Practical Recommendations and Extensions

  • Flow Design:

Choose architectures with analytic invertibility (e.g., RQMA, RealNVP). Use affine flows only when conditional posteriors are close to Gaussian.

  • Preprocessing:

Standardize each training set with elementwise affine transformations computed from pilot samples to improve training efficiency and numerical stability.

  • Data Requirements:

Obtain kk1–kk2 samples per model for supervised flow training (via MCMC/SMC pilot runs or variational flows, depending on approach).

  • Model Jump Probabilities:

If marginal model probabilities kk3 are estimable, use kk4 to improve cross-model mixing; otherwise adopt symmetric or local proposals.

  • Marginal-Likelihood Estimation:

Use the tractable flow-based variational densities for efficient estimation of kk5 via importance sampling, enabling accurate Bayes-factor computation (Yin et al., 14 Dec 2025).

  • Computational Cost:

The up-front cost of flow training is amortized by subsequent orders-of-magnitude speedups in cross-model mixing and typically dwarfed by likelihood evaluations in complex models.

  • Conditional/Amortized Flows:

For large model spaces, employ amortized conditional normalizing flows (CTRJ) for scalability, training on saturated targets that pad all models to kk6 dimensions to share statistical strength and training cost across models (Davies et al., 2022, Yin et al., 14 Dec 2025).

7. Theoretical Foundations and Extensions

“Flows for Flows” (Klein et al., 2022) introduces the nested use of normalizing flows, allowing construction of bijective maps between arbitrary distributions with known Jacobians. This principle underpins the design of deterministic RJMCMC proposals via paired flows, extending to settings with both matching and mismatched dimensions by embedding auxiliary variables and constructing invertible mappings on the joint space kk7. This framework enables the introduction of optimal transport penalties (e.g., kk8, Wasserstein, entropy-regularized cost) to ensure semantically meaningful transports, and supports conditional flows parameterized by model indices or side-information, which can further regularize and scale TRJ to complex, structured model spaces.

The overall methodology centralizes around replacing the design of bespoke, problem-specific RJ proposals with a learned, mathematically principled class of transport maps, ensuring detailed balance via explicit Jacobian accounting and leveraging the full expressive power of modern flow architectures.


References:

  • Davies, Lucas, Meinshausen, "Transport Reversible Jump Proposals" (Davies et al., 2022).
  • Yin, Jiao, "Transport Reversible Jump Markov Chain Monte Carlo with proposals generated by Variational Inference with Normalizing Flows" (Yin et al., 14 Dec 2025).
  • Foster, Papamakarios, "Flows for Flows: Training Normalizing Flows Between Arbitrary Distributions with Maximum Likelihood Estimation" (Klein et al., 2022).

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 Transport RJMCMC via Normalizing Flows.