Designing Universal Causal Deep Learning Models: The Case of Infinite-Dimensional Dynamical Systems from Stochastic Analysis
Luca Galimberti, Anastasis Kratsios, Giulia Livieri
Introduction
Infinite-dimensional (non-linear) dynamical systems play a central role in several sciences, especially for disciplines driven by stochastic analytic modeling. However, despite this fact, the causal neural network approximation theory for most relevant dynamical systems in stochastic analysis is lacking. Indeed, we currently only comprehend neural network approximations of stochastic differential equations (SDEs) with deterministic coefficients (e.g., G2021FS) and time-invariant random dynamical systems with the fading memory and echo state property/unique solution property (e.g., JaegerFMP; Gonon2022NNs). A significant problem is causal neural network approximation of solution operators to non-Markovian SDEs. Moreover, the understanding of how sequential DL models work is still not fully developed, even in the classical finite-dimensional setting. For instance, the seemingly elementary empirical fact that a sequential DL model’s expressiveness increases when one utilizes a high-dimensional latent state space is understood qualitatively for general dynamical systems on Euclidean spaces (as in the reservoir computing literature (e.g., Lukas_StochInputReservoir)).
However, the quantitative understanding of the relationship between a sequential learning model’s state and its expressiveness remains an open problem. One notable exception to this fact is the approximation of linear state-space dynamical systems by a stylized class of Recurrent Neural Networks (RNNs, henceforth); see helmut2022metric; LiJMLR2022.
Our paper provides a simple quantitative solution to a far reaching generalization of the above problem of constructing neural network approximation of infinite-dimensional (generalized) dynamical systems on “good” linear metric spaces. More precisely, we construct a neural network approximation of any function that “causally” and “regularly” maps sequences to sequences , where each and every lives in a suitable linear metric space. In particular, we construct our causal neural network approximation framework on the following desiderata:
Predictions are causal, i.e., each is predicted independently of .
Each is predicted with a small neural network specialized at time .
Only one of these specialized networks is stored in working memory at a time.
We first begin by describing our causal neural network model’s design. Subsequently, we will discuss our approximation theory’s implications in computational stochastic analysis.
Our neural network model, which we call the Causal Neural Operator (CNO, henceforth) is illustrated in Figure 1 and works in the following way. At any given time , it predicts an instance of the output time-series at that time using an immediate time-window from the input time-series (e.g., it predicts each using only ). At each time , this prediction is generated by a non-linear operator defined by a finitely parameterized neural network model, called a neural filter (the vertical black arrows in Figure 1). Our neural network model stores only one neural filter’s parameters in working memory at the current time by using an auxiliary deep ReLU neural network, called a hypernetwork in the machine learning literature (e.g., HDQICLR2017; VOHSG2020ICLR), to generate the next neural filter specialized at using only the parameters of the current “active” neural filter specialized at time (the blue box in Figure 1). Thus, a dynamical system (i.e., the hypernetwork) on the neural filter’s parameter space interpolating between each neural filter’s parameters encodes our entire model.
The principal approximation-theoretic advantage of this approach lies in the fact that the hypernetwork is not designed to approximate anything, but rather, it only needs to memorize/interpolate a finite number of finite-dimensional (parameter) vectors. Since memorization (e.g., VershinynMemorization; KDDWP2022; Ruiyang) requires only a polynomial number of parameters to achieve zero approximation error on a finite set, while approximation (e.g., yarotsky2017error; KP2022JMLR; ZHS2022JMPA; BehnooshAnastasisTMLR) requires an exponential number of parameters to achieve a possibly non-zero error over a large set containing the finite set of interest, then, leveraging memorization yields both lighter (fewer parameters) and more accurate deep learning models; that is, the constructed neural network model is exponentially more efficient. In particular, using a neural network for memorization allows the trained DL model to generalize beyond the data it is interpolating, a capability that a simple list does not possess. When both the input and output spaces are finite-dimensional, our models effectively reduce to RNNs, which are known for their ability to generalize beyond their training data WangGenRNN. This generalization is attributed to factors such as having a finite VC (Vapnik-Chervonenkis) dimension KoiSontRNN; RNNGeneralize or finite Rademacher complexity JRadComplexRNN. Thus, this neural network design allows us to successfully encode all the parameters required to approximate long stretches of time (for large ) with far fewer parameters (i.e., at the cost of additional layers in the hypernetwork). Thus, we successfully achieve desiderata (D1)–(D3) provided that each neural filter relies on only a small number of parameters. We show that this is the case whenever is “sufficiently smooth”; the rigorous formulation of all these outlined ideas are expressed in Lemma 5 and Theorem 3.2.
Though we are focused on the approximation theoretic properties of our modeling framework, we have designed our CNO by accounting for practical considerations. Namely, we intentionally designed the CNO model so that, like transformer networks VawaniTransformers2017, it can be trained non-recursively (via our federated training algorithm, see Algorithm 1 below). This design choice is motivated by the main reasons why the transformer network model (e.g., VawaniTransformers2017) has replaced residual (e.g., H2020CVPR) and RNN (especially Long Short-Term Memory (LSTMs, henceforth) HochNeurCom1997) counterparts in practice (e.g., Hop1982NA; Wi1986NATURE); namely, not back-propagating through time during training. The reason is that omitting any recurrence relation between a model’s prediction in sequential prediction tasks, at-least during the model’s construction, has been empirically confirmed to yield more reliable and accurate models trained faster and without vanishing or exploding gradient problems; see, e.g., HochVanishing; Pa2013ICML. Nevertheless, our model does ultimately reap the benefits of recursive models even if we construct it non-recursively, using our parallelizable training procedure.
The neural filter, illustrated in Figure 2, is a neural operator with quantitative universal approximation guarantees far beyond the Hilbert space setting. It works by first encoding infinite-dimensional problems into finite-dimensions problems. It then predicts outputs by passing the truncated basis coefficients through a feed-forward neural network with trainable (P)ReLU activation function. Finally, it reassembles them in the output space by interpreting the network’s outputs as the coefficients of a pre-specified Schauder basis or if both spaces are reproducing kernel Hilbert spaces then the first few basis functions can learned from data using principal component analysis Or a robust version thereof, e.g. RobustPCAinfinite2017 and then normalizing and orthogonalizing via Gram-Schmidt., e.g. as with PCA–Net PCANET2023. A similar encoding-MLP-decoding scheme was also used in C2023AA for approximately solving nonlinear Kolmogorov equations on Hilbert spaces. We also note that some infinite-dimensional deep learning models between function spaces on Euclidean domains, such as the DeepONet architecture of DeepONet2021Nature, replace the basis vectors with trainable deep neural networks; however, this technique does not readily apply to general Fréchet spaces. Our “static” approximation theorems provides quantitative approximation guarantees for several “neural operators” used in practice, especially in the numerical Partial Differential Equations (PDEs), e.g., Kar2021PR, and in the inverse-problem literature, e.g., An2020IOP; Bub2021IOP; Al2021Neurips; Bub2021ISIAMIS; deHoop2020MSL. In the static case, the same argument is valid also for the general qualitative (rate-free) approximation theorems of Sithcompact1996; LucaUATPaperI; Korolev2022SMA. We now describe more in detail the different areas in which the present paper contributes.
To the best of our knowledge, our dynamic result is the only quantitative universal approximation theorem guaranteeing that a recurrent neural network model can approximate any suitably regular infinite-dimensional non-linear dynamical systems. Likewise, our static result is to the best of our knowledge the only general infinite-dimensional guarantee showing that a neural operator enjoys favourable approximation rates when the target map is smooth enough.
In the finite-dimensional context, CNOs become strict sub-structures of full RNNs, where the internal parameters are updated/generated via an auxiliary hypernetwork. Noticing this structural inclusion, our results rigorously support the folklore that RNNs may be more suitable when approximating causal maps, than feedforward neural network (FFNN, henceforth), see Section 5. This is because our theory yields expression rates for RNN approximations of causal maps between finite-dimensional spaces, which are more efficient than currently available comparable rates for FFNNs.
This research project answers theoretical deep learning questions by combining tools from approximation theory, functional analysis, and stochastic analysis. Therefore, we provide a concise exposition of each of the relevant tools from these areas in our “preliminaries” Section 2. Section 3 contains our quantitative universal approximation theorems. In the static case, we derive expression rates for the static component of our model, namely the neural filters, which depend on the regularity of the target operator being approximated; from Hölder trace-class to smooth trace-class and on the usual quantities Such as the compact set’s diameter.. Our main approximation theorem in the dynamic case additionally encodes the target causal map’s memory decay rate.
Section 4.2 applies our main results to derive approximation guarantees for the solution operators of a broad range of SDEs with stochastic coefficients, possibly having jumps (“stochastic discontinuities”) at times on a pre-specified time-grid and with initial random noise. Section 5, examines the implication of our approximation rates for RNNs, in the finite-dimensional setting, where we find that RNNs are strictly more efficient than FFNN when approximating causal maps. Section 6 concludes. Finally, Appendix A contains any background material required in the derivations of our main results whose derivations are relegated to Appendix B and Appendix D contains auxiliary background material on Fréchet spaces and generalized inverses.
1 Notation
For the sake of the reader, we collect and define here the notations we will use in the rest of the paper, or we indicate the exact point where the first appearance of a symbol occurs:
Given a topological vector space , will denote its topological dual, namely the space of continuous linear forms on .
Given two topological vector spaces and , denotes the space of continuous linear operators from into ; if , then we will write .
Given a Fréchet space , we use to denote the canonical pairing of with its topological dual ,
We denote the open ball of radius about a point in a metric space by ,
We denote the closure of a set in a metric space by .
with = Fréchet space: (7)
where is a Fréchet space: (11) and (12); furthermore,
and : 4 and 5
: The set of neural filters from to ,
: the ‘‘special function’’, defined as the inverse of the map The map is a continuous and strictly increasing surjection of onto itself; whence, is well-defined. on .
Preliminaries
In this section, we remind some preparatory material for the derivations of the main results of this paper. Finally, we remark that the notation in each of the subsequent subsections is self-contained and it is the one used on the cited paper: it will be up to the reader to contextualize it in the next sections.
A Fréchet space is a complete metrizable locally convex topological vector space.
Evidently, every Banach space is a Fréchet space; in this case, simply . A canonical choice for the metric on a Fréchet space (that generates the pre-existing topology) is given by:
We now remind the concept of directional derivative of a function between two Frećhet spaces. This notion of differentiation is significantly weaker than the concept of the derivative of a function between two Banach spaces. Nevertheless, it is the weakest notion of differentiation for which many of the familiar theorems from calculus hold. In particular, the chain rule is true (cfr. H1982AMS). Let and be Fréchet spaces, an open subset of , and a continuous map.
The derivative of at the point in the direction is defined by:
In particular, is said to be differentiable at in the direction if the previous limit exists. is said to be on if the limit in Equation(3) exists for all and all , and is continuous (jointly as a function on a subset of the product).
As anticipated, the Definition 2 of a map disagrees with the usual definition for a Banach space in the sense that the derivative will be the same map, but the continuity requirement is weaker. The previous definition can be generalized and applied to higher-order derivatives. For instance, if , then:
Analogously, is said to be on if is , which happens if and only if exists and is continuous. If we require to be continuous jointly as a function on the product space
Similarly, the -th derivative will be regarded as a map
is of class on if exists and is continuous (jointly as a function on the product space).
We will say that is -Dir if satisfies the previous definition.
where the series converges in (in the ordinary sense). It is immediate to see from the definition that the maps
are continuous linear functionals. We remind that if a Fréchet space admits a Schauder basis, it is separable. However, the converse does not hold in general; whether every separable Banach space has a basis appeared in 1931 for the first time in the Polish edition of Banach’s book (B1932) and was solved in the negative by Enflo (E1973AM). Additional background on Fréchet spaces is included in Appendix D.1.
2 Feedforward Neural Networks with ReLU and PReLU activation functions
With the previous identification, the recursive representation function of a -dimensional deep feed-forward network is given by
We will refer to as ’s depth. We will denote by a deep ReLU FFNN with complexity .
Main Results
We begin by treating the “static case” wherein we show that CNO’s neural filters, illustrated in Figure 3, are universal approximators of (non-linear) Hölder class operators between “good” linear spaces. We note that the application of the CNO only requires us to customize its neural filters to the relevant input and outputs’ geometries.
We first fix our working setting for this section
Analogous definitions hold for and .
Before proceeding, we make the following trivial, yet useful remark
We now state and prove the following lemma.
Let and be two Fréchet spaces. Let be a (non-linear) operator between these two spaces which is - (see Subsection 2.1, below Equation (5)). Then, is stable as in Definition 3.
The restriction of any -stable (non-linear) operator between two Fréchet spaces and to any non-empty compact subset extends to a -stable (non-linear) operator defined on all , namely the function itself. However, because our approximation theorems will hold for a pair of a (non-linear) operator and compact set , then does not need to be smooth on but only indistinguishable from a smooth operator on . That is, our main results focus on non-linear operators belonging to the following trace class.
Let and be two Fréchet spaces and let be a constant. Let be a non-empty compact set. We say that a (non-linear and possibly discontinuous) operator belongs to the trace class if there exists a -Lipschitz By -Lipschitz we mean that the optimal Lipschitz constant is . Notice that the case corresponds to the trivial case of a constant which is not treated in the present work. -stable (non-linear) operator satisfying
The following Example 1, pictorially represented in Figure 4, highlights our main interest in trace class maps. Precisely, these maps can be globally poorly behaved, even discontinuous, but indistinguishable from smooth functions “locally” (i.e. on a particular compact subset of the input space ).
At this point, some remarks are in order. In general, the problem of identifying when a map belongs to is a well-studied and independent area of research dating back to the beginning of the previous century (e.g., W1992). Nonetheless, by virtue of Lemma 1 a full characterization of the pairs of functions and sets that belongs to in the special case that and are Euclidean spaces has been derived only (relatively) recently in a series of articles starting with F2005AOM. The interested reader may consult BRUE2021JFA where the case is treated in the case that is Banach and is finite-dimensional (in a suitable metric-theoretic sense), for some depending on and on . The case where is a subset of a separable Hilbert space is explicitly solved in Azagra2018JFA.
Moreover, we provide results for the following trace class.
Let and be two Fréchet spaces, and be two constants. Let be a non-empty compact set. We say that a (non-linear and possibly discontinuous) operator belongs to the trace class if there exists an Hölder continuous (non-linear) operator of order and constant satisfying
Functions with Hölder extensions are also actively studied. For example, (Lindenstrauss2000AMS, Theorem 1.12) guarantees any Lipschitz function defined on a closed subset of a separable Hilbert space with values in a separable Hilbert space can be extended with the same Lipschitz constant. However, in general, the existence of Hölder extensions between Fréchet spaces, as well as quantitative estimates on the extension’s Hölder constant, can be subtle Naor2001Mathematika.
When it is clear from the context, we suppress the index and write instead of (resp. instead of ). Second, we introduce our first building block, which is the following neural operator, which we call a neural filter since it filters out the part of the input not encoded in the first few Schauder basis vectors.
Let and be two Fréchet spaces. A non-linear operator is called a neural filter if it can be represented as
whereas: and are the functions defined in setting ( A 1 ) , and are defined by (14) and (15), and See Subsection 2.2., with the multi-index where are positive integers. The set of all neural filters with representation (16) is denoted by .
where is a multi-index such with and defined as in Table 1. The approximation error is due to the fact that we will use approximation results for neural networks in a finite-dimensional setting See Equation (60). The “model complexity” of is reported in Table 1 and is a function of ’s regularity and the spaces and .
The rates in Table 3.1 are optimal for finite-dimensional Banach space input spaces and one-dimensional output space. To see this, we only need to consider the case where is a finite-dimensional Euclidean space and is the real-line with Euclidean distance. In this setting, neural filter model is a deep feedforward neural network with ReLU activation function. In which case, a direct inspection of the approximation rates in Table 1 reveal that they coincide with the approximation rates for Hölder functions derived in ZHS2022JMPA which are optimal, as they achieve the Vapnik–Chervonenkis (VC) lower-bound on a real-valued model class’ approximation rate (see (ZHS2022JMPA, Theorem 2.4)) determined by its VC-dimension See Bartless2018JMLR for details on the VC-dimension and near sharp computation of the VC-dimension of deep ReLU networks..
We emphasize that in the following, denotes the Euclidean inner product NB, this notation coincides with our earlier use of the notation for the pairing of a TVS with its topological dual space by the Riesz representation theorem.. In particular, in the first column of Table 1, the functions are defined by
The inability to extend higher-regularity (Lipschitz or smooth) functions while preserving their regularity, is precisely the obstruction lying at the heart of any quantitative approximation theorem between general infinite-dimensional Fréchet spaces. More precisely, a qualitative guarantee for continuous functions would require a version of McShane’s extension theorem Beer2020McShane for -valued continuous maps but, to the best of our knowledge, such a result is only available when both and are separable Hilbert space (Lindenstrauss2000AMS, Theorem 1.12). However, such a result would not provide control on the target function’s regularity. Thus, without assuming that the target function belongs to a given trace-class, e.g. Hölder or smooth trace classes, as considered here, there is no a-priori way to clearly relate the complexity of a deep learning model, such as our neural filters, which depend on the regularity of the extension to regularity of the target function restricted to .
Even in finite-dimensions highly-regular extensions, such as smooth extensions, see W1992 and F2005AOM, need not exist. Moreover, it is not even clear if a uniformly continuous function can be extended to a uniformly continuous function with a proportional modulus of continuity (see GutevJMAAExtension_2020 for details).
2 Dynamic Case: Sequential Universal Approximation Causal Operators
Theorem 3.1 was a static result certifying that suitable non-linear operators between infinite-dimensional linear metric spaces can be approximated by our “neural filter” operator network. By training several neural filters, independently on separate time-windows, and then re-assembling then via a “central” hypernetwork we can causally approximate “any” (generalized) dynamical system between such infinite-dimensional spaces.
The construction of a finitely-parameterized causal neural network approximator for these types of dynamical systems is our main result, and the main focus of this section. Our main result (Theorem 3.2) effectively certifies its ability to construct a CNO approximating any noiseless target function in this idealized approximation-theoretic framework. By a -packing of a set, we mean the maximum number of points which can be placed in that set which are each at a distance of apart See Appendix A.2 for details..
In what follows, we will refer to each element in the non-degenerate time grid as “time". We give now the following
Our main class of causal maps of finite virtual memory is the main deep learning model of this paper, namely, the causal neural operator outlined in Figure 1.
satisfying the representation for all
where See Definition 6. , where each is a (P)ReLU FFNN in with multi-index with and .
We will typically require our causal maps to possess a certain degree of regularity to deduce quantitative approximation rates. The most regular maps considered in this manuscript are causal maps of finite virtual memory which smooth trace-class maps can approximate at each instance in time.
We also derive approximation guarantees for the low-regularity analogue of smooth causal maps.
Let be a causal map, in the notation of Definition 8. If there are an and a such that , then we say that is -Hölder.
We now present the main result of the paper. Our causal universal approximation theorem guarantees that the CNO model can approximate any causal map while “preserving its forward flow of information through time”. The quantitative approximation rates, describing the complexity of the CNO model implementing the approximation are recorded in Table 2 below.
where See Definition 6. , where each is a (P)ReLU FFNN in with multi-index with and defined as in Table 1. The model complexity of the hypernetwork is recorded in Table 2.
For brevity, we do not repeat the complexities of the neural filters approximating the target function on any time window and recall that the neural filters’ approximation rates have previously been recorded in Table 1.
The complexity bounds of the CNO model, guaranteed by Theorems 1 and 3.2 concern the approximation of relatively general functions between rather general Fréchet spaces for arbitrary compact path spaces. In particular, in this setting, the target function may be incompatible with the compact path space. However, in the case of Hilbert spaces, one can identify classes of compact sets over which a given smooth function can be efficiently approximated. As one may expect, all rates becomes much simpler if the all involved quantities are more structured. The following set of assumptions illustrates a broad class of compact sets where the CNO does not experience the curse of dimensionality, and a favorable choice of a Schauder basis becomes evident. Furthermore, the bounds in Tables 1 and 2 become notably simpler. We now motivate our definition of these well-behaved compact sets. We start by considering the following finite-dimensional example.
Our well-behaved compact sets are an infinite-dimensional extension of our finite-dimensional thought experiment, in Example 2, where we require that the coefficients of the higher-order basis vectors decay exponentially rapidly. Before formally defining them, let us continue the previous example
By the Grothendieck’s compactness principle, see (DJSeq2012, Exercises 1.6), the set is relatively compact in .
We abstract Example 3 into the following generally applicable condition. An additional example of the exponential decay condition in (19), which we now generalize, will be provided in the context of mathematical finance, and will later be given in Section 4.1.2 below. We additionally ask that our causal maps being approximated have a Markov-like property, in the sense that they only depend on the current state of the input sequence and not on the past.
Furthermore, the following complexity estimates hold for each neural filter :
Decoding Dimension: n_{\varepsilon_{D}}^{\text{out}}{\color[rgb]{0,0,0}=1},
Corollary 1 is stated for -smooth causal maps, but a similar result can also be obtained for causal maps that exhibit Lipschitz regularity by appropriately adjusting the proof. The primary difference is that the constant in inequality (20) would decrease at a much faster rate along with the “total approximation error” . This adjustment is necessary for the CNO to maintain dimension-free algebraic approximation rates in the associated compact path space. A similar technique was recently applied in the static low-regularity setting between Sobolev spaces, as noted in (KraLassasTakashi, Theorem 1). Thus, while the shape of the compact path spaces regarding their exponential decay coefficient remains unchanged, the dependence on the diameter—indicated by the constant —is what varies.
2.2 Discussion: How the CNO could be implemented
This paper mainly examines the approximation capabilities of infinite-dimensional RNN architectures, specifically our CNO. We discuss what these structures can approximate when provided with sufficient noiseless data and ideal training algorithms. However, a natural question arises regarding their practical implementation. To address this, we present an idealized training procedure in Algorithm 1, which serves as a guide for implementing the CNO.
In particular, we find it beneficial to share insights from a recent implementation of a mild variant of the CNO described in RezaTime. In that research, the objective was to learn causal maps on finite-dimensional manifolds of non-positive curvature instead of infinite-dimensional linear spaces. Instead of utilizing neural filters, a non-Euclidean readout layer, as introduced in PaponAnnie, was employed. This layer is compatible with the geometry of the space in which the dynamical system operates. Nevertheless, the core hypernetwork structure was preserved, which dynamically updates the model parameters over time. The training procedure for this structure was nearly identical to Algorithm 1, with only the necessary modifications. That work emphasizes a strong experimental focus, aiming to demonstrate the practicality of a training procedure such as Algorithm 1. The most accurate, stable, and rapid training method involved first training the model using empirical risk minimization, as outlined in Algorithm 1, until achieving nearly zero training loss. By ensuring the network was sufficiently large, we successfully avoided overfitting due to the double-descent phenomenon, as documented in studies on overparameterized neural networks MeiMontanariDD; ChengTSKernelChar. Our findings confirmed this holds true in our context as well, suggesting that similar results can be expected in the future when exploring the statistical properties of the CNO in an infinite-dimensional framework. After training the initial layer to achieve satisfactory predictions at time one, we discovered that the most stable and efficient training approach was to utilize transfer learning. This involved initializing the training of each model, denoted as , using the parameters obtained from the previous training round, specifically . We then conducted only a few epochs of stochastic gradient descent. In general, the parameters showed minimal variation from one another. Moreover, using as a starting point for training facilitated the training of the hypernetwork. This is because has multiple parametric representations that yield the same functional representation. Thus, initializing at ensured that we were not only learning the correct function within the function space but also remaining within the same region of the joint parameter space of the neural filters. This approach had the added benefit of requiring fewer training iterations, as the difference remained small. However, it is important to note, as discussed in PetWojLim, that the mapping from a deep learning model’s parameter space to its function space is typically only locally Lipschitz, with an extremely large local Lipschitz constant. Therefore, even if , the corresponding functions and may still be significantly different in the function space. Lastly, once we obtained each , we learned the relevant recurrence relation by training the hypernetwork to minimize the mean squared error between the sequential parameters:
In RezaTime, we did not empirically need the theoretically necessary augmentation from to using some -packing of the Euclidean unit ball. The loss (21) was numerically optimized using stochastic gradient descent, and in our companion paper RezaTime, we found that this provided satisfactory performance. The advantage of using a hypernetwork is particularly evident at this stage, as it enabled us to train a recurrent neural operator – the CNO – without relying on backpropagation through time, a method known for its numerical instability. Instead, minimizing the loss function in equation (21) follows the standard approach of empirical risk minimization, which does not involve real-time components and does not present the same numerical issues. Additionally, a second benefit of the hypernetwork becomes apparent: once trained, the CNO can generate predictions for future time points that extend beyond the training data it was optimized with.
We now use our results to approximate solution operators arising in stochastic analysis and pricing functional arising naturally in mathematical finance.
Applications to Mathematical Finance and Stochastic Analysis
We now provide some examples of how our static approximation theorems are naturally amenable to pricing problems in mathematical finance. Our aim is both to showcase the need for the general Fréchet setting, as well as the naturality of Assumption 2.
When considering forwards and options on these, the set is typically a contractually specified week, month, quarter or year. Due to the continuity result above, we are in the context of our neural networks on a Fréchet space. Next, we show that under additional, realistic structural conditions the functional , introduced above, can be efficiently approximated. We do this by verifying the conditions of Corollary 1.
1.2 Efficient Approximation Rates for Pricing with Smooth Rapidly Decaying Functions
2 Dynamic Examples: Solution Operators of Stochastic Differential Equations
We apply our results to show that several solution operators from stochastic analysis can be approximated by the CNO. Our neural network model can approximate stochastic processes without assuming strong structural conditions describing their evolution.We illustrate our result’s implications for obtaining numerical solutions to SDEs, and we discuss the implications for more general stochastic processes, e.g. processes with jumps, towards the end of this section.
3 A primer on Wiener Chaos
and, for instance, , , and so on.
We leverage the symmetrized tensor product of elements defined by
where is the set of permutations of the indices . More concretely, the Hilbert space generated by the symmetrized tensor product See (Bourbaki1998Algebre1a3, Chapter IV page 43). is identified See (PecattiTaqqu_2011_ChaosDiagrams, Lemma 8.4.2). with the set of symmetric functions A “function” is symmetric if , for all , outside a set of -dimensional Lebesgue measure . in which we denote by . Since the -fold symmetrized tensor product is a subspace of the (usual) -fold tensor product then the identification of the -fold symmetric tensor product of with may be further simplified to
The connection between the symmetrized tensor product and the Wiener Chaos is that the Wiener Chaos is structurally identical to (identified with the -fold symmetrized tensor product of with itself). The map realizing this identification sends any to its -fold multiple stochastic integral
Moreover, the map (27) is linear isometric isomorphism preserving inner products See (PecattiTaqqu_2011_ChaosDiagrams, Proposition 8.4.6 (1)).. Consequentially, any orthogonal basis of is sent to an orthogonal basis of under this identification. Since an orthogonal basis of is given by the set
where is an orthogonal basis See (PecattiTaqqu_2011_ChaosDiagrams, page 153, point (iii)). of then the identification (27) implies that the corresponding set of random variables
is an orthogonal basis of the Wiener Chaos . Such an orthogonal basis of is given by the Fourier basis whose elements are
4 Simultaneous Approximation of SDEs with Different Initial Conditions using CNOs
Monte Carlo methods allow for the efficient solution to stochastic differential equations (SDEs) with a convergence rate of Typically in the -sense. to the true solution, where is the number of samples, plus a comparable discretization error when resorting to a tamed Euler scheme JenztenTamedEulre2011. It is known that deep learning can provide a suitable alternative to Monte Carlo schemes by learning the SDE’s solution map given deterministic initial conditions, for a fixed terminal time, by approximating the solutions to their associated PDEs Beck2018 given by the Feynman-Kac Theorem.
In this section, we show how a single CNO can be used for simultaneously solving SDEs with various noisy initial conditions across different time-horizons, by simultaneously approximately learning solve a family of stochastic differential equations with many different stochastic initial conditions and different initial times.
This section’s application shows that the CNO can approximate causal maps with stochastic inputs on arbitrarily long time horizons. This extends the known guarantees for recurrent neural networks, specifically reservoir computers, which can approximate time-invariant causal maps Lukas_StochInputReservoir.
where each is defined as in Equation (32). The typical example which we have in mind, in the following, are input sequences which are orbits of square-integrable random variables under the an SDE’s solution operator; i.e.
Consider the setting of this section and fix the path space
is -Hölder.
with belongs to provided by the definition of causal maps See Definition 8., satisfies to the following uniform estimates:
where We recall, Definition 6, stating that . . Moreover, for the hyperparameter it holds
5 Discussion - Corollary 2: Jumps, Path-Dependence, and Accelerated Approximation Rates Under Smoothness
We briefly discuss some points surrounding Corollary 2. For instance, how the result allows for stochastic discontinuity-type jumps. We also discuss how the scope of Theorem 3.1 allows for Corollary 2 to be easily generalized; but we opt not to do that in this manuscript, rather opting for a less technical illustration of our general framework.
If, in addition to conditions (30) and (29), the drift and diffusion coefficients and are sufficiently differentiable The precise conditions are formalized in (RosestolatoBook2017, Assumption 3.7)., then (RosestolatoBook2017, Theorem 3.9) implies that each of the maps are . Whence, the operator is a smooth causal map of finite virtual memory. Thus, in this case, Theorem 3.2 implies improved approximation rates by the CNO model.
In financial applications, the possibility of a stochastic process’ to jump at predetermined times (called stochastic discontinuities in that context) are an essential ingredient of accurately modeling interest rates; for example, European reference interest rates typically exhibit jumps directly after monetary policy meetings of ECB Font2020FinStoch.
One could consider SDEs driven with path dependant random drift and diffusion coefficients, since all that is needed to apply Theorem 3.2 is the regularity of the operator; which is guaranteed by results such as DePrato2016AnnProb or RosestolatoBook2017. However, we instead opted for a simple first presentation, explicitly illustrating the scope of our results in this easier case.
The Benefit of Causal Approximation: Super-Optimal Approximation Rates for Causal Maps
We now illustrate the quantitative advantage of causal approximation, i.e. using our CNO architecture, when the target function is causal. For illustrative purposes, we consider the simplest case where all involved spaces are finite-dimensional and Euclidean. By considering this setting, we can juxtapose our approximation rates derived from Theorem 3.2 against the best upper-bounds on the approximation rates for ReLU networks ZHS2022JMPA which apply to our class of causal maps, which match the well-known lower bounds for Lipschitz maps without the additional causality constraint DVL1993; Grohs2021IEEETransInfoTheory; however, there are currently no available lower bounds on this causal class.
In KN1998NN, the authors investigate the problem of approximating a dynamical system on a Euclidean space by a RNN. In their most general form, RNNs – sometimes also called “fully RNN", or fRNNs - are given for times by
Moreover, by pre-composing each in Equation (38) with the following linear projection
and by noting that is a FFNN because of the invariance with respect the pre-composition by affine functions, we have that the CNO becomes
NB, this is of-course satisfied by any autonomous dynamical system; namely when for all integers , with smooth.
defines a -smooth causal map.
Conclusion
We presented a first universal approximation theorem which is both causal, quantitative, compatible with infinite-dimensional operator learning, and which is not restricted to “function spaces” but is compatible with general “good” infinite-dimensional linear metric spaces. Our main contributions, Theorem 3.1 and Theorem 3.2, provided approximation guarantees for any smooth or Hölder (non-linear) operator between Fréchet spaces in the “static” or “causal” case, where temporal structure is or is not present in the approximation problem, respectively.
We showed how the CNO model can approximate a variety of solution operators, and infinite dimensional dynamical systems, arising in stochastic analysis. Moreover, in the Euclidean case, we showed that our neural filter’s approximation rates are optimal. We then showed that, when the target operator being approximated is a dynamical system, then the CNO’s approximation rates are super-optimal. Optimality is quantified in terms of the number of parameters required to approximate any arbitrary map belonging to some broad class as in constructive approximation theory of DVL1993.
We believe the observations made in this work open up avenues for future literature. As a prime example, we would like to further optimize our CNO for the stochastic filtering problem assuming additional structural conditions. As future work, we aim to build on these results in the context of robust finance.
Acknowledgments
The authors would like to thank Alessio Spagnoletti for his helpful feedback. This research was funded by the NSERC Discovery grant (RGPIN-2023-04482) and was partially supported by the Research Council of Norway via the Toppforsk project Waves and Nonlinear Phenomena (250070).
Appendix A Background material for proofs
In an effort to keep the paper as self-contained as possible, this appendix contains any background material required in the derivations of our main results but not required for their formulation. We cover various properties of deep ReLU neural networks, covering and packing results, and we overview some properties of finite-dimensional “linear dimension reduction” techniques in well-behaved Fréchet spaces. We also include a list of some useful properties of generalized inverses.
This section contains auxiliary results on neural network approximation, parallelization, and memorization.
Theorem 1.1 in JZHS2021SIAM proves that ReLU FFNNs with width and depth can approximate a function with a nearly optimal approximation error , where the norm is defined as:
More precisely, they state and prove the following
where , and .
In particular, note that the previous result does not privilege the width to the depth and vice versa because the exponent for both and on the right-hand side of Equation (43) is . On the other hand, ZHS2022JMPA, as a consequence of their main theorem for explicit error characterization, state and prove the following.
where and if ; and if .
A.1.2 Efficient parallelization of ReLU neural networks
CJR2020IEEE propose an efficient parallelization of neural networks with different depths for a special class of activation functions, namely the ones that have the so-called -identity requirements. Before giving a formal definition of such activation functions, we remind some quantities introduced in CJR2020IEEE. More precisely, denotes the set of neural network skeletons, i.e.,
We give now the following definition (cfr. CJR2020IEEE, Definition 4):
For our scopes, we note that the ReLU activation fulfills the 2-identity requirement with . In addition, the following proposition hold (cfr. CJR2020IEEE, Proposition 5):
A.1.3 Memory Capacity of Deep ReLU regressor
We here report a very recent lemma (KDDWP2022, Lemma 20). appearing in the deep metric embedding paper of KDDWP2022; see Lemma 20 in the just cited reference.
For the sake of completeness, we remind that the aspect-ratio of the finite metric space is defined as the ratio of the maximum distance between any two points therein over the minimum separation between any two distinct points, i.e.:
We notice that KLMN2005GFA introduce the notion of an aspect ratio of a measure space as the ratio of total mass over the minimum mass at any point. The relevance of the aspect ratio to our analysis is that it quantifies the difficulty to memorize a dataset. This is because finite subset of a Euclidean space with large aspect ratio are logarithmically (in the aspect ratio) more difficult to memorize than subsets with a small aspect ratio.
for every . Furthermore, the following quantitative “model complexity estimates" hold
Width : has width ,
Depth : has depth of the order of
where .
Number of non-zero parameters : The number of non-zero parameters in is at most
The “dimensional constant" is defined by
A.2 Covering and packing numbers
In what follows, will always have at least two points. We recall the basic definitions of these objects here, and we refer the reader to, e.g. (VanderVaart2023v2, Section 2.2.2), for more details and relations between them.
Let be a normed space, and . A subset is an -covering (or -net) of if for any there exists such that .
Let be a normed space, and a subset. is an -packing of if (notice the inequality is strict).
Both of these definitions define the notion of packing and covering.
We note that, ; see e.g. (VanderVaart2023v2, page 147).
A.3 Bounded Approximation Property in Fréchet spaces with Schauder basises
We now remind the following important definition (cfr. BONET2020WP Definition 1.6) and proposition (cfr. BONET2020WP Proposition 1.16 (2)).
A locally convex space has the bounded approximation property (BAP, henceforth) if there exists an equi-continuous net , with for every and for every . In other words, the net converges to the identity for the topology of point-wise or simple convergence. In all the previous expressions, denotes a generic directed indexing set.
If is a barreled locally convex space with a Schauder basis, then has the BAP.
A finite-dimensional vector space can have just one vector space topology up to homeomorphism.
We observe the following characterization for an equi-continuous family , with Fréchet spaces.
is an equi-continuous family if and only if
for any open neighborhood of the origin, is an open neighborhood of the origin (BONET2020WP page 1), if and only if
for any open neighborhood of the origin, there exists open neighborhood of the origin such that .
In this last case, we call the family uniformly equi-continuous (see K1983, page 169).
Appendix B Proofs
By assumption, is -Dir. This means that
Before proceeding, we state and prove the following Lemma.
Let and be two metric spaces and let be a family of maps from to such that , then , . Then, the family has a common modulus of continuity.
Le be defined as:
In particular it holds for and , i.e. . Notice that if , than the statement is trivial.
We observe that, in view of Remark 5 and the fact that the metric of a Fréchet space is translation-invariant, an equi-continuous family , with Fréchet spaces, satisfies the assumption of Lemma 4.
B.2 Proof of Theorem 3.1
The proof of Theorem 3.1 proceeds in three main steps. First, the target nonlinear operator is replaced by a finite-dimensional surrogate that preserves its regularity properties—precisely, uniform continuity and a prescribed degree of smoothness. This finite-dimensional surrogate is then approximated using a (P)ReLU MLP. Finally, an infinite-dimensional approximator—our neural filter—is constructed by projecting any infinite-dimensional input onto a finite-dimensional subspace, passing the result through the (P)ReLU MLP, and interpreting the MLP’s outputs as coefficients in a Schauder basis, which are then reassembled into an infinite-dimensional prediction. Tracking and controlling the approximation errors introduced at each step completes the proof.
In order to outline the ideas behind Theorem 3.1, we draw the diagram chase in Figure 7. Moreover, in order not to burden the notations, we will use the following abbreviations for any “encoding error" : and . In what follows, we detail the proof for the case that See Definition 4. . The case where belongs to will be treated at the end of the Proof for the sake of clarity, and we will highlight the main differences with respect to the case.
Moreover, analogously as above, we derive the following inequality, because is compact: . Thus, the following positive integers
are finite. At this point, we remind that and are the following two set-theoretic identity maps
where the equality in Equation (52) follows from the fact that on the compact the maps and coincides, the inequality in Equation (53) follows from the triangular inequality by using the diagram chase in Figure 7, and the equality in Equation (54) from the definition of . We now bound each of the above terms (54), (55) and (56). We start from the last one: it is controlled, by using the definition of as:
We now bound the second term, i.e., the term . Recall that is -Lipschitz. By using the definition of in (49), we have for :
and hence .
We now control the term (54). In order to do so, we make the following observations: ( 1 ) is a topological vector space in which the topology coincides with the standard one; see Lemma 7; ( 2 ) therefore, the identity map and its inverse are continuous. ( 3 ) Being linear, it is also uniform continuous; see S1971, Page 74. These observations allow us to define the modulus of continuity of the map which we may assume to be, without loss of generality See the argument done above for ., continuous and strictly monotone; will denote, as usual, its generalized inverse. This allows us to compute:
where the second line of (59) holds since is an isometric embedding, and thus in particular .
where is the “approximation error" as in the statement of the theorem; we will prove later on the existence of such . Meanwhile, we note that the bound in Equation (59) becomes:
Putting together the previous equation with the estimates in Equations (57) and (58), we have that:
Now, let , and denote the diameter computed with respect to the metric , the Euclidean distance and the distance respectively. It holds that:
We now identify a hypercube “nestling" , and we explicit the dependence on . To this end, let
which is well-defined and invertible, and maps to . In particular, the map
In the notation of Theorem A.1, if we set, and we also set then, the same result implies that the width and the depth of each is provided in the same reference and, upon recalling the definition of in (60) we find that it is given by:
where , , and .
where denotes the width of , and where we have used the fact that for every .
where denotes the width of , and where we have used the fact that for every .
which is nothing but (60). The Theorem is whence proved for .
We report to the reader the main changes of the proof.
The quantity in Equation (49) is instead given by:
In this way, the estimate in Equation (58) continues to hold with .
The inequality in Equation (60) is now guaranteed by Theorem A.2, instead of by Theorem A.1. Note, that the pre/post-composition of an -Hölder function with a Lipschitz function is again an -Hölder function.
The function in Equation (62) is , and so, we may apply Theorem A.2 to deduce that there are ReLU FFNN satisfying to the estimates in Equation (64).
The width and the depth of each are thus provided by Theorem A.2. Setting in that result yields
The considerations on the existence of an “efficient parallelization" continue to hold with the width and depth appropriately defined by using ( v ).
B.3 Proof of Corollary 1
where the outer infimum is taken over all -dimensional linear subspaces of . Both of these notions of “width”, i.e. linear complexity, of a subset coincide when the space is a Hilbert space, see e.g. (Pin1985Book, Proposition II.5.2); however, we introduce both notions since some results are formulate for general Banach spaces using one width rather than the other, in most parts of the literature.
for all ; where . Note that
Consider the Kolmogorov -width is optimized by the linear subspace spanned by and satisfies
Moreover, since is an orthonormal set then the orthogonal projection operator , given by is optimal; whence,
By (79), setting implies that (78) holds while
Since the target space is one dimensional then for all . Thus, when approximating on , for , both and are constants.
Finally, Table 1 implies that the neural filters defining the CNO have width at most
Consequently, the number of non-zero (trainable) parameters is almost the width squared times the depth; whence .
B.4 The Dynamic Weaving Lemma
We now present our main technical tool for “weaving together” several neural filters approximating a causal map on distinct time windows. The key technical insight here is that each neural filter is approximated while the hypernetwork “weaving together” these neural filter memorizes, and memorization requires exponentially fewer parameters than approximation. The reason for this is that memorizing points requires between and trainable (non-zero) parameters, as demonstrated in sources like VershinynMemorization and Ruiyang. Notably, only neurons are necessary to memorize a function’s value at a single point. In contrast, approximating a function’s value on each sub-cube of with side length requires neurons for each sub-cube, with a total of such sub-cubes. As a result, any uniform approximator needs an exponential number of neurons to uniformly approximate a function over any hypercube, whereas a memorizer of points does not have that same requirement.
for every “time” . Moreover, the “model complexity” of is specified by
Width: has width at-most ;
Depth: has depth at-most of the order of
Number of non-zero parameters: The number of non-zero parameters in is at-most
where the constant is defined by
In the previous expressions , and we set, for simplicity of notation, .
for every . Furthermore, the following quantitative “model complexity estimates" hold
Number of non-zero parameters: The number of non-zero parameters in is at most
The “dimensional constant" is defined by
for every . Setting and we conclude.
B.5 Proof of Theorem 3.2
where . Now, for every , for a fixed “encoding error" (and “approximation error" ), Theorem 3.1 ensures the existence of a neural filter See Definition 6. satisfying to the following uniform estimates
Moreover, the “model complexity" of each Refer to equation (16) is reported in Table 1. In particular, for , let be the complexity of , and let be the maximum depth of the networks , i.e. . In addition, for each , set
and let be the maximum width among the layers, i.e. .
Define for any matrix . Finally, let . Now, for each and we define:
for every “time" , where .
The depth and the width of the network are provided by the same lemma with . Equations (90) and (91) imply that
for every . At this point, combining Equations (88) and (89), we have:
Appendix C Technical Lemmata
endowed with the product topology is still a Fréchet space carrying a Schauder basis: a choice for this one is provided by , where
From elementary results from functional analysis and topology, it is clear that endowed with the product topology is a topological vector space. This topology can be induced also by a metric, e.g.
where (respectively ) is a compatible metric for (respectively ). Evidently, is also complete. This topology is locally convex because it can be induced by the following countable collection of seminorms
We claim that is a Schauder basis for . Indeed, let , with
Let be arbitrary. Since and are Schauder basis, it follows that there exists such that for all
In both cases, we deduce by construction that
namely as . This proves that any can be written as
In order to prove that such decomposition is unique, suppose that there exists such that
with defined as in (94) and with for some . Let be one of these coefficients, and suppose wlog that : the odd-case is similar and it will not be treated. By projecting on the factor we obtain (canonical projection)
and , contradicting the fact that is a Schauder basis. Therefore, the expansion (93) is unique, and this concludes the proof.
Appendix D Additional Background Material
In an effort to keep our manuscript as self-contained as possible, we collects some additional background results on generalized inverses and on Fréchet spaces.
We now state and prove the following auxiliary lemma.
Now, let be the unique sequence in the topological dual of , say , such that each has the following representation . Because are continuous and linear, we clearly get that for each . This implies that
for all . This means in particular that
D.2 Generalized inverses
with the convention that .
is increasing. If , is left-continuous at and admits a limit from the right at .
. If is strictly increasing, .
Let be right-continuous. Then implies . Furthermore, implies . Moreover, if then and if then .