Manuscript Offprint

arXiv:2611.12193

Amortized Transport-Map Likelihoods for Hierarchical Inverse Problems with Application to Wetting

Henning Bonart

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Hierarchical Bayesian models pool measurements, but with the forward model in the likelihood every posterior evaluation costs one forward solve per cell. To reduce this cost, we introduce a simulation-based inference framework in which a triangular transport-map likelihood, trained once per design, serves every cell. We apply it to infer wetting properties from photographs of a stable hole in a thin liquid film. The hole’s radius depends, through the nonlinear Young–Laplace equation, on the contact angle and capillary length. One photograph gives rank-one information about them, so we pool many in a hierarchical model whose cells, each a substrate at one volume setting, share the apparatus geometry and the noise scale. A design fixes the number of substrates, the volume settings and the photographs per cell. The map’s posteriors agree with direct sampling of the forward model in the wetting properties at a synthetic validation design, and less closely at a larger synthetic scaling design. At the validation design, simulation-based calibration detects no departure for any parameter. There, the map needs several hundred times fewer forward-model evaluations than direct sampling with a gradient-free ensemble sampler for a single posterior, and about five orders of magnitude fewer over a calibration study of 200 posteriors. On real photographs its posterior agrees with direct sampling and is consistent with the measured radii. Trained offline, the amortized map turns new photographs into a posterior with no forward solve. It is thus a major step toward measuring wetting properties in situ without disturbing the liquid.

Key words. simulation-based inference, triangular transport maps, surrogate likelihood, hierarchical Bayesian model, simulation-based calibration, Young–Laplace equation, wetting

MSC codes. 62F15, 62G07, 62P35, 65L09, 76D45

1 Introduction

The contact angle and the surface tension characterize the wetting behavior of a liquid film on a substrate. They govern whether a liquid spreads on a solid surface, coats it or dewets from it. Measuring these wetting properties inside a running process, such as coating or inkjet printing, needs a method that leaves the liquid undisturbed. As an example, a thin liquid film on a superhydrophobic substrate can hold a stable circular defect, and a camera photographs this hole in the liquid film from above without contact with the liquid. The equilibrium shape of the film follows the Young–Laplace equation, and earlier work established when a hole is stable [41, 28]. The radius of the hole, one scalar per photograph, depends on the contact angle of the substrate and on the liquid’s capillary length, which combines its surface tension with its density and gravity. The inverse problem of this paper is therefore to infer the contact angle and the capillary length, together with their uncertainty, from measured radii accurately and at low computational cost. Our previous work provides the experimental data and a first Bayesian model, whose posterior was approximated by variational inference [7]. A Bayesian formulation answers an inverse problem with a posterior distribution, which quantifies the uncertainty of the inferred parameters [39].

In our case one photograph informs the inputs of the Young–Laplace model along a single direction only, so photographs at several volume settings and of several substrates must be combined. A hierarchical model pools the photographs systematically [18]: parameters of each substrate, such as its capillary length, are drawn from a common population, and parameters such as the noise scale are shared by every photograph. With the forward model in the likelihood, every evaluation of the posterior of such a hierarchical model costs one forward solve per cell (one substrate at one volume setting), and a chain needs many evaluations. The cost of inference therefore grows with the cost of the forward model. Simulation-based inference moves the forward solves out of the sampler: it learns from simulations run before inference [13]. Drawn from a fixed training distribution, the simulations are independent of each other and can run in parallel. In our case, a design fixes the number of substrates, the volume settings and the number of photographs per cell. Because a learned likelihood takes the parameters of one cell, one fit per design is the likelihood of every cell of that design.

A neural density estimator can learn such a likelihood [32]. For hierarchical models, neural posterior estimation has been adapted by conditioning on the global parameters [36], and amortized posterior estimation has been applied to real data [21]. Learned likelihoods have been shared across the subjects of a hierarchical model [15] and, as a normalizing flow sampled by Hamiltonian Monte Carlo, across the supernovae of a cosmological one [8], both on synthetic data. Triangular transport maps [29] have given simulation-based posteriors [5], also for a model of block-copolymer self-assembly [4]. A simulation-based likelihood has been built from triangular maps as an explicit conditional density [37]. Transport maps have accelerated likelihood-based inference [34], also on experimental data [30]. A triangular map can be parametrized to suit the available data and the complexity of the distribution, has tractable derivatives, and evaluates a normalized density and the conditionals of that density [35]. A likelihood built from such a map therefore has an analytic gradient in the parameters.

We are not aware of a transport-map likelihood learned from simulations and shared across a hierarchical model of real physical measurements. We therefore introduce a framework for simulation-based inference in hierarchical inverse problems, in which an amortized transport-map likelihood, trained once per design, serves every cell. We test it on synthetic datasets and demonstrate it on the Young–Laplace problem with real measurements. Direct sampling of the forward model stays feasible in the present problem, which gives a reference for testing the map, alongside simulation-based calibration. We find that the map’s posteriors agree with direct sampling on real photographs and, in the wetting properties, at a synthetic validation design, and less closely at a larger synthetic scaling design. At the validation design they pass simulation-based calibration, and the map needs several hundred times fewer forward-model evaluations than direct sampling with a gradient-free ensemble sampler for a single posterior. Every further posterior at the same design adds no forward solve, which makes simulation-based calibration of the hierarchical model affordable. We expect the framework to extend to problems in which direct sampling is infeasible, with non-Gaussian noise or a more expensive forward model, provided the map stays accurate as the number of cells grows.

Section 2 describes the measured radii from earlier laboratory experiments [7], the Young–Laplace model, the observation model and the reduced-order model. Section 3 shows why one photograph is not enough and builds the hierarchical Bayesian model and the designs of the simulation studies. Section 4 constructs the map’s likelihood, its training on re-noised forward solves, the posterior sampling and the cost comparison. Sections 5 and 6 test the map in simulation studies, against direct sampling and by simulation-based calibration, and section 7 applies it to the measured radii.

References (36)