Manuscript Offprint
arXiv:2610.37169Rènyi-Regularized Flow-Based Variational Inference for Bayesian Calibration
EXAUCÉ LUWEH ADJIM NGARTI*, ELISE ARNAUD, LÉO NICOLETTI
VICTOR TRAPPLER, ARTHUR VIDARD
Univ. Grenoble Alpes, Inria, CNRS, LJK, 38000 Grenoble, France.
Bull, Centre of Excellence in Performance Programming (CEPP), France.
Department GMI, Institut Henri Fayol, Mines Saint-Étienne, Univ Clermont Auvergne, CNRS, UMR 6158 LIMOS, F-42023 Saint-Étienne, France.
Abstract. Variational inference with normalizing flows provides a flexible posterior approximation for Bayesian model calibration, but struggles when the posterior has several modes separated by regions of low probability mass. We study this behavior in a two-parameter twin experiment and regularize the variational objective. Under Gaussian observation errors and a Gaussian prior, the corresponding minimization objective is the expected Tikhonov calibration objective minus the differential entropy of the approximating distribution. However, the expected Tikhonov term favors concentration near one of the modes, while entropy maximization does not guarantee multimodality.
We introduce a regularization term based on Rényi divergence that encourages the approximate posterior to cover the prior support. In the connected bimodal case, a flow approximation represents both modes; in the case with well-separated modes, the flow and Gaussian mixture frequently miss one mode. The introduced regularization reduces the near-collapse fraction from 50% to 25%. While the regularization improves mode coverage in this experiment, it changes the Bayesian variational objective, introduces a trade-off in approximation accuracy, and does not provide a general solution to mode collapse.
Key words. Bayesian calibration, variational inference, normalizing flows, Rényi divergence, mode collapse
- Introduction. Bayesian calibration characterizes uncertainties in numerical model parameters through posterior distributions. Markov chain Monte Carlo methods, including Metropolis–Hastings, Gibbs sampling, and Hamiltonian Monte Carlo [10, 9, 2, 15], provide samples from the posterior. However, their computational cost can be prohibitive when likelihood evaluations are expensive, as is often the case for numerical simulators. Variational inference offers an optimization-based approximation [13, 12, 1] using a parameterized family of distributions, and normalizing flows provide flexible distribution models with tractable sampling and log-density evaluation [16, 7]. Alternative variational objectives include -divergences [6], -divergences [14, 11, 5], robust and tail-adaptive f-divergences [8, 19], and Tsallis divergence [20]. In this work, we consider the standard ELBO derived from the reverse Kullback–Leibler divergence.
However, ELBO-based variational inference struggles when the posterior exhibits multiple modes separated by regions of low probability mass. We augment the negative ELBO with a Rényi divergence from the prior to the variational approximation to encourage the approximate posterior to cover the prior support. We test the regularization in a two-parameter calibration problem with two benchmark cases: a curved bimodal distribution with no region of near-zero probability mass separating the modes, and a bimodal distribution with modes separated by a region of near-zero probability mass. Variational inference with normalizing flows yields a good approximation in the connected-posterior case but struggles in the case with well-separated modes. The regularization reduces the near-collapse fraction from 50% to 25%.
*Corresponding author: Exaucé Luweh Adjim Ngarti. Email: exaucengarti@gmail.com.
We first recall the Bayesian calibration framework in subsection 2.1, link the ELBO objective to classical Tikhonov regularization, and explain how this link accounts for the observed mode collapse for posteriors with modes separated by regions of low probability mass. Then, in section 3, we introduce the Rényi regularization and present numerical experiments on the controlled benchmark in section 4.
2. Background
2.1. Bayesian model calibration. Let denote the numerical model, the model parameter to be calibrated, and the context variable specified for each model run. Calibration is performed using observations and their corresponding contexts . Assuming conditionally independent observations with Gaussian errors and a Gaussian prior on the calibration parameter independent of the context, we have
(2.1)
where is the prior mean, and and are positive-definite covariance matrices. The posterior density is
(2.2)
2.2. Variational inference with normalizing flows. Variational inference approximates the posterior in (2.2) with a parameterized distribution by minimizing the Kullback–Leibler divergence, equivalently minimizing the negative ELBO, (2.3)
Here, is modeled by a normalizing flow, , with a differentiable, invertible map that transforms a base distribution into a more expressive distribution.
2.3. Connection with Tikhonov regularization. For a positive-definite matrix , define the weighted quadratic form . The Gaussian calibration assumptions lead to the Tikhonov loss [18]
(2.4)
For the flow distribution, let denote its differential entropy. Substituting the Gaussian likelihood and prior into (2.3) gives
(2.5)
where denotes equality up to a constant independent of . Variational calibration therefore minimizes the expected Tikhonov functional minus the entropy. The expected Tikhonov term favors concentration in regions where J is small, while the entropy term favors dispersion. Although the exact posterior minimizes the negative ELBO over all distributions, a restricted variational family and its optimization may yield an approximation concentrated near a single mode, particularly when modes are separated by regions of low probability mass.
(3.1)
which gives the regularized objective
(3.2)
The direction from the prior to the approximation is chosen to discourage low variational density in regions carrying prior mass. For , zero variational density on a set of positive prior probability gives an infinite divergence. The estimation of the regularization term is described in section C.
3.2. Adaptive weight. We balance the gradient magnitudes using a gradient-normalization strategy motivated by [3]. At training step , let and . Their exponentially smoothed values and the weight update are
with smoothing coefficient , target gradient ratio , and numerical stabilizer . The updated weight is used at the next training step and is treated as fixed when computing the gradient of the regularized objective with respect to .
4. Numerical experiments
4.1. Synthetic benchmark. We define the numerical model with parameter vector
context variable
and observation space . The forward model is defined by
(4.1)
Each component of the forward model is defined separately. For ,
(4.2)
In this experiment, calibration is performed using a synthetic observation at a single context , given by , with diagonal Gaussian noise covariance . By choosing and , we construct two calibration cases. Case A produces a curved, V-shaped bimodal posterior with a substantial connecting region, while Case B produces modes separated by a region of very low probability density. The two configurations are summarized in Table 1.
Table 1: Twin-experiment configurations. Both cases use zero prior mean and observation covariance . The prior covariance is denoted by .
| Case | True parameter | Context |
|---|---|---|
| A | (0.075, 1) | (1, 1) |
| B | (0.4, 1) | (1, 0.5) |
4.2. References and approximation diagnostics. The reference posterior is obtained by evaluating the unnormalized density on a Cartesian grid and normalizing it by trapezoidal quadrature. Hamiltonian Monte Carlo provides an additional sampling-based comparison, with its density estimated by Gaussian kernel density estimation. The grid normalization procedure is described in Appendix A.
For the reference posterior and approximation , we compute the forward and reverse Kullback–Leibler divergences and total variation distance:
These quantities are computed using densities normalized on the same grid domain. When density evaluation at arbitrary points is intractable, the approximation is evaluated through kernel density estimation.
To quantify the fraction of runs exhibiting near collapse in Case B, we use the fact that the two modes lie on opposite sides of the first calibration coordinate. For run , posterior samples are used to estimate the mass on the positive side of this coordinate and on the negative side. The minority-mode mass and near-collapse fraction are
We also compute the squared energy distance [17],
where are independent samples from , and are independent samples from , with all four random variables mutually independent.
4.3. Numerical results. In Figure 1, the variational approximation represents both modes and follows the grid and MCMC references. The final discrepancy measures are presented in Table 2.
The same flow architecture frequently converges to one mode in Case B. The near-collapse fraction is 0.875 in Table 2. The posterior are presented in Figure 2. The Gaussian-mixture approximation shown in the same figure also converges to a single mode in the experiments with eight random seeds.
For the regularized approximation, we consider Rényi orders and gradient ratios , with . The combination and r = 0.2 gives favorable results in terms of near-collapse fraction, minority-mode mass, and
Comparison of Posterior Distributions
Joint Density
Marginal

Marginal
Fig. 1: Case A : Posterior with connected modes. Green: grid reference; red: Gaussian KDE of MCMC samples; blue: flow approximation. Left: joint-density contours. Middle and right: marginal densities.
Comparison of Posterior Distributions
Joint posterior
Marginal of

Marginal of

Fig. 2: Case B: posterior with well-separated modes. The first row shows the flow approximation and the second row the Gaussian mixture approximation. Green: grid reference; red: Gaussian KDE of MCMC samples; blue: variational approximation. The left column shows the joint-density contours, while the middle and right columns show the marginal densities.
squared energy distance. Extended results for all parameter values are presented in Appendix D.
For the matched-flow comparison, the unregularized reference and regularized
Table 2: Unregularized posterior approximation. Divergences and distances are presented as mean standard deviation; the near-collapse fraction uses threshold .
| Metric | Case A flow | Case B flow | Case B mixture |
|---|---|---|---|
| Forward KL | |||
| Reverse KL | |||
| Total variation | |||
| Near-collapse fraction | - |
approximation use the same architecture, which differs from the initial unregularized Case B flow. With and , regularization reduces the near-collapse fraction from 0.50 to 0.250. Forward Kullback–Leibler divergence decreases from 4.912 to 3.126 and squared energy distance from 0.259 to 0.227. Reverse divergence increases from 2.401 to 3.358, and total variation from 0.554 to 0.617. The means and standard deviations are given in Table 3.
| Metric | Reference | Rényi |
|---|---|---|
| Forward KL | ||
| Reverse KL | ||
| Total Variation Distance | ||
| Squared Energy Distance | ||
| Near-collapse Fraction () |
Table 3: Case B: matched-reference and Rényi-regularized approximations. Values are mean standard deviation, except the near-collapse fraction. Lower values are preferred for all metrics.
The two regularized realizations in Figure 3 illustrate the remaining variability: Rényi A represents both modes, whereas Rényi B nearly collapses. Regularization reduces near collapse but does not prevent it. Details of the training configurations and flow architectures are provided in Appendix B.
Comparison of Posterior Distributions
Joint posterior
Marginal of
Marginal of


Fig. 3: Case B: Comparison of the posterior distributions obtained with the reference training configuration and two Rényi-regularized runs. The rows correspond to the reference configuration, Rényi A, and Rényi B, with the latter two corresponding to different random seeds. The columns show the joint posterior distribution and the two marginal posterior distributions.
- Discussion and conclusion. The negative ELBO combines the expected data misfit and prior deviation with a negative entropy term. In the symmetric benchmark, either mode explains the observation and is equally favored by the prior, so a distribution concentrated near one mode can have a small expected Tikhonov term. Entropy maximization alone does not enforce multimodality, since a unimodal Gaussian maximizes differential entropy at fixed covariance [4]. This is consistent with the observation that flow-based variational inference approximates the connected bimodal posterior but frequently misses one of the well-separated modes in Case B.
The flow and mixture results are consistent with the mode-seeking behavior of the reverse divergence, although they remain dependent on the architecture, initialization, and optimization settings. Adding the prior-referenced Rényi regularization reduces near collapse in the matched-flow comparison, but also changes the variational target and can spread probability into regions less favored by the data. In this comparison, forward divergence and energy distance decrease, whereas reverse divergence and total variation increase.
Overall, Rényi regularization can improve mode coverage, but its benefit must be assessed against the bias introduced by modifying the Bayesian objective and the variability of the optimization.
Appendix A. Reference posteriors.
Let denote the unnormalized posterior evaluated on a Cartesian grid:
(A.1)
Let be the trapezoidal quadrature weights. The reference posterior and the evaluated approximation are normalized on the same grid domain:
(A.2)
The integrals in (4.3) are approximated by the corresponding weighted sums. Gaussian kernel density estimation is used when density evaluation at arbitrary points is intractable.
Appendix B. Experimental settings.
| Configuration | Component | Value |
|---|---|---|
| Common flow settings | Number of seeds | 8 |
| Learning rate | ||
| Number of training steps | 5000 | |
| Number of particles | 10 | |
| Flow hidden dimensions | (8, 8) | |
| Number of spline bins | 8 | |
| Spline bound | 5.0 | |
| Repetitions per transform block | 3 | |
| Case A: connected modes | Architecture | Spline coupling spline autoregressive neural autoregressive |
| Neural autoregressive width | 8 | |
| Case B: well-separated modes | Unregularized architecture | Same as Case A |
| Case B: matched-flow comparison | Reference architecture | Affine coupling spline coupling affine coupling spline autoregressive affine coupling |
| Regularized posterior familyRényi order ELBO-to-regularization gradient ratio EMA coefficient | Same as reference0.8 | |
| Gaussian mixture | Initial means | |
| Initial scale | ||
| Learning rate |
Table 4: Hyperparameters for the normalizing-flow and Gaussian-mixture approximations. Common flow settings apply to the flow configurations. The Case B matched-flow comparison uses the same architecture for the unregularized reference and the Rényi-regularized approximation.
Appendix C. Monte Carlo estimation of the Rényi divergence.
For independent samples , set . The prior-expectation form of the divergence and its log-sum-exp estimator [14] are
The estimator is generally biased because of the logarithm but is consistent when the expectation is finite. Since the prior samples are independent of , differentiation yields
(C.2)
Appendix D. Regularization parameter study.
Effect of Rényi Regularization Parameters
Near-Collapse Ratio Minority-mode mass Squared energy distance

Fig. 4: Changes in the evaluation metrics for the disconnected posterior across Rényi orders and gradient ratios r. Cell labels report the changes relative to the reference configuration; green indicates improvement, whereas red indicates deterioration.
Acknowledgments. This work was supported by the French Ministry of Higher Education and Research through the CIFRE (Conventions Industrielles de Formation par la Recherche) program, administered by the Association Nationale de la Recherche et de la Technologie (ANRT), under CIFRE agreement No. 2022/1801, in collaboration with Bull.
This project was provided with HPC/AI computing and storage resources by GENCI at IDRIS thanks to grant AD010117241 on the Jean Zay supercomputer's CSL, A100, and H100 partitions.
REFERENCES
[1] D. M. BLEI, A. KUCUKELBIR, AND J. D. MCAULIFFE, Variational inference: A review for statisticians, Journal of the American Statistical Association, 112 (2017), pp. 859–877.
[2] S. BROOKS, A. GELMAN, G. JONES, AND X.-L. MENG, Handbook of markov chain monte carlo, CRC press, 2011.
[3] Z. CHEN, V. BADRINARAYANAN, C.-Y. LEE, AND A. RABINOVICH, Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks, in International conference on machine learning, PMLR, 2018, pp. 794–803.
[4] T. M. COVER AND J. A. THOMAS, Differential Entropy, John Wiley & Sons, Ltd, 2 ed., 2005, ch. 8, pp. 243–259, https://doi.org/10.1002/047174882X.ch8.
[5] K. DAUDEL, J. BENTON, Y. SHI, AND A. DOUCET, Alpha-divergence variational inference meets importance weighted auto-encoders: Methodology and asymptotics. arXiv preprint arXiv:2210.06226, 2023.
[6] A. B. DIENG, D. TRAN, R. RANGANATH, J. PAISLEY, AND D. BLEI, Variational inference via upper bound minimization, Advances in Neural Information Processing Systems, 30 (2017).
[7] L. DINH, J. SOHL-DICKSTEIN, AND S. BENGIO, Density estimation using real nvp, arXiv preprint arXiv:1605.08803, (2016).
[8] F. FUTAMI, I. SATO, AND M. SUGIYAMA, Variational inference based on robust divergences. arXiv preprint arXiv:1710.06595, 2018.
[9] S. GEMAN AND D. GEMAN, Stochastic relaxation, Gibbs distributions, and the Bayesian restoration of images, IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-6 (1984), pp. 721–741, https://doi.org/10.1109/TPAMI.1984.4767596.
[10] W. K. HASTINGS, Monte carlo sampling methods using markov chains and their applications, Biometrika, 57 (1970), pp. 97–109, https://doi.org/10.1093/biomet/57.1.97.
[11] J. HERNANDEZ-LOBATO, Y. LI, M. ROWLAND, T. BUI, D. HERNANDEZ-LOBATO, AND R. TURNER, Black-box alpha divergence minimization, in Proceedings of The 33rd International Conference on Machine Learning, PMLR, 2016, pp. 1511–1520.
[12] M. D. HOFFMAN, D. M. BLEI, C. WANG, AND J. PAISLEY, Stochastic variational inference, Journal of Machine Learning Research, (2013).
[13] M. I. JORDAN, Z. GHAHRAMANI, T. S. JAAKKOLA, AND L. K. SAUL, An introduction to variational methods for graphical models, Machine learning, 37 (1999), pp. 183–233.
[14] Y. LI AND R. E. TURNER, Rényi divergence variational inference. arXiv preprint arXiv:1602.02311, 2016.
[15] R. M. NEAL, Mcmc using hamiltonian dynamics, in Handbook of Markov Chain Monte Carlo, S. Brooks, A. Gelman, G. Jones, and X.-L. Meng, eds., Chapman and Hall/CRC, 2011, ch. 5, pp. 113–162.
[16] D. REZENDE AND S. MOHAMED, Variational inference with normalizing flows, in International conference on machine learning, PMLR, 2015, pp. 1530–1538.
[17] G. J. SZÉKELY AND M. L. RIZZO, Energy statistics: A class of statistics based on distances, Journal of statistical planning and inference, 143 (2013), pp. 1249–1272.
[18] A. N. TIKHONOV AND V. B. GLASKO, Use of the regularization method in non-linear problems, USSR Computational Mathematics and Mathematical Physics, 5 (1965), pp. 93–107.
[19] D. WANG, H. LIU, AND Q. LIU, Variational inference with tail-adaptive f-divergence. arXiv preprint arXiv:1810.11943, 2019.
[20] Z. WANG, O. SO, J. GIBSON, B. VLAHOV, M. S. GANDHI, G.-H. LIU, AND E. A. THEODOROU, Variational inference mpc using tsallis divergence. arXiv preprint arXiv:2104.00241, 2021.