HyperAIHyperAI

Command Palette

Search for a command to run...

The Deep Arbitrary Polynomial Chaos Neural Network or how Deep Artificial Neural Networks could benefit from Data-Driven Homogeneous Chaos Theory

Abstract

Artificial Intelligence and Machine learning have been widely used in various fields of mathematical computing, physical modeling, computational science, communication science, and stochastic analysis. Approaches based on Deep Artificial Neural Networks (DANN) are very popular in our days. Depending on the learning task, the exact form of DANNs is determined via their multi-layer architecture, activation functions and the so-called loss function. However, for a majority of deep learning approaches based on DANNs, the kernel structure of neural signal processing remains the

One-sentence Summary

The authors propose the Deep Arbitrary Polynomial Chaos Neural Network, which replaces the standard kernel structure of deep artificial neural networks with a data-driven homogeneous chaos expansion for mathematical computing, physical modeling, and stochastic analysis tasks.

Key Contributions

  • The paper introduces Deep arbitrary polynomial chaos neural networks (DaPC NN), a reformulation of the conventional DANN kernel structure that replaces univariate weighted neuron sums with adaptive, data-driven, multivariate orthonormal polynomial representations on each node.

  • DaPC NN captures high-order neural interactions through weighted polynomial superpositions at each node, allowing the desired polynomial degree of nonlinearity to be specified per layer and reducing reliance on separately specified nonlinear activation functions.

  • DaPC NN is evaluated against a conventional DANN and aPC on three test cases using the same training data and loss function, with convergence against reference validation datasets compared across different training set sizes.

Introduction

Deep neural networks are widely used to learn complex input to output mappings in scientific and engineering modeling, where reliable surrogates and generalization matter. Conventional deep architectures combine neuron signals at each node with simple weighted sums and then apply nonlinear activation functions, but these nonorthogonal mixtures can be redundant, activation choices can be subjective, and prior orthogonal or polynomial alternatives either impose restrictive constraints or cannot be applied directly because they require known input distributions inside the network. The authors leverage homogeneous chaos theory and arbitrary polynomial chaos, a data driven generalization of polynomial chaos, to reformulate the core DANN node. They introduce DaPC NN, which builds adaptive multivariate orthonormal bases inside each layer and uses higher order weighted superpositions to process neural signals, aiming to reduce redundancy, capture higher order neuron interactions, and lessen reliance on hand chosen activation functions.

Dataset

  • The authors build synthetic supervised datasets for surrogate modeling. Each sample is an input-output pair, where inputs are benchmark parameters and the response is the model output used to train aPC, DANN, and DaPC NN models.

  • The data sources are benchmark models rather than raw external datasets. In the reported experiments, training data are generated by sampling benchmark inputs and evaluating the corresponding model responses. The paper allows data to come from physical model runs or a given database, but the experiments use fixed training sets and avoid active learning or other data-mining filtering.

  • For the Ishigami test case, the response is the Ishigami function with parameters a = 7 and b = 0.1. The three inputs are independent and uniformly distributed over U(-pi, pi).

  • The Ishigami training data are constructed from Sobol sequences. The authors evaluate training-set sizes of 10, 100, and 1000 samples. A separate validation set of 1000 Monte Carlo samples is used to assess prediction quality.

  • For the CO2 benchmark, the response is CO2 saturation from a reduced subsurface CO2 injection model. The input variables are injection rate, relative permeability, and porosity, with uncertainty distributions taken from the original benchmark problem.

  • The CO2 experiments use two training data construction strategies. The first uses Sobol sequences for training sets of sizes 100, 500, and 1000. The second uses Gaussian quadrature points on a full tensor grid, producing sets of sizes 27, 216, and 1331 for polynomial degrees 3, 5, and 10. This second strategy is used to examine the effect of training-point choice on oscillatory behavior.

  • The CO2 validation data are 10000 Monte Carlo samples generated from the same input variability used for training.

  • The datasets are used as fixed complete training sets for each benchmark, not as a mixed corpus. The authors vary the number of training samples while comparing methods on the same data. No cross-dataset mixture ratios, image cropping, or metadata construction are described.

Method

The method develops a deep model that represents a response R(ω)\mathcal{R}(\omega)R(ω), where the input vector is ω={ω1,…,ωn}\omega=\{\omega_1,\ldots,\omega_n\}ω={ω1​,…,ωn​}, as a composition of layerwise orthonormal polynomial expansions. The central idea is to treat the signal passed between neural network layers as a stochastic response and to decompose it using data-driven orthogonal polynomials rather than using only weighted sums of first-order activations.

At the core is an expansion in a multivariate orthonormal polynomial basis:

R(ω)=∑i=0∞wiΨi(ω)≈∑i=0MwiΨi(ω).\mathcal{R}(\omega) = \sum_{i=0}^{\infty} w_i \Psi_i(\omega) \approx \sum_{i=0}^{M} w_i \Psi_i(\omega).R(ω)=i=0∑∞​wi​Ψi​(ω)≈i=0∑M​wi​Ψi​(ω).

The basis functions Ψi(ω)\Psi_i(\omega)Ψi​(ω) are constructed from products of univariate orthonormal polynomials. For independent inputs, a typical multivariate basis element can be written as

Ψα(ω)=∏j=1nϕj(αj)(ωj),∑j=1nαj≤d,\Psi_{\alpha}(\omega) = \prod_{j=1}^{n} \phi_j^{(\alpha_j)}(\omega_j), \qquad \sum_{j=1}^{n} \alpha_j \leq d,Ψα​(ω)=j=1∏n​ϕj(αj​)​(ωj​),j=1∑n​αj​≤d,

where α=(α1,…,αn)\alpha=(\alpha_1,\ldots,\alpha_n)α=(α1​,…,αn​) indexes the polynomial degree in each input direction and ddd is the maximum total polynomial degree. Under total-degree truncation, the number of terms is

M=(n+d)!n! d!.M=\frac{(n+d)!}{n!\,d!}.M=n!d!(n+d)!​.

The coefficients wiw_iwi​ determine how strongly each polynomial interaction contributes to the response. Each nonzero coefficient can be interpreted as the variance contribution of the corresponding polynomial term.

To make the polynomial basis data-driven, the authors use arbitrary polynomial chaos. Instead of assuming that inputs are Gaussian, uniform, beta, or gamma distributed, the basis is built from empirical or theoretical raw moments. A univariate polynomial of degree αj\alpha_jαj​ is expressed as

ϕj(αj)(ωj)=1καj∑i=0αjmi(αj)ωji,\phi_j^{(\alpha_j)}(\omega_j) = \frac{1}{\sqrt{\kappa_{\alpha_j}}} \sum_{i=0}^{\alpha_j} m_i^{(\alpha_j)} \omega_j^i,ϕj(αj​)​(ωj​)=καj​​​1​i=0∑αj​​mi(αj​)​ωji​,

where mi(αj)m_i^{(\alpha_j)}mi(αj​)​ are monomial coefficients. These coefficients are obtained from a linear system involving raw moments:

[μ0(ωj)μ1(ωj)⋯μαj(ωj)μ1(ωj)μ2(ωj)⋯μαj+1(ωj)⋮⋮⋱⋮μαj(ωj)μαj+1(ωj)⋯μ2αj(ωj)][m0(αj)m1(αj)⋮mαj(αj)]=[0⋮01].\begin{bmatrix} \mu_0(\omega_j) & \mu_1(\omega_j) & \cdots & \mu_{\alpha_j}(\omega_j) \\ \mu_1(\omega_j) & \mu_2(\omega_j) & \cdots & \mu_{\alpha_j+1}(\omega_j) \\ \vdots & \vdots & \ddots & \vdots \\ \mu_{\alpha_j}(\omega_j) & \mu_{\alpha_j+1}(\omega_j) & \cdots & \mu_{2\alpha_j}(\omega_j) \end{bmatrix} \begin{bmatrix} m_0^{(\alpha_j)} \\ m_1^{(\alpha_j)} \\ \vdots \\ m_{\alpha_j}^{(\alpha_j)} \end{bmatrix} = \begin{bmatrix} 0 \\ \vdots \\ 0 \\ 1 \end{bmatrix}.​μ0​(ωj​)μ1​(ωj​)⋮μαj​​(ωj​)​μ1​(ωj​)μ2​(ωj​)⋮μαj​+1​(ωj​)​⋯⋯⋱⋯​μαj​​(ωj​)μαj​+1​(ωj​)⋮μ2αj​​(ωj​)​​​m0(αj​)​m1(αj​)​⋮mαj​(αj​)​​​=​0⋮01​​.

This allows the orthonormal representation to adapt to arbitrary input distributions using only a finite number of moments.

Conventional deep artificial neural networks can be viewed from this perspective as using only a very restricted polynomial expansion. A node response in a standard feedforward network is commonly written as

R(L,N)=w0(L,N)+∑i=1M(L)wi(L,N)A(L)(R(L−1,i)),\mathcal{R}^{(\mathcal{L},\mathcal{N})} = w_0^{(\mathcal{L},\mathcal{N})} + \sum_{i=1}^{M^{(\mathcal{L})}} w_i^{(\mathcal{L},\mathcal{N})} \mathcal{A}^{(\mathcal{L})} \left( \mathcal{R}^{(\mathcal{L}-1,i)} \right),R(L,N)=w0(L,N)​+i=1∑M(L)​wi(L,N)​A(L)(R(L−1,i)),

where A(L)\mathcal{A}^{(\mathcal{L})}A(L) is an activation function and R(L−1,i)\mathcal{R}^{(\mathcal{L}-1,i)}R(L−1,i) is an activated signal from the previous layer. This formulation corresponds to a linear combination of zeroth-order and first-order terms. Such a representation is orthonormal only under special distributional assumptions, effectively resembling the case where the neuronal signals are standard Gaussian. If the actual layer responses deviate from that distribution, the representation may become redundant, meaning that multiple terms can overlap in the information they encode.

The Deep Arbitrary Polynomial Chaos Neural Network, or DaPC NN, generalizes this structure by replacing the first-order weighted sum with a full multivariate orthonormal polynomial expansion at each layer. The response of node N\mathcal{N}N in layer L\mathcal{L}L is written as

R(L,N)(R(L−1))=∑i=0M(L)wi(L,N)Ψi(L)[A(L)(R(L−1,1)),…,A(L)(R(L−1,NL−1))].\mathcal{R}^{(\mathcal{L},\mathcal{N})} \left( \mathcal{R}^{(\mathcal{L}-1)} \right) = \sum_{i=0}^{M^{(\mathcal{L})}} w_i^{(\mathcal{L},\mathcal{N})} \Psi_i^{(\mathcal{L})} \left[ \mathcal{A}^{(\mathcal{L})} \left( \mathcal{R}^{(\mathcal{L}-1,1)} \right), \ldots, \mathcal{A}^{(\mathcal{L})} \left( \mathcal{R}^{(\mathcal{L}-1,N^{\mathcal{L}-1})} \right) \right].R(L,N)(R(L−1))=i=0∑M(L)​wi(L,N)​Ψi(L)​[A(L)(R(L−1,1)),…,A(L)(R(L−1,NL−1))].

Here Ψi(L)\Psi_i^{(\mathcal{L})}Ψi(L)​ belongs to a multivariate orthonormal polynomial basis constructed for the distribution of the activated responses from the previous layer. The basis degree for layer L\mathcal{L}L is denoted by d(L)d^{(\mathcal{L})}d(L), and the number of polynomial terms for each node is

M(L)=(N(L−1)+d(L))!N(L−1)! d(L)!.M^{(\mathcal{L})} = \frac{ \left(N^{(\mathcal{L}-1)}+d^{(\mathcal{L})}\right)! }{ N^{(\mathcal{L}-1)}!\,d^{(\mathcal{L})}! }.M(L)=N(L−1)!d(L)!(N(L−1)+d(L))!​.

This introduces explicit high-order interactions between neurons within each layer. Instead of only capturing linear combinations of individual activated neurons, the DaPC NN can represent products and higher-degree nonlinear combinations of those signals through the polynomial basis.

The resulting architecture can be viewed as a stack of layers where each layer receives activated responses from the previous layer, applies a layer-specific orthonormal polynomial decomposition, and then combines those basis functions with trainable weights. Refer to the framework diagram.

In this structure, the input layer provides ω\omegaω, and each hidden layer L\mathcal{L}L receives the activated response vector from layer L−1\mathcal{L}-1L−1. For a given layer, the polynomial basis {Ψ0(L),…,ΨM(L)(L)}\{\Psi_0^{(\mathcal{L})},\ldots,\Psi_{M^{(\mathcal{L})}}^{(\mathcal{L})}\}{Ψ0(L)​,…,ΨM(L)(L)​} is shared across the neurons of that layer. The polynomial degree d(L)d^{(\mathcal{L})}d(L) controls the level of nonlinearity allowed inside the layer. Lower degrees keep the expansion closer to a linear representation, while higher degrees enable richer multivariate interactions.

Because the decomposition is orthonormal, the expected value and variance of a node response can be expressed analytically. The expected value is the constant bias term:

μ(R(L,N))=w0(L,N).\mu\left(\mathcal{R}^{(\mathcal{L},\mathcal{N})}\right) = w_0^{(\mathcal{L},\mathcal{N})}.μ(R(L,N))=w0(L,N)​.

The total variance, excluding the constant term, is

σ2(R(L,N))=∑i=1M(L)(wi(L,N))2.\sigma^2\left(\mathcal{R}^{(\mathcal{L},\mathcal{N})}\right) = \sum_{i=1}^{M^{(\mathcal{L})}} \left( w_i^{(\mathcal{L},\mathcal{N})} \right)^2.σ2(R(L,N))=i=1∑M(L)​(wi(L,N)​)2.

This also gives the weights a direct interpretability. The squared weight associated with a basis function represents its contribution to the variance of the response. A Sobol-type sensitivity index for a given basis term can be written as

SI(L,N)=(wI(L,N))2∑i=1M(L)(wi(L,N))2.S_I^{(\mathcal{L},\mathcal{N})} = \frac{ \left(w_I^{(\mathcal{L},\mathcal{N})}\right)^2 }{ \sum_{i=1}^{M^{(\mathcal{L})}} \left(w_i^{(\mathcal{L},\mathcal{N})}\right)^2 }.SI(L,N)​=∑i=1M(L)​(wi(L,N)​)2(wI(L,N)​)2​.

Thus, single-neuron contributions and simultaneous combinations of multiple neurons can be traced through the network in terms of explained variance.

Derivatives with respect to the weights are also available in analytical form. For a weight belonging to the same layer, the derivative is simply the corresponding basis function:

∂R(L∗,N∗)∂wk(L∗,N∗)=Ψk(L∗)[A(L∗)(R(L∗−1,1)),…,A(L∗)(R(L∗−1,NL∗−1))].\frac{ \partial \mathcal{R}^{(\mathcal{L}_*,\mathcal{N}_*)} }{ \partial w_k^{(\mathcal{L}_*,\mathcal{N}_*)} } = \Psi_k^{(\mathcal{L}_*)} \left[ \mathcal{A}^{(\mathcal{L}_*)} \left( \mathcal{R}^{(\mathcal{L}_*-1,1)} \right), \ldots, \mathcal{A}^{(\mathcal{L}_*)} \left( \mathcal{R}^{(\mathcal{L}_*-1,N^{\mathcal{L}_*-1})} \right) \right].∂wk(L∗​,N∗​)​∂R(L∗​,N∗​)​=Ψk(L∗​)​[A(L∗​)(R(L∗​−1,1)),…,A(L∗​)(R(L∗​−1,NL∗​−1))].

For weights in an earlier layer, the derivative is obtained recursively through the chain rule across subsequent layers. This analytical gradient structure enables the use of standard gradient-based training procedures.

The training process optimizes all layer weights by minimizing a loss that combines prediction error and weight regularization:

w=arg⁡min⁡w[1TN∑i=1TN(R(ωTi)−RTi)2+1Nw∑i=1Nw(wi(L,N))2].\pmb{w} = \arg\min_{\pmb{w}} \left[ \frac{1}{T_N} \sum_{i=1}^{T_N} \left( \mathcal{R}(\omega_{T_i}) - R_{T_i} \right)^2 + \frac{1}{N_w} \sum_{i=1}^{N_w} \left( w_i^{(\mathcal{L},\mathcal{N})} \right)^2 \right].w=argwmin​[TN​1​i=1∑TN​​(R(ωTi​​)−RTi​​)2+Nw​1​i=1∑Nw​​(wi(L,N)​)2].

The first term is the mean squared error between the model prediction and the training targets. The second term is a mean-square weight penalty that acts as Tikhonov regularization. This keeps the optimization comparable to common practice for conventional deep neural networks while adapting it to the polynomial expansion.

A key operational feature is that the data-driven orthonormal bases are updated implicitly during training. When weights are adjusted, the activated responses from each layer change, and the empirical or estimated distribution of those responses changes. The layerwise polynomial bases are then recomputed from the corresponding moments. In this way, the basis construction is coupled to the training of the weights. The model can therefore be used in a largely automatic manner: the user supplies the architecture, training data, loss function, and optimizer, while the orthonormal polynomial bases are continuously reconstructed inside the model.

Experiment

The experiments compare DaPC NN, conventional DANN, and aPC under identical training/validation protocols on two smooth surrogate-modeling benchmarks and one shock-propagation CO2 problem, varying training size to assess generalization and convergence. On the Ishigami and ON-10 cases, DaPC NN consistently achieves more accurate and stable validation predictions than DANN and aPC, showing better convergence, less overfitting, and higher data efficiency. On the CO2 benchmark, all smooth surrogate methods struggle with the sharp discontinuity, but DaPC NN partially inherits aPC-like stability and benefits strongly from distribution-based Gaussian training points, whereas DANN remains sensitive to oscillations and poor input scaling.

The Ishigami test case compares polynomial chaos, conventional deep neural networks, and a data-driven anchored neural representation across training sample sizes. The anchored neural model uses fewer adjustable weights than the conventional neural network while giving the smallest scatter on training data and the best validation performance, especially at moderate sample sizes. The conventional neural network is more sensitive to overfitting and regularization loss, while plain polynomial chaos remains limited for highly nonlinear responses. The anchored neural model reaches strong validation performance with a smaller set of adjustable weights than the conventional neural network. Validation quality improves with more training data, but the anchored neural model remains the best performer at moderate sample sizes. The conventional neural network has greater flexibility but is more affected by weak regularization and overfitting.

The architectures compare a single-layer polynomial model, a deeper feedforward network, and a two-layer orthonormalized network on the ON-10 case. For small training sets, the polynomial model is less flexible, while the orthonormalized network captures training data more readily. With more training data, the orthonormalized network gives more consistent validation predictions and lower scatter, whereas the conventional network shows overfitting and the polynomial model gains little. The polynomial model is constrained by its single-layer form for highly nonlinear responses. The conventional network can fit training data but tends to overfit and does not benefit strongly from added data. The orthonormalized network provides more consistent predictions with lower validation scatter.

The compared aPC, DANN, and DaPC NN models were configured for the CO2 Sobol benchmark using MSE+MSW training losses. The table shows that DANNs use deeper architectures with more neurons and weights, while DaPC NN uses a more compact polynomial-weight-based structure and plain aPC uses a single-layer polynomial expansion. Across the reported experiment, none of the models closely match the reference mean and standard deviation, but DaPC NN is described as more consistent and less sensitive to regularization than DANN. DANN architectures are larger and deeper than the DaPC NN configuration shown in the table. DaPC NN predictions are reported as more consistent with lower variance than DANN predictions. Plain aPC is limited by its one-layer polynomial form for the highly nonlinear CO2 problem.

The architectures used for the CO2 benchmark show that aPC is a compact one-layer model with more parameters as the training data size grows, DANN uses feedforward networks that expand in depth and width, and DaPC NN uses a compact two-layer form with structured nonlinear terms. The accompanying discussion reports that all three approaches are far from reference mean and standard deviation values on validation data, even with larger training sets. DaPC NN is described as more consistent and less sensitive to omitted regularization than DANN. aPC uses one layer and adds parameters as training data increases DANN uses layered networks with expanded structure for larger training sizes DaPC NN uses a compact two-layer architecture with structured nonlinear terms DaPC NN is reported to predict quantities more consistently than DANN DANN is more affected by omitted regularization than aPC or DaPC NN

Across Ishigami, ON-10, and CO2 Sobol benchmark evaluations, polynomial chaos, conventional deep neural networks, and anchored or orthonormalized neural representations are compared as training set size varies. These experiments validate that anchored or orthonormalized models use fewer adjustable weights while producing more stable validation behavior and smaller prediction scatter than conventional networks, especially at moderate training sizes. Conventional networks are flexible but prone to overfitting and regularization sensitivity, whereas plain polynomial models remain limited on highly nonlinear responses.