Beyond MCMC Black-Box: A Diagnostic-Driven workflow to Optimize Population Dynamics Models with NIMBLE
Abstract Bayesian hierarchical models are widely used in ecology to represent complex population dynamics and integrate multiple sources of information. However, their computational cost can limit their practical applicability, particularly for high-dimensional integrated population models. The NIMBLE framework offers flexible model specification in the BUGS language and several options to customize MCMC algorithms, that deliver significant gains in both the efficiency of posterior distribution exploration and computational time, without requiring the models to be recoded in another programming language. We develop a diagnostic-driven workflow to optimize MCMC sampling efficiency for Bayesian hierarchical models implemented within NIMBLE. The workflow combines node-level diagnostics (effective sample size, ESS per iteration and ESS per unit time) and systematic benchmarking of alternative sampler configurations to identify computational bottlenecks and guide the selection of more efficient samplers. We first demonstrate the approach using a series of toy models specifically designed to isolate key sources of MCMC inefficiency, including posterior dependence, parameter correlations, and interactions between posterior geometry and sampler design. We then demonstrate its applicability on an integrated population model used for international assessment of Atlantic salmon populations. Across both toy models and the realistic case study, targeted sampler optimization produces substantial efficiency gains, frequently exceeding one order of magnitude. Our results show that computational efficiency emerges from the interaction between model structure, posterior geometry, and sampler configuration, rather than from algorithmic choice alone. The proposed framework provides a reproducible and transferable strategy for optimizing MCMC algorithms in complex ecological models and other high-dimensional Bayesian systems.
Authors
- Marie‐Pierre Étienne (ORCID: https://orcid.org/0000-0002-2097-2267)
- Rémi Patin (ORCID: https://orcid.org/0000-0002-4448-2844)
- Étienne Rivot (ORCID: https://orcid.org/0000-0002-5442-121X)
- Romuald HOUNYEME (ORCID: https://orcid.org/0000-0002-1063-8441)
- Hilaire Drouineau (ORCID: https://orcid.org/0000-0001-9206-0040)
Institutions
- Institut Agro Rennes-Angers (FR)
- Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement (FR)
- Biologie du Fruit et Pathologie (FR)
- Santé et Agroécologie du Vignoble (FR)
- Unité mixte de recherche Œnologie (FR)
- Institut de recherche mathématique de Rennes (FR)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-07-18
- DOI
- https://doi.org/10.5281/zenodo.21430947
- Primary Topic
- Marine and fisheries research
- Type
- article
- Field-Weighted Citation Impact
- 0.00