Manuscript Offprint

arXiv:2610.37731

Amortized Localized Posterior Inference for Model Calibration with Application to an Ocean Turbulence Closure

Exaucé Luweh Adjim Ngarti, Élise Arnaud, Léo Nicoletti, Victor Trappler, Arthur Vidard

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. Model discrepancy may prevent a single calibration parameter from reproducing a physical response across the context domain. In addition, uncertainties in observations and contexts affect calibration and must be accounted for and quantified. We construct a family of localized posteriors by weighting observation likelihoods according to their proximity to a target context. Gaussian localization weights incorporate context uncertainty through covariance inflation, with reflection at domain boundaries and an optional correction for uneven context sampling. A conditional normalizing flow approximates the family of posteriors through amortized variational inference. Integrating the localized posteriors under a prescribed context measure gives the marginalized parameter distribution. In a twin experiment with the Branin-Hoo model, we compare global and localized inference under uniform and skewed context distributions. Localization reduces the reported aggregate predictive errors relative to the global posterior. An application to the k−εk-\varepsilon turbulence closure in a single-column ocean model, with atmospheric surface forcing as context, shows that localized posterior calibration reduces temperature and zonal-velocity errors relative to deterministic and global-posterior calibration. Both twin experiments are constructed to admit local compensation.

Key words. Bayesian calibration, model discrepancy, localized posterior, amortized inference, context uncertainty, turbulence closure

1. Introduction

Numerical models play a central role in science and engineering. In geosciences, they form the basis of weather forecasting [2], climate modeling [14, 1], hydrological simulation [10], and ocean dynamics [13]. Their construction typically starts from fundamental equations, such as the Navier-Stokes equations in fluid dynamics, and proceeds through modeling assumptions, approximations, and numerical discretizations.

However, numerical models are not exact representations of the physical world. Many physical processes occur at spatial or temporal scales that cannot be explicitly resolved at an affordable computational cost. Their effects must therefore be represented indirectly through simplified closure laws, parameterizations, or empirical corrections. As a result, numerical models involve parameters that control unresolved or imperfectly known mechanisms. These parameters cannot usually be determined from the governing equations alone and must instead be estimated from observational data. This estimation process is referred to as model calibration.

In practice, calibration compares model outputs with observations collected under different physical or experimental conditions, referred to here as contexts. A common approach is to estimate a single calibration parameter that explains the observations across the context domain. However, such a parameter may not exist when missing or simplified mechanisms induce model discrepancy that varies with context. Moreover, calibration data may over-represent certain contexts, while the contexts associated

*Corresponding author: Exaucé Luweh Adjim Ngarti. Email: exaucengarti@gmail.com.

with observations may themselves be uncertain. These effects can influence the inferred parameters and the predictive performance of the calibrated model across the context domain.

One approach to model discrepancy is to augment the numerical response, for example with a Gaussian process or a neural network [17, 6, 23, 22, 35]. Such approaches increase modeling flexibility but introduce additional unknowns and may complicate physical interpretation. Calibration under uncertain or unobserved contexts has also been considered [33, 29]. Here, we consider contexts observed with uncertainty and address model discrepancy by allowing the calibration distribution to depend on the target context, without introducing an explicit discrepancy model.

Our approach relies on a local compensability assumption: although a single parameter may not adequately reproduce observations across the entire context domain, model discrepancy can be approximately compensated by calibration parameters within a neighborhood of a given context. We therefore construct a family of localized posterior distributions, one for each target context, by weighting the observation likelihood contributions according to their proximity to that context. Observations collected near the target context receive greater weight, allowing the calibration distribution to vary across the context domain.

Since the recorded contexts may be uncertain, we incorporate context uncertainty into Gaussian localization weights through covariance inflation. We also account for domain boundaries through reflection and consider an optional correction for uneven context sampling. The resulting localized posteriors describe parameter uncertainty at each target context. Integrating these distributions under a prescribed context measure yields a marginalized parameter distribution, which summarizes the context-dependent calibration uncertainty.

Constructing a separate posterior approximation for every target context would require repeated inference. To avoid this, we use conditional normalizing flows [30, 9] and amortized variational inference [16, 15, 3]. A single conditional flow is trained over the context domain to approximate the family of localized posteriors, allowing a posterior approximation to be evaluated at a new target context without repeating the optimization.

We first examine the method in a Branin–Hoo twin experiment. We compare global and localized posterior inference under uniform and skewed context distributions, in a setting where local compensation is possible by construction. Localization reduces aggregate predictive errors relative to global posterior calibration.

We then apply the approach to the calibration of a k−εk-\varepsilon turbulence closure in a single-column ocean model. Ocean models represent unresolved turbulent mixing through closure schemes whose parameters must be specified. Vertical mixing redistributes momentum and tracers under the combined effects of stratification, surface heat flux, and wind-driven shear. We consider temperature and zonal-velocity observations, with atmospheric surface forcing, including wind stress and heat flux, defining the context. These forcing quantities are uncertain, notably because they may be estimated from bulk atmospheric variables [5]. Moreover, the simplified turbulence closure may introduce context-dependent model discrepancy, making a single calibration parameter inadequate across different forcing conditions. In the designed experiments, localized posterior calibration reduces temperature and zonal-velocity errors relative to deterministic and global-posterior calibration. The results also show reduced parameter identifiability under weak-wind and heating conditions.

The main contributions of this work are:

  • A localized Bayesian calibration formulation based on a local compensabil-

ity assumption, in which observation likelihood contributions are weighted according to their proximity to a target context.

  • A localization procedure accounting for uncertainty in the observed contexts, domain boundaries, and uneven context sampling, together with a marginalized parameter distribution under a prescribed context measure.

An amortized variational inference approach using conditional normalizing flows to approximate the family of localized posteriors over the context domain.

  • A numerical assessment using a Branin–Hoo twin experiment and the calibration of an ocean turbulence closure, comparing localized inference with global calibration and examining predictive errors and parameter identifiability.

References (17)