Manuscript Offprint
arXiv:2611.02787POD-CNF: reduced order modeling of parametrized stochastic PDEs via normalizing flows and proper orthogonal decomposition
Abstract
Reduced-order models (ROMs) learned from trusted numerical simulations enable the real-time simulation of complex physical systems, making otherwise computationally prohibitive tasks—such as uncertainty quantification and optimal control—tractable. In particular, data-driven ROMs are opening new opportunities for developing powerful surrogate models that can learn from both numerical simulations and experimental data. However, integrating these sources of information is far from straightforward. Real-world measurements often involve multiple sources of uncertainty, including non-Gaussian noise, latent heterogeneities, unknown or hidden system parameters, and complex multiscale phenomena occurring below the resolution of the available data. Consequently, real-world data are more naturally described by parametrized stochastic partial differential equations (SPDEs), for which the development of effective ROMs remains relatively unexplored. In this setting, the system response is better characterized by a probability distribution than by a deterministic field, motivating the development of probabilistic surrogates. In this work, we introduce POD-CNF, a data-driven generative ROM for efficient uncertainty quantification and characterization of parametrized high-dimensional systems. The proposed approach combines projection-based model reduction with deep generative modeling. First, Proper Orthogonal Decomposition (POD) is employed to obtain a low-dimensional representation of the solution manifold. A Conditional Normalizing Flow (CNF) is then trained to approximate the conditional probability density of the reduced coefficients given the input parameters. This formulation allows the surrogate to capture complex and potentially multimodal output distributions, going beyond standard regression-based ROMs that typically focus on mean least-squares predictions. We assess the effectiveness of POD-CNF through a series of numerical experiments, demonstrating its ability to accurately reproduce output distributions while substantially reducing computational costs. Furthermore, a proof-of-concept application illustrates how the generative point of view provided by the normalizing flow facilitates the integration of POD-CNF into Bayesian inverse problems, highlighting promising directions for future research.
Keywords: reduced order modeling, scientific machine learning, stochastic & parametrized PDEs, generative modeling, conditional normalizing flows.
1 Introduction
Partial Differential Equations (PDEs) constitute a standard mathematical framework for modeling physical phenomena in engineering and applied sciences [47]. Given suitable boundary and initial conditions, their solutions can be approximated numerically through high-fidelity discretization techniques such as the Finite Element Method (FEM), Finite Volume Method (FVM), or spectral methods [47]. In many practical applications, however, the governing equations depend on a set of input parameters describing material properties, geometric configurations, operating conditions, or boundary data. Consequently, one is not interested in solving a single PDE instance, but rather an entire family of parametrized problems. From an abstract point of view, these latter can be expressed, in the stationary case, as the solution of a parametrized PDE of the form
complemented by suitable boundary conditions, where denotes a bounded spatial domain and a vector of deterministic parameters. Here, and denote a parametrized differential operator and source term, respectively. Under suitable assumptions, the problem is well posed, meaning that for every parameter value there exists a unique solution field .
While high-fidelity numerical solvers provide accurate approximations of (1), repeatedly solving a differential problem for many parameter configurations may become computationally prohibitive. This issue arises in several many-query scenarios, including uncertainty quantification, optimization, inverse problems, and real-time control. Such challenges have motivated the development of Reduced Order Modeling (ROM) techniques, whose objective is to construct low-dimensional surrogate models capable of rapidly approximating the solution manifold associated with a given parametrized PDE [40, 48, 27, 19].
Among ROM methodologies, projection-based techniques such as Proper Orthogonal Decomposition (POD) have proven particularly effective in extracting compact low-dimensional representations from high-fidelity simulations. More recently, advances in machine learning and the increasing availability of data have fostered the emergence of data-driven reduced-order models, where neural networks and statistical learning techniques are employed to approximate reduced dynamics or parameter-to-solution maps directly from data. These approaches are progressively opening the possibility of constructing surrogate models capable of learning not only from numerical simulations but also from experimental observations. However, the integration of experimental data into ROM frameworks is far from being straightforward. Classical reduced-order models are typically formulated under the assumption that the system response is uniquely determined by a finite-dimensional parameter vector. While this assumption is often appropriate in simulation-driven settings, it becomes restrictive when dealing with real-world measurements. In fact, experimental observations frequently contain variability that cannot be fully explained by the observable parameters alone. Such variability may arise from, e.g., measurement noise, unresolved multiscale phenomena, latent heterogeneities, unknown external forcings, or partially observed operating conditions, to mention a few relevant examples. As a consequence, two experiments performed under nominally identical observable conditions may yield significantly different system responses.
In these settings, the deterministic parameter-to-solution paradigm underlying standard ROM methodologies becomes inadequate. Rather than learning a deterministic map , one should instead aim at characterizing a conditional probability distribution over possible system responses. A natural mathematical framework for formalizing this uncertainty is provided by parametrized stochastic PDEs (SPDEs). Let be a probability space, and let represent a generic event in such space. The nonobservability of such events serves to model our partial knowledge of the system, thus accounting for, e.g., unknown sources of variability or unresolved scales. We then consider governing equations of the form
where represents observable deterministic parameters, while models hidden stochastic effects. The solution field is therefore no longer deterministic, but rather described by a random field conditioned on the observable parameters . The distinction between (1) and (2) is conceptually important. Deterministic parametrized PDEs can often be interpreted as simplified models of more complex stochastic physical phenomena. For example, in porous media flow, a deterministic nonlinear Darcy model of the form may represent an idealized approximation, whereas a more realistic formulation accounting for unresolved material heterogeneities could read as , where the random field models uncertain permeability variations and is therefore unknown.
Within this stochastic setting, the objective of surrogate modeling changes fundamentally. Rather than approximating a deterministic parameter-to-solution map, one seeks to characterize the conditional probability distribution of the solution field, namely , where denotes the conditional law of given . Equivalently, may be interpreted as the push-forward measure of through the map . After discretization, this corresponds to learning conditional probability distributions in very high-dimensional spaces, making the direct construction of probabilistic surrogates particularly challenging.
In this work, we propose tackling problems such as (2) by combing generative artificial intelligence (AI) and reduced order modeling. The former is meant to account for the stochasticity, while the latter can effectively handle the high dimensions into play. Our research is therefore part of a broader emerging trend concerning the development of probabilistic surrogates. We mention, for instance, the work by Coscia et al. [13], where generative adversarial neural networks are incorporated within ROM pipelines in order to quantify output uncertainties. There, however, no intrinsic stochasticity is present as part of the phenomenon under study: rather, all uncertainties emerge from the very definition of the ROM, essentially capturing a ROM-FOM closure in a probabilistic sense. More aligned with our setting are, instead, the recent works in [7, 41, 36, 2, 30]. These, in fact, explore the use of generative AI and machine learning for the construction of probabilistic neural operators and surrogate models, where stochasticity comes from partial knowledge of the system. Our work aims at pursuing a similar objective, however avoiding the use of overly complex architectures (such as diffusion models), in addition restoring a strong connection with the ROM literature. Indeed, it is now widely recognized that reduced order modeling and operator learning are closely interconnected, providing complementary perspectives with different advantages and trade-offs: we mention, for instance, the eloquent analogy between the POD-NN method [29] and the so-called POD-DeepONet architecture [38], just to mention two widely used techniques appeared in the community in the last decade.
Before presenting our approach, it is important to clarify that, despite the similarity in terminology, the setting considered in this work is fundamentally different from that considered in several existing contributions. An example is provided by the stochastic reduced basis (RB) methods [43], and, more generally, by most applications of the RB method to parametric PDEs with stochastic coefficients: see, e.g., [5]. There, in fact, stochasticity typically enters the governing equations in a fully specified manner, making the construction of the reduced-order model relatively straightforward. Similar approaches can be found, e.g., in [8, 9, 10]. By contrast, our central assumption is that the occurring event , and more generally model (2), are effectively unknown. This is meant to reflect the reality of many experimental settings, where the underlying physical mechanisms are only partially understood and the governing laws are not directly accessible. Our goal, in fact, is to lay the foundations for a unified framework that is sufficiently flexible to support learning from both computational models (FOMs) and empirical data. The objectives of the aforementioned works, instead, were intrinsically different.
Similarly, our definition of probabilistic reduced order model is not to be confused with the one adopted by some other authors: see, e.g., [3], where the word «probabilistic» does not refer to the ROM per se, but rather relates to the algorithm underlying its construction, which the authors exploit to improve stability and generalization. In particular, these are works in which stochasticity is introduced only during the offline stage, but disappears at inference time.
The remainder of the paper is organized as follows. In Section 2, we introduce the mathematical setting and discuss the probabilistic formulation of reduced-order surrogate modeling for stochastic parametrized systems. Section 3 presents the proposed POD-CNF methodology, including the projection-based reduction step and the conditional generative modeling framework, discussing its underlying theoretical rationale and its practical implementation. Numerical experiments assessing the accuracy and efficiency of the proposed approach are presented in Section 4. In Section 5, we demonstrate a proof-of-concept application to forward and inverse uncertainty quantification. Finally, conclusions and future research directions are discussed in Section 6.
2 Problem formulation
Let be a bounded spatial domain. We consider a time-independent physical field whose behavior is governed by a parametrized stochastic PDE (SPDE), namely
where is a suitable parameter vector, taking values in a given compact set , whereas represents a stochastic event in some probability space . Here, is a map acting as a differential operator in the first variable, where is a suitable function space —e.g., , or — and the solution to (3) exists unique for each parametric instance and each event . Similarly, represents a parametrized stochastic source, incorporating external forces and boundary data.
We assume that the solutions to the SPDE can be either approximated numerically or measured experimentally over a suitable discretization of the spatial domain , independent of and . Under both scenarios, every parametric instance can now be associated to a corresponding high-dimensional random vector, , where are the degrees of freedom associated with either the resolution of the data or the discretization of the numerical solver. In general, assuming a Lagrangian discretization in the second case, this translates into
where is the th dof in the discretization and the dependence on has been made implicit. Here, is a further source of uncertainty, potentially associated with, e.g., measurement noise or numerical errors.
We collect all sources of uncertainty within a suitable random vector of hidden latent variables, . Informally, . More precisely, encapsulates all the variability in the discrete solution that cannot be explained in terms of the sole problem parameters . We will thus write whenever willing to emphasize such stochastic dependency. In the case of numerical simulations, the vector can be characterized as the solution to a suitable (nonlinear) system of algebraic equations,
obtained by discretizing (3) using, e.g., the FEM. With this notation, it is evident that can be seen as the solution to a parametric problem in the pair . The issue is that is effectively unknown, or unobserved, which causes the solution to be stochastic. In general, the dimension of is also unknown. Still, it can be upper bounded by using standard arguments from Optimal Transport theory (cf. Section 2.1).
We emphasize that the presented framework is general enough to encompass many different scenarios. In particular, it can be used to address problems in which the stochasticity arises from either (i) hidden physical parameters, (ii) numerical errors, (iii) measurement uncertainty, or a combination of the three. In this work, we will focus exclusively on the first scenario, leaving interactions with the other research strands for future explorations. This choice is motivated by two main reasons. The first one, is that an exhaustive treatment of problems with hidden variables is a fundamental prerequisite for scaling the framework to challenging real-world settings. In fact, experimental settings are often characterized by partial knowledge of the system and its governing equations. Furthermore, the set of explanatory variables is often underestimated, meaning that, among all of the relevant variables influencing the system, only a few are effectively observed and recorded (here corresponding to the vector of parameters ).
The second reason is that, in contrast to (i), the literature on (ii) and (iii) is already quite mature. For instance, the research on Probabilistic Numerics [26, 11] and Statistical Solutions [18, 17] provide a solid foundation for addressing (ii). The former, in fact, allows to complement classical a priori and a posteriori estimates with rigorous uncertainty quantification on numerical errors. The latter, instead, provides a tailored framework for studying turbulent and chaotic systems, where even mild changes in the numerical solver setup can produce remarkably different results.
Similarly, the broad literatures on Bayesian Statistics [22, 11] and Data Assimilation [34] provide a well-established background for studying problems subject to measurement noise, as in (iii).
In light of these considerations, the present work focuses on problems where stochasticity arises from hidden, unobserved, problem parameters. Precisely, our goal is to develop a computational pipeline for constructing a probabilistic surrogate capable of capturing the complexity of the parameter-to-random-solution map, , associated with the problem under study. This idea is made rigorous in the next subsection.
2.1 Probabilistic surrogates of parameter-to-random-solution maps
There are at least two equivalent ways of formulating our learning problem: one in terms of conditional probability distributions, and the other in terms of maps whose outputs are random variables. In this work, we adopt the latter perspective, which we find more convenient at inference time: see Remark 1 for a deeper discussion on this matter.
In order to set our framework, we shall first introduce some notation. Let denote the Wasserstein-1 distance. We recall that, given two probability measures and over , the latter is defined as
where is the set of all probability measures over having and as marginals, respectively. With little abuse of notation, given two random variables with probability laws and , we write to intend . Note that the random variables and need not be defined over the same probability space for the discrepancy to be well defined. Given any positive , let denote the standard -dimensional Gaussian distribution. We recall that, by standard results in Optimal Transport theory, for every random variable there exists an index and a measurable map such that, if , then and have the same law, meaning : see, e.g., [52, Chapter 1]. Typically, . However, smaller values may at times be possible, for instance when the support of lies inside some submanifold of .
With this notation, we define a probabilistic surrogate of to be any map of the form
for which is sufficiently small, where and varies in . Here, is auxiliary random vector of latent variables, which is introduced to make the output of aleatoric. Intuitively, this construction aims at mimicking that of the ground truth model, . However, the vectors and need not to be related one to another. What matters, is that they generate (approximately) the same stochasticity in the final output. From a quantitative point of view, if the parameter space is equipped with a suitable density function , the accuracy of a probabilistic surrogate can be measured via the Average Wasserstein Distance (AWD), namely
At inference time, such probabilistic surrogates can be used to generate multiple plausible solutions in real-time. For instance, given an operating condition of interest , one can produce multiple independent random solutions by sampling and computing . These realizations can then be used to approximate the conditional law of and to estimate relevant quantities of interest. If the samples are very similar to each other then one can conclude that, under , the effect of the hidden parameters is nearly negligible. In contrast, large deviations or multi-modal behaviors can be taken as evidence of intrinsic uncertainties affecting the system.
Remark 1 (Learning generators vs learning distributions). Since we are only interested in the conditional law of the solution field , and not in the random variable per se, an alternative approach is to define a probabilistic surrogate as a (nonlinear) operator mapping parameters onto probability distributions, . However, since can be fairly large, constructing an object that returns explicit probability distributions over can be highly nontrivial. Furthermore, at inference time, using such a tool can pose significant challenges. Consider for instance the problem of employing the surrogate to estimate a given statistics of the solution, e.g., for some and . In this case, the approximation would read
where is the probability law predicted by the surrogate. However, even if were available in closed form, for example through its density, evaluating the above integral would remain computationally challenging: numerical quadrature methods do not scale sufficiently well to be practical in , while Monte Carlo methods can easily become troublesome in high-dimensions, even when the underlying density is known explicitly: see, e.g., Markov-Chain Monte Carlo samplers and similar tools [22, Chapters 10-12].
In contrast, learning a probabilistic surrogate that operates as a generative model greatly simplifies the problem. In fact, the generative model directly acts as an approximate conditional sampler, allowing one to estimate expectations via Monte Carlo sampling, e.g.,
In general, the accuracy of the above will depend on the quality of the surrogate and on the number of Monte Carlo samples. However, we notice that this second source of inaccuracy can be made arbitrarily small at a negligible computational cost: in fact, the Monte Carlo error scales as , but because the surrogate is computationally cheap to evaluate, can indeed be taken as large as required.
3 The POD-CNF approach
We assume to have access to a dataset consisting of different parametric configurations and corresponding random solutions. These may either consist of numerical simulations, obtained by means of a given stochastic FOM, or derive from suitable real-world experiments. We stress that, in both cases, the system under study is assumed to be time-independent, but potentially subject to complex physical laws that entail nonlinearities. We also remark that , meaning that the -th solution in the dataset corresponds to the -th parametric configuration , which is known) and the -th stochastic event , which is unknown). Our goal is to leverage this data in order to construct a surrogate of the parameter-to-random-solution map . To this end, we propose the following ansatz,
which is based on a low-rank representation of the solution field. More precisely, for a suitable reduced dimension , we assume that:
- is a deterministic orthonormal matrix, whose purpose is to reduce the dimensionality of the problem. The idea, in fact, is that although the solutions live in a high dimensional space, , there may exist a much smaller space, , in which the solutions approximately lie. Informally, if we denote by
the support of the random solution , this corresponds to saying that is approximately contained in . From a computational standpoint, if the parameter space is endowed with a suitable density , such degree of approximation can be quantified as
i.e. by the average expected projection error;
is a latent generative model – corresponding to in Eq. (6). The latter aims at capturing both the variability induced by the problem parameters, , as well as the one produced by the hidden stochastic variables, . Intuitively, one aims at constructing in such a way that, for any given , the distribution of the generative model, with , is close to that of the random projection coefficients, . In analogy to Eq. (7), the quality of such approximation can be measured using, e.g., the AWD metric.
From a practical standpoint, both the construction of the matrix and that of the latent generative model will be based on the data at hand. Specifically, in this work we propose relying on the Principal Orthogonal Decomposition (POD) algorithm and on Conditional Normalizing Flow (CNF) architectures in order to construct and , respectively, reason for which we term our approach POD-CNF.
We mention that, in spirit, our proposal can also be understood as a stochastic generalization of the already well-established POD-NN method [29]. The latter, in fact, is a data-driven ROM strategy, developed for deterministic problems, in which the solution is approximated as , with the POD matrix and a standard multilayer perceptron (MLP) network trained to approximate the parameter-to-coefficient map . Since its introduction, the POD-NN method has had a significant impact on the literature, with several subsequent approaches building upon or tracing their origins back to this pioneering idea. For instance, the DeepONet architecture [38] can be seen as a continuous generalization of the POD-NN; similarly, alternative designs and implementations have led to the development of other prominent strategies such as POD-DL-ROM [21], Conservative POD-NN [4], DOD-NN [20, 33] and many more [53, 46]. In this sense, the POD-NN approach can be regarded as the forerunner of a much wider class of methods, which our contribution aims to further extend.
The remainder of this Section is devoted to establishing suitable theoretical results supporting our construction ( ), as well as to presenting its practical implementation from an algorithmic standpoint ( ).
3.1 Theoretical rationale
There are several reasons for using POD and CNFs. To start, POD is a powerful and well-established algorithm, which is known to enjoy remarkable optimality properties. Furthermore, its implementation is relatively straightforward, as it boils down to a truncated Singular Value Decomposition (SVD) of the snapshots matrix . On top of this, POD allows for the construction of stable ROMs, in that small errors in the reduced space are propagate isometrically to the full order space via the map . Finally, by construction, POD tends to filter out high frequency modes, which can be helpful in removing external white noise-type fluctuations in the data.
The use of CNFs, instead, is mainly motivated by their expressivity and their computational efficiency. Indeed, under fairly mild assumptions, normalizing flows are known to be universal approximators [32], which makes them good candidates for learning the latent generative model . At the same time, they are also: (i) computationally much less expensive to train than modern score-based generative models, such as Diffusion Models [50], (ii) far more efficient than other flow-based architectures, such as Flow Matching [37, 1] or Stochastic Interpolants [1, 42], when employed at inference time, which makes them better suited for many query applications.
By combining the universality of CNFs with classical results on POD truncation errors, it is then relatively straightforward to derive corresponding theoretical insights for POD-CNF. This connection is formalized in the next two paragraphs, where we state several foundational results along this direction. Right after that, a brief discussion on the limitations of our approach is also provided. In order to keep the paper self-contained, technical proofs are deferred to the Appendix A.
Proper Orthogonal Decomposition (POD): idea and motivation. Proper Orthogonal Decomposition (POD) is a powerful data-driven technique which commonly used for dimensionality reduction and reduced order modeling in general. Its primary objective is to extract the most dominant characteristics (often called "modes") from a high-dimensional dataset. By identifying these modes, POD allows for a low-dimensional approximation that captures the essential behavior of the original system while drastically reducing its complexity. It is best suited in those frameworks in which linear reduction is effective, cf. [48, 12].
In the simplest scenario, the implementation of the POD consists of computing an SVD of the snapshots matrix , namely
where and are orthogonal matrices containing the left and right singular vectors, respectively, while is a diagonal matrix containing the singular values, , sorted in decreasing order. The POD matrix is then computed by retaining the first columns of . It is well-known that this procedure is empirically optimal, in that
see, e.g., [48]. In other words, the POD basis is optimal in the mean-square sense, minimizing the reconstruction error of the computed snapshots among all subspaces of a prescribed dimension. If the parameter instances are drawn independently according to , and the events are independent as well, then, in the infinite data limit, is known to converge to the ideal POD matrix , solution to the minimization problem below
see, e.g., [6, Section 2.2]. Theoretically, much like is built by computing an SVD of , the ideal POD matrix can be computed by considering an SVD of the Hilbert-Schmidt operator . Equivalently, can also be derived by diagonalizing the uncentered covariance matrix,
and then collecting the eigenvectors associated with the largest eigenvalues .
In general, if are the singular values of in the infinite data-limit, and are those of obtained with randomly drawn snapshots, then one has
almost surely: see, for instance, [6, Section 2.2] and [28, Chapter 3]. The whole machinery can also be generalized very easily to account for other inner-product norms, different from the plain Euclidean one, cf. [48, 28].
In our setting, the use of a projection-based dimensionality reduction technique is motivated by the following decoupling lemma, which shows how the error a generative ROM built according to our ansatz can be split into two contributions: (i) a projection error, and (ii) a latent generative error.
Lemma 1. Let be a parametric family of random variables in , with , and let be an orthonormal matrix. Let be given, and let be a random vector with law . Then,
Proof. See Appendix A.
Combining the result above with the aforementioned optimality of POD immediately yields the following corollary.
Corollary 1. Let be a parametric family of random variables in , with . Let be a probability density over . Denote by the positive semi-definite matrix in (14). Let be the eigenvalues of , listed in decreasing order, and let be the corresponding orthonormal eigenvectors. Given any truncation index , assemble the orthonormal matrix . For any and any -dimensional random vector , one has
Proof. See Appendix A.
Basically, Corollary 1 ensures that if the eigenvalues decay sufficiently fast, then one can construct an effective probabilistic ROM by doing a POD and transferring all of the stochasticity at the latent level, in analogy to what is commonly done in the deterministic case.
Conditional Normalizing Flows (CNF): idea and motivation. Conditional Normalizing Flows (CNFs) are a class of generative models that aim to approximate conditional densities by leveraging optimal transport theory and the change of variables formula. Simply put, in order to approximate the conditional density of a given random variable, , CNFs progressively transform Gaussian noise into the desired distribution by applying a sequence of -dependent transformations, . Such transformations are designed to be invertible in their main argument. This allows making the density of the transformed vector, , fully explicit; in fact, thanks to the change of variables formula, one has
with the density of the standard normal distribution in .
From a practical perspective, the transformations constitute the trainable components of the CNF architecture, and they are usually designed by cleverly combining different units based on multi-layer perceptrons (MLPs). Such design is crucial, as it prescribes the expressivity of the whole architecture, but it also entails some nontrivial challenges. In fact, in order to make (17) practical, one must design the maps so that they are easily invertible and so that Jacobian determinants can be computed efficiently.
In this respect, an approach which has proven successful, and which we adopt in this work, is to construct the transformations by relying on affine coupling layers. The latter were first introduced by Dinh et al. in [15] as part of a normalizing flow architecture thereon referred to as RealNVP. Here, we shall consider a conditional variant of such architecture, which can be described as follows. For every , let denote a generic input for the -th layer. The vector is split into two halves, and , with being a suitable partition of the vector indices, . Such partition is typically chosen at random and varies from layer to layer. If is even, a standard choice is to set and when is even, and and when is odd. In this case, the RealNVP is said to consist of alternating affine coupling layers.
With this convention, the action of the th layer reads
where are trainable MLPs, referred to as the scale and translation parameter, respectively, whereas denotes the Hadamard product. The full CNF architecture is then given by
We will say that is a ReLU CNF with alternating affine coupling layers if: (i) the transformations are defined as in (18), with and given by the canonical splitting; (ii) the MLPs and use the ReLU activation in all of their hidden layers; (iii) the translation MLPs, , have no terminal activation; (iv) the scale MLPs, , are equipped with a terminal continuous activation of choice, . For numerical stability, such activations are often chosen to be bounded: in our experiments, for instance, we use the hyperbolic tangent activation for all . Still, when discussing theoretical results we will always assume that , thus preventing boundness from below. This is to guarantee the universality of the resulting CNF architecture under fairly general conditions: we refer the interested reader to Remark B.1 in the Appendix.
The peculiar construction in (18), where each layer leaves one half of the input vector unchanged, while scaling and translating the other half, is what makes RealNVPs particularly effective in practice. This, in fact, guarantees that each , is invertible —regardless of the learned MLPs and — and that the Jacobian of is triangular, allowing for a fast computation of its determinant. At the same time, this design is general enough to make RealNVPs universal approximators: see, e.g., [32] for results in the unconditional case, or [39] and Lemma B.1 in Appendix B for suitable extensions to parametric problems.
For all such reasons, we propose relying on CNFs in order to learn the latent generative model in Eq. (10). With this choice, the aforementioned universality property, together with Corollary 1, immediately yields the following result, which provides the theoretical foundation for the POD-CNF approach.
Theorem 1. Let be a parametrized random vector in , where varies over a suitable parameter space, with compact. Let be a probability density defined over . Assume that the law of varies continuously in the metric with respect to , and that there exists some such that almost surely for all .
Given any truncation index , let be as in Corollary 1. Let be the probability distribution of the reduced random vector . Assume that, for every , the distribution is absolutely continuous. Then, for every , there exists a ReLU conditional normalizing flow with alternating affine coupling layers such that
Proof. See Appendix A.
Intrinsic limitations of the POD-CNF approach. While the POD-CNF framework provides a principled and computationally efficient strategy for learning parametric solution distributions, it also relies on a number of assumptions that may limit its applicability in challenging regimes.
First, the effectiveness of the approach is intrinsically tied to the compressibility of the solution manifold by a linear subspace. In particular, the quality of the POD representation depends on the decay of the eigenvalues of the correlation operator. This is closely related to the behavior of the Kolmogorov -width of the supporting solution set : when this quantity decays slowly, a large number of POD modes may be required to achieve a satisfactory approximation accuracy. In such cases, the output dimension of the CNF increases, hindering the computational advantages of the reduced representation and potentially making the training of the generative model more challenging.
A related limitation is that POD is a linear dimensionality reduction technique and, by construction, preferentially retains energetic modes while filtering out small-scale and high-frequency components. Although this property can be beneficial when the discarded fluctuations are mainly associated with noise, it may become detrimental for problems where localized phenomena, sharp interfaces, or fine-scale structures play a relevant role in the solution dynamics. In such settings, nonlinear dimensionality reduction techniques, such as autoencoder-based representations, may provide more expressive alternatives and constitute a natural direction for future investigation.
A second class of limitations concerns the choice of CNFs as generative models. Although such models provide an attractive combination of expressivity and computational efficiency, their construction is constrained by invertibility assumption. For instance, architectures based on affine coupling transformations, such as the RealNVP model adopted in this work, achieve tractable likelihood evaluation at the expense of restricting the class of admissible transformations. More flexible alternatives, including continuous normalizing flows and flow-matching approaches, alleviate some of these architectural constraints, but typically require the numerical solution of an ordinary differential equation during inference, which can become computationally demanding in multi-query applications.
Finally, the scalability of CNFs with respect to their ambient dimension remains an important practical consideration. Even after POD truncation, the reduced random variables may exhibit highly anisotropic or nearly singular distributions, for instance when the data are concentrated around lower-dimensional structures embedded in the latent space. Since standard CNFs are constructed by transporting a full-dimensional reference distribution, accurately representing such distributions may require increasingly complex transformations and can lead to optimization difficulties. Developing dimensionality-adaptive generative models or combining POD with nonlinear manifold-learning techniques may provide effective strategies to address these challenges, representing an interesting direction for future research.
3.2 Practical implementation
From an operational standpoint, we construct a POD-CNF surrogate through a three-step offline procedure, whose workflow is further summarized in Algorithm 1.
Step 1: data collection and splitting. To start, we first sample parametric configurations by drawing independent realizations from the sampling density . For each , we then run the FOM (resp., the lab experiment) to obtain a random solution . We then split the dataset
into training, validation, and test sets, generally following a 75:20:5 ratio.
Step 2: POD basis extraction. We leverage the training data to assemble the snapshots matrix and compute its SVD. In light of Eq. (12), we perform POD by truncating the SVD to the first even index for which the relative residual energy,
is below a given threshold . We require to be an even number in order to standardize the subsequent construction of the CNF module via alternating coupling layers, cf. §3.1.
Step 3: CNF implementation and training. To construct the CNF module, we start by choosing a depth and designing the architectures of the trainable MLPs in the different coupling layers. Let us denote by the vector collecting all the trainable parameters appearing in the definition of the CNF. The trainable architecture can be then regarded as a map , where is to be optimized.
To train the CNF, i.e., to estimate the optimal value for , we first assemble the reduced dataset where are the POD-coefficients of the training snapshots. The model is then trained by minimizing the negative log-likelihood (NLL),
where denotes the density of with . If we denote by the th coupling layer in , using Eq. (17), we may rewrite Eq. (20) as
Minimizing (numerically) the above function with respect to yields the trained architecture .
We mention that, in the literature, this is the standard approach for training normalizing flows and CNFs in general [44]. From a theoretical standpoint, there are several reasons that make NLL minimization a natural choice. One of such reasons is that, up to a Monte Carlo approximation, it can be shown that minimizing (20) is equivalent to minimizing the expected Kullback-Leibler divergence (EKL) between the true conditional density of , denoted as , and the conditional density predicted by the CNF module, that is
We refer the interested reader to, e.g., [23, Chapter 5.5] for a deeper discussion on such equivalence. In our framework, this correspondence becomes particularly valuable as it allows us to connect the CNF training with our theoretical analysis in §3.1. In fact, if we assume the two densities in Eq. (22) to be compactly supported, it is easy to see that, by Pinsker's inequality,
where is a suitable constant depending only the sizes of the supports of the two densities. This draws a connection between the EKL and the AWD (which can be made more explicit by applying Jensen's inequality), thus linking our theoretical analysis with the minimization of (20).
Remark 2. In practice, the design of the CNF architecture will depend on the problem under consideration. Following standard practice in machine and deep learning, we account for this implicit dependency by tuning the model and training hyperparameters—including the number of coupling layers, the complexity of the MLPs in the architecture, the learning rate, and the number of training epochs—based on NLL performance on the validation set. More precisely, given a finite collection of candidate architectures, , and corresponding training routines, we train all the models separately, obtaining , and then set where
j_{*}:=\underset{j\in\{1,\ldots,r\}}{\arg\min}-\frac{1}{N_{valid}}\sum_{i=1}^{N_{valid}}\log\hat{f}_{\eta_{*},\mu}^{(j)}_{i}^{valid}(\mathbf{V}^{\top}\mathbf{u}_{j}^{valid})with being the conditional density associated to the jth model .
3.2.1 Deployment at inference time
After training, the POD-CNF becomes fully operational. Given any query parameter , the model can efficiently generate an arbitrarily large amount of independent samples by sampling the latent variables , computing the latent coefficients and expanding them over the POD basis,
Algorithm 1: Offline construction of the POD-CNF surrogate
Input: Sampling density , total number of snapshots , number of validation samples , number of test samples , POD tolerance , trainable CNF architectures , optimization routines .
Output: POD-CNF
Step 1. Data collection for do | and compute end
for set for set
Step 2. POD basis extraction assemble snapshots matrix extract singular values in decreasing order select even POD dimension extract POD basis via truncation
Step 3. Train and select CNF module for do | numerically using optimization routine end
, select best-in-validation CNF module
Assemble the trained POD-CNF , optionally print test NLL
return
. The generated ensemble then allows for a complete characterization of the uncertainties and a proper description of the conditional law of .
The accuracy of the model can be certified by computing suitable performance metrics over the test set, such as the NLL in the latent space and the POD projection error. Estimating the AWD in (7) is also an option, but this generally only possible in ideal scenarios. In order to approximate (7) numerically, in fact, one needs access to a test set with a nested structure, namely with and . While this is generally not always possible, in our experiments we will force this assumption, effectively overwriting our previous definition of "test set". This will be essential to ensure a rigorous and comprehensive assessment of the probabilistic surrogates, which we find particularly relevant given the exploratory and pioneering nature of the present work.
4 Numerical experiments
In this Section, we assess the capabilities of the POD-CNF framework in a controlled simulation setting. Specifically, we investigate whether the proposed approach can approximate the solution of a parametric problem whilst capturing additional stochasticities induced by suitable hidden parameters. This setting thus serves as a proof of concept for the proposed methodology, allowing us to assess its ability to recover the relevant stochastic structures in a well-defined environment. As such, the present analysis represents a preliminary yet necessary step towards more challenging scenarios, including applications to real experimental data, which are beyond the scope of this work.
We consider two benchmark problems: an advection-diffusion process in a partially controlled Stokes flow (Section 4.2) and a linear elasticity problem involving a biphasic material with a stochastic interface (Section 4.3). The two test cases serve to demonstrate the capabilities of POD-CNF in both scalar and vector-valued settings. In both cases, the goal is to approximate the conditional distribution of the solution field given deterministic parameters, , whilst accounting for the uncertainty induced by unobserved hidden variables, . The analysis is based on different performance metrics and benchmarks which are briefly outlined in Section 4.1.
We anticipate that, while this Section focuses on assessing the generative capabilities of POD-CNF, a preliminary investigation of its application to uncertainty quantification, including forward and inverse problems, is discussed immediately after: see Section 5.
4.1 Numerical setup
Performance metrics Let denote the stochastic ground truth solution, conditional on . Conversely, let denote the output of a given (trained) probabilistic surrogate.
As a first metric, we consider the reduced negative-loglikelihood over the test set, computed as
where is the density of the reduced random vector , whereas each is a single independent realization of . As discussed in 3.2, this metric provides a global indication of the goodness of fit; furthermore, it has the advantage of requiring a single FOM evaluation for each . In general, this metric is specifically designed for POD-based probabilistic surrogates that admit an absolutely continuous density at the latent level.
As a second set of metrics, we consider more general indicators based on approximated Wasserstein distances. In general, these require repeated conditional evaluations of both the FOM and the surrogate and are thus much more expensive to evaluate. The idea goes as follows. Given any , we exploit the FOM and the surrogate to generate independent realizations of both models, and , respectively. The two clouds of points in are then compared to each other using a discrete version of the Wasserstein distance , defined as
(24)
The above is used as proxy for the true Wasserstein distance between the FOM and generated distributions, that is
In our implementation, we compute (24) using the pot Python library, with a computational overload of , excluding generation costs.
This local analysis is exploited in two ways. First, to us to assess the performances of the model over a specific parametric scenario . Second, to investigate the accuracy of the model throughout ; this is done by computing (24) for multiple, independent, parametric configurations, randomly drawn from . We generally set in the first case and in the second case to mitigate the computational overload.
Benchmarks We consider two benchmarks against which we compare our proposed strategy, in two different test cases. The first benchmark represents an idealized comparison with purely deterministic surrogates. Rather than implementing and evaluating individual deterministic methods, this analysis is carried out by considering an ideal reference predictor, which serves as a baseline for all deterministic models. To this end, we notice that for any , all deterministic surrogates must return a single, nonaleatoric prediction in . In mean-square terms, it is well-known that the optimal such prediction is given by the conditional expectation , see, e.g., [54, Chapter 9]. We therefore take as our ideal deterministic baseline: no deterministic surrogate can improve upon its mean-square accuracy, regardless of its architecture or training procedure. In practice, for any given , we approximate the ideal prediction by the empirical mean of a FOM-generated population, . From a probabilistic perspective, because the output of a deterministic surrogate is intrinsically degenerate, its accuracy cannot be assessed reliable using the negative log-likelihood. For this reason, when analyzing the deterministic baseline, we focus on Wasserstein-based metrics only. In this case (25) becomes
As a second benchmark, instead, we consider POD-GP [24]. The latter is an established approach for probabilistic reduced-order modeling that is based on the integration of POD and Gaussian Process (GP) regression. From a generative standpoint, POD-GP can be seen as a model of the form
where and are the th component and the th column of and , respectively, whereas and are the predicted mean and standard deviation returned by the th GP. In the POD-GP approach, in fact, a sequence of independent GPs is fitted to approximate the parameter-to-reduced state map, where each GP focuses on a different POD coefficient. In our experiments, we fit POD-GP by leveraging the same data used to design and train POD-CNF. Specifically, when implementing POD-GP, we exploit the validation set to estimate the hyperparameters of each GP, and use the training set to fit the models and obtain the final surrogate. All GPs are implemented using a squared-exponential (RBF) covariance kernel for the prior, scaled by a trainable constant, together with an additive white-noise kernel. The signal variance, length scale, and noise variance are optimized in the ranges , , and , respectively. To ensure that such ranges are meaningful, all inputs and outputs are suitably normalized before training.
An important feature of POD-GP is that its predictive distributions are always Gaussian. Precisely, if we denote by and , then . Similarly, at the latent level, coincides with the density of a multivariate normal .
4.2 Advection-Diffusion in a Stokes Flow
As a first test case, we consider the passive transport of a chemical in a rectangular chamber equipped with three rotating cylinders, cf. Fig. 1. Here, with . This setup simulates a physical mixer where the cylinders rotate at specific velocities, driving the advection field. The objective is to construct a surrogate that can predict the concentration field of the chemical, , given the configuration of the mixer, while simultaneously accounting for potential uncertainties.
To model the ground truth mechanism, and produce the desired variability, we use the following sets of parameters.
• Conditioning Parameters . Here, is the rotational velocity of the th cylinder. Such parameters encode what is known about the configuration of the system, serving as controllable inputs for the mixer. We allow each to vary in a pre-defined range, .
- Hidden Parameters . We use to model the diffusion coefficient of the chemical, and for the inflow angle of the fluid. We exploit such parameters to introduce an additional, formally unknown, source of variability, which we obtain by letting and . The first hidden parameter accounts for the fact that, although the identity of the diffusing chemical is known, its effective transport properties may vary across experiments as a result of changes in, e.g., temperature, solvent composition, or other experimental conditions that can alter key properties such as the molecular diffusivity. These alternations are assumed to be out-of-control, making the effective value of formally unknown from the outside. Similarly, the stochasticity in the inflow condition can be though as a way to model imperfections in the injection mechanism or other perturbations taking place outside of the mixing chamber.
Due to the stochastic nature of and , a fixed configuration of cylinder velocities does not yield a unique solution but rather a distribution of physically consistent concentration fields : see, e.g., Fig. 2.
Mathematical Formulation and Discretization As anticipated, we model the concentration field as the solution to the following advection-diffusion equation,
where , is the external unit normal, is a fixed boundary condition, while is the underlying velocity field. The latter, which depends on , is determined by the stationary Stokes equations for an incompressible viscous fluid, neglecting inertial terms:

Figure 1. Problem domain for the advection-diffusion problem (left) and corresponding discretization (right).

Figure 2. Advection diffusion problem. Two random solutions associated with the same operating conditions . The variability is induced by the hidden parameters, , whose values are assumed to be unknown (to the user, and to the surrogate).
where p represents the fluid pressure. The above is complemented by the following boundary conditions,
where is the center of the ith cylinder . The physics of the problem is deliberately kept simple, as our primary interest lies in addressing the parametric variability of the solution with respect to and .
As reference solver, we consider a FOM that approximates the solution to (28)–(30) using the Finite Element Method (FEM). To this end, we discretize the spatial domain using an unstructured triangular mesh comprising vertices; see Fig. 1. We use P1 continuous elements for the advection-diffusion equation, whereas, in order to satisfy the inf-sup condition, we use the stable Mini-Element pair to solve for the Stokes' flow equation (continuous P1 elements for the pressure, and P1-bubble for the velocity).
Dataset and POD-CNF configuration For the deterministic parameter, we consider a uniform sampling density over the parameter space , so that . We run the FOM repeatedly in order to produce a total of independent simulations, which we split into training ( ), validation ( ), and test ( ) instances. For the POD, we set an energy threshold of . For the CNF module, instead, we select the best-in-validation design among architectures with alternating affine coupling layers, scaling and translation MLPs of depth and width for each coupling layer, and training routines based on the Adam optimizer [31] with learning rate , a batch size of 64, early stopping with a patience of 10 epochs, weight decay set to , and a total of 50 epochs per configuration.
Results I: final design of the POD-CNF surrogate. Following the methodology described in Section 3, we computed the SVD of the training snapshot matrix. The singular value and truncation analysis (Fig. 3) revealed a

Figure 3. Advection-diffusion problem, §4.2. Mean relative reconstruction error (solid blue line) and cumulative energy (dashed black line) versus the number of POD bases . Truncating at guarantees a projection error in euclidean norm equal to 1.05%.
distinct—but not sharp—energy drop-off. Still, modes eventually suffice to meet the chosen energy threshold. On the validation set, the resulting POD basis strucked a Mean Relative Projection Error (MRPE) of 1.05%,
confirming the accuracy of the reduced representation.
The CNF was thus configured to operate in a 20-dimensional space under the conditioning of the physical parameters . Following the results of hyperparameter tuning procedure, a CNF architecture with coupling layers, and internal MLP units of depth and width , was selected. The latter was then trained for 100 epochs using the Adam optimizer with and a weight decay of , to obtain the final model. The offline training procedure proved to be highly efficient, requiring approximately 10 minutes on a single NVIDIA T4 GPU, cf. Table 1.
Results II: model performance on a selected . Evaluating the performance of a probabilistic surrogate is, by itself, a fairly complex task. For this reason, we start by assessing the accuracy of the trained POD-CNF on a representative test configuration, obtained by fixing the values of the physical parameters to . In particular, we aim at understanding if the generative model is actually able to capture the conditional law of .
Fig. 4a compares a random solution obtained using the FOM, with and drawn at random, against three i.i.d. realizations sampled from the trained POD-CNF model. As we can see, all generated solutions exhibit advection patterns that are consistent with the selected configuration of the system (recall that defines the speed of the rotating cylinders). The variability in the outputs of the POD-CNF shows how the latter is effectively attempting at capturing an intrinsic stochasticity that is not imputable to alone. Most importantly, such variability is not uncontrolled, but rather presents a precise structure that makes the predicted outputs effectively compatible with the FOM simulation.
Further evidence of this fact can be found in Fig. 5. There, we compare the POD-CNF log-likelihood (in reduced space) of different FOM simulations conditionally on . Each of these simulations has been extracted from the test set and corresponds to a different . The reduced log-likelihood shows a clear trend, with FOM simulations becoming less and less likely as their physical configuration, , departs from the one assumed by the POD-CNF, . This confirms that the proposed surrogate is able to discriminate in between different scenarios, effectively assigning a higher likelihood to those physical solutions that are consistent with the prescribed input condition.
To corroborate these qualitative findings, a complementary statistical analysis, comparing true and predicted distributions, has been carried out. To this end, we sampled new simulations using both the FOM and the POD-CNF, all conditional on . The two populations have then been compared using the (discrete) Wasserstein distance , computed as a proxy for : cf. Section 4.1. Results are in Table 1. Notably, POD-CNF scores particularly well, with an estimated Wasserstein distance of 0.6735. In particular, the method results 56% more accurate that any deterministic surrogate potentially conceivable, demonstrating that its capabilities extend far beyond the standard regression to the mean. In contrast, when repeating the same analysis for POD-GP, we note a significant drop in accuracy. This latter can fact can be explained in at least two ways. The first one, is that the current analysis is

Figure 4. Advection-diffusion problem, §4.2. Solutions fields across different parametric configurations: (a) , (b) , and (c) . For each row, the leftmost panel shows a ground-truth snapshot, computed with the numerical solver, while the three panels to its right show independent realizations sampled from the POD-CNF surrogate model. Configuration (a) corresponds to the parameter chosen for the local analysis.
entirely focused on a limit scenario, as the parametric configuration under study falls at the boundary of the parameter space, . As such, even with the prescribed training data, the GP remains highly uncertain about its prediction: this results in an inflation of the conditional variance , and a consequent degradation in the approximation of the conditional law (see also Fig. 6). The second explanation concerns the fact that the predictive distribution of a GP is necessarily Gaussian. In our setting, where stochasticity arises from hidden variables rather than from external white noise, this simplification ends up posing major limitations.
Our conclusion are further supported by the results shown in Fig. 6. By focusing on eight monitoring points spread across the spatial domain, the latter compares the marginal distributions of the true FOM population against the ones obtained with POD-CNF and POD-GP, respectively. Because 1-dimensional distributions are much easier to inspect compared to high-dimensional ones, this allows us to make both quantitative and qualitative considerations. For instance, we can see how POD-CNF correctly identifies regions with higher volatility, matching both the range and distribution shape of the values attained by the solution field (point P1). Highly peaked distributions (points P5–P6) are also accurately represented, even when they exhibit asymmetry. This capability is particularly valuable if we consider that conventional probabilistic surrogates, such as POD-GP, generally fail at reproducing these features. Clearly, the model also shows some limitations in certain points of the domain (P7-P8), although the performances remain satisfactory.
Results III: global performance. To rigorously evaluate the generalization capabilities of POD-CNF, the previous analysis has been extended to 50 unseen parameter values, randomly drawn from the test set. In this case, in order to mitigate the computational overload, the discrepancy in metric has been estimated using only samples per parametric configuration. 7 shows the distribution of such errors across the 50 configurations under study for POD-CNF, POD-GP and the deterministic baselines. Averages and standard deviations are reported in Table 1. Notably, POD-CNF consistently outperforms its competitors, demonstrating remarkable generalization capabilities across all parametric regimes. The same conclusion can be drawn by looking at the negative log-likelihood, Table 1 (note: being computationally cheaper to evaluate, the latter as been computed on the whole test set). Finally, Fig. 4a-c shows how POD-CNF is able to produce meaningful solutions conditionally on the desired parametric configuration. Of note, we can see that the POD-CNF generated samples show a clear variability in the inflow condition at the left boundary. This is particularly interesting if we consider that our model was never given information about the existence of an
Global Robustness Analysis

Figure 5. Reduced log-likelihood sensitivity of the POD-CNF surrogate evaluated at against solutions belonging to different parameter instances .
| at | Average on | NLLtest$ | Training time | Inference time | |
|---|---|---|---|---|---|
| Deterministic baseline | 1.5284 | 1.4369 0.1103 | – | – | – |
| POD-GP | 2.3819 | 1.7970 0.1605 | 4.5315 0.9112 | 54s | 0.29s |
| POD-CNF | 0.6735 | 0.5691 0.0997 | -20.7059 7.6416 | 10m 33s | 0.06s |
Table 1. Advection-diffusion problem, §4.2. Performance metrics and training times for POD-CNF, POD-GP and the deterministic baseline (cf. Section 4.1). First column: surrogate under study. Second column: empirical Wasserstein distance between FOM-generated and surrogate-generated samples (). Third column: average Wasserstein distance, computed across 50 random parametric configurations (), and corresponding standard deviation. Fourth column: negative loglikelihood, averaged across the whole test set (320 joint samples in ), reported with a 95% confidence interval. Fifth column: fitting time, excluding hyperparameter tuning. Last column: sequential time required to generate a single scenario for a given parametric configuration.
inflow angle . In this sense, we can see how POD-CNF is effectively capturing the stochasticity produced by the latent, hidden, parameters. This is fundamentally different from what POD-GP normally does. The latter, in fact, is built based on a Bayesian paradigm, which makes the model sensitive to epistemic uncertainty. While this feature can be particularly valuable in certain applications, here it can obscure the aleatoric component of uncertainty, which is our primary focus.
Results IV: sample size sensitivity analysis. We conclude by presenting the results of a complementary analysis, devoted at assessing the sensitivity of the CNF module to the number of training data. To this end, we re-trained the CNF from scratch, keeping the same POD basis () and the identified hyperparameters, but progressively reducing the amount of training samples, from 100% (4800 snapshots) down to 5% (240 snapshots). 2 shows the impact of the latter on the performances of POD-CNF.
Interestingly, the model remains quite stable even when halving the amount of training data. This suggests a convergence in the performance: in order to make the surrogate more accurate, instead of adding more data, one would need to either increase the expressivity of the CNF or the number of POD basis. At 25% sample size, the performance starts to deteriorate slightly. However, the most notable drop happens at 10% (and below), where POD-CNF loses most of its value: there, in fact, its performances essentially become on par with the deterministic baseline and POD-GP, cf. Table 1.


Figure 6. Advection-diffusion problem, §4.2. Comparison between FOM and POD-CNF marginal densities (bottom panel) at eight selected monitoring points (top panel).
| % Data | Average on | at | ||
|---|---|---|---|---|
| 100% | 4800 | 1280 | 0.5691 0.0997 | 0.6735 |
| 75% | 3600 | 960 | 0.5102 0.0872 | 0.6675 |
| 50% | 2400 | 640 | 0.5487 0.0943 | 0.8187 |
| 25% | 1200 | 320 | 0.6607 0.1287 | 0.9352 |
| 10% | 480 | 128 | 1.5019 0.4024 | 1.8266 |
| 5% | 240 | 64 | 2.0273 0.4023 | 2.3104 |
Table 2. Advection-diffusion problem, §4.2. Sensitivity of POD-CNF performance to training dataset size. Evaluation metrics read as in Table 1.

Figure 7. Advection-diffusion problem, §4.2. Global analysis over 50 unseen test configurations. The boxplots show the distribution of the Wasserstein-1 error over the considered test set, comparing FOM and surrogate outputs. From left to right: POD-CNF (red, mean = 0.5673), POD-GP (green, mean = 1.7970) and deterministic baseline (blue, mean = 1.4369).

Figure 8. Linear elasticity problem, §4.3. Physical domain (left) and corresponding discretization (right).
4.3 Linear Elasticity
The second numerical experiment extends the proposed framework to a vector-valued setting, addressing the mechanical response of a square block composed of a biphasic material. The domain features two distinct phases—a "soft" and a "hard" material—separated by a linear interface with an unobserved orientation angle (Fig. 8). Deformation is induced by a localized vertical force, acting at the top boundary. The system is governed by the following parameters.
-
Conditioning Parameters . We use these controllable parameters to model the magnitude () and the locality () of the vertical force acting on the box. We allow and to vary uniformly, and independently, in the ranges and , respectively, so that .
-
Latent Parameter . We consider a single unobserved parameter, , which we use to prescribe the orientation of the linear interface separating the two material phases in the physical domain, cf Fig. 8. Intuitively, this setup can be thought as a simplified model for an indentation test performed on a heterogeneous, biphasic material block whose internal interface orientation cannot be determined non-destructively prior to loading.
We let . Consequently, for a fixed loading configuration , the displacement field is not unique but rather follows a conditional distribution dependent on the random realization of the material interface: see Fig. 9.

Figure 9. Linear elasticity problem, §4.3. Two random solutions associated with the same operating conditions . The variability is induced by the hidden parameters, , whose values are assumed to be unknown (to the user, and to the surrogate).
Mathematical Formulation and Discretization. We model the system using the equations of linear static elasticity:
The first equation represents the static force balance within the domain, where the body force accounts for the effect of gravity, and is assumed to be fixed. This equilibrium is subject to mixed boundary conditions. On the lower boundary , a homogeneous Dirichlet condition is imposed, meaning that the block is rigidly clamped and experiences no deformation at the bottom. On the upper boundary , the system is subjected to a localized traction force exerted by the external loading. This Neumann condition is modeled as a downward vertical force with parametrized magnitude and position, here defined as
The remaining lateral boundaries , instead, are assumed to be stress-free (homogeneous Neumann condition). The biphasic nature of the material is made explicit in the definition of the Lamé parameters. Indeed, while the shear modulus is assumed to be constant across the entire domain, the first Lamé parameter is modeled as a piecewise constant function, whose definition depends on the stochastic interface angle . More precisely, we let
where denotes the subdomain of the first material phase, effectively introducing a structural discontinuity within the physical domain.
We discretize the problem using the FEM on a structured triangular mesh (30 × 30 elements - Fig. 8). The displacement field is approximated with continuous piecewise linear functions (P1), while material properties are modeled with piecewise constant functions (P0). The resulting system has degrees of freedom, combining x and y displacements.
We emphasize that, in order favor visual inspections and qualitative assessment, the units considered in Eq. (32) have been magnified on purpose, far beyond the conventional ranges in which the equations of linear elasticity are commonly assumed to provide a reasonable approximation of real-world deformations.
Dataset and POD-CNF configuration. We leverage the FOM to construct a dataset consisting of independent simulations, partitioned into training (), validation () and test () sets, following the same split used for the advection-diffusion problem. We sample the conditioning parameters uniformly across the parameter space, , and proceed analogously for the unobserved interface angle, . To handle the bivariate nature of the solution field, the and components are flattened and concatenated into a single vector . For the POD, instead of fixing an energy threshold priori, we directly selected the same

Figure 10. Linear elasticity problem, §4.3. POD truncation analysis: mean relative reconstruction error on the validation set (blue solid line) and cumulative retained energy (dashed black line) as a function of the number of POD modes n.
number of modes used for the previous test case and check their accuracy a posteriori on the validation set. This is to guarantee an easier comparison between the two numerical experiments. Similarly, for the CNF module, we initialize the hyperparameter tuning procedure using the same setup adopted for the advection-diffusion problem.
Results I: final design of the POD-CNF surrogate. The SVD analysis of the training snapshots is illustrated in Fig. 10. Retiring basis captures 97.15% of the cumulative energy and achieves an average projection error of 0.36% on the validation set, thus yielding the desired accuracy. Following the results of the hyperparameter tuning procedure, instead, a CNF architecture with coupling layers was selected, with each layer featuring conditioner MLPs of depth and width .
Results II: model performance on a selected . Similarly to the scalar case, we first focus on a representative test configuration, , falling right at the center of the parameter space.
Fig. 11a compares a random FOM solution with and against three i.i.d. realizations sampled from the trained POD-CNF model. The displacements predicted by the surrogate appear consistent with the prescribed operating condition, , capturing most of the qualitative features observed in the FOM simulation. At the same time, each sample is different. In particular, we can see how the model is able to reproduce the variability induced by the interface angle , despite not being explicitly aware of it.
Fig. 12 displays the (reduced) log-likelihood, conditioned on the chosen and evaluated on the test set. The behavior is analogous to the one seen in the advection-diffusion problem, with the log-likelihood presenting a clearly decreasing trend in . This further confirms that the stochasticity introduced by POD-CNF is highly structured, allowing the model to distinguish amongst solutions coming from different operating conditions.
The results of the quantitative analysis, comparing POD-CNF, POD-GP, deterministic baseline and FOM over generated samples, can be found in Table 3. This time, For the parametric configuration under study, the proposed approach achieves a a Wasserstein-1 error of 0.4561, resulting nearly four times more accurate than POD-GP and improving upon the deterministic baseline by a factor of 83.76%. To verify that the model correctly captures componentwise cross-correlations in the whole physical space, we monitor the 2D joint displacement at four locations across the domain. Fig. 13 compares the resulting joint probability density contours against the FOM reference. Remarkably, POD-CNF is to able to capture several nontrivial features seen in the FOM distribution, including the characteristic multi-modal behavior induced by the interface angle . Once again, this is particularly valuable considering that standard Gaussian approximations would generally be unable to replicate such level of complexity.
Results III: global performance. We assess the generalization capabilities of POD-CNF by repeating the previous analysis on 50 unseen loading configurations extracted the test set, this time using samples per instance to reduce computational cost. As shown in Figure 14, the Wasserstein-1 error remains well below the system's intrinsic variability (deterministic baseline). Across all test cases, POD-CNF achieves an average error of 0.5517, approximately 80% lower than the baseline variability (2.6443). The model also performs significantly better than POD-GP

Figure 11. Linear elasticity problem, §4.3. Solutions fields across different parametric configurations: (a) , (b) , and (c) . For each row, the leftmost panel shows a ground-truth snapshot, computed with the numerical solver, while the three panels to its right show independent realizations sampled from the POD-CNF surrogate model. Configuration (a) corresponds to the parameter chosen for the local analysis.

Figure 12. Reduced log-likelihood sensitivity of the POD-CNF surrogate evaluated at against solutions belonging to different parameter instances .

Figure 13. Linear elasticity problem, §4.3. Top left: computational mesh and locations of the four monitoring points (P1–P4). Bottom and right: joint probability density contours of the horizontal and vertical displacements at P1–P4 for , comparing the FOM reference with the POD-CNF generated distribution (left and right of each subplot, respectively).

Figure 14. Linear elasticity problem, §4.3. Global analysis over 50 unseen test configurations. The boxplots show the distribution of the Wasserstein-1 error over the considered test set, comparing FOM and surrogate outputs. From left to right: POD-CNF (red, mean = 0.5117), POD-GP (green, mean = 1.8402) and deterministic baseline (blue, mean = 2.6443).
| at | Average on | NLL | Training time | Inference time | |
|---|---|---|---|---|---|
| Deterministic baseline | 2.8098 | – | – | – | |
| POD-GP | 1.6707 | 55.57s | 0.29s | ||
| POD-CNF | 0.4561 | 12m 24s | 0.08s |
Table 3. Linear elasticity problem, §4.3. Quantitative analysis comparing POD-CNF, POD-GP and the deterministic baseline, cf. §4.1. Table entries read as in Table 1.
| % Data | Average on | at | ||
|---|---|---|---|---|
| 100% | 4800 | 1280 | 0.4561 | |
| 75% | 3600 | 960 | 0.4135 | |
| 50% | 2400 | 640 | 0.4936 | |
| 25% | 1200 | 320 | 0.6768 | |
| 10% | 480 | 128 | 1.4152 | |
| 5% | 240 | 64 | 1.3998 |
Table 4. Linear elasticity problem, §4.3. Sensitivity of POD-CNF accuracy to training sample size. Table entries read as in Table 2.
(see also the negative log-likelihood in Table 3), further demonstrating that the two approaches serve entirely different purposes, and that POD-CNF is a more natural choice in this framework.
Results IV: sample size sensitivity analysis. We investigate the data efficiency of the architecture by retraining the CNF on progressively smaller datasets, all while keeping the POD basis () and the model hyperparameters fixed (Table 4). Consistently with the results seen in the previous test case, the performance remains remarkably stable down to 25% of the original sample size (, average ). Reducing the training size further leads to a sharp drop in accuracy, suggesting that is the critical data threshold for this problem.
5 Application to Forward and Inverse Uncertainty Quantification (UQ)
The numerical experiments presented in Section 4 exemplify scenarios where the physical model is governed by a PDE subject to intrinsic uncertainties, encoded by latent random parameters. Having assessed the capabilities of POD-CNF in this framework, we now aim at illustrating how the latter can be deployed to tackle Uncertainty Quantification (UQ) tasks. We shall consider both forward and inverse problems, alternating between the two test cases discussed in Section 4.
5.1 Forward UQ
Traditionally, Forward UQ aims at characterizing how uncertainties about the configuration of the system propagate to a given Quantity of Interest (QoI). For instance, given a QoI that can be expressed as a Lipschitz continuous functional of the state, , a classical problem in Forward UQ concerns the estimation of the conditional expectation
often approximated via Monte Carlo, or related techniques, as , where the 's are independent FOM simulations, all conditional on . In our setting, we can accelerate this process, by exploiting the generative capabilities of the probabilistic surrogate, effectively bypassing the PDE solver. For instance, a natural approach is to replace the conventional estimator with
where are independent Gaussian random vectors. Indeed, if we denote by the output of the POD-CNF, then, as a direct consequence of the Kantorovich-Rubinstein duality,
where Lip(Q) is the Lipschitz constant of the QoI, and the -term can be bounded as discussed in Section 3.1. Because the right-hand side of (35) is nothing but the Monte Carlo approximation of , this readily motivates the definition of the proposed estimator.
To demonstrate how the idea unfolds in practice, we present a simple application featuring the advection-diffusion problem discussed in Section 4.2. We consider five different QoIs, defined as in Table 5: each of them relates to a different feature of the solution field. For instance, quantifies the amount of solute accumulated around the bottom-right cylinder, in comparison with the other two. Conversely, identifies potential concentration spikes in the wake region of the mixer.
Figure 15 shows the results obtained for the different QoIs when approximating (34) using Monte Carlo samples. In particular, the picture reports the estimate mean values, together with their 99% confidence interval. Notably, the estimates obtained with POD-CNF perfectly agree with the ones obtained using the FOM: the two approaches, in fact, systematically yield overlapping confidence intervals. Moreover, the width of the latter is often comparable between the two approaches, further confirming the ability of POD-CNF in replicating variability of the FOM. Still, there are also major differences amongst the different QoIs. For instance, POD-CNF clearly overestimates the uncertainties in and . We speculate that this is related to the very definition of the QoIs: some of them, in fact, correspond to nonlinear functionals that are not continuous in the -norm. This makes (36) formally invalid (at least in the limit ), thus hindering the advantages of probabilistic surrogates in general.
In principle, because the proposed surrogate is extremely efficient at inference time, we could consider improving our estimate by increasing the number of Monte Carlo samples in (35). However, we notice that this is only suitable up to a point, which is when the statistical error—related with the amplitude of the confidence interval—becomes comparable with the magnitude of the model error in (36). Circumventing this problem requires the development of suitable multi-fidelity strategies, specifically designed to balance these two sources of inaccuracy: see, e.g., [45, 16]. These methods, however, have been mostly developed for deterministic surrogates: extending the idea to probabilistic approaches is in order, but beyond the scope of this work.
Nonetheless, it can be insightful to estimate the potential reduction in computational cost. Table 6 shows the hypothetical running costs required to approximate (34) with a relative uncertainty, at 99% confidence, below 1%. The latter have been estimated by leveraging the previous pilot run and inverting the confidence interval formula; this made it possible to estimate the required sample size and the corresponding running costs. According to such projections, POD-CNF has the potential to reduce computational times by three orders of magnitude. This motivates developing the idea further, extending beyond this preliminary exploration.
5.2 Inverse UQ
In many applications, one is not only interested at predicting the response of a physical system for a prescribed problem configuration (forward problem), but rather aims at inferring the values of the problem parameters given, incomplete, experimental observations of the system itself (inverse problem). Because inverse problems are typically ill-posed, a common strategy is to tackle them using probabilistic methods based on Bayesian inference [22, 51]. In essence, rather than providing a pointwise estimate, these approaches leverage system measurements to produce a full probability distribution over the parameter space (the posterior distribution), thus quantifying uncertainties and providing additional insights.
In the case of intrinsic, structured stochasticities produced by hidden parameters, this task becomes particularly challenging. In fact, traditional approaches generally require modeling aleatoric uncertainty explicitly. This is perfectly doable when such uncertainty is purely associated with measurements noise, which can be reasonably described using additive models based on Gaussian assumptions. However, when uncertainties arise from within the system, the situation changes substantially, adding an additional layer of complexity.
To illustrate the idea, we shall present a simple example based on the linear elasticity problem discussed in Section 4.3. Recall that, there, represented the vector field associated with the local displacement of a solid body
| Label | QoI | Expression | Continuous counterpart |
|---|---|---|---|
| Average Concentration Gradient | |||
| Spatial Standard Deviation | |||
| Relative Boundary Concentration | |||
| High-Concentration Area Fraction | |||
| Localized High-Concentration Event |
Table 5. QoIs for the Forward UQ analysis. = area of the spatial domain. = number of vertices in the mesh. = number of cells in the mesh. th component of . = value of the gradient of the FEM interpolant at the barycenter of the th cell. = the nodal average (resp. integral) average of the concentration field (third and fourth columns, respectively). and = continuous boundary and discrete degrees of freedom associated with the -th cylinder obstacle, respectively. . = degrees of freedom in the mesh belonging to .


Figure 15. Comparison of the 99% confidence intervals obtained using the true FOM solver and the proposed POD-CNF surrogate for the evaluated Quantities of Interest (QoIs).
| POD-CNF | ||||
|---|---|---|---|---|
| QoI | Est. Mean | 99% CI | Time* (s) | |
| 0.6360 | 0.0138 | 472 | 0.8349 | |
| 0.2061 | 0.0040 | 376 | 0.6651 | |
| 0.3275 | 0.0073 | 501 | 0.8862 | |
| 0.1553 | 0.0248 | 25500 | 45.1065 | |
| 0.5700 | 0.1310 | 52564 | 92.9796 | |
| FOM | ||||
|---|---|---|---|---|
| QoI | Est. Mean | 99% CI | Time* (s) | |
| 0.6486 | 0.0140 | 464 | 478.5703 | |
| 0.2083 | 0.0030 | 213 | 219.6885 | |
| 0.3302 | 0.0020 | 36 | 37.1305 | |
| 0.1495 | 0.0132 | 7771 | 8015.0204 | |
| 0.4400 | 0.0248 | 88680 | 91464.6777 | |
Table 6. Summary of the Forward UQ analysis for POD-CNF (left) and FOM (right). Est. Mean = value of the Monte Carlo estimator with samples. 99% CI = semi-amplitude of the 99% confidence interval with Monte Carlo samples. = estimated sample size required to reduce the relative uncertainty below 1%. Time* = running time (in seconds) required by the model to generate samples.
subject to an external load. The magnitude and the spatial extension of such load was determined by two parameters, and , respectively, collected as . The intrinsic uncertainty was generated by a hidden variable, , controlling the interface angle between two material layers constituting the body.
We consider the problem of inferring the values of and given sensor measurements of the displacement vector field at 31 equally spaced sensors located at the top surface of the body. We shall write to the denote the data vector collecting such measurements. Assuming that all stochasticities arise from the hidden variable , whose value is unknown, we shall neglect potential measurement noise affecting the sensors. This is depart from the conventional setting and focus entirely on the new challenges posed by the considered framework.
Following a Bayesian paradigm, we equip the parameter space with a prior probability measure , chosen to be the uniform distribution over . According to Bayes' rule, the posterior distribution satisfies
In standard settings, the likelihood function can be readily derived from the model used to described measurement uncertainties. In this case, however, we cannot express the likelihood function explicitly, as the latter depends intrinsically on the PDE solver and its interaction with the hidden variable .
However, we notice that, because our trained POD-CNF is able to approximate the conditional law of , we can leverage this knowledge to surrogate . To see this, let the matrix mapping full displacement vectors onto sensor measurements. Then
where denotes approximation in distribution and . While (38) does not suffice to approximate explicitly, it can be used to estimate the distribution numerically. In fact, because is computationally inexpensive to evaluate, the law of , and thus that of , can be estimated empirically by drawing i.i.d. samples and fitting a Kernel Density Estimation (KDE) model. This procedure can be then integrated within a suitable Markov chain Monte Carlo (MCMC) method to approximate the posterior distribution using (37).
Figure 16 shows the results obtained using this strategy in two different parametric scenarios. The pipeline has been implemented using an adaptive Metropolis-Hastings algorithm [25], complemented by a two-phase strategy based on an initial posterior exploration (chain with higher temperature and fixed proposal) followed by a subsequent refinement phase (lower temperature and adaptive proposal). During the iterations of the MCMC algorithm, the likelihood function has been estimated using the aforementioned KDE approximation, here implemented using a Gaussian kernel. For the latter, we used and a bandwidth of h = 0.1 during the exploratory phase of the MCMC, and with h = 0.03 during the refinement stage.
As shown in Figure 16 and Table 7 the proposed strategy successfully estimates the loading parameters m and , returning a posterior concentrated near the ground truth values. The approximation is more accurate for m (pointwise error below 2%) and slightly less for (pointwise errors around 3%-7%, but with true values always falling in the proposed credibility intervals).
To corroborate the analysis, we repeated the pipeline using the FOM solver, but introducing suitable modifications that would keep the overall computational cost comparable to that of POD-CNF. Specifically, we reduced the number of iterations in the MCMC by an order of magnitude (1000 iterations for the exploratory phase and 3000 for the refinement stage), as well as the number of samples generated per iteration ( in the two phases). Even with these modifications, the FOM analysis remained substantially more intensive than the previous one (approximately one hour versus 1–6 minutes), but was at least feasible to run.
As shown in Figure 16 the results are consistent with the previous analysis. In the first scenario, the two approaches yield posterior distributions localized around the same maximum value, although their spread differs substantially. Such difference could be caused by an intrinsic discrepancy between the two or by the different hyperparameters used for the MCMC algorithm. In the second scenario, instead, the two distributions identify a similar high probability region, presenting an elongated shape that extends towards the top-right corner of the parameter space.
Tables 7-8 provide a broader overview, extending the comparison to other parametric scenarios. When both models demonstrate strong predictive performance, their 95% credibility intervals typically exhibit a significant overlap. In particular, the intervals generated by POD-CNF surrogate tend to intersect with the tighter ones produced by the FOM, indicating an agreement between the high-probability regions predicted by the two approaches. At the same time, the pointwise estimate produced by the FOM are not always reliable, and the tightness of such intervals turns out to be unjustified: see, e.g., rows 5, 6 and 8 in Table 8. In these challenging cases, the FOM yields relative errors on m and exceeding 40% and 30%, respectively. In contrast, the adaptive Metropolis-Hastings algorithm driven by the POD-CNF surrogate remains stable, successfully recovering true parameter values in most tested configurations at a fraction of the computational time.
(a) m = 1.7384,

Trace Plots (POD-CNF)
(b) m = 1.1656,
Trace Plots (FOM)

Trace Plots (POD-CNF)
Figure 16. Linear elasticity problem, §4.3. For both panels, the first row reports the MCMC traces and posterior distribution from the high-fidelity numerical solver (FOM baseline), while the second row shows the corresponding results obtained via the POD-CNF surrogate.
| True m | Est. m | 95% CI | Error | True δ | Est. δ | 95% CI | Error | Time |
|---|---|---|---|---|---|---|---|---|
| 1.7384 | 1.7412 | [1.5438, 1.9414] | 0.16% | 0.2295 | 0.2127 | [0.1869, 0.2385] | 7.34% | 42s |
| 1.6228 | 1.5195 | [1.4951, 1.7095] | 6.37% | 0.1653 | 0.2088 | [0.1449, 0.2270] | 26.35% | 46s |
| 1.1777 | 1.3440 | [1.0607, 1.4985] | 14.12% | 0.2032 | 0.1665 | [0.0904, 0.2408] | 18.08% | 45s |
| 1.8151 | 1.8463 | [1.7462, 1.9728] | 1.72% | 0.2354 | 0.2380 | [0.2220, 0.2493] | 1.12% | 6m 20s |
| 1.2920 | 1.3550 | [1.1414, 1.5936] | 4.88% | 0.2278 | 0.2109 | [0.1703, 0.2441] | 7.42% | 6m 15s |
| 1.0757 | 1.1165 | [1.0077, 1.2689] | 3.79% | 0.1513 | 0.1463 | [0.1198, 0.1734] | 3.27% | 42s |
| 1.1656 | 1.1863 | [1.0111, 1.4722] | 1.78% | 0.1905 | 0.1838 | [0.1509, 0.2177] | 3.52% | 41s |
| 1.2045 | 1.2320 | [1.0326, 1.4742] | 2.29% | 0.2188 | 0.2132 | [0.1740, 0.2453] | 2.53% | 6m 3s |
Table 7. Summary of the inverse problem results for the POD-CNF surrogate model. CI = marginal credibility interval.
| True m | Est. m | 95% CI | Error | True δ | Est. δ | 95% CI | Error | Time |
|---|---|---|---|---|---|---|---|---|
| 1.7384 | 1.7383 | [1.6788, 1.8011] | 0.01% | 0.2295 | 0.2178 | [0.2012, 0.2325] | 5.08% | 63m 20s |
| 1.6228 | 1.4549 | [1.3883, 1.5074] | 10.35% | 0.1653 | 0.1835 | [0.1676, 0.1994] | 11.01% | 61m 40s |
| 1.1777 | 1.3873 | [1.3118, 1.4656] | 17.80% | 0.2032 | 0.1829 | [0.1673, 0.1989] | 10.01% | 65m 53s |
| 1.8151 | 1.8221 | [1.7673, 1.8757] | 0.39% | 0.2354 | 0.2414 | [0.2338, 0.2496] | 2.57% | 65m 0s |
| 1.2920 | 1.8346 | [1.7432, 1.9279] | 41.99% | 0.2278 | 0.1497 | [0.1342, 0.1656] | 34.28% | 60m 50s |
| 1.0757 | 1.9002 | [1.7527, 1.9978] | 76.64% | 0.1513 | 0.0846 | [0.0678, 0.0993] | 44.06% | 63m 54s |
| 1.1656 | 1.0948 | [1.0016, 1.2011] | 6.07% | 0.1905 | 0.1952 | [0.1682, 0.2304] | 2.48% | 57m 12s |
| 1.2045 | 1.7189 | [1.6497, 1.8027] | 42.71% | 0.2188 | 0.1501 | [0.1345, 0.1654] | 31.40% | 62m 30s |
Table 8. Summary of the inverse problem results for the FOM baseline. CI = marginal credibility interval.
The proposed analysis, however, is not free from limitations and only constitutes a preliminary exploration. Indeed, the necessity to approximate the likelihood function empirically and the subsequent the reliance on KDE currently pose major limitations, hindering the scalability of the approach to more complex inverse problems. Similarly, the comparison between the proposed approach and the FOM reference is not entirely exhaustive. These aspects could be addressed by consider more refined inference strategies that combine ideas from Bayesian statistics and Simulation Based Inference [14]. Still, because Inverse UQ is an application of interest but not the main focus of this work, we leave these considerations for future explorations.
6 Conclusions
In this paper, we presented POD-CNF, a hybrid generative framework designed to tackle the challenges associated with hidden parameters in high-dimensional systems governed by stochastic PDEs, and the corresponding Uncertainty Quantification (UQ) tasks. By integrating linear dimensionality reduction via Proper Orthogonal Decomposition (POD) with the expressive density estimation capabilities of Conditional Normalizing Flows, we developed a tool capable of modeling the full conditional probability distribution of the physical field, , thus accounting for the aleatoric uncertainty induced by the unobserved latent variables.
The numerical experiments demonstrated the effectiveness of the proposed approach, further consolidating our theoretical analysis. A key indicator of success was the Wasserstein-1 distance () between the generated and ground-truth distributions. In all test cases, the global error was significantly lower than the one obtained by the benchmark models, including POD-GP and deterministic baselines, confirming the ability of POD-CNF to capture complex, non-Gaussian marginals rather than merely regressing a deterministic average. The data efficiency of the proposed strategy was assessed through a dedicated sensitivity analysis, showing robust performances even when reducing the number of training samples by a significant amount (-75% with respect to the original sample size).
A major advantage of the POD-CNF framework lies in its generative capabilities. These allowed us to seamlessly extend the method to tackle not only forward UQ tasks, but also inverse UQ problems related with parameter estimation. By embedding the pre-trained generative model within a Bayesian inference framework, we were able to approximate the posterior distribution of the physical parameters through a specialized Markov chain Monte Carlo sampling.
Despite these promising results, the current methodology also presents some limitations:
-
relying on POD implies a linear approximation of the solution manifold, which may struggle with, e.g., advection-dominated phenomena or moving discontinuities, especially if considering time-dependent problems. Future developments could replace POD with nonlinear dimensionality reduction techniques, such as variational autoencoders (VAEs) [49], which can compress these complex manifolds more effectively;
-
the proposed method for constructing probabilistic surrogates, and tackling UQ tasks, is purely data-driven; it learns the conditional distribution of the POD coefficients, yielding physically consistent outputs (as demonstrated by our numerical experiments), but without enforcing the underlying governing equations. Future work could incorporate physics-informed regularization or even hard constraints [42]: for instance, by adding to the loss function a penalty term involving the PDE residual , the model could be encouraged to generate physically consistent solutions without strictly requiring a solver during inference;
-
our preliminary exploration concerning forward and inverse UQ tasks remains subject to limitations. In the first case, when estimating conditional expectations of given quantities of interest, increasing the number of Monte Carlo samples reduces the sampling error but it does not address surrogate model error, motivating the development of suitable multi-fidelity strategies for probabilistic surrogates. In the inverse UQ analysis, instead, the major limitation is given by the empirical approximation of the likelihood function via Kernel Density Estimation, which currently limits the scalability of the approach to more complex problems.
On top of this, a significant avenue for future research involves extending our framework to time-dependent problems. This would require modeling the temporal evolution of the latent coefficients by learning either their transition probabilities or the distribution of their trajectories, ultimately enabling the prediction of time-dependent quantities of interest under uncertainty.
Acknowledgments
AV, NRF and AM acknowledge the Project "Reduced Order Modeling and Deep Learning for the real-time approximation of PDEs (DREAM)" (Starting Grant No. FIS00003154), funded by the Italian Science Fund (FIS) - Ministero dell'Università e della Ricerca (MUR). NRF and AM are members of GNCS (Gruppo Nazionale per il Calcolo Scientifico) and gratefully acknowledge its support. The present research is also part of the activities of project Dipartimento di Eccellenza 2023-2027, Department of Mathematics, Politecnico di Milano, funded by MUR.
References
[1] Albergo, M., Boffi, N.M., Vanden-Eijnden, E., 2025. Stochastic interpolants: A unifying framework for flows and diffusions. Journal of Machine Learning Research 26, 1–80.
[2] Berman, J., Blickhan, T., Peherstorfer, B., 2026. Stochastic lifting for generating trajectories of stochastic physical systems, in: Proceedings of the 43rd International Conference on Machine Learning, PMLR. pp. 7657–7682.
[3] Billaud-Friess, M., Macherey, A., Nouy, A., Prieur, C., 2024. A probabilistic reduced basis method for parameter-dependent problems. Advances in Computational Mathematics 50, 19.
[4] Boon, W.M., Franco, N.R., Fumagalli, A., Zunino, P., 2025. Deep learning-based reduced-order modeling of darcy-flow systems with local mass conservation. International Journal for Numerical Methods in Engineering 126, e70188.
[5] Boyaval, S., Le Bris, C., Lelievre, T., Maday, Y., Nguyen, N.C., Patera, A.T., 2010. Reduced basis techniques for stochastic problems. Archives of Computational methods in Engineering 17, 435–454.
[6] Brivio, S., Fresca, S., Franco, N.R., Manzoni, A., 2024. Error estimates for pod-dl-roms: a deep learning framework for reduced order modeling of nonlinear parametrized pdes enhanced by proper orthogonal decomposition. Advances in Computational Mathematics 50, 33.
[7] Bülte, C., Scholl, P., Kutyniok, G., 2025. Probabilistic neural operators for functional uncertainty quantification. arXiv preprint arXiv:2502.12902.
[8] Chen, P., Quarteroni, A., Rozza, G., 2013. A weighted reduced basis method for elliptic partial differential equations with random input data. SIAM Journal on Numerical Analysis 51, 3163–3185.
[9] Chen, P., Quarteroni, A., Rozza, G., 2014. Comparison between reduced basis and stochastic collocation methods for elliptic problems. Journal of Scientific Computing 59, 187–216.
[10] Chen, P., Quarteroni, A., Rozza, G., 2017. Reduced basis methods for uncertainty quantification. SIAM/ASA Journal on Uncertainty Quantification 5, 813–869.
[11] Cockayne, J., Oates, C.J., Sullivan, T.J., Girolami, M., 2019. Bayesian probabilistic numerical methods. SIAM Review 61, 756–789.
[12] Cohen, A., 2021. From linear to nonlinear n-width: optimality in reduced modelling. Journées “Réduction de modèles et traitement géométrique des données”, IHP.
[13] Coscia, D., Demo, N., Rozza, G., 2024. Generative adversarial reduced order modelling. Scientific Reports 14, 3826.
[14] Cranmer, K., Brehmer, J., Louppe, G., 2020. The frontier of simulation-based inference. Proceedings of the National Academy of Sciences 117, 30055–30062.
[15] Dinh, L., Sohl-Dickstein, J., Bengio, S., 2016. Density estimation using real nvp. arXiv preprint arXiv:1605.08803.
[16] Farcaş, I.G., Peherstorfer, B., Neckel, T., Jenko, F., Bungartz, H.J., 2023. Context-aware learning of hierarchies of low-fidelity models for multi-fidelity uncertainty quantification. Computer Methods in Applied Mechanics and Engineering 406, 115908.
[17] Fjordholm, U.S., Lanthaler, S., Mishra, S., 2017. Statistical solutions of hyperbolic conservation laws: Foundations. Archive for Rational Mechanics and Analysis 226, 809–849.
[18] Foias, C., 1972. Statistical study of navier-stokes equations, i. Rendiconti del Seminario Matematico della Università di Padova 48, 219–348.
[19] Franco, N., Manzoni, A., Zunino, P., 2023. A deep learning approach to reduced order modelling of parameter dependent partial differential equations. Mathematics of Computation 92, 483–524.
[20] Franco, N.R., Manzoni, A., Zunino, P., Hesthaven, J.S., 2026. Deep orthogonal decomposition: a continuously adaptive neural network approach to model order reduction of parametrized partial differential equations. Advances in Computational Mathematics 52, 31.
[21] Fresca, S., Manzoni, A., 2022. Pod-dl-rom: Enhancing deep learning-based reduced order models for nonlinear parametrized pdes by proper orthogonal decomposition. Computer Methods in Applied Mechanics and Engineering 388, 114181.
[22] Gelman, A., Carlin, J.B., Stern, H.S., Rubin, D.B., 1995. Bayesian data analysis. Chapman and Hall/CRC.
[23] Goodfellow, I., Bengio, Y., Courville, A., 2016. Deep Learning. MIT Press.
[24] Guo, M., Hesthaven, J.S., 2018. Reduced order modeling for nonlinear structural analysis using gaussian process regression. Computer methods in applied mechanics and engineering 341, 807–826.
[25] Haario, H., Saksman, E., Tamminen, J., 2001. An adaptive metropolis algorithm.
[26] Hennig, P., Osborne, M.A., Kersting, H.P., 2022. Probabilistic Numerics. Cambridge University Press.
[27] Hesthaven, J.S., Pagliantini, C., Rozza, G., 2022. Reduced basis methods for time-dependent problems. Acta Numerica 31, 265–345.
[28] Hesthaven, J.S., Rozza, G., Stamm, B., 2015. Certified Reduced Basis Methods for Parametrized Partial Differential Equations. SpringerBriefs in Mathematics, Springer International Publishing, Cham, Switzerland.
[29] Hesthaven, J.S., Ubbiali, S., 2018. Non-intrusive reduced order modeling of nonlinear problems using neural networks. Journal of Computational Physics 363, 55–78.
[30] Kim, H., Zhang, L., Friend, J., Kramer, B., 2026. Stochastic operator inference for reduced-order modeling of capillary wave turbulence using experimental measurements. arXiv preprint arXiv:2609.04008.
[31] Kingma, D.P., Ba, J., 2015. Adam: A method for stochastic optimization, in: International Conference on Learning Representations, San Diego, CA, USA.
[32] Koehler, F., Mehta, V., Risteski, A., 2021. Representational aspects of depth and conditioning in normalizing flows, in: International Conference on Machine Learning, PMLR. pp. 5628–5636.
[33] Kotowski, D., Ohlberger, M., 2026. A new adaptive deep learning based reduced order model for hybrid-type parabolic pdes: Rigorous error analysis and applications. arXiv preprint arXiv:2604.22512.
[34] Law, K., Stuart, A., Zygalakis, K., Stuart, A., 2015. Data assimilation: a mathematical introduction. volume 62. Springer.
[35] Lee, H., Pabbaraju, C., Sevekari, A.P., Risteski, A., 2021. Universal approximation using well-conditioned normalizing flows. Advances in Neural Information Processing Systems 34, 12700–12711.
[36] Lim, J.H., Kovachki, N.B., Baptista, R., Beckham, C., Azizzadenesheli, K., Kossaifi, J., Voleti, V., Song, J., Kreis, K., Kautz, J., et al., 2025. Score-based diffusion models in function space. Journal of Machine Learning Research 26, 1–62.
[37] Lipman, Y., Chen, R.T.Q., Ben-Hamu, H., Nickel, M., Le, M., 2023. Flow matching for generative modeling, in: The Eleventh International Conference on Learning Representations. URL: https://openreview.net/forum?id=PqvMRDCJT9t.
[38] Lu, L., Meng, X., Cai, S., Mao, Z., Goswami, S., Zhang, Z., Karniadakis, G.E., 2022. A comprehensive and fair comparison of two neural operators (with practical extensions) based on fair data. Computer Methods in Applied Mechanics and Engineering 393, 114778.
[39] Lyu, J., Chen, Z., Feng, C., Cun, W., Zhu, S., Geng, Y., Xu, Z., Yongwei, C., 2022. Para-cflows: -universal diffeomorphism approximators as superior neural surrogates. Advances in Neural Information Processing Systems 35, 28829–28841.
[40] Maday, Y., Rønquist, E.M., 2002. A reduced-basis element method. Journal of scientific computing 17, 447–459.
[41] Molinaro, R., Lanthaler, S., Raonić, B., Rohner, T., Armegioiu, V., Simonis, S., Grund, D., Ramic, Y., Wan, Z.Y., Sha, F., et al., 2024. Generative ai for fast and accurate statistical computation of fluids. arXiv preprint arXiv:2409.18359.
[42] Mücke, N.T., Sanderse, B., 2026. Physics-aware generative models for turbulent fluid flows through energy-consistent stochastic interpolants. Computers & Fluids, 107098.
[43] Nair, P.B., Keane, A.J., 2002. Stochastic reduced basis methods. AIAA journal 40, 1653–1664.
[44] Papamakarios, G., Nalisnick, E., Rezende, D.J., Mohamed, S., Lakshminarayanan, B., 2021. Normalizing flows for probabilistic modeling and inference. Journal of Machine Learning Research 22, 1–64.
[45] Peherstorfer, B., Willcox, K., Gunzburger, M., 2016. Optimal model management for multifidelity monte carlo estimation. SIAM Journal on Scientific Computing 38, A3163–A3194.
[46] Pichi, F., Ballarin, F., Rozza, G., Hesthaven, J.S., 2023. An artificial neural network approach to bifurcating phenomena in computational fluid dynamics. Computers & Fluids 254, 105813.
[47] Quarteroni, A., 2009. Numerical models for differential problems. Springer.
[48] Quarteroni, A., Manzoni, A., Negri, F., 2015. Reduced basis methods for partial differential equations: an introduction. Springer.
[49] Rezende, D., Mohamed, S., 2015. Variational inference with normalizing flows, in: International conference on machine learning, PMLR. pp. 1530–1538.
[50] Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B., 2022. High-resolution image synthesis with latent diffusion models, in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684–10695.
[51] Stuart, A.M., 2010. Inverse problems: a bayesian perspective. Acta numerica 19, 451–559.
[52] Villani, C., et al., 2009. Optimal transport: old and new. volume 338. Springer.
[53] Wang, Q., Hesthaven, J.S., Ray, D., 2019. Non-intrusive reduced order modeling of unsteady flows using artificial neural networks with application to a combustion problem. Journal of computational physics 384, 289–307.
[54] Williams, D., 1991. Probability with martingales. Cambridge university press.
A Proofs of Section 3.1
Proof of Lemma 1. Fix any . Using the Kantorovich-Rubinstein duality [52, Chapter 5], we can write the Wasserstein-1 distance between the distributions of and as
where denotes the set of all Lipschitz continuous maps with Lipschitz constant no larger than 1. Notice that the two expectations in (39) are taken with respect to and , respectively. We now notice that, for every , by the triangle inequality
The first term in the above can be bounded as
since . The second term in Eq. (40), instead, can be re-written as
where is given as . It is straightforward to see that . In fact, because is orthonormal, for every one has . It follows that
Therefore, combining (40) with (41) and (42) we obtain
Since was arbitrary, passing at the supremum yields the desired conclusion.
Proof of Corollary 1. By integrating (15) with respect to , we can bound the left-hand-side in Eq. (16) with . By Jensen's inequality, the first term can be bounded further as
However, by standard arguments based on the Eckart-Young-Schmidt Theorem, the POD matrix satisfies (see, e.g. [48, Proposition 6.3]), thus yielding the claimed inequality.
Proof of Theorem 1. We first notice that, since is orthonormal and the random vectors are uniformly bounded, one has almost surely for all . In particular, being the ball of radius centered at the origin, one has , meaning that the union of the supports of the reduced distributions is bounded. We then notice that the map is continuous in the metric. Indeed, since is 1-Lipschitz whenever is 1-Lipschitz, one has
where, as before, denotes the set of all 1-Lipschitz maps from . Hence, the continuity of transfers to . The conclusion now follows from Corollary 1 and the universality of conditional normalizing flows, cf. Lemma B.1 in Appendix B.
B Universality of conditional normalizing flows
To be derived, Corollary 2 requires the universality of conditional normalizing flows. To the best of our knowledge, however, such result is not readily available in the existing literature. Prior works, in fact, either focus on the unconditional case, as in [32, 35], or discuss parametric problems in terms of diffeomorphism learning, as in [39], rather than in the context of conditional distributions. To bridge this gap, we derive a simple universality result, sufficient for our purposes, which directly descends from [32, Theorem 1].
Lemma B.1. Let be a compact set equipped with a suitable density . Assume that each is associated with some probability distribution defined over . Further assume that each of those probability distributions is absolutely continuous with respect to the Lebesgue measure, and that the union of their supports is bounded. Finally, assume that the map is continuous with respect to the metric. Let the standard Gaussian distribution in . Then, for every , there exists a conditional normalizing flow with three alternating affine coupling layers, and maps represented by ReLU networks, such that
Proof. Let . By compactness and continuity, the map is uniformly continuous. Hence, there exists some for which whenever . Leveraging compactness, let be a -net for . Let be the corresponding probabilities, so that . In light of the universality of unconditional normalizing flows, for each of such probabilities there exists a Real NVP with three coupling layers, featuring ReLU networks only, such that see [32, Theorem 1] and Remark B.1.
For each , let and be the ReLU networks in the three affine coupling layers of . Define the parametric maps
where is a partition obtained by considering the balls of radius centered over the -net , namely for , and . Let be the exogenous conditional normalizing flow having and as maps for the alternating affine coupling layers. We call exogenous because its defining maps are not given by neural network architectures but rather more general functions.
Given any , let be the unique index in for which . Then, for every we have
(44)
We now notice that, by assumption, there exists a compact set such that for all . Having fixed such , let be a parameter, whose value shall be chosen later on. Leveraging universality of ReLU networks, for every , let and be two ReLU networks, function of and , such that
This is possible since the maps and are all continuous in and piecewise constant in . Without loss of generality, we also require that uniformly across , with independent of (but dependent on through and , which depend on ). Such boundness can be ensured in multiple ways. For instance, one may first approximate the indicator functions in (43) using continuous maps (e.g., partitions of unity), obtaining suitable continuous approximants of and , which can then be approximated uniformly on by ReLU networks.
Let now be the conditional normalizing flow associated with . For every let be the density of and let be that of . We first notice that, by (45), for almost every we have and uniformly on as . Because the density of a normalizing flow depends smoothly on the maps and in its coupling layers, it is straightforward to see that such convergence directly transfers to the conditional densities, meaning that as for almost every . However, because all densities are uniformly bounded by some constant , this immediately implies
by dominated convergence. In particular, because is bounded, we also have as . Thus, we may choose such that . Combining the latter with (44) we obtain
Setting and letting yields the conclusion.
Remark B.1. Our definition of Real NVPs differs slightly from that in [32], as we require a terminal activation in the scaling network of each coupling layer. Nevertheless, [32, Theorem 1] extends naturally to our setting whenever is continuous and unbounded below. Indeed, the universality proof in [32] uses only constant negative scalings of arbitrarily large magnitude. It therefore suffices to show that there exists such that, for every , our definition admits a scaling network satisfying for all inputs . To this end, set . By continuity and unboundedness, it follows that . Hence, for every , there exists such that . The desired network can then be obtained by setting all weights and biases to zero, except for the bias of the output layer, which can be constructed as .
From a practical standpoint, the widespread use of bounded activations may pose some limitations in this direction, but their incompatibility with the above assumption is not as severe as it may sound. The universality discussed so far, in fact, covers a broad class of target distributions, including absolutely continuous distributions with disconnected supports. Such targets cannot be represented exactly by a diffeomorphic transformation of a Gaussian, since diffeomorphisms preserve connectedness of the support. For this reason, their approximation generally requires transformations whose Jacobians become increasingly singular. In the construction discussed above, this behavior arises as , causing the corresponding scaling factors to approach zero. Bounded activations restrict access to this limiting regime, but they can still be very well-suited for approximating a broad class of different distributions.