Optimal Approximation with Sparsely Connected Deep Neural Networks
Helmut B\"olcskei, Philipp Grohs, Gitta Kutyniok, Philipp Petersen

TL;DR
This paper establishes fundamental lower bounds on the connectivity and memory of deep neural networks for optimal approximation of function classes, demonstrating their universality and near-optimality through theoretical analysis and numerical experiments.
Contribution
It derives lower bounds linking neural network complexity to function class complexity and proves these bounds are achievable for broad classes of functions, showing neural networks' universality.
Findings
Neural networks can achieve near-optimal approximation rates for various function classes.
Stochastic gradient descent can learn sparse, near-optimal approximations.
Theoretical bounds are supported by numerical experiments.
Abstract
We derive fundamental lower bounds on the connectivity and the memory requirements of deep neural networks guaranteeing uniform approximation rates for arbitrary function classes in . In other words, we establish a connection between the complexity of a function class and the complexity of deep neural networks approximating functions from this class to within a prescribed accuracy. Additionally, we prove that our lower bounds are achievable for a broad family of function classes. Specifically, all function classes that are optimally approximated by a general class of representation systems---so-called \emph{affine systems}---can be approximated by deep neural networks with minimal connectivity and memory requirements. Affine systems encompass a wealth of representation systems from applied harmonic analysis such as wavelets, ridgelets, curvelets, shearlets,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Optimal Approximation with Sparsely Connected Deep Neural Networks
Helmut Bölcskei111Department of Information Technology and Electrical Engineering, ETH Zürich, 8092 Zürich, Switzerland. Email-Address: [email protected]
Philipp Grohs222Faculty of Mathematics, University of Vienna, 1090 Vienna, Austria, and Research Platform DataScience@UniVienna, University of Vienna, 1090 Vienna, Austria. Email-Address: [email protected]
Gitta Kutyniok333Institut für Mathematik, Technische Universität Berlin, 10623 Berlin, Germany. Email-Addresses: kutyniok,petersen@math.tu-berlin.de
Philipp Petersen333Institut für Mathematik, Technische Universität Berlin, 10623 Berlin, Germany. Email-Addresses: kutyniok,petersen@math.tu-berlin.de
Abstract
We derive fundamental lower bounds on the connectivity and the memory requirements of deep neural networks guaranteeing uniform approximation rates for arbitrary function classes in . In other words, we establish a connection between the complexity of a function class and the complexity of deep neural networks approximating functions from this class to within a prescribed accuracy. Additionally, we prove that our lower bounds are achievable for a broad family of function classes. Specifically, all function classes that are optimally approximated by a general class of representation systems—so-called affine systems—can be approximated by deep neural networks with minimal connectivity and memory requirements. Affine systems encompass a wealth of representation systems from applied harmonic analysis such as wavelets, ridgelets, curvelets, shearlets, -shearlets, and more generally -molecules. Our central result elucidates a remarkable universality property of neural networks and shows that they achieve the optimum approximation properties of all affine systems combined. As a specific example, we consider the class of -cartoon-like functions, which is approximated optimally by -shearlets. We also explain how our results can be extended to the case of functions on low-dimensional immersed manifolds. Finally, we present numerical experiments demonstrating that the standard stochastic gradient descent algorithm generates deep neural networks providing close-to-optimal approximation rates. Moreover, these results indicate that stochastic gradient descent can actually learn approximations that are sparse in the representation systems optimally sparsifying the function class the network is trained on.
Keywords. Neural networks, function approximation, optimal sparse approximation, sparse connectivity, wavelets, shearlets
AMS subject classification. 41A25, 82C32, 42C40, 42C15, 41A46, 68T05, 94A34, 94A12
1 Introduction
Neural networks arose from the seminal work by McCulloch and Pitts [38] in 1943 which, inspired by the functionality of the human brain, introduced an algorithmic approach to learning with the aim of building a theory of artificial intelligence. Roughly speaking, a neural network consists of neurons arranged in layers and connected by weighted edges; in mathematical terms this boils down to a concatenation of affine linear functions and relatively simple non-linearities.
Despite significant theoretical progress in the 1990s [10, 31], the area has seen practical progress only during the past decade, triggered by the drastic improvements in computing power and the availability of vast amounts of training data. Deep neural networks, i.e., networks with large numbers of layers, are now state-of-the-art technology for a wide variety of applications, such as image classification [33], speech recognition [30], or game intelligence [11]. For an in-depth overview, we refer to the survey paper by LeCun, Bengio, and Hinton [36] and the recent book [22].
A neural network effectively implements a non-linear mapping and can be used to either perform classification directly or to extract features that are then fed into a classifier, such as a support vector machine [50]. In the former case, the primary goal is to approximate an unknown classification function based on a given set of input-output value pairs. This is typically accomplished by learning the network’s weights through, e.g., the stochastic gradient descent (via backpropagation) algorithm [48]. In a classification task with, say, two classes, the function to be learned would take only two values, whereas in the case of, e.g., the prediction of the temperature in a certain environment, it would be real-valued. It is therefore clear that characterizing to what extent (deep) neural networks are capable of approximating general functions is a question of significant practical relevance.
Neural networks employed in practice often consist of hundreds of layers and may depend on billions of parameters, see for example the work [29] on image classification. Training and operation of networks of this scale entail formidable computational challenges. As a case in point, we mention speech recognition on a smartphone such as, e.g., Apple’s SIRI-system, which operates in the cloud. Android’s speech recognition system has meanwhile released an offline version based on a neural network with sparse connectivity. The desire to reduce the complexity of network training and operation naturally leads to the question of the fundamental limits on function approximation through neural networks with sparse connectivity. In addition, the network’s memory requirements in terms of the number of bits needed to store its topology and weights are of concern in practice.
The purpose of this paper is to understand the connectivity and memory requirements of (deep) neural networks induced by demands on their approximation-theoretic properties. Specifically, defining the complexity of a function class as the rate of growth of the minimum number of bits needed to describe any element in to within a maximum allowed error approaching zero, we shall be interested in the following question: Depending on the complexity of , what are the connectivity and memory requirements of a deep neural network approximating every element in to within an error of ? We address this question by interpreting the network as an encoder in Donoho’s min-max rate distortion theory [17] and establishing rate-distortion optimality for a broad family of function classes , namely those classes for which so-called affine systems—a general class of representation systems—yield optimal approximation rates in the sense of non-linear approximation theory [14]. Affine systems encompass a wealth of representation systems from applied harmonic analysis such as wavelets [12], ridgelets [3], curvelets [5], shearlets [28], -shearlets and more generally -molecules [25]. Our result therefore uncovers an interesting universality property of deep neural networks; they exhibit the optimal approximation properties of all affine systems combined. The technique we develop to prove our main statements is interesting in its own right as it constitutes a more general framework for transferring results on function approximation through representation systems to results on approximation by deep neural networks.
1.1 Deep Neural Networks
While various network architectures exist in the literature, we focus on the following setup.
Definition 1.1**.**
Let with . A map given by
[TABLE]
with affine linear maps , , and the non-linear activation function acting component-wise, is called a neural network. Here, is the dimension of the [math]-th layer referred to as the input layer, denotes the number of layers (not counting the input layer), stands for the dimensions of the hidden layers, and is the dimension of the output layer. The affine linear map is defined via with and the affine part . represents the weight associated with the edge between the -th node in the -th layer and the -th node in the -th layer, while is the weight associated with the -th node in the -th layer. These assignments are schematized in Figure LABEL:fig:Weights. The total number of nodes is given by . The real numbers and are said to be the network’s edge weights and node weights, respectively, and the total number of nonzero edge weights, denoted by , is the network’s connectivity.
The term “network” stems from the interpretation of the mapping as a weighted acyclic directed graph with nodes arranged in hierarchical layers and edges only between adjacent layers. If the network’s connectivity is small relative to the number of connections possible (i.e., the number of edges in the graph that is fully connected between adjacent layers), we say that the network is sparsely connected.
Throughout the paper, we consider the case , i.e., , which includes situations such as the classification and temperature prediction problem described above. We emphasize, however, that the general results of Sections 3, 4, and 5 are readily generalized to .
We denote the class of networks with exactly layers, connectivity no more than , and activation function by with the understanding that for , the set is empty. Moreover, we let
[TABLE]
Now, given a function , we are interested in the theoretically best possible approximation of by a network . Specifically, we will want to know how the approximation quality depends on the connectivity and what the associated number of bits needed to store the network topology and the corresponding quantized weights is. Clearly, smaller entails lower computational complexity in terms of evaluating (1) and a smaller number of bits translates to reduced memory requirements for storing the network. Such a result benchmarks all conceivable algorithms for learning the network topology and weights.
1.2 Quantifying Approximation Quality
We proceed to formalizing our problem statement and start with a brief review of a widely used framework in approximation theory [15, 14].
Fix . Let be a compact set of functions in , henceforth referred to as function class, and consider a corresponding system with countable, termed representation system. We study the error of best -term approximation of in :
Definition 1.2**.**
[15]** Given , , a function class , and a representation system , we define, for and ,
[TABLE]
We call the best -term approximation error of in . Every attaining the infimum in (2) is referred to as a best -term approximation of in . The supremal such that
[TABLE]
will be denoted by . We say that the best -term approximation rate of in the representation system is .
Function classes widely studied in the approximation theory literature include unit balls in Lebesgue, Sobolev, or Besov spaces [14], as well as -cartoon-like functions [25]. A wealth of structured representation systems is provided by the area of applied harmonic analysis, starting with wavelets [12], followed by ridgelets [3], curvelets [5], shearlets [28], parabolic molecules [27], and most generally -molecules [25], which include all previously named systems as special cases. Further examples are Gabor frames [23] and wave atoms [13].
1.3 Approximation by Deep Neural Networks
The main conceptual contribution of this paper is the development of an approximation-theoretic framework for deep neural networks in the spirit of [15]. Specifically, we shall substitute the concept of best -term approximation with representation systems by best -edge approximation through neural networks. In other words, parsimony in terms of the number of participating elements of a representation system is replaced by parsimony in terms of connectivity. More formally, we consider the following setup.
Definition 1.3**.**
Given , , a function class , and an activation function , we define, for and ,
[TABLE]
We call the best -edge approximation error of . The supremal such that
[TABLE]
will be denoted by . We say that the best -edge approximation rate of by neural networks with activation function is .
We emphasize that the infimum in (3) is taken over all networks with fixed activation function , fixed input dimension , no more than edges of nonzero weight, and arbitrary number of layers . In particular, this means that the infimum is taken over all possible network topologies. The resulting best -edge approximation rate is fundamental as it benchmarks all learning algorithms, i.e., all algorithms that map an input function and an to a neural network that approximates with error no more than . Our framework hence provides a means for assessing the performance of a given learning algorithm in the sense of allowing to measure how close the -edge approximation rate induced by the algorithm is to the best -edge approximation rate .
1.4 Previous Work
The best-known results on approximation by neural networks are the universal approximation theorems of Hornik [31] and Cybenko [10], stating that every measurable function can be approximated arbitrarily well by a single-hidden-layer ( in our terminology) neural network. The literature on approximation-theoretic properties of networks with a single hidden layer continuing this line of work is abundant. Without any claim to completeness, we mention work on approximation error bounds in terms of the number of neurons for functions with bounded first moments [1], [2], the non-existence of localized approximations [6], a fundamental lower bound on approximation rates [16, 3], and the approximation of smooth or analytic functions [41, 39].
Approximation-theoretic results for networks with multiple hidden layers were obtained in [32, 40] for general functions, in [21] for continuous functions, and for functions together with their derivatives in [44]. In [6] it was shown that for certain approximation tasks deep networks can perform fundamentally better than single-hidden-layer networks. We also highlight two recent papers, which investigate the benefit—from an approximation-theoretic perspective—of multiple hidden layers. Specifically, in [19] it was shown that there exists a function which, although expressible through a small three-layer network, can only be represented through a very large two-layer network; here size is measured in terms of the total number of neurons in the network. In the setting of deep convolutional neural networks, first results of a nature similar to those in [19] were reported in [43]. Additionally, by linking the expressivity properties of neural networks to tensor decompositions, [8, 9] established the existence of functions that can be realized by relatively small deep convolutional networks but require exponentially larger shallow networks. For survey articles on approximation-theoretic aspects of neural networks, we refer the interested reader to [20, 47].
Most closely related to our work is that by Shaham, Cloninger, and Coifman [49], which shows that for functions that are sparse in specific wavelet frames, the best -edge approximation rate of three-layer neural networks is at least as high as the best -term approximation rate in piecewise linear wavelet frames.
1.5 Contributions
Our contributions can be grouped into four threads.
- •
Fundamental lower bound on connectivity. We quantify the minimum network connectivity needed to allow approximation of all elements of a given function class to within a maximum allowed error. On a conceptual level, this result establishes a universal link between the complexity of a given function class and the connectivity required by corresponding approximating neural networks.
- •
Transfer from -term to -edge approximation. We develop a general framework for transferring best -term approximation results in representation systems to best -edge approximation results for neural networks.
- •
Memory requirements. We characterize the memory requirements needed to store the topology and the quantized weights of optimally-approximating neural networks.
- •
Realizability of optimal approximation rates. An important practical question is how neural networks trained by stochastic gradient descent (via backpropagation) [48] perform relative to the fundamental bounds established in the paper. Interestingly, our numerical experiments indicate that stochastic gradient descent can achieve -edge approximation rates quite close to the fundamental limit.
1.6 Outline of the Paper
Section 2 introduces the novel concept of effective best -edge approximation. The fundamental lower bound on connectivity is developed in Section 3. Section 4 describes a general framework for transferring best -term approximation results in representation systems to best -edge approximation results for neural networks. In Section 5, we apply this transfer framework to the broad class of affine representation systems, and Section 6 shows that this leads to optimal -edge approximation rates for cartoon functions. In Section 7, we briefly outline the extension of our main findings to the approximation of functions defined on manifolds. Finally, numerical results assessing the performance of stochastic gradient descent (via backpropagation) relative to our lower bound on connectivity are reported in Section 8.
2 Effective Best -term and Best -edge Approximation
We proceed by introducing -term approximation via dictionaries and -edge approximation via neural networks. These concepts do, however, not allow for a meaningful notion of optimality in practice. A remedy is provided by effective best -term approximation according to [17, 24] and the new concept of effective best -edge approximation introduced below.
2.1 Effective Best -term Approximation
The best -term approximation rate according to Definition 1.2 measures the hardness of approximation of a given function class by a fixed representation system . It is sensible to ask whether for a given function class , there is a fundamental limit on when one is allowed to vary over . As shown in [17, 24], every dense (and countable) , , results in for all function classes . However, identifying the elements in participating in the best -term approximation is infeasible as it entails searching through the infinite set and requires, in general, an infinite number of bits to describe the indices of the participating elements. This insight leads to the concept of “best -term approximation subject to polynomial-depth search” as introduced by Donoho in [17].
Definition 2.1**.**
Given , , a function class , and a representation system , the supremal so that there exist a polynomial and a constant such that
[TABLE]
*will be denoted by and referred to as effective best -term approximation rate of in the representation system . *
We will demonstrate in Section 3.2 that is, indeed, finite under quite general conditions on and, in particular, depends on the “description complexity” of . This will allow us to assess the approximation capacity of a given representation system for by comparing to the ultimate limit .
2.2 Effective Best -edge Approximation
We next aim at establishing a relationship in the spirit of effective best -term approximation for approximation through deep neural networks. To this end, we first note that Definition 1.3 encounters problems similar to those identified for approximation by representation systems, namely the quantity does not reveal anything tangible about the approximation complexity of in deep neural networks, unless further constraints are imposed on the approximating network. To make this point, we first review the following remarkable result:
Theorem 2.2**.**
[37, Theorem 4]** There exists a function that is , strictly increasing, and satisfies and , such that for any , any , and any , there is a neural network with activation function and three layers, of dimensions , and , satisfying
[TABLE]
We observe that the number of nodes and the number of layers of the approximating network in Theorem 2.2 do not depend on the approximation error . In particular, can be chosen arbitrarily small while having bounded. By density of in and hence in all compact subsets of , this implies the existence of an activation function such that for all compact . However, the networks underlying Theorem 2.2 necessarily lead to weights that are (in absolute value) not bounded by for a polynomial , a requirement we will have to impose to get rate-distortion-optimal approximation through neural networks (see Section 3). To see that the weights, indeed, do not obey a polynomial growth bound in , we note that thanks to Theorem 2.2, there exist and such that
[TABLE]
Now, as in Theorem 2.2 can be made arbitrarily small while the connectivity of the corresponding networks remains upper-bounded by , (6) would have to hold for arbitrarily large , in particular also for , where is the effective best -edge approximation rate according to Definition 2.3. By Theorem 3.4 below, however, , where is the optimal exponent according to Definition 3.1. Owing to Definition 2.3, we can therefore conclude that the weights of the network achieving the infimum in (6) can not be bounded by a polynomial in whenever . Here and in the sequel, we write if the variables and are proportional, i.e., there exist uniform constants such that .
The observation just made resembles the problem in best -term approximation which eventually led to the concept of effective best -term approximation, where we restricted the search depth in the representation system to be bounded by a given polynomial in and the coefficients to be bounded according to . Interpreting the weights in the network as the counterpart of the coefficients in best -term approximation, we see that the restriction on the search depth corresponds to restricting the size of the indices enumerating the participating weights. The need for such a restriction is obviated by the tree structure of deep neural networks as exposed in detail in the proof of Proposition 3.6. The second restriction will lead us to a growth condition on the weights, which is more generous than the corresponding requirement of the in effective best -term approximation being bounded.
In summary, this leads to the novel concept of “best -edge approximation subject to polynomial weight growth” as formalized next.
Definition 2.3**.**
*Given , , a function class , and an activation function , the supremal so that there exist an and a polynomial such that *
[TABLE]
*where denotes the class of networks in that have all their weights bounded in absolute value by , will be referred to as effective best -edge approximation rate of by neural networks and denoted by . *
We will show in Corollary 3.4 that is bounded and depends on the “description complexity” of the function class .
3 Fundamental Bounds on Effective -Term and -Edge Approximation Rate
The purpose of this section is to establish fundamental bounds on effective best -term and effective best -edge approximation rates by evaluating the corresponding approximation strategies in the min-max rate distortion theory framework as developed in [17, 24].
3.1 Min-Max Rate Distortion Theory
Min-max rate distortion theory provides a theoretical foundation for deterministic lossy data compression. We recall the following notions and concepts from [17, 24].
Let , , and consider the function class . Then, for each , we denote by
[TABLE]
the set of binary encoders of of length , and we let
[TABLE]
be the set of binary decoders of length . An encoder-decoder pair is said to achieve uniform error over the function class , if
[TABLE]
A quantity of central interest is the minimal length for which there exists an encoder-decoder pair that achieves uniform error over the function class , along with its asymptotic behavior as made precise in the following definition.
Definition 3.1**.**
Let , , and . Then, for , the minimax code length is
[TABLE]
Moreover, the optimal exponent is defined as
[TABLE]
The optimal exponent quantifies the minimum growth rate of as the error tends to zero and can hence be seen as quantifying the “description complexity” of the function class . Larger results in smaller growth rate and hence smaller memory requirements for storing signals such that reconstruction with uniformly bounded error is possible. The quantity is closely related to the concept of Kolmogorov entropy [45]. Remark 5.10 in [24] makes this connection explicit.
The optimal exponent is known for several function classes, such as subsets of Besov spaces with , and , namely all functions in of bounded norm, see e.g. [7]. If is a bounded subset of , then we have . In the present paper, we shall be particularly interested in so-called -cartoon-like functions, for which the optimal exponent is given by (see [18, 26] and Theorem 6.3).
3.2 Fundamental Bound on Effective Best -Term Approximation Rate
We next recall a result from [17, 24], which says that, for a given function class , the optimal exponent constitutes a fundamental bound on the effective best -term approximation rate of in any representation system. This gives operational meaning to .
Theorem 3.2** ([17, 24]).**
Let , , , and assume that the effective best -term approximation rate of in is . Then, we have
[TABLE]
In light of this result the following definition is natural (see also [24]).
Definition 3.3**.**
Let , , and assume that the effective best -term approximation rate of in is . If
[TABLE]
*then the function class is said to be optimally representable by . *
3.3 Fundamental Bound on Effective Best -Edge Approximation Rate
We now state the first main result of the paper, namely the equivalent of Theorem 3.2 for approximation by deep neural networks. Specifically, we establish that the optimal exponent also constitutes a fundamental bound on the effective best -edge approximation rate of . We say below that a function is dominated by a function if , for all .
Theorem 3.4**.**
Let , be bounded, and . Then, for all that are Lipschitz-continuous or differentiable with dominated by an arbitrary polynomial, we have
[TABLE]
The key ingredients of the proof of Theorem 3.4 are developed throughout this section and the formal proof will be stated at the end of the section. Before embarking on this, we note that, in analogy to Definition 3.3, what we just found suggests the following.
Definition 3.5**.**
For , bounded, we say that the function class is optimally representable by neural networks with activation function , if
[TABLE]
It is remarkable that the fundamental limits of approximation through representation systems and approximation through deep neural networks are determined by the same quantity, although the approximants in the two cases are vastly different, namely linear combinations of elements of a representation system with the participating functions identified subject to a polynomial-depth search constraint in the former, and concatenations of affine functions followed by non-linearities under growth constraints on the weights in the network in the latter case.
A key ingredient of the proof of Theorem 3.4 is the following result, which establishes a fundamental lower bound on the connectivity of networks with quantized weights achieving uniform error over a given function class.
Proposition 3.6**.**
Let , , , , and . Further, let
[TABLE]
be a map such that, for each pair , every weight of the neural network is represented by no more than bits while guaranteeing that
[TABLE]
Then,
[TABLE]
Proof.
The proof will be effected by identifying , where are encoder-decoder pairs achieving uniform error over with
[TABLE]
where is a constant, and such that the weights in are represented by no more than bits each. Before presenting the construction of these encoder-decoder pairs, we establish that this, indeed, implies the statement of the theorem. To this end, let and, towards a contradiction to (9), assume that . Then, there would exist a with such that there are encoder-decoder pairs achieving uniform error over with codelength , which stands in contradiction to the optimality of according to Definition 3.1.
We proceed to the construction of the encoder-decoder pairs, which will be accomplished by encoding the network topology and quantized weights in bitstrings of length satisfying (10) while guaranteeing unique reconstruction. Fix . We enumerate the nodes in by assigning natural numbers, henceforth called indices, increasing from left to right in every layer as schematized in Figure 2. For the sake of notational simplicity, we also set and . Without loss of generality, we assume throughout that is a power of and greater than . For all that are not powers of , we make use of the fact that , where is the smallest power of larger than , and we encode the network like an -edge network. Since this affects by a multiplicative constant only. The case will de dealt with in Step 1 below.
We recall that the number of layers of is denoted by , the number of nodes in these layers is (see Definition 1.1), and stands for the dimension of the input layer.
Denoting the number of nodes in layer associated with edges of nonzero weight in the following layer by and setting , it follows that
[TABLE]
where we let . All other nodes do not contribute to the mapping and can hence be ignored.
Moreover, we can assume that
[TABLE]
as otherwise there would be at least one layer such that
[TABLE]
As a consequence, the reduced network
[TABLE]
realizes the same function as the original network but has less than layers. This reduction can be repeated inductively until the resulting reduced network satisfies (12).
The bitstring representing is constructed according to the following steps.
Step 1: If , we encode the network by a leading [math] followed by the bitstring representing the node weight in the last layer. Upon defining , we then note that (10) holds trivially and we terminate the encoding procedure. Else, we encode the number of nonzero edge weights, , by starting the overall bitstring with ’s followed by a single [math]. The length of this bitstring is therefore bounded by .
Step 2: We continue by encoding the number of layers in the network. Thanks to (12) this requires no more than bits. We thus reserve the next bits for the binary representation of .
Step 3: Next, we store the dimension of the input layer and the numbers of nodes , associated with edges of nonzero weight. As by (11) and , for all , we can encode (generously) and each using bits. For the sake of concreteness, we first encode followed by in that order. In total, Step 3 requires a bitstring of length
[TABLE]
In combination with Steps 1 and 2 this yields an overall bitstring of length at most
[TABLE]
Step 4: We encode the topology of the graph associated with and consider only nodes that contribute to the mapping . Recall that we assigned a unique index , ranging from to , to each of these nodes. By (11) each of these indices can be encoded by a bitstring of length . We denote the bitstring corresponding to index by and let be the number of children of the node with index , i.e., the number of nodes in the next layer connected to the node with index via an edge. For each node , we form a bitstring of length by concatenating the bitstrings for all such that there is an edge between and . We follow this string with an all-zeros bitstring of length to signal the transition to the node with index . The enumeration is concluded with an all-zeros bitstring of length signaling that the last node has been reached. Overall, this yields a bitstring of length
[TABLE]
where we used and (11). Combining (13) and (14) it follows that we have encoded the overall topology of the network using at most
[TABLE]
bits.
Step 5: We encode the weights of . By assumption, each weight can be represented by a bitstring of length . For each node , we reserve the first bits to encode its associated node weight and, for each of its children a bitstring of length to encode the weight corresponding to the edge between that child and its parent node. Concatenating the results in ascending order of child node indices, we get a bitstring of length for node , and an overall bitstring of length
[TABLE]
representing the weights of the graph associated with the network .
With (15) this shows that the overall number of bits needed to encode the network topology and weights is no more than
[TABLE]
The network can be recovered by sequentially reading out , the , the topology, and the quantized weights from the overall bitstring. It is not difficult to verify that the individual steps in the encoding procedure were crafted such that this yields unique recovery. As (17) can be upper-bounded by
[TABLE]
for a constant depending on and only, we have constructed an encoder-decoder pair with satisfying (10). This concludes the proof. ∎
Proposition 3.6 applies to networks that have each weight represented by a finite number of bits scaling according to while guaranteeing that the underlying encoder-decoder pair achieves uniform error over . We next show that such a compatibility is possible for networks with activation functions that are either Lipschitz or differentiable such that is dominated by an arbitrary polynomial. We can now demonstrate that for sufficiently regular activation functions, faithful quantization of the weights of a network is possible.
Lemma 3.7**.**
Let be bounded, and be either Lipschitz-continuous or differentiable such that is dominated by an arbitrary polynomial. Let with and all its weights bounded (in absolute value) by . Then, there exist , depending on , and only, and such that
[TABLE]
and all weights of are elements of .
Proof.
We prove the statement for Lipschitz-continuous only. The argument for differentiable activation functions with first derivative not growing faster than every polynomial is along similar lines.
Let , to be specified later, and denote by the network that results by replacing all weights of by a closest element in . Set and denote the maximum of and the total number of edge weights plus node weights that contribute to the mapping by . Note that , where the latter inequality is by assumption. For , define as
[TABLE]
and accordingly, and let, for ,
[TABLE]
Denote the maximum of 1 and the Lipschitz constant of by , set , and let
[TABLE]
Then, it is not difficult to see that
[TABLE]
Additionally, we observe that
[TABLE]
We now bound the quantity for . A simple computation, exploiting the Lipschitz-continuity of , yields
[TABLE]
Since is continuous on we have and thus, by , there exists such that
[TABLE]
As and are both bounded by , it follows that is bounded by for a . We can therefore find such that
[TABLE]
Invoking (19), we conclude that
[TABLE]
where we set . We proceed by induction to prove that there exists such that for all ,
[TABLE]
Clearly there exists such that . Moreover, one easily verifies that the existence of an such that (23) is satisfied for an , thanks to (22), implies the existence of an such that (23) is satisfied for replaced by . This concludes the induction argument.
Using (21) and (23) in (20), we finally obtain
[TABLE]
which yields for sufficiently large . ∎
Remark 3.8**.**
Note that the weights of the network being elements of implies that each weight can be represented by no more than bits, for some constant .
Proposition 3.6 not only says that the connectivity growth rate can not exceed , but its proof, by virtue of constructing an encoder-decoder pair that achieves this growth rate also provides an achievability result. We next establish a matching strong converse in the sense of showing that for , the uniform approximation error remains bounded away from zero for infinitely many . To simplify terminology in the sequel, we introduce the notion of a polynomially bounded variable.
Definition 3.9**.**
A real variable depending on the variables , , is said to be polynomially bounded in , if there exists an -dimensional polynomial such that , for all . A set of real variables , each depending on , , is uniformly polynomially bounded in , if there exists an -dimensional polynomial such that , for all and all , .
We will refrain from explicitly specifying the in Definition 3.9 whenever they are clear from the context.
Remark 3.10**.**
If for some , then a variable depending on is polynomially bounded in if and only if there exists a such that , for all .
Proposition 3.11**.**
Let , be bounded, be a polynomial, , either Lipschitz-continuous or differentiable such that is dominated by an arbitrary polynomial. Then, for all and we have that
[TABLE]
Proof.
Let . Assume, towards a contradiction, that (24) holds only for finitely many . Then, there exists a constant such that (24) holds for no and hence there exists a constant so that
[TABLE]
Setting , it follows that, for every and every , there exists a neural network such that
[TABLE]
As the weights of are polynomially bounded in , they are polynomially bounded in . By Lemma 3.7 and Remark 3.10, there hence exists a network whose weights are represented by no more than bits, for some constant , satisfying
[TABLE]
Defining
[TABLE]
it follows that
[TABLE]
The proof is concluded by noting that Learn violates Proposition 3.6. ∎
We can now proceed to the proof of Theorem 3.4.
Proof of Theorem 3.4.
Suppose towards a contradiction that . Let . Then, Definition 2.3 implies that there exist a polynomial , and such that
[TABLE]
This, however, constitutes a contradiction to Proposition 3.11. ∎
We conclude this section with a discussion of the conceptual implications of the results established above. Proposition 3.6 combined with Lemma 3.7 establishes that neural networks with weights polynomially bounded in and achieving uniform approximation error over cannot exhibit edge growth rate smaller than ; in other words, a decay of the uniform approximation error, as a function of , faster than , is not possible.
Note that requiring uniform approximation error only (without imposing the constraint of the network’s weights being polynomially bounded in ) can lead to arbitrarily large rate as exemplified by Theorem 2.2, which proves the existence of networks realizing an arbitrarily small approximation error over with a finite number of nodes; in particular, the number of nodes remains constant as . However, as argued right after Theorem 2.2, these networks necessarily lead to weights that are not polynomially bounded in .
4 Transitioning from Representation Systems to Neural Networks
The remainder of this paper is devoted to identifying function classes that are optimally representable—according to Definition 3.5—by neural networks. The mathematical technique we develop in the process is interesting in its own right as it constitutes a general framework for transferring results on function approximation through representation systems to results on approximation by neural networks. In particular, we prove that for a given function class and an associated representation system which satisfies certain technical conditions, there exists a neural network with nonzero edge weights that achieves (up to a multiplicative constant) the same uniform error over as a best -term approximation in . This will finally lead to a characterization of function classes that are optimally representable by neural networks in the sense of Definition 3.5.
We start by stating technical conditions on representation systems for the transference principle outlined above to apply.
Definition 4.1**.**
Let , , , and be a representation system. Then, is said to be representable by neural networks (with activation function ), if there exist such that for all and every , there is a neural network with
[TABLE]
If, in addition, the weights of are polynomially bounded in , and if is either Lipschitz-continuous or differentiable such that is dominated by an arbitrary polynomial, then we say that is effectively representable by neural networks (with activation function ).
The next result formalizes our transference principle for networks with weights in .
Theorem 4.2**.**
Let , , and . Suppose that is representable by neural networks. Let and, for , let , , , satisfy
[TABLE]
where . Then, there exist (depending on only) and a neural network with , satisfying
[TABLE]
In particular, for all function classes it holds that
[TABLE]
Proof.
By representability of according to Definition 4.1, it follows that there exist , such that for each and for , there exists a neural network with
[TABLE]
Let then be the neural network consisting of the networks operating in parallel, all with the same input, and summing their one-dimensional outputs (see Figure 3 below for an illustration) with weights according to
[TABLE]
This construction is legitimate as all networks have the same number of layers and the last layer of a neural network according to Definition 1.1 implements an affine function only (without subsequent application of the activation function ). Then, , and application of the triangle inequality together with (27) yields . Another application of the triangle inequality according to
[TABLE]
finalizes the proof of (25) which by Definitions 1.2 and 1.3 implies (26). ∎
Theorem 4.2 shows that we can restrict ourselves to the approximation of the individual elements of a representation system by neural networks with the only constraint being that the number of nonzero edge weights in the individual networks must admit a uniform upper bound. Theorem 4.2 does, however, not guarantee that the weights of the network can be represented with no more than bits when the overall approximation error is proportional to . This will again be accomplished through a transfer argument, applied to representation systems satisfying slightly more stringent technical conditions.
Theorem 4.3**.**
Let , be bounded, and . Suppose that the representation system is effectively representable by neural networks. Then, for all , there exist a polynomial , constants , and a map
[TABLE]
such that for every the weights in can be represented by no more than bits while and .
Remark 4.4**.**
Theorem 4.3 implies that if optimally represents the function class in the sense of Definition 3.3 and at the same time is effectively representable by neural networks, then is optimally representable by neural networks in the sense of Definition 3.5.
Proof of Theorem 4.3.
Let and . According to Definition 2.1, there exist constants and a polynomial such that for every , there is a subset , and coefficients with so that
[TABLE]
We only need to consider the case as will become clear below. By effective representability according to Definition 4.1, there are such that for each and with , there exists a neural network (with either Lipschitz-continuous or differentiable such that is dominated by an arbitrary polynomial) satisfying
[TABLE]
In addition, the weights of are polynomially bounded in . Let then be the neural network consisting of the networks operating in parallel, according to (28). We conclude that
[TABLE]
As the weights of the networks are polynomially bounded in and , it follows that the weights of are polynomially bounded in .
[TABLE]
and all weights of can be represented with no more than bits, for some . Moreover, we have
[TABLE]
For , we now set
[TABLE]
where
[TABLE]
With this choice of , we have , which, when used in (30), yields
[TABLE]
Since, by construction, has edges and , it follows that has at most edges. Moreover, as all weights of can be represented by no more than bits, it follows from that they can be represented by no more than bits, for some . This concludes the proof. ∎
5 All Affine Representation Systems are Effectively Representable by Neural Networks
This section shows that a large class of representation systems, namely affine systems, defined below, are effectively representable by neural networks. Affine systems include as special cases wavelets, ridgelets, curvelets, shearlets, -shearlets, and more generally -molecules. Combined with Theorem 4.3 the results in this section establish that any function class that is optimally represented by an arbitrary affine system is optimally represented by neural networks in the sense of Definition 3.5.
Clearly, such strong statements are possible only under restrictions on the choice of the activation function for the approximating neural networks.
5.1 Choice of Activation Function
We consider two classes of activation functions, namely sigmoidal functions and smooth approximations of rectified linear units. We start with the formal definition of sigmoidal activation functions as considered in [10, 40, 42, 6].
Definition 5.1**.**
A continuous function is called a sigmoidal function of order , , if there exists such that
[TABLE]
A differentiable function is called strongly sigmoidal of order , if there exist constants such that
[TABLE]
One of the most widely used activation functions is the so-called rectified linear unit (ReLU) given by . The second class of activation functions we consider here are smooth versions of the ReLU.
Definition 5.2**.**
Let , satisfy
[TABLE]
for some constant . Then, we call an admissible smooth activation function.
The reason for considering these two specific classes of activation functions resides in the fact that neural networks based thereon allow economical representations of multivariate bump functions, which, in turn, leads to effective representation of all affine systems (built from bump functions) by neural networks. Approximation of multivariate bump functions using sparsely connected neural networks is a classical topic in neural network theory [35]. What is new here is the aspect of quantized weights and rate-distortion optimality.
A class of bump functions of particular importance in wavelet theory are -splines. In [6] it was shown that -splines can be parsimoniously approximated by neural networks with sigmoidal activation functions. It is instructive to recall this result. To this end, for , we denote the univariate cardinal -spline of order by , i.e., , where denotes the characteristic function of the interval , and , for all . Multivariate -splines are simply tensor products of univariate -splines. Specifically, we denote, for , the -dimensional cardinal -spline of order by .
Theorem 5.3** ([6], Thm. 4.2).**
Let , and take to be a sigmoidal function of order . Further, let . Then, there is , possibly dependent on , such that for all , there exists a neural network with
[TABLE]
Additionally, we will need to control the weights in the approximating networks . We next show that this is, indeed, possible for strongly sigmoidal activation functions.
Theorem 5.4**.**
Let , and strongly sigmoidal of order . Further, let . Then, there is , and a two-dimensional polynomial possibly dependent on , such that for all , there exists a neural network with
[TABLE]
Moreover, the weights of are polynomially bounded in .
Proof.
The neural network in Theorem 5.3 is explicitly constructed in [6]. Carefully following the steps in that construction and making explicit use of the strong sigmoidality of , as opposed to plain sigmoidality as in [6], yields the desired result. ∎
Remark 5.5**.**
*We observe that the number of edges of the approximating network in Theorem 5.4 does not depend on the approximation error . *
While Theorem 5.3 demonstrates that a -spline of order can be approximated to arbitrary accuracy by a neural network based on a sigmoidal activation function and of depth depending on , and the order of sigmoidality of the activation function, we next establish that for admissible smooth activation functions, exact representation of a general class of bump functions is possible with a network of layers only. Before proceeding, we define for , , the Fourier transform of by
[TABLE]
Theorem 5.6**.**
Let be an admissible smooth activation function. Then, for all , there exist and a neural network such that
- (i)
* is compactly supported,*
- (ii)
, and
- (iii)
, for all .
Proof.
We start by constructing an auxiliary function as follows. For such that , define as
[TABLE]
Then, is compactly supported. Letting , we define according to
[TABLE]
By construction, is compactly supported. Moreover, can be realized through a three-layer neural network thanks to its two-step design per (33) and (34). Since and , it follows that . By continuity of there exists a such that for all . We now set
[TABLE]
and note that can be realized through a three-layer neural network , for some . As , for all , satisfies the desired assumptions. ∎
5.2 Invariance to Affine Transformations
We next leverage Theorems 5.4 and 5.6 to demonstrate that a wide class of representation systems built through affine transformations of -splines and bump functions as constructed in Theorem 5.6 is effectively representable by neural networks. As a first step towards this general result, we show that representability—in the sense of Definition 4.1—of a single function by neural networks is invariant to the operation of taking finite linear combinations of affine transformations of .
Proposition 5.7**.**
Let , , and . Assume that there exist such that for all , there is with
[TABLE]
Let be full-rank and . Then, there exists , depending on and only, such that for all , there is with
[TABLE]
Moreover, if the weights of are polynomially bounded in , then the weights of are polynomially bounded in , where and denote the max-norm of and , respectively.
Proof.
By a change of variables, we have for every that
[TABLE]
and there exists depending on and only such that . We furthermore have that
[TABLE]
We now set and and observe that
[TABLE]
where we applied the same reasoning as in (36) in the first equality, (37) in the first inequality, and (35) in the second inequality. Moreover, we see that if the weights of are polynomially bounded in , then the weights of are polynomially bounded in . Since is polynomially bounded in , it follows that the weights of are polynomially bounded in . This yields the claim. ∎
Next, we show that representability by neural networks is preserved under finite linear combinations of translates.
Proposition 5.8**.**
Let , , and . Assume that there exist such that for all , there is with
[TABLE]
Let , , and . Then, there exists , depending on , and only, such that for all , there is with
[TABLE]
Moreover, if the weights of are polynomially bounded in , then the weights of are polynomially bounded in
[TABLE]
Proof.
Let . We start by noting that, for all ,
[TABLE]
where . Setting and , and noting that for every , the function
[TABLE]
is in with depending on , and only, it follows that the network
[TABLE]
satisfies (39). Finally, if the weights of are polynomially bounded in , then the weights of are polynomially bounded in .
∎
Based on the invariance results in Propositions 5.7 and 5.8, we now construct neural networks which approximate functions with a given number of vanishing moments with arbitrary accuracy. The resulting construction will be crucial in establishing representability of affine representation systems (see Definition 5.11) by neural networks.
Definition 5.9**.**
Let , and . A function is said to possess directional vanishing moments in -direction, if
[TABLE]
The next result establishes that functions with an arbitrary number of vanishing moments in a given coordinate direction can be built from suitable linear combinations of translates of a given continuous function with compact support.
Lemma 5.10**.**
Let , , , and with compact support. Then, the function
[TABLE]
has directional vanishing moments in -direction. Moreover, if for all , then
[TABLE]
Proof.
For simplicity of exposition, we consider the case only. Taking the Fourier transform of (40) yields
[TABLE]
which implies
[TABLE]
But by Definition 5.9, this says precisely that possesses the desired vanishing moments. Statement (41) follows by inspection of (42). ∎
5.3 Affine Representation Systems
We are now ready to introduce the general family of representation systems announced earlier in the paper as affine systems. This class includes all representation systems based on affine transformations of a given “mother function”. Special cases of affine systems are wavelets, ridgelets, curvelets, shearlets, -shearlets, and more generally -molecules, as well as tensor products thereof. The formal definition of affine systems is as follows.
Definition 5.11**.**
Let , be bounded, and compactly supported. Let , , for , and . Further, let , be full-rank, with the absolute values of the eigenvalues of bounded below by . Consider the compactly supported functions
[TABLE]
We define the affine system corresponding to according to
[TABLE]
and refer to as the generator function of .
We define the sub-systems . Since every , has compact support, is finite for all and . Indeed, we observe that there exists such that for all , , and ,
[TABLE]
As the are finite, we can organize the representation system according to
[TABLE]
where the elements within each sub-system may be ordered arbitrarily. This ordering of is assumed in the remainder of the paper and will be referred to as canonical ordering.
Moreover, we note that if there exists such that is nonzero, then there is a constant such that
[TABLE]
The next result establishes that all affine systems whose generator functions can be approximated to within arbitrary accuracy by neural networks are (effectively) representable by neural networks.
Theorem 5.12**.**
Let , , be bounded, and an affine system with generator function . Suppose that there exist constants such that for all , there is with
[TABLE]
Then, is representable by neural networks with activation function . If, in addition, the weights of are polynomially bounded in , and if there exist and such that
[TABLE]
then is effectively representable by neural networks with activation function .
Proof.
Let be as in Definition 5.11. If for all , then and the result is trivial. Hence, we can assume that there exists at least one such that , implying that (45) holds.
Pick such that . We first show that (46) implies representability of by neural networks with activation function . To this end, we need to establish the existence of constants such that for all and all , there exist with
[TABLE]
The elements of consist of dilations and translations of according to
[TABLE]
for some independent of , and , , and . Thus (48) follows directly by Propositions 5.7 and 5.8.
It remains to show that the weights of in (46) polynomially bounded in implies that is effectively representable by neural networks with activation function , which, by Definition 4.1, means that the weights of are polynomially bounded in . Propositions 5.7 and 5.8 state that the weights of are polynomially bounded in
[TABLE]
Thanks to (43) we have . Moreover, the quantities , , and do not depend on . We can thus conclude that the weights of are polynomially bounded in
[TABLE]
To complete the proof, we need to show that the quantities are polynomially bounded in . To this end, we first observe that according to (49) satisfies for some . Thanks to (45) and the canonical ordering (44), there exists a constant such that
[TABLE]
We finally appeal to (47) to conclude that is polynomially bounded in , which, together with (50), establishes the desired result. ∎
We remark that condition (47) is very weak; in fact, we are not aware of an affine system in the literature that would violate it.
We now proceed to what is probably the central result of this paper, namely that neural networks provide optimal approximations for all function classes that are optimally approximated by any affine system with generator function that can be approximated to within arbitrary accuracy by neural networks.
Theorem 5.13**.**
Let , be bounded, , and an affine system with generator function . Assume that there exist such that for all , there is satisfying . Then, for all function classes , we have
[TABLE]
If, in addition, there is a two-dimensional polynomial such that the weights of are bounded by , there exist and such that (47) holds, and is optimally represented by (according to Definition 3.3), then for all , there exist a constant , a polynomial , and a map
[TABLE]
such that for every the weights in can be represented by no more than bits while and .
Proof.
The proof follows directly by combining Theorem 5.12 with Theorems 4.2 and 4.3. ∎
Theorem 5.13 reveals a remarkable universality and optimality property of neural networks: All function classes that can be optimally represented by an affine system with generator satisfying (46) are also optimally representable by neural networks.
6 -Shearlets and Cartoon-Like Functions
We next present an explicit pair of function class and representation system satisfying . Specifically, we take -shearlets as representation system and -cartoon-like functions as function class . Cartoon-like functions are piecewise smooth functions with only two pieces. These pieces are separated by a smooth interface. In a sense, they can be understood as a prototype of a two-dimensional classification function with two homogeneous areas corresponding to two classes. Understanding neural network approximation of this function class is hence relevant to classification tasks in machine learning. We point out that the definition of -shearlets in this paper differs slightly from that in [25]. Concretely, relative to [25] our definition replaces by so that -shearlets are a special case of -molecules, whereas in [25] -shearlets are a special case of -molecules. We will need dilation and shearing matrices defined as
[TABLE]
This leads us to the following definition which is a slightly modified version of the corresponding definition in [46].
Definition 6.1** ([46]).**
For , , and , the cone-adapted -shearlet system generated by is defined as
[TABLE]
where
[TABLE]
Our interest in -shearlets stems from the fact that they optimally represent -cartoon-like functions in the sense of Definition 3.3.
Definition 6.2**.**
Let , and . Define
[TABLE]
where , , , , , and denotes the characteristic function of . The elements of are called -cartoon-like functions.
This function class was originally introduced in [18] as a model class for functions governed by curvilinear discontinuities of prescribed regularity. In this sense, -cartoon-like functions provide a convenient model for images governed by edges or for the solutions of transport equations which often exibit curvilinear singularities.
The optimal exponent was found in [18, 26]:
Theorem 6.3**.**
For , and , we have
[TABLE]
Proof.
The proof of [18, Theorem 2] demonstrates that a general function class has optimal exponent if contains a copy of . The result now follows, since by [26], the function class does, indeed, contain a copy of for . ∎
Using Proposition 3.6, this result allows to conclude that neural networks achieving uniform approximation error over the class of cartoon-like functions, with weights represented by no more than bits, for some constant , yield an effective best -edge approximation rate of at most . Theorem 6.8 below demonstrates achievability for , with .
The following theorem states that -shearlets yield optimal best -term approximation rates for -cartoon-like functions.
Theorem 6.4** ([46], Theorem 6.3 and Remark 6.4).**
Let , , , , both compactly supported and such that
- (i)
, for all ,
- (ii)
, for all such that and ,
- (iii)
* has at least vanishing moments in -direction, i.e.,*
[TABLE]
Then, there exists such that for all , the function class is optimally represented by .
Remark 6.5**.**
The assumptions on the smoothness and the number of vanishing moments of and in Theorem 6.4 follow from [46, Eq. 4.9] with and . While these particular choices allow the statement of the theorem to be independent of , it is possible to weaken the assumptions, if a fixed is considered. For example, for the smoothness assumptions on and reduce to .
As our approximation results for neural networks pertain to bounded domains, we require a definition of cartoon-like functions on bounded domains.
Definition 6.6**.**
Let , , and . We define the set of -cartoon-like functions on by
[TABLE]
Additionally, for , , we define an -shearlet system on according to
[TABLE]
Remark 6.7**.**
It is straightforward to check, that if is optimally represented by , then is optimally represented by .
We proceed to the main statement of this section.
Theorem 6.8**.**
Suppose that is bounded and is either strongly sigmoidal of order (see Definition 5.1) or an admissible smooth activation function (see Definition 5.2). Then, for every , the function class is optimally representable by a neural network with activation function .
Proof.
Let and . We first consider the case of strongly sigmoidal of order . Since the two-dimensional cardinal -spline of order , denoted by , is times continuously differentiable and by construction, we conclude that there exists such that satisfies and for all . Application of Lemma 5.10 then yields the existence of , such that is compactly supported, has vanishing moments in -direction, and for all such that . Then, by Theorem 6.4 and Remark 6.7 there exists such that is optimal for . We define
[TABLE]
where we order such that , for all . This construction implies that the -shearlet system is an affine system with generator function . Thanks to Theorem 5.4, there exist such that for all , there is a network with
[TABLE]
Moreover, the weights of are polynomially bounded in . It is not difficult to verify that (47) holds and hence Theorem 5.12 yields that is effectively representable by neural networks with activation function . Finally, since is optimally representable by , we conclude with Theorem 4.3 that is optimally representable by neural networks with activation function .
It remains to establish the statement for admissible smooth . In this case, by Theorem 5.6 there exist and a neural network in which realizes a compactly supported satisfying , for all . Lemma 5.10 applied to this then yields a function that can be realized by a neural network in , for some , has vanishing moments in -direction, is compactly supported, and satisfies , and , for all such that . By Theorem 6.4 and Remark 6.7, there exists such that is optimally representable by . Note that is an affine system with generator function . Since can be implemented with zero error by a neural network, Theorem 5.12 yields that is effectively representable by neural networks with admissible smooth activation function . Optimality of for implies, with Theorem 4.3, that is optimally representable by neural networks with admissible smooth activation function . ∎
Remark 6.9**.**
Theorem 6.4 requires the generators of the shearlet system guaranteeing optimal representability of , for , to be very smooth. On the other hand, Theorem 6.8 demonstrates that optimally-approximating neural networks are not required to be particularly smooth. Indeed, Theorem 6.8 holds for networks with differentiable but not necessarily twice differentiable activation functions. As the proof of Theorem 6.8 reveals, such weak assumptions suffice thanks to Theorem 5.4, which demonstrates that it is possible to approximate arbitrarily smooth -splines (in the -norm) to within error by neural networks with a number of weights that does not depend on as long as the activation function is strongly sigmoidal.
Remark 6.10**.**
We observe from the proof of Theorem 6.8 that the depth of the networks required to achieve optimal approximation depends on the activation function only. Indeed, for an admissible smooth activation function, inspection of Theorem 5.6 reveals that networks with three layers can produce optimal approximations in Theorem 6.8. On the other hand, if a sigmoidal activation function is employed, Theorem 5.4 shows that the construction in Theorem 6.8 requires a certain minimum depth depending on the order of sigmoidality.
7 Generalization to Manifolds
Frequently, a function to be approximated by a neural network models phenomena on (possibly low-dimensional) immersed submanifolds of dimension . We next briefly outline how our main results can be extended to this situation. Since analogous results, for the case of wavelets as representation systems, appear already in [49], we will allow ourselves to be somewhat informal.
Suppose that is compactly supported. Let be an open cover of such that for each the manifold patch can be parametrized as the graph of a function over a subset of the Euclidean coordinates, i.e., there exist coordinates , open sets , and smooth mappings
[TABLE]
such that
[TABLE]
Take a smooth partition of unity , where is smooth with and . Define the localization of to by such that
[TABLE]
Every can be reparametrized to
[TABLE]
Suppose that there exist and neural networks such that
[TABLE]
Then, we can construct a neural network according to
[TABLE]
where denotes the orthogonal projection of onto the coordinates . Since is linear, is a neural network. Moreover, since is the inverse of the diffeomorphism , we get
[TABLE]
with depending on the curvature of only. Now we may build a neural network by setting . Combining (52) with the observation that, owing to the compact support of , only a finite number of summands appears in the definition of , we have constructed a neural network which approximates on . In summary, we observe the following.
Whenever a function class is invariant with respect to diffeomorphisms (in our construction the functions ) and multiplication by smooth functions (in our construction the functions ), then approximation results on can be lifted to approximation results on -dimensional submanifolds .*
Such invariances are, in particular, satisfied for all function classes characterized by a particular smoothness behavior, for example, the class of cartoon-functions as studied in Section 6.
8 Numerical Results
Our theoretical results show that neural networks realizing uniform approximation error over a function class , , must obey a fundamental lower bound on the growth rate (as ) of the number of edges of nonzero weight. One of the most widely used learning algorithms is stochastic gradient descent with the gradient computed via backpropagation [48]. The purpose of this section is to investigate how this algorithm fares relative to our lower bound.
Interestingly, our numerical experiments below indicate that for a fixed, sparsely connected, network topology inspired by the construction of bump functions according to (33) and (34), and with the ReLU as activation function, the stochastic gradient descent algorithm generates neural networks that achieve -edge approximation rates quite close to the fundamental limit.
The network topology we prescribe is depicted in Figure 3. The rationale for choosing this topology is as follows. As mentioned before, admissible smooth activation functions consist of smooth functions which equal a ReLU outside a compact interval. For this class of activation functions, the associated -shearlet generators were constructed from a function as specified in (34). Choosing and in (33) yields hat functions . This construction implies that six nodes are required in the first layer in each subnetwork.
In Figure 3, we see four network realizations of in parallel. The output layer realizes a linear combination of the subnetworks.
We now train the network using the stochastic gradient descent algorithm. Following (34) the weights of the second layer remain fixed, and the weights in the first and the third layer only are trained. Training is performed for two different functions, where one is a function with a line singularity (Figure 4(a)), and the other one is a cartoon-like function (Figure 5(a)). Specifically, we train the network by drawing samples from an equispaced grid in . The resulting error is then backpropagated through the network. We repeat this procedure for different network sizes, i.e., for different numbers of subnetworks.
We start by discussing the results for the function with a line singularity depicted in Figure 4(a). The approximation error corresponding to the trained neural network is shown in Figure 4(b). The faster than linear decay of the approximation error in the semi-logarithmic scale indicates faster than exponential decay with respect to the number of edges. This is consistent with the best -term approximation rate that ridgelets yield for piecewise constant functions with line singularities, see [4].
It is interesting to observe that the trained subnetworks yield -molecules for (see Figures 4(c)-(e)). These functions are constant along one direction and vary along another, hence can be considered part of a ridgelet system, which is, in fact, an optimally sparsifying representation system for line singularities. Moreover, the orientation of the three learned ridge functions matches that of the original function.
In the second experiment, we draw samples from the function depicted in Figure 5(a) below, which exhibits a curvilinear singularity. Figures 5(c)-(e) show that the corresponding trained subnetworks resemble anisotropic molecules with different scales and of different orientations. We report, without showing the results, that the decay rate of the corresponding approximation error obtained when simply training with different network sizes did not come close to the rate of predicted by our theory. However, with a slight adaptation one obtains the result of Figure 5(b), which demonstrates a decay of roughly . The specifics of this adaptation are as follows: We first train a large network with edges, again by stochastic gradient descent. Then, the weights in the last layer are optimized using the Lasso [51] to obtain a sparse weight vector . We then pick the largest coefficients of and compute the corresponding weighted sum of the associated subnetworks. The resulting approximation error is shown in Figure 5(b). Finally, we investigate whether the approximation characteristics delivered by this procedure are similar to what would be obtained by best -term approximation with standard shearlet systems. Recall that shearlet elements at high scales tend to cluster around singularities [28, 34]. Figures 5(g)-(i) depict the corresponding results. Specifically, Figure 5(g) shows the weighted sum of those subnetworks that have the largest support. In Figure 5(h), we show weighted sums of subnetworks with medium-sized support, and in Figure 5(i) we sum up only the subnetworks with the smallest supports. We observe that, indeed, subnetworks of large support approximate the smooth part of the underlying function, whereas the subnetworks associated to small supports resolve the jump singularity.
Acknowledgments
The authors would like to thank J. Bruna, E. Candès, M. Genzel, S. Güntürk, Y. LeCun, K.-R. Müller, H. Rauhut, and F. Voigtländer for interesting discussions, and D. Perekrestenko for very detailed and insightful comments on the manuscript. G. K. and P. P. are grateful to the Faculty of Mathematics at the University of Vienna for the hospitality and support during their visits. Moreover, G. K. thanks the Department of Mathematics at Stanford University whose support allowed for completion of a portion of this work. G. K. acknowledges partial support by the Einstein Foundation Berlin, the Einstein Center for Mathematics Berlin (ECMath), the European Commission-Project DEDALE (contract no. 665044) within the H2020 Framework Program, DFG Grant KU 1446/18, DFG-SPP 1798 Grants KU 1446/21 and KU 1446/23, and by the DFG Research Center Matheon “Mathematics for Key Technologies”. G. K. and P. P acknowledge support by the DFG Collaborative Research Center TRR 109 “Discretization in Geometry and Dynamics”.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. R. Barron. Universal approximation bounds for superpositions of a sigmoidal function. IEEE Trans. Inf. Theory , 39(3):930–945, 1993.
- 2[2] A. R. Barron. Approximation and estimation bounds for artificial neural networks. Mach. Learn. , 14(1):115–133, 1994.
- 3[3] E. J. Candès. Ridgelets: Theory and Applications, 1998. Ph.D. thesis, Stanford University.
- 4[4] E. J. Candès. Ridgelets and the representation of mutilated Sobolev functions. SIAM J. Math. Anal. , 33(2):347–368, 2001.
- 5[5] E. J. Candès and D. L. Donoho. New tight frames of curvelets and optimal representations of objects with piecewise C 2 singularities. Comm. Pure Appl. Math. , 57:219–266, 2002.
- 6[6] C. K. Chui, X. Li, and H. N. Mhaskar. Neural networks for localized approximation. Math. Comp. , 63(208):607–623, 1994.
- 7[7] A. Cohen, W. Dahmen, I. Daubechies, and R. A. De Vore. Tree approximation and optimal encoding. Appl. Comput. Harmon. Anal. , 11(2):192–226, 2001.
- 8[8] N. Cohen, O. Sharir, and A. Shashua. On the expressive power of deep learning: A tensor analysis. In Conference on Learning Theory , pages 698–728, 2016.
