Manuscript Offprint
arXiv:2610.29909Tractable Inference with Kolmogorov-Arnold Networks
Abstract
Machine-learning surrogates in computational science often require not only accurate predictions but also expectations, variances, conserved integrals, and normalization constants. Conventional neural networks, including Kolmogorov–Arnold networks (KANs), generally evaluate these quantities through Monte Carlo sampling or multidimensional quadrature, making repeated inference costly, particularly in high dimensions. We introduce KANs with Tractable Operators for Uncertainty and Constraints (TOUCKANs), whose finite-degree polynomial outer functions yield a decomposable sum–product representation. Under factorizing input measures, expectations and higher moments then reduce algebraically to deterministic recursions over one-dimensional leaf integrals. Independent and shared inner-block variants form a parameter-efficiency hierarchy, and a universal-approximation proof for its most restricted member extends to the complete class. The same deterministic operators allow conserved integrals and normalization to be imposed throughout training. Across uniform and Gaussian benchmarks through 50 dimensions, deterministic mean and variance errors remained below the median fixed-budget Monte Carlo errors in every case. TOUCKANs also conserved Cahn–Hilliard mass to machine precision and imposed normalization and orthogonality through deterministic moments, enabling joint computation of the lowest four Schrödinger eigenpairs in two, three, and five dimensions. TOUCKANs therefore connect KAN approximation with tractable probabilistic circuits, making statistical operators and integral constraints directly available within an expressive neural surrogate.
Keywords: Tractable inference, Kolmogorov-Arnold networks, uncertainty quantification, probabilistic circuits, sum-product networks, scientific machine learning
1. Introduction
Kolmogorov–Arnold Networks (KANs) [1] are neural architectures motivated by the Kolmogorov–Arnold representation theorem (KART) [2], which represents continuous multivariate functions through compositions of univariate functions and addition. Rather than assigning fixed nonlinearities to nodes, KANs place learnable univariate functions on the edges of the computational graph. Since their introduction, KANs have expanded into
*Corresponding authors: sranftl@purdue.edu, george_karniadakis@brown.edu
These authors contributed equally.
Current address: Purdue University, 585 Purdue Mall, West Lafayette, IN 47907, USA architectures based on alternative basis functions, deep compositions, and low-rank parameterizations [3–6], while recent studies have established broader approximation conditions and surveyed the growing family [7–9]. These developments have supported applications in physics-informed machine learning [1, 10, 11], operator learning [12, 13], and uncertainty quantification [14–16].
At the same time, many tasks in computational science and engineering require not only accurate function approximation but also efficient evaluation of statistical or integral quantities of the learned surrogate. These quantities include expectations, moments, variances, sensitivity indices, conserved integrals, and normalization constants [17–20]. Conventional neural networks, including KANs, generally evaluate them through Monte Carlo sampling or multidimensional quadrature [21–25]. The required evaluations become costly when the dimension is high or when the same functional must be recomputed throughout training or inference.
Low-dimensional factorization provides one route around this bottleneck. Separable and tensorized neural networks combine low-dimensional factors, while tractable probabilistic circuits arrange them through recursive sums and decomposable products [26–28]. Recent KAN-based separable models use related structure to reduce physics-informed training cost [11], whereas low-rank KAN variants target parameter-efficient adaptation [6]. These methods address valuable but distinct objectives and do not make statistical operators tractable through the KAN architecture itself.
To address this gap, we introduce KANs with Tractable Operators for Uncertainty and Constraints (TOUCKANs). The key idea is to restrict the KAN representation so that it acquires the decomposable multiplicative-additive structure of tractable probabilistic circuits, including Deep Polynomial Chaos Expansions [29] and Sum-Product Networks [30, 31]. Specifically, applying finite-degree polynomials to sums of univariate functions allows the multinomial theorem to rewrite the network as a decomposable sum-product representation. Under factorizing input measures, high-dimensional moments then reduce to one-dimensional leaf moments assembled through deterministic recursions. The same quantities can be incorporated into the architecture to enforce conserved integrals and normalization. Tractable inference therefore follows from the architecture of the learned surrogate rather than from a separate sampling procedure.
We realize this structure within the two-block Kürková–Kolmogorov–Arnold network (KKAN) formulation [32]. The resulting inner-block hierarchy ranges from independent per-dimension networks to shared formulations motivated by the Lorentz and Laczkovich representation theorems [33, 34]. The shared formulations reduce the parameter footprint without changing the moment recursions, while preserving universal approximation throughout the hierarchy. Their smaller footprint also makes strong second-order optimizers such as SSBroyden computationally feasible [35, 36]. Such optimizers have enabled physics-informed networks to attain near machine-precision accuracy [37, 38], but their computational cost generally restricts them to models with relatively few parameters.
The main contributions of this work are as follows:
-
We show that finite-degree polynomial outer functions induce decomposable sum-product representations in KANs and derive deterministic recursions for expectations and variances from one-dimensional leaf moments. The corresponding theorem extends the construction to arbitrary depth and polynomial observables.
-
We construct independent, full-head, diagonal, and rank-one inner parameterizations with progressively smaller parameter footprints. By proving density of the most restricted rank-one class, we establish universal approximation for the complete hierarchy.
-
We use the deterministic integral evaluations to impose conserved linear functionals and normalization by construction. These constraints hold for every parameter value under the quadrature-discretized functional and remain differentiable during training.
-
Across uniform and Gaussian benchmarks through D = 50, deterministic TOUCKAN moment errors remain below the median fixed-budget Monte Carlo errors. The same framework conserves mass to machine precision for the Cahn–Hilliard equation and imposes normalization and orthogonality through deterministic moments, enabling joint computation of the lowest four Schrödinger eigenpairs in D = 2, 3, and 5.
Together, these results connect KAN approximation with tractable probabilistic circuits, making statistical operators and integral constraints directly available during inference and training.
Here, are the univariate inner functions, and are the outer functions. Although KART provides an exact representation, the inner functions arising from its constructive proofs can be highly non-smooth and are therefore unsuitable as trainable components [39]. To address this problem, Kürková reformulated the theorem as an approximation result in which the inner and outer functions are represented by finite sums of sigmoidal units, while preserving the two-block composition [40]. KKANs generalized this construction by allowing the inner and outer univariate functions to be approximated using broader learnable function classes, including neural networks and basis expansions [32]. KART also inspired modern multilayer architectures such as KANs and their variants [1, 3–6, 8, 9, 11–16]; Appendix A.1 details their relation to the two-block KKAN construction used here.
These approximation results address representation accuracy, but scientific applications often also require expectations, moments, variances, and integral constraints. These quantities can be expressed through observables of the form
(2) where is the input density and specifies the quantity of interest; for example, gives the first moment and gives the second moment. General neural representations typically evaluate such quantities through sampling or multidimensional quadrature. The cost becomes substantial when the dimension is high or the functional must be recomputed during training, inference, or uncertainty propagation.
One established route to reducing this cost is to construct the representation from low-dimensional factors. Separable and tensorized neural networks combine products of univariate or low-dimensional functions through summation [26, 27],
Tractable probabilistic circuits generalize this organization by arranging low-dimensional leaves through recursive sums and products [28, 30]. Their central structural condition is decomposability: the children of every product node depend on pairwise disjoint variable scopes. Under a factorizing input density, each decomposable product integrates as a product of lower-dimensional integrals, reducing the full integral to low-dimensional computations [31]. The corresponding circuit definitions and structural conditions are provided in Appendix A.2.
The same reduction can be extended to Kúrková and KKAN variants. Since their inner approximants remain univariate, decomposability can be enforced through the outer functions. Consider the quadratic choice . Substitution into (1) gives
(4)
The first sum contains only univariate squares, while each cross term is a product of functions defined on distinct coordinates. The expanded representation is therefore decomposable.
Assume now that the input density factorizes as , and define the one-dimensional leaf moments
Taking the expectation of (4) and applying the factorization of yields
Hence, the D-dimensional expectation depends only on univariate leaf moments of orders one and two. This reduction is algebraically exact; any remaining approximation arises only from the quadrature used to evaluate those moments.
For finite-degree polynomial outer functions, the multinomial theorem produces the same decomposable structure: every expanded monomial is a product of powers of univariate inner functions, and its expectation separates under a factorizing density. Recursive expansion extends the argument to deeper polynomial compositions and polynomial observables h, so higher moments reduce to the corresponding leaf moments whenever they exist; in particular, the first and second moments determine the variance. Appendix B gives the complete higher-order and deep-layer derivations, the circuit implementation, and the complexity bounds for the explicitly expanded representation, while Theorem 1 establishes the result for arbitrary depth and polynomial observables.
3. Method
3.1. A tractable KAN architecture
The preceding section identifies two structural properties that are sufficient to obtain a decomposable sum-product representation: (i) the outer nonlinearities must be finite-degree polynomials, so that the multinomial theorem applies; and (ii) the argument of the innermost outer nonlinearity must be a sum of univariate functions, so that the factors in every product generated by the expansion have pairwise disjoint scopes. We incorporate these properties into a tractable modification of the two-block KKAN architecture, which we call TOUCKAN [32].
The resulting TOUCKAN architecture comprises an inner block, a combination layer, and an outer block (Figure 1),
Here, denotes the number of branches, denotes a trainable univariate inner branch, and denotes a trainable outer function. We use to distinguish these trainable branches from the exact KART inner functions in (1). The normalized sums define the combination variables. Because every depends on a single coordinate, each remains a sum of univariate functions, satisfying condition (ii) by construction.
The branches remain free modeling choices provided the required univariate leaf moments exist. In the most direct instantiation, each dimension carries its own independent inner network, and the Q output channels of that network are the branches . Denoting the independent network associated with dimension d by , the inner branches and outer functions are
The finite Chebyshev expansion makes each a polynomial, satisfying condition (i). To retain the natural bounded domain of the Chebyshev basis, the combination variable must remain in . Conventional Chebyshev-based KAN formulations impose this bound by
Inner Block
Combination Layer
Outer Block
Combination Layer

Figure 1: TOUCKAN architecture (7), shown in the parameter-efficient diagonal form (11). Every input dimension is processed by the same shared network and specialized by the per-dimension diagonal scaling , producing the bounded univariate branches . The first combination layer forms the normalized sums , each outer block evaluates a Chebyshev expansion , and the final combination layer sums all branches to produce .
applying tanh after the sum over dimensions [32]. That placement introduces a nonpoly-nomial function of a multivariate sum into the outer map, compromising decomposability. TOUCKAN instead applies tanh within each univariate branch. Consequently, every remains univariate and bounded, while the normalized average in (7) confines to . The construction therefore satisfies condition (ii) while providing the appropriate input domain for the outer Chebyshev expansion. Although this direct construction satisfies both requirements, it assigns a complete inner network to every input dimension, causing the inner-block parameter count to grow proportionally with .
To address this problem, we turn to Lorentz's variant of KART [33], which states that the inner functions can be chosen independently of the input dimension up to per-dimension constants,
In this representation, the same inner functions are used for every input dimension, while the constants distinguish their contributions. Laczkovich [34] extended this result by allowing the constants to depend on both the dimension and the branch through .
Following this construction, we replace the independent inner networks with a single trainable network that is evaluated on every input dimension (see Figure 1). The outer block remains unchanged, with one branch-specific function for each branch as defined in (9).
In the resulting formulation, each dimension carries one trainable vector , and its branches are obtained through a diagonal specialization of the shared functions,
Here, denotes the diagonal matrix with entries , and acts elementwise. Every dimension therefore evaluates the same functions and rescales their outputs through . These coefficients are the trainable counterparts of Laczkovich's constants. Since each branch remains a univariate function of , condition (ii) is preserved.
Sharing the inner network also reduces the parameter count. Let denote the number of trainable parameters in one complete inner network, and let denote the width of its trunk. The independent specialization assigns one complete network to every input dimension and requires parameters. The full-head specialization shares the trunk but retains one dimension-specific linear head , requiring parameters. The diagonal specialization (11) replaces each full head with scalars and requires parameters. Finally, the rank-one specialization imposes and requires parameters, recovering the sharing pattern of the Lorentz–Laczkovich form in (10).
Together, these choices define a hierarchy from independent per-dimension networks to the compact rank-one formulation. The inner parameterization can therefore be selected according to the required flexibility and available parameter budget. All four parameterizations retain bounded univariate branches and the polynomial outer functions in (9), so conditions (i) and (ii) hold throughout the hierarchy. The rank-one class is contained in every richer parameterization. Its universal approximation property therefore extends to the complete hierarchy (Theorem 3 and Remark 1). Section 4.1 compares their finite-parameter accuracy and cost quantitatively.
3.2. Exact expectation via binomial moment recursion
We assume a factorizing input density, . The expectation of every TOUCKAN parameterization in Section 3.1 then reduces exactly to one-dimensional leaf moments. The factorization makes the coordinates mutually independent, enabling the dimensionwise recursion below. The complete derivation, numerical-stability analysis, and pseudocode (Algorithm 1) are provided in Appendix E.
Each Chebyshev polynomial admits the monomial form with fixed integer coefficients . Substituting it into the outer expansion (9) and applying linearity of expectation to (7) gives
so the entire computation reduces to the moments of each combination variable for . Since expanding the power directly by the multinomial theorem would generate cross terms, the moments are assembled one dimension at a time. To simplify the notation, we absorb the normalization of the combination layer into the branches by defining , which gives . The moments of the partial sums then obey the binomial recursion
Notice that we can apply this recursion since and are independent under a factorizing density. It is initialized by and terminates at , yielding the moments . The implementation uses the equivalent centered recursion derived in Appendix E.1 to keep the intermediate sums bounded.
Each leaf moment is a univariate integral evaluated with an M-node Gaussian quadrature rule matched to the marginal . We use Gauss–Legendre quadrature for uniform marginals and Gauss–Hermite quadrature for Gaussian marginals. These leaf integrals are the only quantities discretized in the moment calculation. The recursion (14) and reduction (13) are algebraically exact in the resulting leaf moments. The computed expectation is therefore exact for the quadrature-induced discrete product measure. Its continuum error is the corresponding one-dimensional quadrature error, which decays spectrally in M for the smooth branches used here.
The quadrature rule controls only the error in evaluating the trained surrogate. For an underlying target approximated by , the error of the computed value decomposes into a surrogate approximation term and a quadrature term,
The first term measures the error of the fitted surrogate, whereas the second is the one-dimensional quadrature error. Because the quadrature term decays spectrally with M, it becomes negligible once the leaf integrals are sufficiently resolved, leaving the fitted-surrogate error as the dominant contribution. Further quadrature refinement cannot reduce this error. Improving the estimate instead requires a more accurate surrogate fit, which motivates the strong optimization procedures used in our experiments. Appendix F measures both contributions against exact and independent high-resolution references.
Substituting the moments into (13) yields the expectation of the surrogate without Monte Carlo sampling or multidimensional quadrature. The calculation requires DM inner-block evaluations and arithmetic operations. For fixed P and M, the arithmetic cost is proportional to DQ. The resulting recursion realizes the general leaf-replacement identity (B.10), established in Appendix B, for the TOUCKAN architecture.
3.3. Exact variance via cross-moment recursion
The same moment framework also gives the variance, . Computing the second moment extends the recursion of Section 3.2 from individual combination variables to pairs. Appendix E provides the complete derivation and pseudocode (Algorithm 2).
Collecting powers of the Chebyshev expansion (9) writes each outer block in monomial form, . Squaring and taking the expectation termwise gives
We call the cross-moments between pairs of combination variables. Although the input coordinates are independent, and depend on the same coordinates and are therefore generally dependent. Their cross-moments cannot in general be assembled from the individual moments computed in Section 3.2, so the binomial recursion must be extended to pairs.
The joint moments of the partial-sum pairs obey the bivariate recursion
This is the bivariate analogue of (14), which is recovered by setting . The recursion is initialized by \mathbb{E}[S_{1,q}^p S_{1,q'}^p'] = \nu_{1,q,q'}^{(p,p')} and delivers all cross-moments at the final coordinate.
Despite the bivariate recursion, each joint leaf moment remains a univariate integral because both factors depend only on the scalar coordinate . These moments are evaluated with the same measure-matched quadrature used for the marginal leaf moments in Section 3.2.
Substituting the cross-moments into (16) and subtracting the squared expectation computed in Section 3.2 yields the variance,
As in Section 3.2, the cross-moment recursion is algebraically exact in the joint leaf moments. The computed variance is therefore exact for the quadrature-induced discrete product measure, while its continuum integration error is inherited from the same one-dimensional quadrature rules. The calculation involves no Monte Carlo sampling or multidimensional integration and requires arithmetic operations. For fixed P and M, this cost is proportional to . The construction extends to the r-th moment of f by propagating joint moments of r-tuples of combination variables. For fixed r, the resulting cost remains polynomial in D, Q, and P. The first- and second-moment recursions provide the algebraic machinery used below to enforce conserved integrals and normalization.
3.4. Exact enforcement of conserved integrals
The expectation recursion also makes it possible to enforce linear integral constraints. Consider a function on a box domain whose weighted spatial integral must remain constant in time,
where the weight factorizes as . The choice gives the total mass, while gives the first spatial moment in coordinate . For a TOUCKAN surrogate, the same dimensionwise recursion evaluates . Let follow (7) with input vector , so that the complete input dimension is and time has index . Each combination variable then contains one time branch and one branch for every spatial coordinate,
As in Section 3.2, we absorb the normalization into every branch by defining for . At fixed , the time branch is a scalar, whereas each spatial branch depends on only one coordinate. Expanding the outer Chebyshev polynomials therefore reduces to weighted integrals of powers of , which the binomial recursion assembles from one-dimensional leaf integrals. Relative to Section 3.2, the marginal density is replaced by the weight , while the time branch contributes the known powers in place of moments. The resulting weighted leaf moments and combination-variable moments are
Here, is the weighted counterpart of the moment from Section 3.2. The recursion requires the weight to factorize but not to be positive, so signed factors such as are admissible. Substituting these weighted moments into (13) gives
This expression is differentiable with respect to the network parameters and time. Its weighted leaf moments are evaluated by one-dimensional quadrature, and the complete calculation has the same arithmetic cost as the expectation recursion in Section 3.2.
The deterministic evaluation of allows the conservation law (19) to be imposed by a final output reprojection. At each time, the drift is . We remove it by subtracting a multiple of a fixed correction profile , whose spatial form determines how the correction is distributed. The coefficient is chosen so that the correction carries exactly the drift and requires only . For total mass, gives . The constrained surrogate is
Equation (23) satisfies the prescribed functional for every value of the trainable parameters. Because the weighted leaf moments are evaluated by one-dimensional quadrature, the reprojection is exact for the quadrature-discretized functional. Conservation of the continuum integral (19) inherits the accuracy of those quadrature rules. The correction is differentiable with respect to the network parameters and can therefore be treated as part of the network during training.
3.5. Exact density estimation: normalization as a hard constraint
The conserved functional in Section 3.4 is linear and can be enforced by an additive reprojection. A normalized density must instead remain nonnegative and integrate to one. Existing model classes handle this normalization in different ways. Energy-based models [41, 42] generally require sampling when estimating an intractable partition function. Normalizing flows [43] avoid direct integration by restricting the architecture to invertible maps with tractable Jacobians, while penalty formulations enforce unit integral only approximately. For a TOUCKAN surrogate, the normalizer is the second moment computed by the cross-moment recursion of Section 3.3. Normalization can therefore be enforced multiplicatively by division.
Let be a factorizing base density and let be a TOUCKAN (7). Define the normalized model
The denominator is supplied by (16) and the cross-moment recursion (17). The model is well defined whenever , a condition that fails only when vanishes -almost everywhere. Under this condition, squaring guarantees , while division by the second moment enforces for every parameter value. Numerically, this identity is exact for the quadrature-discretized normalizer, and continuum normalization inherits the accuracy of the one-dimensional quadrature rules. Because the denominator is recomputed from the current parameters, normalization holds throughout training and does not depend on the optimizer.
The cross-moment recursion evaluates as a deterministic, differentiable function of the trainable parameters with arithmetic cost. For fixed and , this cost is proportional to . Gradients therefore pass directly through the normalizer during training.
For any nonzero scalar , the transformation leaves unchanged. Global scale is therefore removed from the represented density rather than controlled by an auxiliary constraint. In variational problems such as quantum eigenvalue problems, where , normalization requires no separate loss term. The deterministic denominator also avoids the sampling floor introduced by a Monte Carlo estimate of the normalizer. This hard-normalized representation underlies the Schrödinger eigensolver evaluated in Section 4.4.
4. Results
All experiments use the two-block TOUCKAN architecture introduced in Section 3.1, with the inner-block specialization stated for each case. The implementation uses JAX/Flax;
benchmark definitions and implementation details are provided in Appendix H and Appendix I, respectively.
4.1. Parameter efficiency
Table 1: Parameter efficiency of the four TOUCKAN inner-block specializations on the Lüthen benchmark at . The table reports trainable parameters, relative test error, and relative errors of the analytically propagated mean and variance against exact references. All variants share the same outer block and moment recursion. Error columns report the mean standard deviation over five random seeds, and bold marks the best mean in each column.
| Specialization and inner block | Params | rel. | rel. error | Var[f] rel. error | |
|---|---|---|---|---|---|
| Independent | [32] | 41,796 | |||
| Full-head | 19,072 | ||||
| Diagonal | [34] | 3,533 | |||
| Rank-one | [33] | 2,733 | |||
We evaluate the parameter–accuracy trade-off of the inner-block hierarchy on the Lüthen benchmark [44] at , whose mean and variance are available exactly. The comparison includes the independent, full-head, diagonal, and rank-one specializations defined in Section 3.1. Only the inner parameterization changes. All variants use the same outer block and SOAP training protocol [45] across five random seeds. The benchmark, data preparation, and complete training configuration are provided in Appendix H.1 and Appendix I.1.
For every trained surrogate, the analytically propagated moments agree with a -sample Monte Carlo estimate of the same network to within one Monte Carlo standard error. This independent check confirms that the errors against the exact benchmark moments are dominated by surrogate fit rather than moment propagation. The mean and variance together evaluate in 0.02 s, and the ordering of the four specializations is preserved in every seed.
The diagonal specialization uses 11.8 times fewer parameters than the independent specialization while matching its variance accuracy within seed variability. At this seed count, the independent, full-head, and diagonal variants are statistically indistinguishable in variance accuracy, with mean relative errors near . The rank-one specialization reduces the parameter count only modestly beyond the diagonal form but increases the relative error to approximately .
This finite-budget loss does not contradict the universal-approximation result in Appendix D. It is consistent with the rank-one structure, in which the per-dimension arguments are collinear before the tanh and can distinguish shape differences only through saturation. On this benchmark, the diagonal coupling is therefore the least parameterized specialization that matches the richer variants in variance accuracy while maintaining a sub-percent relative error. We consequently use the diagonal specialization for the high-dimensional inference experiments in Section 4.2.
4.2. Tractable inference
Using the diagonal specialization selected in Section 4.1, we evaluate tractable inference across on three benchmarks. To test performance under two factorizing input densities, we use the Lüthen [44] and Bratley [46] functions with uniform inputs and the Oakley-O'Hagan-type function [47] with Gaussian inputs. All three admit exact means and variances, providing reference values for the propagated moments. Their definitions and exact reference calculations are given in Appendix H.1–Appendix H.3. The diagonal architecture remains compact at these dimensions, making second-order optimization with SSBroyden computationally feasible and thereby further reducing the optimization error of the fitted surrogate. The complete training procedure is summarized by Algorithm 3 in Appendix I.2.
The recursions directly compute the mean and raw second moment . At , the deterministic estimates overlap the exact references for both quantities across all three benchmarks, whereas the Monte Carlo estimates remain visibly dispersed at (Figure 2).
Table 2 extends this comparison across all four dimensions and reports the variance derived from the two propagated moments.
Table 2: Relative errors of the expectation and variance for the three benchmarks across . The surrogate column reports the test relative error. TOUCKAN columns report one deterministic propagation through the trained surrogate. MC (median) is the median error over 200 independent runs of the true integrand, each with samples (Appendix I.2). TOUCKAN is more accurate than the median Monte Carlo estimate in every case. For , it outperforms all 200 Monte Carlo mean replications and all but at most one variance replication. At , it outperforms at least of the mean and of the variance replications. The variance entries marked with are limited by floating-point roundoff in the second-moment recursion rather than by the surrogate.
| Benchmark | Surrogate rel. | rel. error | Var[] rel. error | |||
|---|---|---|---|---|---|---|
| TOUCKAN | MC (median) | TOUCKAN | MC (median) | |||
| Lüthen | ||||||
| Bratley | ||||||
| Oakley | ||||||
Across dimensions, the propagated mean errors range from to and the variance errors from to , remaining below the median fixed-budget Monte Carlo error in every case. The median across replications characterizes the typical error of one fixed-budget Monte Carlo run. Even after all 200 Monte Carlo runs are averaged at a cost of evaluations (Figure 3), the deterministic mean remains more accurate in every case except Bratley at . The deterministic variance is less accurate only for Bratley at and . These exceptions are confined to Bratley, which has the largest surrogate errors at the affected dimensions.

Figure 2: Analytical TOUCKAN moments and Monte Carlo convergence at . Rows correspond to the Lüthen, Bratley, and Oakley–O'Hagan benchmarks, while columns show the mean and raw second moment. Blue dots show 20 independent Monte Carlo estimates of the true integrand at each sample size up to , and the blue shaded region marks their envelope. The red line is the exact value, and the black dashed line is the deterministic TOUCKAN estimate. The Monte Carlo envelope contracts at the expected rate but remains visibly dispersed at the largest budget. The TOUCKAN estimate overlaps the exact value in all six panels without additional sampling during moment evaluation.
The comparison reflects different error sources. At the fixed sampling budget, the Monte Carlo median remains near across benchmarks and dimensions. Once the one-dimensional quadrature is resolved, the propagated errors instead follow the relative error of the surrogate, consistent with the decomposition in Section 3.2 and the sensitivity analysis in Appendix F. The variance at D = 50 is the exception. There the recursion for the second moment reaches a floating-point roundoff floor before the surrogate error, so the two marked entries of Table 2 overstate the error of the surrogate itself. When roundoff is negligible, improving the deterministic estimate requires a more accurate surrogate, whereas reducing the sampling error requires additional true-function evaluations.
MC (1 run) MC (avg. of 200) TOUCKAN
time [s]
rel. error
rel. error

D
D
D
Figure 3: Cost and accuracy of TOUCKAN propagation and Monte Carlo across . Rows denote benchmarks and columns report wall time, mean error, and raw-second-moment error. MC (1 run) uses the time of one run and the median error across 200 independent runs. MC (avg. of 200) reports the total time and error obtained by averaging those runs. TOUCKAN reports one warm evaluation of the compiled deterministic recursions, excluding one-time JIT compilation. The reported timings do not include surrogate training. One TOUCKAN evaluation is up to 2,600 times faster than the 200-run Monte Carlo average. For the mean and raw second moment, TOUCKAN matches or improves the averaged Monte Carlo estimator's accuracy except for Bratley at . Timings were measured on one NVIDIA L40S GPU.
Figure 3 reports wall time and accuracy for the mean and raw second moment, the two quantities evaluated directly by the recursions. One deterministic propagation takes approximately one millisecond at D = 5 and less than one second at D = 50. TOUCKAN is up to 2,600 times faster than the 200-run Monte Carlo average. For the mean and raw second moment, TOUCKAN matches or improves the averaged Monte Carlo estimator's accuracy except for Bratley at D = 50, with errors up to times smaller in the remaining cases.
These comparisons concern inference after the surrogate has been trained. Monte Carlo provides a basic sampling reference for the true integrand, whereas TOUCKAN evaluates moments of the fitted surrogate without additional queries to the original model. The same distinction applies to randomized quasi-Monte Carlo, whose comparison is reported in Appendix G. Both direct sampling methods require access to the true function at the chosen sampling points. The RQMC comparison uses up to evaluations per run at prescribed low-discrepancy points. Obtaining these evaluations can be prohibitive for expensive simulations, while fixed experimental observations or archived data generally do not coincide with the required locations. TOUCKAN instead reuses the trained surrogate for repeated moment evaluation.
4.3. Exact mass conservation: Cahn–Hilliard equation
(a) Reference

(b) Prediction

(c) Error
(d) Loss

(e) Relative error
(f) Mass drift

MLP (unconstrained)
TOUCKAN (independent)
TOUCKAN (full-head)
TOUCKAN (diagonal)
TNN (constrained)
Figure 4: Cahn–Hilliard equation with the exact-mass reprojection. (a)–(c): reference solution, learned surrogate, and absolute approximation error on a logarithmic color scale for the independent TOUCKAN of Table 3. (d), (e): training loss and relative error for the five parameter-matched models of Table 3. The dashed line marks activation of the exact-mass reprojection for the constrained models. The MLP remains unconstrained throughout. (f): 512-node quadrature mass drift over time. Every model with the exact-mass reprojection holds this quadrature mass at machine precision, while the unconstrained MLP baseline drifts at the level of its field error.
Beyond post-training inference, deterministic moment propagation can enforce integral constraints throughout training. We demonstrate this capability using the one-dimensional Cahn–Hilliard equation for a double-well potential,
With periodic boundary conditions and the initial condition , the solution conserves the total mass . We impose this invariant using the exact-mass reprojection of Section 3.4 with and , so every projected output has total mass for every parameter value. The Fourier-spectral reference conserves mass to below , and the complete problem and implementation are described in Appendix I.3.
We compare an unconstrained MLP baseline, a tensor neural network (TNN) [26] that we modify to enforce the same exact-mass construction, and three TOUCKAN specializations. The TOUCKANs use the independent, full-head, and diagonal inner blocks defined in Section 3.1. The TNN represents the solution as a sum of separable products in t and x, so its mass becomes a weighted sum of one-dimensional spatial factor integrals and the same reprojection applies directly. All five models have approximately 15,000 trainable parameters and receive the same total second-order optimization budget. Table 3 reports their field errors and mass drift, while the complete architectures, the TNN mass construction, and the training protocol are given in Appendix I.3.
Table 3: Field accuracy and mass conservation for the Cahn–Hilliard benchmark. Relative and errors are measured against the Fourier-spectral reference, while the mass column reports the worst-case drift under the 512-node quadrature used by the reprojection. All models have approximately 15,000 trainable parameters and receive the same total second-order optimization budget. The constrained models conserve the quadrature mass to machine precision, and for the TOUCKANs independent rules with 1024–8192 nodes confirm the same precision for the continuum integral (Appendix F). For comparison on the same problem, the specialized backward-compatible PINN (bc-PINN) method [48] reports a relative error of . Bold marks the lowest field errors; all constrained mass drifts are at machine precision.
| Model | Params | rel. | ||
|---|---|---|---|---|
| MLP (unconstrained) | 14,928 | |||
| TNN (constrained) [26] | 14,753 | |||
| TOUCKAN (independent) | 14,840 | |||
| TOUCKAN (full-head) | 15,328 | |||
| TOUCKAN (diagonal) | 14,912 |
All three TOUCKAN variants conserved mass to machine precision under the exact-mass reprojection, despite their different field errors. The constrained TNN matched this behavior with a drift of , confirming that the reprojection is not specific to TOUCKANs and applies to any architecture whose mass integral is tractable. For the TOUCKANs, independent quadrature refinements confirmed continuum conservation beyond the 512-node rule used during training, with drift remaining near (Appendix F, Figure F.8). By contrast, the unconstrained MLP baseline exhibited a mass drift of , comparable to its field error.

Figure 5: Schrödinger eigenvalue problem in , 3, and 5 (columns). Top row: maximum error in the Gram entries versus number of function evaluations, against converged tensor-product references (, , and nodes): four independent Monte Carlo runs (red, up to samples), tensor-product Gauss–Hermite quadrature with nodes (blue), and the exact cross-moment recursion (star), which reaches , , and with 256, 384, and 640 univariate evaluations, respectively (the value is limited by the convergence of the -node reference itself). The horizontal axis counts integrand evaluations: the TOUCKAN-based recursion additionally performs cross-moment arithmetic outside this count, and its full evaluation, including that arithmetic, completes in 1–3 ms per case. Middle row: convergence of the four trainable eigenvalues to the exact spectrum (dotted lines) from a common initialization below the spectrum. Bottom row: training convergence, showing the relative error of the eigenfunctions, the relative eigenvalue error averaged over the four states, and the off-diagonal Gram residual . The dashed line marks the switch from first- to second-order optimization (S2). Together, these results show that deterministic Gram evaluation avoids both the Monte Carlo sampling floor and tensor-product growth while all four eigenpairs converge simultaneously.
Hard conservation remained compatible with accurate field reconstruction. The independent TOUCKAN achieved the lowest relative error, , while the unconstrained MLP baseline achieved the lowest error, . Among the constrained TOUCKANs, field accuracy followed the parameter–accuracy hierarchy observed in Section 4.1. Although the TNN admits the same exact-mass construction, its relative error of lies more than an order of magnitude above that of the independent TOUCKAN at the same parameter count and optimization budget. Figure 4 summarizes the field reconstruction, training histories, and mass conservation.
4.4. Exact normalization: the Schrödinger eigenvalue problem
Deterministic moment propagation can also enforce normalization, extending its role from conservation laws to the admissibility of eigenstates. We consider the time-independent Schrödinger equation on ,
We seek the lowest eigenpairs of a coupled harmonic oscillator with . The dense rotation couples all input coordinates, so neither the potential nor its eigenfunctions are separable in the original variables. Undoing this rotation nevertheless provides closed-form reference eigenpairs, allowing precise evaluation of a genuinely multivariate problem. The complete construction is given in Appendix I.4.
A neural eigensolver must learn each eigenvalue jointly with its eigenfunction while excluding zero, repeated, and higher-energy solutions. This requires normalized and mutually orthogonal states in addition to a small equation residual. The formulation of Jin et al. [49] enforces these integral constraints through sampled penalties and obtains states sequentially through an orthogonality loss, patience-based solution recognition, and symmetry switching. Its reported experiments are restricted to one-dimensional equations.
TOUCKAN represents all states with a single network in the hard-normalized form from (24). The Gaussian density captures the decay of the bound states, while the cross-moment recursion evaluates the complete Gram matrix deterministically at every training step. Normalization therefore holds by construction, and orthogonality is imposed through the off-diagonal Gram entries without sampling noise. The Schrödinger-equation residual in (I.3) constrains each learned pair . The trace is the summed energy of the learned subspace, and by the Ky Fan principle its minimum is attained by the span of the lowest eigenstates [50]. All eigenpairs are optimized jointly from the first iteration, without an eigenvalue scan or sequential deflation. Sampling is used only to evaluate and the Hamiltonian matrix in (I.5), whereas every norm and overlap is evaluated deterministically. The derivation of the trace term and the complete loss and training procedure are given in Appendix I.4.
Table 4 reports the lowest four eigenpairs in , 3, and 5. Their mean relative eigenvalue errors are , , and , respectively. For comparable one-dimensional eigenvalue problems, including the radial reduction of the hydrogen atom, Jin et al. [49] reported errors of roughly one percent. Within each dimension, the eigenvalue errors are approximately the square of the eigenfunction errors, consistent with the quadratic accuracy of a variational formulation.
The loss and eigenpair errors increase together with dimension, whereas the parameter count and training time grow only mildly. The constraint errors follow a different pattern. Normalization is built into the representation, so the values in Table 4 measure agreement
Table 4: Accuracy of the lowest four eigenpairs of the coupled oscillator in , and 5. Eigenvalue errors are reported for each state, and the eigenfunction row reports the worst case over the four states. Normalization is evaluated using independent tensor-product Gauss–Hermite rules with , , and nodes and reports the largest residual over the four states. Orthogonality is the maximum absolute off-diagonal entry of the normalized Gram matrix at the final training iteration, evaluated by the deterministic recursion at . The normalization value is limited by the reference quadrature rather than the cross-moment recursion. Training times were measured on one NVIDIA H200 GPU.
| Trainable parameters | 10,963 | 13,075 | 17,299 |
| Relative error | |||
| Relative error | |||
| Relative error | |||
| Relative error | |||
| Eigenfunction rel. error | |||
| Normalization, | |||
| Orthogonality, | |||
| Final training loss | |||
| Training time | 909 s | 1307 s | 2191 s |
with an independent tensor-product quadrature rather than optimization of a normalization penalty. Orthogonality also remains several orders below the eigenfunction error. The deterioration at therefore reflects the approximation and optimization achieved under the tested configuration rather than a failure of deterministic constraint evaluation.
Figure 5 directly compares the cost of evaluating the Gram matrix. Monte Carlo remains near error after samples, while tensor-product quadrature converges spectrally but grows as . The cross-moment recursion instead reaches the reference accuracy using 128 univariate nodes per dimension, with complete evaluations taking 1–3 ms. Deterministic Gram evaluation therefore removes the sampling floor from normalization and orthogonality without incurring tensor-product growth.
The same figure shows all four trainable eigenvalues converging to the exact spectrum after joint optimization from the first iteration, without an eigenvalue scan or sequential deflation. The second-order stage produces the final decrease in the eigenfunction, eigenvalue, and orthogonality errors. Figure 6 confirms that the four three-dimensional eigenstates recover the corresponding modal structures. The two- and five-dimensional fields are shown in Figures I.9 and I.10 of Appendix I.4.

Figure 6: Lowest four eigenstates of the coupled three-dimensional oscillator on the plane: closed-form reference (left), learned surrogate (center), and absolute error on a logarithmic color scale (right). Each row is labeled by its learned eigenvalue . On this slice, the and states have similar projected profiles, while the Gram residuals in Table 4 quantify their full-dimensional distinction.
5. Summary
In this work, we introduced TOUCKANs, a class of KAN architectures that enable tractable evaluation of statistical quantities through a decomposable polynomial structure. Finite-degree polynomial outer functions allow the multinomial theorem to rewrite the architecture as a hierarchical sum-product representation, connecting Kolmogorov–Arnold superposition with tractable probabilistic circuits. TOUCKANs instantiate this principle within the two-block KKAN architecture using either independent per-dimension networks or shared inner networks motivated by the Lorentz–Laczkovich theorems. The shared formulations specialize each dimension through full-head, diagonal, or rank-one couplings, reducing the parameter footprint as the coupling becomes more restrictive. The universality proof applies to the most restricted rank-one subclass and therefore to the complete TOUCKAN hierarchy (Theorem 3 and Remark 1).
Under factorizing input measures, the resulting sum-product representation reduces expectations and higher moments to one-dimensional integrals over the network leaves. The binomial recursions assemble these quantities without constructing the fully expanded graph. Their algebra is exact in the evaluated leaf moments, while the continuum error is limited to the corresponding one-dimensional quadrature. Quantities usually estimated through sampling can therefore be evaluated deterministically at any stage of training or inference.
Across benchmarks with uniform and Gaussian inputs up to D = 50, the deterministic mean and variance errors remained below the median fixed-budget Monte Carlo errors in every case. Once the leaf quadrature was resolved, the remaining discrepancy followed the fitted-surrogate error rather than the propagation procedure. The one exception is the variance at D = 50, where the second-moment recursion reaches a floating-point roundoff floor before the surrogate error. The diagonal specialization provided the best tested parameter-accuracy balance for these high-dimensional experiments and kept second-order refinement computationally feasible [35]. In the lower-dimensional physics-informed problems, the richer independent and full-head couplings instead attained the lowest field errors. The inner parameterization therefore controls the finite-budget accuracy-cost trade-off, while the moment recursions remain unchanged across the hierarchy.
These benchmarks validate deterministic moment evaluation within an already-trained surrogate. Repeated moments can then be computed without new true-function evaluations, including when only fixed observations or archived simulation data are available.
Deterministic moment propagation also allows integral quantities to be enforced during training rather than approximated through sampled constraints. For the Cahn–Hilliard equation, the exact-mass reprojection conserved mass to machine precision, while the independent TOUCKAN attained a relative error of , more than two orders of magnitude below the PINN result reported on the same problem [48]. For the coupled Schrödinger problem, deterministic normalization and orthogonality, combined with the Ky Fan trace objective, enabled joint computation of the lowest four eigenpairs in , 3, and 5. These results extend deterministic moment propagation from post-training inference to structural conservation and normalization during training.
The branch count grows linearly with D, and the moment recursions have the polynomial costs derived in Section 3. In practice, the tighter limitation is the coverage of the joint input space during training. Tensorized or separable architectures such as TNNs and SPINNs can form a Cartesian grid of joint locations from n coordinate values along each axis [26, 27]. Thus, 100 values per coordinate span joint locations in three dimensions. TOUCKAN training instead evaluates complete coordinate tuples, so N collocation samples cover N joint locations and matching the same three-dimensional grid requires pointwise samples. Although moment propagation factorizes the polynomial expansion, the implemented forward surrogate sums the coordinate branches before evaluating the outer polynomial and does not retain the axis-wise Cartesian factorization used during TNN or SPINN training. Training coverage can therefore become the practical bottleneck even when moment propagation remains tractable. The current experiments show that sparse pointwise samples suffice for the smooth targets tested through D = 50, while targets with richer joint structure may require substantially larger training sets.
The present formulation assumes factorizing input measures, making correlated inputs a primary extension. Variable transformations, tractable conditioning, and marginalization could broaden the admissible distributions and support variance-based sensitivity analysis. Further work should address degenerate eigenspaces, architectures that scale to higher dimensions, and broader classes of decomposable neural networks. Together, these directions extend the connection between KAN-based scientific machine learning and tractable probabilistic circuits established here.
Data availability
To support reproducibility, the source code for our implementation and the associated data will be released publicly upon acceptance of the manuscript.
Acknowledgements
S.R. acknowledges support from the Austrian Science Fund (FWF) through the Erwin Schrödinger Fellowship [Grant DOI: 10.55776/J4774]. The authors acknowledge the support of the NIH grant R01AT012312, MURI/AFOSR FA9550-20-1-0358 project, the DOE-MMICS SEA-CROGS DE-SC0023191 award, and the ONR Vannevar Bush Faculty Fellowship (N00014-22-1-2795). L. Wang acknowledges the support from Singapore MOE AcRF Tier 2 Grant: MOE-T2EP20224-0012.
References
[1] Z. Liu, Y. Wang, S. Vaidya, F. Ruehle, J. Halverson, M. Soljacic, T. Hou, M. Tegmark, KAN: Kolmogorov–Arnold networks, in: International conference on learning representations, Vol. 2025, 2025, pp. 70367–70413.
[2] A. N. Kolmogorov, On the representation of continuous functions of many variables by superposition of continuous functions of one variable and addition, Translations American Mathematical Society 2 (28) (1963) 55–59.
[3] L. F. Guilhoto, P. Perdikaris, Deep learning alternatives of the Kolmogorov superposition theorem, in: The Thirteenth International Conference on Learning Representations (ICLR), 2025.
[4] Z. Chao, X. Liu, Z. Wu, X. Li, RBF-KAN: Radial basis function-Kolmogorov-Arnold networks, IEEE Internet of Things Journal (2026).
[5] Z. Bozorgasl, H. Chen, WAV-KAN: Wavelet Kolmogorov-Arnold networks, arXiv preprint arXiv:2405.12832 (2024).
[6] Y. Gao, M. K. Ng, V. Y. F. Tan, Low tensor-rank adaptation of kolmogorov-arnold networks, IEEE Transactions on Signal Processing 73 (2025) 3107–3123. doi:10.1109/TSP.2025.3588910.
[7] V. Ismailov, Necessary and sufficient conditions for universality of kolmogorov-arnold networks, arXiv preprint arXiv:2604.23765 (2026).
[8] S. A. Faroughi, F. Mostajeran, A. H. Mashhadzadeh, S. Faroughi, Kolmogorov-Arnold networks for data-driven, physics-informed, and deep-operator learning: A review, synthesis, and new analysis, Neural Networks (2026) 108791.
[9] A. Noorizadegan, S. Wang, L. Ling, J. P. Dominguez-Morales, A practitioner's guide to Kolmogorov–Arnold networks, Computer Science Review 62 (2026) 100991.
[10] K. Shukla, J. D. Toscano, Z. Wang, Z. Zou, G. E. Karniadakis, A comprehensive and fair comparison between mlp and kan representations for differential equations and operator networks, Computer Methods in Applied Mechanics and Engineering 431 (2024) 117290.
[11] B. Jacob, A. A. Howard, P. Stinis, SPIKANs: separable physics-informed Kolmogorov–Arnold networks, Machine Learning: Science and Technology 6 (3) (2025) 035060.
[12] D. W. Abueidda, P. Pantidis, M. E. Mobasher, DeepOKAN: Deep operator network based on Kolmogorov Arnold networks for mechanics problems, Computer Methods in Applied Mechanics and Engineering 436 (2025) 117699. doi:https://doi.org/10.1016/j.cma.2024.117699.
URL https://www.sciencedirect.com/science/article/pii/S0045782524009538
[13] J. Lee, Z. Liu, X. Yu, Y. Wang, H. Jeong, M. Y. Niu, Z. Zhang, Kano: Kolmogorov-arnold neural operator, ICLR 2026ArXiv:2509.16825 (2026).
[14] Z. Gao, G. E. Karniadakis, Scalable bayesian physics-informed kolmogorov-arnold networks, SIAM/ASA Journal on Uncertainty Quantification 13 (3) (2025) 1543–1577. arXiv:https://doi.org/10.1137/25M1729253, doi:10.1137/25M1729253.
[15] Uncertainty quantification with bayesian higher order relu-kans, Machine Learning: Science and Technology 6 (1) (2025) 015073.
[16] A. Mollaali, C. B. Moya, A. A. Howard, A. Heinlein, P. Stinis, G. Lin, Conformalized-kans: Uncertainty quantification with coverage guarantees for kolmogorov-arnold networks (kans) in scientific machine learning (2025). arXiv:2504.15240. URL https://arxiv.org/abs/2504.15240
[17] R. C. Smith, Uncertainty Quantification: Theory, Implementation, and Applications, SIAM, 2013.
[18] A. Saltelli, M. Ratto, T. Andres, F. Campolongo, J. Cariboni, D. Gatelli, M. Saisana, S. Tarantola, Global sensitivity analysis: The primer (2008).
[19] I. M. Sobol, Global sensitivity indices for nonlinear mathematical models and their monte carlo estimates, Mathematics and Computers in Simulation 55 (1-3) (2001) 271–280.
[20] B. Sudret, Global sensitivity analysis using polynomial chaos expansions, Reliability Engineering & System Safety 93 (7) (2008) 964–979.
[21] Y. Gal, Z. Ghahramani, Dropout as a bayesian approximation: Representing model uncertainty in deep learning, in: international conference on machine learning, PMLR, 2016, pp. 1050–1059.
[22] B. Lakshminarayanan, A. Pritzel, C. Blundell, Simple and scalable predictive uncertainty estimation using deep ensembles, Advances in Neural Information Processing Systems 30 (2017).
[23] A. G. Wilson, P. Izmailov, Bayesian deep learning and a probabilistic perspective of generalization, Advances in Neural Information Processing Systems 33 (2020) 4697–4708.
[24] M. Abdar, F. Pourpanah, S. Hussain, D. Rezazadegan, L. Liu, M. Ghavamzadeh, P. Fieguth, X. Cao, A. Khosravi, U. R. Acharya, et al., A review of uncertainty quantification in deep learning: Techniques, applications and challenges, Information fusion 76 (2021) 243–297.
[25] A. F. Psaros, X. Meng, Z. Zou, L. Guo, G. E. Karniadakis, Uncertainty Quantification in Scientific Machine Learning: Methods, Metrics, and Comparisons, arXiv:2201.07766 [cs] (2022). arXiv:2201.07766.
[26] Y. Wang, P. Jin, H. Xie, Tensor neural network and its numerical integration, arXiv preprint arXiv:2207.02754 (2022).
[27] J. Cho, S. Nam, H. Yang, S.-B. Yun, Y. Hong, E. Park, Separable physics-informed neural networks, Advances in Neural Information Processing Systems 36 (2024).
[28] Y. Choi, A. Vergari, G. Van den Broeck, Probabilistic Circuits: A Unifying Framework for Tractable Probabilistic Models, Tech. rep., University of California, Los Angeles (2020).
[29] J. Exenberger, S. Ranftl, R. Peharz, Deep polynomial chaos expansion, AISTATS 2026ArXiv preprint:2507.21273 (2026).
[30] H. Poon, P. Domingos, Sum-Product Networks: A New Deep Architecture (2012). arXiv:1202.3732.
[31] R. Peharz, S. Tschiatschek, F. Pernkopf, P. Domingos, On theoretical properties of sum-product networks, in: Artificial Intelligence and Statistics, PMLR, 2015, pp. 744–752.
[32] J. D. Toscano, L.-L. Wang, G. E. Karniadakis, Kkans: Kurkova-kolmogorov-arnold networks and their learning dynamics, Neural Networks 191 (2025) 107831.
[33] G. G. Lorentz, Metric entropy, widths, and superpositions of functions, The American Mathematical Monthly 69 (6) (1962) 469–485.
[34] M. Laczkovich, A superposition theorem of Kolmogorov type for bounded continuous functions, Journal of Approximation Theory 269 (2021) 105609.
[35] J. F. Urbán, P. Stefanou, J. A. Pons, Unveiling the optimization process of physics informed neural networks: How accurate and competitive can PINNs be?, Journal of Computational Physics 523 (2025) 113656.
[36] A. Jnini, E. Kiyani, K. Shukla, J. F. Urban, N. A. Daryakenari, J. Muller, M. Zeinhofer, G. E. Karniadakis, Curvature-aware optimization for high-accuracy physics-informed neural networks, arXiv preprint arXiv:2604.05230 (2026).
[37] J. D. Toscano, D. T. Chen, G. E. Karniadakis, ATHENA: agentic team for hierarchical evolutionary numerical algorithms, arXiv preprint arXiv:2512.03476 (2025).
[38] J. D. Toscano, Z. Chai, G. E. Karniadakis, GRAFT-ATHENA: self-improving agentic teams for autonomous discovery and evolutionary numerical algorithms, arXiv preprint arXiv:2605.11117 (2026).
[39] F. Girosi, T. Poggio, Representation properties of networks: Kolmogorov's theorem is irrelevant, Neural Computation 1 (4) (1989) 465–469.
[40] V. Kürková, Kolmogorov's theorem and multilayer neural networks, Neural Networks 5 (3) (1992) 501–506.
[41] Q. Liu, J. Xu, R. Jiang, W. H. Wong, Density estimation using deep generative neural networks, Proceedings of the National Academy of Sciences 118 (15) (2021) e2101344118.
[42] O. Rippel, R. P. Adams, High-dimensional probability estimation with deep density models, arXiv preprint arXiv:1302.5125 (2013).
[43] G. Papamakarios, E. Nalisnick, D. J. Rezende, S. Mohamed, B. Lakshminarayanan, Normalizing flows for probabilistic modeling and inference, Journal of Machine Learning Research 22 (57) (2021) 1–64.
[44] N. Lüthen, S. Marelli, B. Sudret, Sparse Polynomial Chaos Expansions: Literature Survey and Benchmark, SIAM/ASA Journal on Uncertainty Quantification 9 (2) (2021) 593–649.
[45] N. Vyas, D. Morwani, R. Zhao, I. Shapira, D. Brandfonbrener, L. Janson, S. Kakade, SOAP: Improving and stabilizing Shampoo using Adam, in: The Thirteenth International Conference on Learning Representations (ICLR), 2025.
[46] P. Bratley, B. L. Fox, H. Niederreiter, Implementation and tests of low-discrepancy sequences, ACM Trans. Model. Comput. Simul. 2 (3) (1992) 195–213.
[47] J. E. Oakley, A. O'Hagan, Probabilistic sensitivity analysis of complex models: a Bayesian approach, Journal of the Royal Statistical Society Series B: Statistical Methodology 66 (3) (2004) 751–769.
[48] R. Mattey, S. Ghosh, A novel sequential method to train physics informed neural networks for Allen-Cahn and Cahn-Hilliard equations, Computer Methods in Applied Mechanics and Engineering 390 (2022) 114474.
[49] H. Jin, M. Mattheakis, P. Protopapas, Physics-informed neural networks for quantum eigenvalue problems, in: 2022 International Joint Conference on Neural Networks (IJCNN), IEEE, 2022, pp. 1–8.
[50] K. Fan, On a theorem of Weyl concerning eigenvalues of linear transformations I, Proceedings of the National Academy of Sciences 35 (11) (1949) 652–655.
[51] L. Song, Z. Cheng, J. D. Toscano, L.-L. Wang, Explicit construction of approximate Kolmogorov superpositions with -smoothness, arXiv preprint arXiv:2508.04392 (2025).
[52] A. Vergari, Y. Choi, A. Liu, S. Teso, G. Van den Broeck, A Compositional Atlas of Tractable Circuit Operations for Probabilistic Inference, in: Advances in Neural Information Processing Systems, Vol. 34, Curran Associates, Inc., 2021, pp. 13189–13201.
[53] B. Wang, D. D. Mauá, G. Van den Broeck, Y. Choi, A compositional atlas for algebraic circuits, Advances in Neural Information Processing Systems 37 (2024) 141318–141355.
[54] A. de Colnet, S. Mengel, A compilation of succinctness results for arithmetic circuits, in: 18th International Conference on Principles of Knowledge Representation and Reasoning, KR 2021, 2021.
[55] O. Delalleau, Y. Bengio, Shallow vs. deep sum-product networks, Advances in neural information processing systems 24 (2011).
[56] G. Cybenko, Approximation by superpositions of a sigmoidal function, Mathematics of Control, Signals and Systems 2 (4) (1989) 303–314.
[57] K. Hornik, M. Stinchcombe, H. White, Multilayer feedforward networks are universal approximators, Neural Networks 2 (5) (1989) 359–366.
[58] R. E. Caflisch, Monte Carlo and quasi-Monte Carlo methods, Acta Numerica 7 (1998) 1–49. doi:10.1017/S0962492900002804.
[59] J. Dick, F. Y. Kuo, I. H. Sloan, High-dimensional integration: the quasi-monte carlo way, Acta Numerica 22 (2013) 133–288.
[60] I. M. Sobol', On the distribution of points in a cube and the approximate evaluation of integrals, USSR Computational Mathematics and Mathematical Physics 7 (4) (1967) 86–112. doi:10.1016/0041-5553(67)90144-9.
[61] A. B. Owen, Scrambled net variance for integrals of smooth functions, The Annals of Statistics 25 (4) (1997) 1541–1562. doi:10.1214/aos/1031594731.
[62] P. Virtanen, R. Gommers, T. E. Oliphant, M. Haberland, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser, J. Bright, S. J. van der Walt, M. Brett, J. Wilson, K. J. Millman, N. Mayorov, A. R. J. Nelson, E. Jones, R. Kern, E. Larson, C. J. Carey, I. Polat, Y. Feng, E. W. Moore, J. VanderPlas, D. Laxalde, J. Perktold, R. Cimrman, I. Henriksen, E. A. Quintero, C. R. Harris, A. M. Archibald, A. H. Ribeiro, F. Pedregosa, P. van Mulbregt, SciPy 1.0 Contributors, SciPy 1.0: fundamental algorithms for scientific computing in Python, Nature Methods 17 (2020) 261–272. doi:10.1038/s41592-019-0686-2.
[63] J. D. Toscano, D. T. Chen, V. Ooomen, J. Darbon, G. E. Karniadakis, A variational framework for residual-based adaptivity in neural pde solvers and operator learning, NPJ Artificial Intelligence 2 (1) (2026) 32.
[64] X. Chen, C. Liang, D. Huang, E. Real, K. Wang, Y. Liu, H. Pham, X. Dong, T. Luong, C.-J. Hsieh, Y. Lu, Q. V. Le, Symbolic discovery of optimization algorithms, Advances in Neural Information Processing Systems 36 (2023) 49205–49233.
Appendix A. Background
Appendix A.1. Kolmogorov–Arnold Networks
KANs are neural architectures motivated by the Kolmogorov–Arnold representation theorem [2]. The theorem states that any continuous multivariate function on a hypercube can be represented through superpositions of continuous univariate functions. In contrast to conventional multilayer perceptrons, where nonlinear activation functions are associated with nodes, KANs place learnable univariate nonlinear functions on the edges of the computational graph [1].
In practical deep KAN architectures [1], the representation is implemented layer-wise as
where the functions are learnable univariate transformations associated with edges between layers. Here, indexes layers, and and index neurons in layers and , respectively. This stacked construction departs from the theorem that motivates it: the representation (1) is a two-block structure, with a single level of inner functions and a single level of outer functions, whereas deep KANs compose many such layers into a deeply nested architecture. The departure also carries practical costs. The original KANs parameterize the edge functions with learnable B-splines, which are computationally expensive, and their performance degrades as the parameter count grows. Subsequent variants replace the splines with more efficient bases such as Chebyshev polynomials, whose recursive formulation restores stability in single precision [10], or radial basis functions; broad reviews of these variants are given in [8, 9], and necessary and sufficient conditions for the universality of KAN architectures are established in [7].
Kürková–Kolmogorov–Arnold networks (KKANs) [32] were introduced to return to the two-block structure of the theorem. Exact Kolmogorov representations are unsuited to learning, since the inner functions of the constructive proofs are highly non-smooth and carry no adjustable parameters, although explicit constructions of approximate superpositions with -smooth inner functions have recently been obtained [51]; following Kürková [40], KKANs sacrifice exactness and approximate both levels of the superposition with smooth learnable components, using robust multilayer perceptrons as inner functions and linear combinations of basis functions as outer functions. The resulting architecture is a universal approximator regardless of the choice of basis. Our construction builds on KKANs; the structural constraints that make statistical inference tractable are introduced in Section 3.1. These structural constraints lead to tractable inference with KANs generally; and work well in practice with KKANs specifically.
Appendix A.2. Sum-Product Networks and Tractable Inference
Sum–Product Networks (SPNs), more generally referred to as probabilistic circuits or tractable circuits, are deep computational architectures that represent multivariate functions through recursive compositions of sums and products over structured computational graphs. Originally introduced for tractable probabilistic inference, SPNs represent probability distributions through hierarchical decompositions into mixtures (sum nodes) and factorizations (product nodes). More generally, circuits provide a unifying framework for tractable probabilistic models [28, 52] and structured function representations [53, 54].
Let denote a circuit with computational graph and parameters , representing a function over input variables . Here, is an acyclic directed graph with three types of nodes: input nodes, sum nodes, and product nodes. Let denote the set of children of some node . An input node represents a parameterized function
over a subset of variables , referred to as its scope. Internal nodes recursively combine their children through weighted sums or products. A sum node computes
whereas a product node computes
The scope of an internal node is recursively defined as
Probabilistic circuits can be interpreted as neural architectures with additive and multiplicative interactions arranged hierarchically through depth, where expressive nonlinearities are localized at the input functions while multiplicative structure governs variable interactions. It follows immediately from this composition that the expressiveness of SPNs multiplies with every product node, and hence scales exponentially with depth [55].
Formally, decomposability requires
for all distinct children of every product node . In many applications, one additionally assumes structured-decomposability, meaning that product nodes with identical scope decompose variables in the same manner throughout the network.
Often, circuits are additionally assumed to satisfy smoothness, meaning that all children of a sum node possess identical scope [28]. While smoothness is not required for tractable integration itself, it ensures that the circuit defines a valid probabilistic model with well-defined marginalization and conditioning operations.
In the next section, we show that polynomial outer nonlinearities induce decomposable multiplicative structure in KANs by transforming sums of univariate inner functions into recursively separable product expansions.
Appendix B. Tractable Inference with Kolmogorov–Arnold Networks
Appendix B.1. Building intuition with shallow minimal-order networks
For the quadratic expansion (4), assuming factorizing integration measures, it follows that
Consequently, the Kolmogorov–Arnold representation acquires a decomposable multiplicative structure analogous to that appearing in sum–product networks and probabilistic circuits, and the -dimensional integral decomposes into algebraic terms, assembled from unique one-dimensional leaf moments per branch (the first and second moment of each leaf, with the cross terms reusing the first moments).
Appendix B.2. Higher orders
Consider an outer activation function as polynomial of order P, i.e.
where are coefficients and the order and the summation index can depend on q. For now, consider only the leading order. By the multinomial theorem we have
Identifying , each term again factorizes into products over disjoint variables, yielding decomposable structure and tractable integration under factorizing input measures.
If the outer activation is a quadratic polynomial, then we get products over pairs of univariate inner activation functions. If the outer activation is a cubic polynomial, then we get products over triples of univariate inner activation functions. More generally, we get sums over products , where is a node-specific index set (analogous to the children) and the cardinality of is the order of the polynomial defining the outer activation function. The exponent accounts for duplicatives, e.g. for the squared terms in the expanded form (4) (right hand side) and for the product of pairs for which . If the input probability density function factorizes as
then the expectations over these products decompose as
Thus far, we have only considered the leading order . The process is repeated analogously for the trailing orders , and distributivity of the integral with summation over the orders in (B.2), , is trivial.
In our implementation based on Kurkova-KANs, the inner activation functions are univariate multilayer perceptrons themselves, hence the one-dimensional integrals are computed numerically. In this case, inference remains tractable but becomes near-exact, rather than exact, due to the numerical error of the one-dimensional integrals. We will see in the experiments that this is a good compromise trading inference tractability against expressivity of the architecture. We note that these low-dimensional integrals, depending on the inference task, usually need to be computed only once.
Appendix B.3. Deep layers
This principle immediately extends also to multiple layers. Consider a nested application of a polynomial outer activation as in a deep KAN as in (A.1). Define the outer activation function as in (B.2), however now the summation index additionally depends on the layer index . We refrain from overloading the notation further via e.g. and instead demonstrate the principle. For simplicity, we first discuss the leading order at layer , which we equip with a layer-index, i.e. . Note that the order can depend on the layer and the edge index, but for simplicity we assume that all edges in a given order are a polynomial of the same order. Then the leading order of layer in (A.1) becomes
and the leading order of layer becomes
If we integrate this expression, by linearity of expectation and Fubini's theorem under mild integrability conditions, we can exchange the order of summation and integration,
We can then apply again the multinomial theorem (B.3) to the leading order above and reduce the expression as discussed in Appendix B.2. In addition, we can apply the multinomial theorem to all trailing orders in (B.7) since all orders have polynomial form.
Appendix B.4. Implementation
Repeating the procedure across all orders and layers decomposes a TOUCKAN into low-dimensional components. We defer the complete formulation for arbitrary orders and layers to Appendix C. In practice, the KAN computational graph and the repeated binomial convolutions of Section 3.2 perform this bookkeeping.
We illustrate this informally as follows. Consider a definition of via a composition operator of the set of leaves , where the operator is defined by the composition implied by the circuit and the set of powers indicating the monomial orders after expansion:
Under factorizing priors, we write
In other words, the expectation of the composition of leaf functions can be written as the composition of the expectation of (powers of ) the leaf functions. Therefore, the circuit implementation replaces each leaf by the expectation of its required powers and then performs a forward pass through the circuit. Leaf replacement is a general property of probabilistic circuits [28], while TOUCKANs must additionally track the powers through the binomial recursion of Section 3.2. We verify (B.10) numerically in Section 4.2.
Appendix B.5. Computational complexity scaling
For a shallow TOUCKAN with Q outer branches and polynomial degree P, the multinomial expansion of each outer activation produces
separable monomial terms. Hence the total algebraic cost scales as , which is for fixed P. In the classical KAN width , this gives . The one-dimensional moment evaluations scale as when M quadrature points are used per leaf moment if distinct leaves are used per branch. For leaves with analytic expressions of the integral, we have M = 1. Therefore, direct quadrature with cost is replaced by
which is polynomial in D for fixed polynomial degree. We note that the scaling above applies to the explicitly expanded shallow TOUCKAN representation. In deep TOUCKANs, the relevant complexity measure becomes the size of the induced decomposable computational graph generated through recursive multinomial expansion across layers. Accordingly, tractability refers to polynomial complexity in the size of this expanded representation.
The computational complexity of the proposed moment-propagation procedure depends on the number of decomposed monomial terms induced by the polynomial outer activations. For a polynomial order P and input dimension D, the multinomial expansion generates combinatorial sums over separable products, while each resulting integral factorizes into low-dimensional integrals over the individual variables. Most importantly, the inference procedure scales linearly with the number of quadrature points M. In contrast to direct quadrature, whose complexity typically scales exponentially with dimension, the TOUCKAN decomposition replaces high-dimensional integration by compositions of one-dimensional moment evaluations and algebraic operations through the computational graph. Consequently, the dominant computational cost shifts from high-dimensional sampling to the evaluation of the induced low-dimensional moments and the combinatorial expansion itself. In practice, this yields substantial computational savings in high-dimensional uncertainty propagation problems compared to brute-force Monte Carlo or dense quadrature methods.
For a deep TOUCKAN, the relevant complexity is the size of the expanded decomposable computational graph. Let denote the number of separable monomial terms required to represent one node at layer after recursive multinomial expansion. For input dimension , layer widths , and polynomial degrees , the first layer satisfies
For deeper layers, each node receives inputs, each of which is itself represented by separable terms. Therefore, a degree- polynomial expansion produces the upper bound
In the simple case of uniform width and uniform polynomial degree , this implies
for fixed P. Thus, exact moment propagation is polynomial in the input dimension for fixed depth and fixed polynomial degree, but the degree of this polynomial grows exponentially with depth. This quantifies the sense in which deep TOUCKANs are tractable with respect to the expanded decomposable representation; uncontrolled increases in both depth and polynomial order can lead to rapid combinatorial growth.
Appendix C. General tractable moment propagation in TOUCKANs
In this appendix, we formalize the tractable inference property of TOUCKANs for arbitrary depth and polynomial order.
Appendix C.1. Expanded decomposable representation
Consider a TOUCKAN represented through a computational graph with leaves and polynomial outer activations. After recursive multinomial expansion of all polynomial activations, the resulting function admits the representation
where are coefficients, are nonnegative integer exponents, and each factor depends only on a single variable .
Equation (C.1) is the fully expanded decomposable representation induced by the recursive multinomial expansion of the TOUCKAN computational graph.
Appendix C.2. Moment propagation operator
Let be a factorizing probability density of the form
Define the leaf moment
The expectation of the TOUCKAN can then be written as
Appendix C.3. Main theorem
Theorem 1 (Tractable moment propagation in TOUCKANs). Consider a KAN with arbitrary depth and polynomial outer activations. Assume:
-
all outer activations are finite-degree polynomials,
-
all leaf functions are integrable and their powers are integrable,
-
the input density factorizes as in (C.2).
Then every statistical moment of the form
For polynomial h, this integral reduces exactly to one-dimensional leaf moments of the form (C.3). These moments are combined through a finite algebraic composition. Consequently, the high-dimensional integral requires only low-dimensional moment evaluations followed by a forward pass through the expanded decomposable computational graph.
Appendix C.4. Proof
Proof. We proceed by induction over the computational graph.
For the base case, the leaves depend only on single variables:
Hence their moments are one-dimensional integrals by definition.
Now assume that all nodes up to layer admit decomposable representations of the form
Consider a node at layer generated through a polynomial activation
Substituting the inductive hypothesis yields powers of sums of decomposable monomials. Applying the multinomial theorem recursively produces again a finite sum of products of univariate functions,
Therefore decomposability is preserved through every layer.
Since the density factorizes, Fubini's theorem implies
Thus every monomial term factorizes into one-dimensional moments.
Linearity of integration then yields
which proves the claim.
For a polynomial observable , the composition is again a finite polynomial composition of the same leaves, so the preceding argument yields the general claim.
Appendix D. Universal approximation of TOUCKANs
This appendix proves universal approximation for the complete TOUCKAN hierarchy by establishing density of its most restricted rank-one subclass. In this subclass, every dimension evaluates the same Q shared profiles and specializes them through scalars that are shared across branches. The argument follows the two-block approximation strategy of Kürková [40], but is anchored at a superposition theorem of Laczkovich [34] whose inner data have the shared-profile structure of the TOUCKAN inner block and carry the smallest sufficient branch count available for it.
Theorem 2 (Laczkovich [34], Theorem 1.1). Let , let be an integer, and let be distinct positive numbers. Then there exist continuous functions with the following property: for every bounded there is a continuous function such that
The constants and the profiles are universal. Only the outer function depends on . We anchor the argument at Theorem 2 because it carries the smallest sufficient branch count among the superposition theorems of [34]. Its constants are shared across branches, so the network constructed below lies in the rank-one subclass of the diagonal coupling (11). Density of the full diagonal class then follows a fortiori. No monotonicity property is needed in the argument below. Theorem 1.2 of [34] additionally provides monotone profiles at the larger branch count discussed in Remark 2. We now define the set of functions realizable by the TOUCKAN architecture.
Definition 1 (TOUCKAN approximator set). Let denote a class of shared inner networks (in our implementation, basis-embedded MLPs of size ) such that is dense in under the uniform norm . Multi-output perceptrons have this property [56, 57], and the basis-embedded networks of our implementation inherit the property whenever the embedding is injective on . For define
where , , and , exactly as in (7)–(11).
Theorem 3 (Universal approximation of TOUCKANs). Let and let , where is the smallest integer exceeding . Then is dense in with : for every and every there exist and such that
Remark 1 (Universality across the TOUCKAN hierarchy). Let , , , and denote the rank-one, diagonal, full-head, and independent TOUCKAN classes, respectively. Their parameterizations give the nested function classes
The first inclusion follows by imposing . The diagonal construction is recovered from the full-head formulation by restricting each head to a scaled shared map, while an independent inner network can reproduce any shared-trunk construction. The proof of Theorem 3 establishes density of in . Every class containing it is therefore also dense in . Thus, all four TOUCKAN parameterizations are universal approximators, and their differences concern finite-parameter accuracy and efficiency rather than asymptotic expressivity.
Proof. Let and . By the Tietze extension theorem, extends to a bounded continuous function on with the same supremum norm, so Theorem 2 applies with : there are positive constants , continuous profiles , and such that, writing
(D.5) we have on .
Step 1 (compact ranges). Each is continuous, hence bounded on : set and , so that with . The outer function is uniformly continuous on ; let denote its modulus of continuity there.
Step 2 (inner approximation). Define the padded target , whose last components vanish (these channels receive zero outer coefficients in Step 5). By the density assumption on there exists with for a fixed below; in particular and on .
Step 3 (scalars and tanh linearization). For a scale fixed below, set the trainable scalars to , independent of , so the constructed network lies in the rank-one subclass . Each branch argument then satisfies , and since ,
so that . Note that always (the tanh bounds each branch and the average preserves the bound), and .
Step 4 (rescaled outer function). Since , define for , so that . Provided , Step 3 gives ; since , both arguments lie in , where the modulus of Step 1 applies, and therefore
The argument of tends to zero as and . Indeed, the factor multiplying in cancels the division by . We may therefore first fix and then so that and the right-hand side is below .
Step 5 (outer approximation). By the Weierstrass approximation theorem there is a polynomial of some degree , written in the Chebyshev basis as , with ; for the unused branches set .
Step 6 (assembly). The resulting satisfies, for every ,
where the second term uses . This completes the proof.
Remark 2. The branch count required by Theorem 3 is , the smallest integer exceeding and asymptotically about 3.41 D. This count is inherited from Theorem 2, and Laczkovich notes that it is probably not sharp [34]. Our Kürková-variant TOUCKAN architecture replaces the single outer function in (D.1) with one Chebyshev expansion
per branch. Because this architecture contains the common-outer-function class as a special case, the density statement holds a fortiori. The branch counts used in the experiments were selected for each problem and are reported in Appendix I; these finite-budget choices do not test the sharpness of the sufficient bound. Because the scalars constructed in Step 3 are shared across branches, the proof establishes density of the rank-one subclass ( ). Universality therefore holds throughout the complete hierarchy, and the preference for the diagonal form in Section 4.1 rests on finite-budget accuracy rather than asymptotic expressivity. Finally, the same argument applies verbatim to Theorem 1.2 of [34]. Its steps are the Tietze extension, padded vector approximation, small- linearization, and Chebyshev outer approximation. In that theorem, the constants carry one value per dimension–branch pair and directly mirror the diagonal coupling (11), at the larger branch count , asymptotically about 6.83 D.
Remark 3. The universal approximation result is inherited from the underlying Kolmogorov–Arnold representation theorems and therefore applies to continuous functions. This setting is appropriate for the scientific machine learning applications considered here, where the quantities of interest are typically continuous or smooth fields. It is more restrictive than general machine learning settings that may contain discontinuous decision boundaries. This limitation is a general aspect of Kolmogorov–Arnold representations and is not unique to our KAN variants.
Appendix E. Moment-propagation algorithms
This appendix derives, in full detail, the exact evaluation and propagation of the first and second moments of a TOUCKAN surrogate. Exactness refers to the propagation: every recursion below is algebraically exact in the leaf moments, which are themselves one-dimensional integrals evaluated by M-node Gaussian quadrature. Thus, all computed moments are exact for the quadrature-induced discrete measure and approximate the continuum moments with spectral accuracy in M (cf. the error decomposition (15)). Appendix E.1 derives the first moment and concludes with Algorithm 1. Appendix E.2 derives the second moment and the variance and concludes with Algorithm 2. Throughout, the input follows the factorizing density , so the coordinates are mutually independent, and the surrogate is the TOUCKAN
where are the normalized branches and is the Chebyshev polynomial of degree in monomial form, with fixed integer coefficients .
Appendix E.1. Exact first moment
Reduction to scalar moments. The outer blocks are polynomial in the combination variables, so the first moment of the network reduces to scalar moments of each . Applying linearity of expectation to (E.1) and substituting the monomial form of ,
The remaining task is therefore to compute the moments for .
Branch isolation. The computation of these moments requires the individual branches. In practice, however, all branches are computed at the same time: the inner block is a single fused map , and no individual branch is evaluated separately. Because each branch depends only on its own coordinate, the contribution of dimension can nevertheless be recovered by evaluating the fused map with every other slot held at a fixed reference point, chosen as the origin. Define
both vectors in . The evaluation contains the branch of dimension together with the constant contribution of the zeroed branches. Summing over therefore counts this constant times instead of once, which yields the structural identity
The identity follows from the additive structure of the combination layer alone and involves no approximation. In particular, it holds for any inner block whose branches are univariate, and therefore for all variants used in this paper.
Centering. The recursion is not run on the raw evaluations , because they share the common offset K and this offset destroys the computation in high dimension. The failure is quantified at the end of this subsection. Instead, define the centered branches
Componentwise, , so each centered branch is the branch itself with its value at the origin removed. With this notation the isolation identity (E.4) becomes
The remaining derivation follows this decomposition. The moments of the centered sum are computed first, and the deterministic shift by is reintroduced at the end.
Centered leaf moments. For each dimension and each branch, define the centered leaf moments
Each is a one-dimensional integral. It is evaluated by a Gaussian quadrature rule with M nodes whose weight function matches the marginal , namely Gauss–Legendre for uniform inputs and Gauss–Hermite for Gaussian inputs. This quadrature is the only discretization in the entire procedure; everything downstream is algebraically exact in the computed leaf moments and is evaluated in double precision. The integrand follows from (E.3) and (E.5): the fused inner block is evaluated at the M nodes of each dimension, and the baseline K is subtracted. This stage costs DM evaluations of the inner block and operations for the moment sums.
Binomial recursion. The moments of are assembled one dimension at a time. Define the centered partial sums
The partial sum depends only on , while the next branch depends only on . Under a factorizing density, the two are therefore independent random variables. Raising the sum to the power with the binomial theorem and using this independence,
(E.9)
The first line uses the binomial theorem and linearity of expectation. The second line uses independence: the expectation of a product of independent variables is the product of their expectations. The result is a dynamic program over the input dimensions. It is initialized at the first dimension, , and swept forward for , carrying only the moments of the current partial sum. The combinatorial growth of a direct multinomial expansion is thereby replaced by repeated binomial convolutions, at a total cost of .
K-shift and outer contraction. Because K is a deterministic constant, the moments of follow from the centered moments through one further binomial expansion,
Substituting the shifted moments into the reduction (E.2) yields the exact first moment,
The shift and the contraction add operations, independent of D.
Numerical stability. We evaluate the recursion in a centered form, which keeps every intermediate quantity bounded: each centered increment entering the dynamic programs is bounded by , since , and the partial sums remain bounded by 2. The common offset K re-enters only through the well-conditioned shift (E.10) and its bivariate analogue (E.16). This centered evaluation reproduces the exact variance to a relative error of order at every dimension tested through (Table 2: , , , at ). All moment evaluations are performed in double precision. The complete procedure is summarized in Algorithm 1.
Algorithm 1 Exact first moment of a TOUCKAN surrogate.
Require: fused inner block ; outer coefficients ; Chebyshev monomial coefficients ; quadrature rules matched to the marginals
Ensure:
1: baseline (E.3)
2: for ; do isolated, centered branches (E.5)
3: node in slot
4: end for
5: for ; ; do centered leaf moments (E.7)
6: 1D quadrature, total
7: end for
8: for do binomial recursion (E.9), total
9: for initialize with the first dimension
10: for do
11: for in place, descending in
12: end for
13: end for
14: for all K-shift (E.10)
15: return outer contraction (E.11)
Appendix E.2. Exact second moment and variance
The variance requires the second moment, since with the first moment computed in Appendix E.1. The derivation repeats that of the first moment for pairs of combination variables. Branch isolation and centering carry over unchanged, so the derivation below starts from the centered branches of (E.5) and from the baseline of (E.3).
Monomial collapse. For the second moment, the outer blocks are first collapsed into a single polynomial per branch. Substituting the monomial form of into the outer expansion of (E.1) and collecting powers gives
The full surrogate is then an ordinary polynomial in the combination variables, .
Reduction to cross-moments. Squaring this polynomial and taking the expectation termwise gives
The cross-moments do not factor into the moments of Appendix E.1. Although the coordinates are independent, the combination variables and are built from the same coordinates and are therefore dependent random variables. The recursion must consequently track pairs.
Joint centered leaf moments. For each dimension and each pair of branches, define
Both factors depend on the same scalar coordinate, so each remains a one-dimensional integral. It is evaluated with the same measure-matched quadrature and the same centered branch evaluations as the marginal leaf moments (E.7), so no new inner-block evaluations are needed. The first moments are recovered as the special case , and the symmetry under restricts the computation to the pairs . The cost is .
Bivariate recursion. Fix a pair and recall the centered partial sums (E.8). The pair depends only on , while the branch pair depends only on . Under a factorizing density, the two groups are therefore independent of each other, even though the variables within each group are dependent. This is the reason the recursion must carry joint quantities rather than only univariate ones. Expanding both powers with the binomial theorem and factorizing the expectation across the two groups,
(E.15)
Setting recovers the marginal recursion (E.9). The recursion is initialized with \mathbb{E}[S_{1,q}^p S_{1,q'}^p'] = \widehat{\nu}_{1,q,q'}^{(p,p')} and swept forward for , carrying the joint moments c_{q,q'}^{(p,p')} = \mathbb{E}[S_{j,q}^p S_{j,q'}^p'] of the current partial-sum pair, at a total cost of .
Bivariate K-shift. Because and are deterministic constants, the cross-moments of follow from the centered joint moments by expanding both binomials,
The shift adds operations, independent of D.
Assembly. Substituting the shifted cross-moments into the reduction (E.13) gives the second moment. Subtracting the squared first moment (E.11) gives the variance,
The numerical-stability considerations of Appendix E.1 apply unchanged. The complete procedure is summarized in Algorithm 2.
Algorithm 2 Exact variance of a TOUCKAN surrogate.
Require: fused inner block ; outer coefficients ; Chebyshev monomial coefficients ; quadrature rules matched to the marginals ; baseline , centered branch evaluations , and mean from Algorithm 1
Ensure:
1: for all monomial collapse (E.12)
2: for ; pairs ; do joint centered leaf moments (E.14)
3: 1D quadrature, total
4: end for
5: for pairs do bivariate recursion (E.15), total
6: for
7: for do
8: for in place, descending
9: end for
10: K-shift (E.16)
11: remaining pairs by symmetry
12: end for
13: assemble (E.13)
14: return exact variance (E.17)
Appendix F. Sensitivity analysis
Every expectation reported in this work is assembled from one-dimensional leaf moments evaluated by M-node Gaussian quadrature, so the order M is the single accuracy parameter of the inference stage (cf. the error decomposition (15)). This appendix measures the sensitivity of the computed moments to M for one representative of each problem family: the Lüthen benchmark at D = 50 (uniform inputs, Gauss–Legendre) and the Schrödinger Gram matrix at D = 5 (Gaussian inputs, probabilists’ Gauss–Hermite). We reuse the trained checkpoints of Section 4 without any retraining. Errors are measured against true references rather than against self-convergence: the exact closed-form mean and variance of the Lüthen function, and an independent -node tensor-product Gauss–Hermite integration of the trained surrogate (roughly nodes) for the Schrödinger Gram matrix.
As shown in Fig. F.7, all quantities governed by quadrature truncation converge spectrally, as predicted. At the Lüthen mean and variance errors decay rapidly and saturate from onward at and (the values reported in Table 2). Beyond this point, the first (training) term of (15) dominates and additional nodes have no effect. The Schrödinger Gram error decays from at to a floor near for . The production order carries a true relative error of in the Frobenius norm. The production orders of these representative cases therefore sit well inside the saturated regime, where the leaf-moment quadrature contributes negligibly to the reported errors.
(a) Lüthen, D=50

(b) Schrödinger Gram, D=5
Figure F.7: Sensitivity of the computed moments to the one-dimensional quadrature order M. (a) Lüthen function at D = 50: relative error of the recursion mean and variance against the exact closed-form references. (b) Schrödinger Gram matrix at D = 5: relative error against an independent tensor-product Gauss–Hermite integration of the same surrogate. Dashed vertical lines mark the production orders (M = 200 and M = 128) used for the examples in the main paper.
Conservation under quadrature refinement. The same refinement analysis applies to the conserved mass of the Cahn–Hilliard experiment (Section 4.3). There, the constraint is imposed by the reprojection (23) against a 512-node midpoint rule, so the machine-precision drift in Table 3 is, by itself, the discrete identity evaluated against the enforcing functional. To probe the continuum quantity independently, we re-evaluate the trained constrained solutions on midpoint rules from N = 8 up to N = 8192 nodes (Figure F.8a). Every rule other than the N = 512 production rule is independent of the enforcement, so the convergence trend across them validates the continuum value independently of the enforcing functional. Because the spatial branch enters only through the periodic Fourier embedding, the integrand is smooth and periodic and the midpoint rule converges spectrally, but non-monotonically: the error at N nodes is the sum of the integrand's Fourier modes that alias onto the mean , so it oscillates with N as different modes fall in and out of resonance. The worst-case drift falls from at N = 8 to the double-precision floor ( ) by , beyond which the integrand carries no resolvable spectral content and refining further moves the result only at the level of floating-point rounding. The production rule N = 512 thus sits far inside the converged regime. We confirm the mechanism quantitatively: at a fixed time the measured midpoint error matches the sum of the aliased Fourier modes, evaluated from an independent FFT of the field, to within 1% at every N. The moment-recursion mass and the direct nodal sum agree to throughout. The 512-node enforcement therefore coincides with the continuum mass to machine precision: mass conservation is a property of the solution, not an artifact of the functional used to impose it.
(a) Continuum mass drift vs. N

(b) Mass drift over time, by rule
Figure F.8: Continuum mass conservation of the Cahn–Hilliard surrogate under quadrature refinement, independent of the 512-node rule used for enforcement. (a) Worst-case mass drift of the constrained TOUCKAN as the evaluation grid is refined from to midpoint nodes. The decay is spectral but non-monotone, the signature of periodic-quadrature aliasing: the error at nodes is the sum of the integrand’s Fourier modes with . It reaches a converged plateau near by , approximately one order above machine epsilon (dotted). The production rule (dashed) lies far inside the converged regime. (b) Mass drift over time , evaluated on four independent midpoint rules ( ). The under-resolved rule stays above the floor, while , the production rule , and coincide at the double-precision floor at every time instance, so conservation holds pointwise in and independently of the evaluation rule.
Appendix G. Randomized quasi-Monte Carlo comparison
The analytical benchmarks also permit direct integration by randomized quasi-Monte Carlo (RQMC), which can converge much faster than Monte Carlo on smooth integrands [58, 59]. We use Sobol' sequences [60] with Owen's nested scrambling [61], as implemented in SciPy [62], and 200 independent scramblings for each case. Each run reports the sample mean and sample variance. Gaussian inputs are obtained through the standard normal quantile function. Table G.5 reports results for complete digital nets with points alongside the TOUCKAN and MC results. Table G.6 compares this budget with , matching the number of evaluations in each MC run. The latter truncates the digital net and loses its balance, increasing the median errors by up to two orders of magnitude on the smooth Lüthen function.
Table G.5: Relative errors against the exact mean and variance for three benchmarks across . The surrogate column reports the test relative error. TOUCKAN evaluates moments of the trained surrogate by deterministic propagation. MC and RQMC instead evaluate the true integrand and report the median error over 200 independent replications. Each MC run uses pseudorandom samples, while each RQMC run uses a complete Owen-scrambled Sobol' net with points. Thus, the TOUCKAN errors include the discrepancy between the surrogate and the target, whereas the sampling errors arise from direct integration of the target. TOUCKAN has lower errors than the median MC estimate in every case and than the median RQMC estimate in most cases. The variance entries marked with are limited by floating-point roundoff in the second-moment recursion rather than by the surrogate.
| Benchmark | Surrogate rel. | rel. error | Var[] rel. error | |||||
|---|---|---|---|---|---|---|---|---|
| TOUCKAN | MC (median) | RQMC (median) | TOUCKAN | MC (median) | RQMC (median) | |||
| Lüthen | ||||||||
| Bratley | ||||||||
| Oakley | ||||||||
RQMC substantially reduces the sampling errors relative to MC on these benchmarks. At , its median mean errors are of order or smaller for Lüthen and or smaller for Bratley and Oakley–O'Hagan, while its median variance errors range from to . TOUCKAN has lower errors in most cases. The exceptions are the Lüthen means at and 25, the Bratley means at and 50 and variances at and 50, and the Oakley–O'Hagan variance at . The Lüthen means are already accurate to with both methods, while the two Oakley–O'Hagan variance errors are both approximately . At the matched budget, TOUCKAN has lower errors in 22 of the 24 cases, with both Bratley moments at as the exceptions.
Table G.6: Median relative errors of RQMC over 200 scramblings at the matched budget and at , for the true integrands of Table G.5.
| Benchmark | rel. error | Var[] rel. error | ||||
|---|---|---|---|---|---|---|
These results concern different computational settings. MC and RQMC evaluate the true integrand, whereas TOUCKAN evaluates moments of an already-trained surrogate. Direct sampling is useful when new function evaluations are affordable. When only fixed observations or expensive simulation data are available, repeated surrogate moments and integral constraints can instead be evaluated without new calls to the original model. The analytical benchmarks have inexpensive integrands, so the measured sampling times do not represent the cost of generating data from an expensive simulation. At the same sample count, one RQMC replicate costs 0.83–0.98 times one MC replicate for the uniform benchmarks and approximately 1.55 times for the Gaussian benchmark, where the quantile transform dominates. As in the main timing comparison, surrogate training is excluded, and TOUCKAN times refer to warm evaluations with one-time compilation excluded. These timings therefore describe moment evaluation after surrogate construction rather than the total cost of solving a new integration problem.
Appendix H. Problem descriptions
This appendix defines the three benchmark problems used in our experiments. All three share the structural properties that make exact reference moments available: the input coordinates are independent, and the function is built from sums and products of univariate terms, so every moment factorizes into one-dimensional integrals that are available in closed form or computable to machine precision by one-dimensional Gaussian quadrature. The reference means and variances below are therefore exact, not Monte Carlo estimates.
Appendix H.1. Lüthen function (uniform inputs)
The first problem is the high-dimensional polynomial-chaos benchmark of Lüthen et al. [44],
with inputs
The interaction terms use fixed indices, so the indicators , , and define the function at every dimension: the first three interaction terms are present in all experiments reported here (), while the terms and contribute only once and , respectively. The same indicators apply to the reference moments below. By independence and linearity, the expectation separates term by term,
where every factor is a one-dimensional integral over (or for ) available in closed form, including the logarithmic term. The exact variance follows in the same way: expanding and applying independence reduces to a finite combination of products of one-dimensional moments, and . In practice we evaluate all one-dimensional integrals to machine precision with 200-node Gauss–Legendre quadrature. Table H.7 lists the resulting reference moments for every dimension reported in Section 4.
Table H.7: Exact reference moments of the Lüthen function (H.1) for every reported input dimension, in physical units.
| D | 5 | 12 | 20 | 25 | 50 |
|---|---|---|---|---|---|
| -2.80818 | -13.66773 | -22.02031 | -30.58880 | -70.99621 | |
| Var[f] | 6.39955 | 7.55664 | 34.18982 | 26.33687 | 20.07893 |
Appendix H.2. Bratley function (uniform inputs)
The second problem is the alternating sum of nested products of Bratley et al.,
Since the coordinates are independent with , each nested product has mean , and the exact mean is the geometric sum
For the second moment, the product of two nested products squares the shared coordinates and leaves the remaining ones linear; with ,
so the exact variance is the finite double sum
Appendix H.3. Oakley-O'Hagan function (Gaussian inputs)
The third problem is an Oakley–O’Hagan-type function with standard Gaussian inputs,
The coefficients are drawn once from a fixed seed (NumPy RandomState(7)) and then held fixed. Their realized values will be reproducible from the code repository released upon acceptance: , and is symmetric with diagonal entries and off-diagonal entries , where . This scaling keeps the mean and the variance of of order one at every dimension . Grouping the univariate terms as , the standard Gaussian identities , , , , and give the exact mean
The ANOVA decomposition of (H.8) truncates exactly at order two: the main effects are the centered , and the only interactions are the pair terms with for . The exact variance is therefore
with and
Appendix I. Implementation details
This appendix records the architecture and training configuration of the experiments in Section 4.
Reproducibility conventions. All experiments run in double precision. Here, one iteration denotes one optimizer update computed on one batch of the stated size; all training totals below are iteration counts. Reported moment-evaluation timings are warm times of the compiled kernels, and the one-time JIT compilation is reported separately where relevant. The quadrature orders of the moment recursions are: 200-node Gauss–Legendre for the uniform-input benchmarks (Lüthen and Bratley, used both for the propagated moments and for the reference moments), 128-node Gauss–Hermite for the Gaussian-input benchmark (Oakley–O'Hagan) and for the Schrödinger Gram matrix, and a 512-node midpoint rule for the periodic Cahn–Hilliard integrand. All Gauss–Hermite rules are the probabilists' rule, with weight function and weights normalized by , so that each rule integrates against the standard normal density. Random seeds: five seeds (111, 222, 333, 444, 555) for the parameter-efficiency study (Section 4.1) and 111 for the remaining function-approximation benchmarks (Section 4.2), 9999 for the Cahn–Hilliard and Schrödinger experiments, and NumPy RandomState(7) for the fixed problem data (the Oakley coefficients and the oscillator rotation), whose realized values will be reproducible from the code repository released upon acceptance.
Error metrics. Throughout the experiments, the accuracy of a scalar quantity s (an eigenvalue, a moment, a conserved integral) is reported as the relative error against its reference ,
and the accuracy of a field u as the relative error against its reference ,
with the norms evaluated on the test grid or test set specified in each experiment.
Appendix I.1. Parameter-efficiency analysis
All four inner-block variants of Section 4.1 share the same backbone. The shared trunk is , where emb is a Chebyshev feature embedding of degree 15 and the MLP has three hidden layers of width with tanh activations. The number of branches is , and the outer block evaluates per-branch Chebyshev expansions of degree , for outer parameters, identical across all variants. The variants differ only in how the per-dimension branches are obtained from the trunk: independent per-dimension networks , about 2,057 parameters per dimension); a full linear head per dimension with , 861 parameters per dimension); the diagonal specialization (11) (41 scalars per dimension, applied to the shared head ); and the rank-one Lorentz form , one scalar per dimension). In every case the inner block remains a sum of univariate branches, and the branch decomposition used by the moment recursion was verified against the forward pass to on all trained checkpoints.
Training uses Latin hypercube samples in batches of 20,000 and 10,000 iterations of the SOAP optimizer [45] in double precision. Each variant is trained from five random seeds (111, 222, 333, 444, 555), and the error columns of Table 1 report the mean ± standard deviation across them. The inner block uses an initial learning rate of with exponential decay by a factor 0.9 every 5,000 steps; the outer block is updated by a separate SOAP instance with the same schedule scaled by 0.2. Per-sample variational residual-based attention (vRBA) weights [63] are updated as with and . The relative test errors in Table 1 are computed on 20,000 independent Latin hypercube points, and the analytical moments of each trained surrogate are cross-checked against a -sample Monte Carlo estimate of the same network, agreeing to within one Monte Carlo standard error.
Appendix I.2. High-dimensional benchmarks
The twelve surrogates of Section 4.2 span three benchmarks and . Each uses the diagonal inner block (11) with a shared trunk of three hidden layers of width and tanh activations, followed by a linear head producing Q branch features; the outer block evaluates per-branch Chebyshev expansions of degree . The Lüthen models use . The Oakley–O’Hagan models use the same rule except at , where , while the Bratley models use . At , these choices give ( ) for Lüthen and Oakley–O’Hagan and ( ) for Bratley, with 17,783, 18,482, and 25,007 trainable parameters, respectively. For the uniform problems the trunk input is a Chebyshev feature embedding of degree 15 on inputs affinely normalized to ; for the Gaussian problem, whose inputs are unbounded, the embedding is replaced by random Fourier features whose frequencies are drawn from with bandwidth . Targets are standardized with the exact reference moments of Appendix H.1–Appendix H.3, and for the Gaussian case the training inputs are drawn by mapping a Latin hypercube sample through the standard normal quantile function.
Training proceeds in three stages in double precision (seed 111), on Latin hypercube samples with batch size 20,000; the full procedure is summarized in Algorithm 3. Stage one runs 5,000 iterations of Adam with initial learning rate , exponentially decayed by a factor 0.9 every 5,000 steps, with per-sample vRBA weights [63] (quadratic potential, , ). Stage two polishes all parameters with the self-scaled Broyden (SS-Broyden) quasi-Newton method with backtracking line search [35, 36] for 10,000 iterations, executed in chunks of 100 iterations with the dense inverse-Hessian approximation carried across chunks and a fresh batch drawn per chunk. Stage three refits the last linear layer (the outer Chebyshev coefficients) by ridge-regularized least squares with regularization parameter on the full training set, which is an exact linear solve since the outer block is linear in its coefficients. Relative test errors are computed on 20,000 independent Latin hypercube points. Across all twelve checkpoints, the branch decomposition used by the moment recursion agrees with the forward pass to , and the analytical moments at the production quadrature orders agree with -sample Monte Carlo estimates of the same networks to within one Monte Carlo standard error. The warm moment evaluation takes 0.3–0.6 s per model. One-time JIT compilation takes 1–38 s and is excluded from the reported warm timings.
Sampling baselines. The Monte Carlo columns of Table 2 use 200 independent runs of the true integrand with pseudo-random samples each. Each run reports the sample mean and the unbiased sample variance.
Algorithm 3 Three-stage training for the high-dimensional benchmarks.
Require: training set (Latin hypercube, standardized targets); TOUCKAN parameters with outer Chebyshev coefficients ; batch size ; Adam iterations ; SSBroyden iterations in chunks of ; ridge parameter
Ensure: trained surrogate , ready for the moment evaluation of Algorithms 1 and 2
1: Stage 1 — Adam warm-up with vRBA [63]:
2: for do
3: draw a batch of size ; compute residuals
4: vRBA weights, quadratic potential
5: update with Adam on lr , decay 0.9 per 5,000 steps
6: end for
7: Stage 2 — SSBroyden polish [36]: ,
8: for do
9: draw a fresh batch of size
10: run SSBroyden iterations with backtracking line search on the plain MSE, starting from
11: carry the dense inverse-Hessian approximation: , reset if not positive definite
12: end for
13: Stage 3 — outer-layer refit: with frozen, assemble the outer Chebyshev features on the full training set
14: exact linear solve
Appendix I.3. Cahn–Hilliard equation
The reference solution of Section 4.3 is computed with a Fourier-spectral exponential time-differencing (ETDRK4) solver on 512 spatial points with internal step , stored as 201 snapshots on a uniform time grid; its own mass drift is below . The conserved value is the grid quadrature of the snapshot. Training uses Latin hypercube collocation points in with batch size 20,000, and the 512 reference points of the slice as initial-condition points. Periodicity in is enforced exactly by a periodic Fourier-feature embedding of the spatial input, so the loss has only two terms: the mean-squared residual of (25) in conservative form, with the fourth derivative obtained by nesting forward-mode directional derivatives, and the initial-condition mean-squared error. The residual term carries per-point vRBA weights [63] (exponential potential; , in the first-order stage, in the quasi-Newton stage), which also define the sampling distribution of the batches. The initial-condition term carries a global weight set adaptively by a gradient-norm ratio in the first-order stage and fixed at 100 in the quasi-Newton stage. All runs use double precision and seed 9999.
All five models are parameter-matched at approximately 15k. The MLP and the TOUCK-ANs use tanh activations, and the TNN uses sine activations. The independent TOUCKAN assigns one inner network per input dimension: the spatial branch wraps its input in the periodic embedding ( ), the time branch acts on the raw coordinate, and each branch is an MLP with four hidden layers of width 40 followed by a head producing Q = 40 bounded channels, for 14,840 parameters. The full-head and diagonal variants share one embedding and one trunk between the two input dimensions, as in Appendix I.1. The shared embedding spans the full period in x, which preserves the hard periodicity. The time interval covers at most half of that period. On this interval the embedding is smooth and one-to-one. For the time coordinate it therefore acts as an ordinary, non-periodic feature expansion. The full-head model uses a trunk of six hidden layers of width 40 with one linear head per dimension producing Q = 64 channels (15,328 parameters). The diagonal model uses a trunk of six hidden layers of width 44, a single shared head, and one trainable scalar per dimension and channel (14,912 parameters). All three TOUCKANs use outer Chebyshev expansions of degree P = 9. The MLP baseline applies the periodic embedding ( ) to the spatial coordinate, concatenates it with t, and processes the result with five hidden layers of width 59 (14,928 parameters). The TNN [26] represents the field as the separable sum of rank R = 24 with trainable coefficients . Two factor networks with three hidden layers of width 53 produce the temporal factors and the spatial factors , and the spatial input passes through the same periodic embedding ( ), which keeps the periodicity exact. Both networks use orthogonal weight initialization with biases at 0.5, and each factor is normalized by its root-mean-square value on its one-dimensional quadrature grid (the 512-node spatial rule and a 256-node midpoint rule in time), following [26]. The model has 14,753 parameters.
The exact-mass reprojection implements Section 3.4 with and . At each loss evaluation, the spatial branch is evaluated at 512 midpoint quadrature nodes. The branch depends on only through the periodic embedding, so the integrands are smooth and periodic and the midpoint rule converges spectrally. The weighted moments then follow from the binomial recursion, with the time branch contributing known powers, and the contraction with the outer Chebyshev coefficients through the monomial change of basis yields in closed form (22). The output is the projection (23) with . The correction is constant in , so it is invisible to the spatial derivatives in the residual and enters only through the time derivative. Its cost is one evaluation of the spatial branch at the 512 quadrature nodes per loss call. The constraint is thus enforced exactly for the 512-node quadrature functional. Since the integrand is smooth and periodic, the continuum mass is conserved to the spectral accuracy of the midpoint rule, which we verify directly by refining the integration grid (Appendix F, Figure F.8).
The same reprojection carries over to the TNN because its representation is already separable. The mass functional factorizes as , where the one-dimensional factor integrals are evaluated on the same 512-node midpoint rule, and the output is projected exactly as in (23). As in the TOUCKAN case, the cost is one evaluation of the spatial factor network at the quadrature nodes per loss call.
The constrained TOUCKANs are trained by fitting first and projecting second. Each architecture is first trained without the constraint: 6,250 iterations of the Lion optimizer [64] (initial learning rate , exponential decay by 0.9 every 5,000 steps, outer coefficients at 20% of the base rate), followed by 20,000 SSBroyden iterations [36] with backtracking line search, executed in chunks of 100 with the inverse-Hessian approximation carried across chunks and a fresh vRBA-sampled batch per chunk. The exact-mass reprojection is then applied, the converged parameters are loaded unchanged (the constrained and unconstrained models share the same parameter tree), and the model is polished for a further 20,000 SSBroyden iterations under the constraint. The order matters: training the constrained model from a random initialization stalls, because the projection makes the output invariant to the spatially constant mode of the raw network, and this null space blocks the escape path that the unconstrained optimization uses early in training. The warm start instead places the model on the constraint manifold near the solution, and the second-order stage only polishes. The constrained TNN follows the same fit-then-project schedule as the TOUCKANs. The MLP baseline, which carries no constraint, is trained from scratch with the same pipeline at 6,250 first-order and 40,000 SSBroyden iterations, so every model in Table 3 receives the same total second-order budget. Errors are computed on the exact reference grid without interpolation, and the mass drift is the maximum over the snapshots of the grid-quadrature deviation from .
For reference, the unconstrained twins at the warm-start point (6,250 Lion and 20,000 SSBroyden iterations, before the exact-mass reprojection is applied) reach relative errors of (independent), (full-head), and (diagonal), with mass drifts of , , and , respectively. The TNN twin reaches with a mass drift of . In each case the unconstrained drift sits at the level of the field error, consistent with the soft-conservation behavior of the MLP baseline, while the constrained continuation reduces the drift to machine precision (Table 3). Because the constrained polish also continues the optimization, these paired values do not isolate the effect of the reprojection on field accuracy. An equal-budget unconstrained continuation is left for future work.
Appendix I.4. Schrödinger eigenvalue problem
The test problem is chosen to be genuinely multivariate and yet exactly solvable, so that errors can be measured precisely. It is the coupled harmonic oscillator: the potential in (26) is , and specifying the problem means specifying the matrix . We build it as from two ingredients. The frequencies , so in and in , set the stiffness of the normal modes. The frequencies are commensurate, so the full spectrum contains degeneracies at higher energies. The four target eigenvalues, however, are non-degenerate in each dimension considered (1.1, 2.1, 2.3, 3.1 for ; 1.8, 2.8, 3.0, 3.2 for ; 3.5, 4.5, 4.7, 4.9 for ). Hence the target eigenfunctions are unique up to sign and per-state errors are well defined. The rotation is a dense orthogonal matrix, the QR factor of a standard normal matrix drawn with NumPy RandomState(7). This rotation mixes all coordinates, so the potential contains every cross term and neither the potential nor the eigenfunctions separate in the input variables. The surrogate therefore cannot exploit any one-dimensional structure of the problem.
The exact reference is obtained by undoing the rotation. In the rotated coordinates , the Hamiltonian splits into independent one-dimensional oscillators with frequencies , whose solutions are classical. The eigenfunctions are products of one-dimensional Hermite functions of the rotated coordinates, indexed by occupation numbers , and the eigenvalues are ; sorting them gives the lowest eigenpairs. These closed forms are used only to evaluate errors. Training never sees them.
Solving (26) with a network means finding functions and numbers that meet four requirements at once. (i) Each pair must satisfy the equation, . (ii) Each state must be normalized, . Without this requirement, solves (i) for every . (iii) The states must be mutually orthogonal, . Without this requirement, all outputs can converge to the same state. (iv) The family must consist of the lowest eigenpairs. Without this requirement, any distinct eigenstates satisfy (i)–(iii). The method assigns one ingredient to each requirement: a residual loss for (i), hard normalization for (ii), a deterministically evaluated orthogonality penalty for (iii), and an energy-minimization term for (iv). The eigenvalues are trainable scalars throughout.
The representation starts from the known decay of the solutions. Bound states of a confining potential decay rapidly at infinity. Each state is therefore written as a product , where is one output of a single TOUCKAN and is a fixed Gaussian envelope. The envelope plays two roles. First, it carries the decay exactly, so no boundary loss and no domain truncation are needed. Second, its square is the standard normal density, , so the inner product of any two states becomes a Gaussian expectation of a product of network outputs, . This is precisely the quantity that the cross-moment recursion of Section 3.3 computes in closed form.
This observation makes requirement (ii) free. Collect the expectations into the Gram matrix with entries . The diagonal entry is the squared norm of the product . Each state is normalized by dividing by it, , which is the hard-normalized form (24). The identity then holds for every value of the network parameters, at every stage of training; normalization never appears in the loss. The construction also removes the trivial solution: the loss below is invariant under rescaling , so shrinking a state toward zero changes nothing and is never rewarded.
Requirement (i) becomes a residual loss, posed for rather than for . Substituting into (26) and dividing by gives the residual
so that . The derivatives of are absorbed analytically into the drift and potential terms of (I.3). No derivative ever acts on numerically. The collocation set is drawn from itself, and . The residual batches, however, are resampled from this set with probabilities proportional to the vRBA weights, and the summands additionally carry those weights (Eq. (I.4)), with no inverse-probability correction. The optimized objective is therefore an adaptively reweighted -residual rather than an unbiased estimate of this integral, but the two have the same minimizers, since both vanish exactly when . The residual is also the only term in which the trainable eigenvalues appear, so it is what pins each to its state. Monte Carlo enters the formulation
Algorithm 4 Hard-normalized eigensolver training for the Schrödinger problem.
Require: collocation set drawn from ; TOUCKAN parameters with outer coefficient columns; eigenvalues initialized below the spectrum; weights , ; batch size ; first-order iterations ; SSBroyden iterations in chunks of
Ensure: eigenpairs with , normalized identically in
1: function LOSS( , ; , ) : residual batch; : uniform batch for
2: , in both batches one network (7), output columns
3: from , by the cross-moment recursion (17) deterministic Gram matrix, differentiable
4: envelope-transformed potential
5: , in both batches residual Eq. (I.3)
6: vRBA weights
7: Monte Carlo
8:
9: exact, free of Monte Carlo noise
10: energy matrix Eq. (I.5), Monte Carlo
11:
12: Ky Fan selection
13: end function
14: Stage 1 — first-order, all states simultaneously:
15: for do one gradient step per iteration
16: pool points, sampled with probability their vRBA weights focuses high-residual regions
17: pool points, sampled uniformly unbiased, for
18:
19: [45] , decay 0.9 per 5,000 steps
20: end for
21: Stage 2 — SSBroyden polish [36]:
22: ,
23: for do
24: draw fresh and as in Stage 1
25: run SSBroyden iterations with backtracking line search on , from
26: ; reset if not positive definite
27: keep the lowest-residual seen so far
28: end for
only through such Hamiltonian expectations: this residual, and the numerator of the selection term below. Every norm and overlap is deterministic and sampling-free.
The full Gram matrix is deterministic and differentiable at every training step, exact up to the one-dimensional quadrature error of the joint leaf moments. The states share one inner block, so and are polynomials in the same combination variables , and the product expands in exactly the cross-moments of Section 3.3. Each Gram matrix element is therefore the bilinear analogue of the second-moment reduction (16), , where are the monomial-form outer coefficients of state . The cross-moments are computed once per step: joint leaf moments on a 128-node Gauss–Hermite rule per dimension, then the bivariate binomial recursion (17) across dimensions. All matrix elements reuse the same cross-moments and differ only in the coefficient contraction. No sampling is involved at any point, and the result is differentiated through like any other layer of the network.
In summary, the loss combines three terms,
The three terms implement requirements (i), (iii), and (iv) in order; requirement (ii) is built into the representation and needs no term. The first term is the eigen-residual of (i), with per-point vRBA weights [63]. The second term enforces the orthogonality of (iii). It is computed entirely from the deterministically evaluated Gram: the matrix G delivered by the recursion is normalized to , and the squared off-diagonal entries are summed. No collocation points enter this term, so it carries no sampling noise, and the diagonal of is one by construction, so it contains no normalization component. Its weight is fixed at in both training stages.
The trace term implements requirement (iv): it measures the total energy of the family, and minimizing it selects the lowest states. The matrix K holds the energy matrix elements of the unnormalized states,
where is the envelope-transformed Hamiltonian. By (I.3), it evaluates as . Both ingredients, the residual and the state, are already available. For a single state, is its energy, the Rayleigh quotient. For the family of states, is the natural generalization: it equals the sum of the energies of the states after orthonormalization, and it depends only on the subspace they span. By the Ky Fan principle [50], its minimum over all -dimensional subspaces is the sum of the lowest eigenvalues, attained exactly when the span is the lowest eigenspace. This is requirement (iv). Three properties make the term safe. Copying an already occupied state does not lower the trace, because the trace sees only the span. Collapse of the family onto fewer than directions drives toward singularity and raises the trace, so collapse acts as a barrier rather than a shortcut. Indeed, no collapse or singular solve was observed in any reported run. The identity cancels the trainable eigenvalues inside the trace, so the term steers only the network functions and leaves the to the residual. The formulation assumes , in particular in the normalization; this held in every reported run. At the trained parameters, the Gram matrix is well conditioned in every dimension, with smallest eigenvalue bounded away from zero and condition number of order . The off-diagonal Gram residual that training monitors falls below in every case (Figure 5, bottom row), so the family stays near-orthogonal and far from collapse. Table I.8 reports these quantities. The term is implemented as a direct dense solve, , with no added jitter or regularization. The numerator is the second and last Monte Carlo estimate, computed on its own uniformly drawn batch and symmetrized. This estimate is unbiased for the exact energy couplings under the stated uniform sampling. The denominator is deterministic, exact up to the one-dimensional quadrature error. Because the exact (expected) trace is stationary precisely at eigenspaces, the trace term introduces no bias at convergence for the exact objective and is never annealed. The weight for the trace term is throughout.
Table I.8: Conditioning of the Gram matrix at the trained parameters for the Schrödinger eigenstate runs ( states, evaluated by the exact recursion at the production order ). The condition number stays at order with at the trained parameters, so the direct solve solve() is stable without regularization. Successful completion of every run indicates no observed singular solve, but these final-parameter values do not quantify the conditioning during optimization. The last column reports the off-diagonal Gram residual at the final training iteration (Figure 5).
| D | off-diag. residual | |||
|---|---|---|---|---|
| 2 | ||||
| 3 | ||||
| 5 |
One network represents all states. The inner block is the intermediate sharing form of Section 3.1: a shared random Fourier embedding (15 frequencies, bandwidth , matched to the unbounded Gaussian inputs), a shared trunk of four hidden layers of width 32 with tanh activations, and one full linear head per input dimension producing branch channels. Each branch ends in a tanh and the channels are averaged over dimensions, so every combination variable lies in . The outer block evaluates per-branch Chebyshev expansions of degree with coefficient columns: the states share the same combination variables and differ only through their outer coefficients. Together with the trainable eigenvalues, this gives the parameter counts of Table 4.
Training is simultaneous and assumes nothing about the spectrum. All states are active from the first iteration; there is no sequential scan over eigenvalues and no scheduled sweep of trial energies. The are initialized at small distinct values below the bottom of the spectrum, for which a lower bound on the potential suffices, and rise to their converged values by tracking the Rayleigh quotients of their states through the residual term. The optimization follows the two-stage template of the other experiments, in double precision on collocation points drawn by mapping a Latin hypercube sample through the standard normal quantile function, with batch size 20,000. The full procedure is summarized in Algorithm 4. Stage one runs 20,000 first-order iterations (SOAP [45]; initial learning rate , decayed by 0.9 every 5,000 steps, outer coefficients at of the base rate), with vRBA weights (exponential potential, , ) that also define the batch sampling distribution. Stage two runs 20,000 SSBroyden iterations [36] with backtracking line search, in chunks of 100 with a fresh vRBA-sampled batch per chunk and the inverse-Hessian approximation carried across chunks. The parameters with the lowest mean residual over the second stage are kept. As in the other experiments, all reported results are single-run observations at the stated seed.
The errors of Table 4 follow the definitions of Eq. (I.1) and Eq. (I.2), with the exact spectrum and eigenfunctions as references, the sign of each aligned to the reference (eigenfunctions are defined only up to sign), and the norms estimated on an independent set of 20,000 test points drawn from , separate from the collocation set used for training.
The formulation inherits the problem statement of Jin et al. [49] but replaces its constraint machinery. We retain a residual loss with trainable eigenvalues, normalization and orthogonality requirements, and decay at infinity. In their MLP-based method, normalization and orthogonality are evaluated through collocation sums, and states are obtained sequentially through a sampled orthogonality penalty with patience-based solution recognition and symmetry switching. The trial-energy drive inherited from their earlier formulation is disabled in the reported experiments, and infinity is replaced by a truncated domain. These mechanisms introduce sampling or truncation error, and the reported experiments solve one-dimensional equations. TOUCKAN instead handles the integral constraints without sampling: normalization is imposed by division, and orthogonality is enforced through the deterministic Gram matrix. State selection uses a single variational trace term, while the envelope carries the decay over all of . This formulation can therefore be trained on non-separable multivariate problems while learning all states simultaneously.
Figures I.9 and I.10 complement Figure 6 of the main text with the learned eigenstates of the D = 2 and D = 5 runs.

Figure I.9: Lowest four eigenstates of the coupled two-dimensional oscillator: closed-form reference (left), learned surrogate (center), and absolute error on a logarithmic color scale (right). Each row is labeled by its learned eigenvalue .

Figure I.10: Lowest four eigenstates of the coupled five-dimensional oscillator on the plane: closed-form reference (left), learned surrogate (center), and absolute error on a logarithmic color scale (right). Each row is labeled by its learned eigenvalue . On this slice, the and states have similar projected profiles, while the Gram residuals in Table 4 quantify their full-dimensional distinction.