The Expressive Power of Neural Networks: A View from the Width
Zhou Lu, Hongming Pu, Feicheng Wang, Zhiqiang Hu, Liwei Wang
Introduction
Deep neural networks have achieved state-of-the-art performance in a wide range of tasks such as speech recognition, computer vision, natural language processing, and so on. Despite their promising results in applications, our theoretical understanding of neural networks remains limited. The expressive power of neural networks, being one of the vital properties, is crucial on the way towards a more thorough comprehension.
The expressive power describes neural networks’ ability to approximate functions. This line of research dates back at least to 1980’s. The celebrated universal approximation theorem states that depth- networks with suitable activation function can approximate any continuous function on a compact domain to any desired accuracy . However, the size of such a neural network can be exponential in the input dimension, which means that the depth- network has a very large width.
From a learning perspective, having universal approximation is just the first step. One must also consider the efficiency, i.e., the size of the neural network to achieve approximation. Having a small size requires an understanding of the roles of depth and width for the expressive power. Recently, there are a series of works trying to characterize how depth affects the expressiveness of a neural network . show the existence of a -layer network, which cannot be realized by any -layer to more than a constant accuracy if the size is subexponential in the dimension. prove the existence of classes of deep convolutional ReLU networks that cannot be realized by shallow ones if its size is no more than an exponential bound. For any integer , explicitly constructed networks with layers and constant width which cannot be realized by any network with layers whose size is smaller than . This type of results are referred to as depth efficiency of neural networks on the expressive power: a reduction in depth results in exponential sacrifice in width. However, it is worth noting that these are existence results. In fact, as pointed out in , proving existence is inevitable; There is always a positive measure of network parameters such that deep nets can’t be realized by shallow ones without substantially larger size. Thus we should explore more in addition to proving existence.
Different to most of the previous works which investigate the expressive power in terms of the depth of neural networks, in this paper we study the problem from the view of width. We argue that an integration of both views will provide a better understanding of the expressive power of neural networks.
Firstly, we prove a universal approximation theorem for width-bounded ReLU networks. Let denotes the input dimension, we show that width- ReLU networks can approximate any Lebesgue integrable function on -dimensional space with respect to distance. On the other hand, except for a zero measure set, all Lebesgue integrable functions cannot be approximated by width- ReLU networks, which demonstrate a phase transition. Our result is a dual version of the classical universal approximation theorem for depth-bounded networks.
Next, we explore quantitatively the role of width for the expressive power of neural networks. Similar to the depth efficiency, we raise the following question on the width efficiency:
Are there wide ReLU networks that cannot be realized by any narrow network whose size is not substantially increased?
We argue that investigation of the above question is important for an understanding of the roles of depth and width for the expressive power of neural networks. Indeed, if the answer to this question is yes, and the size of the narrow networks must be exponentially larger, then it is appropriate to say that width has an equal importance as depth for neural networks.
In this paper, we prove that there exists a family of ReLU networks that cannot be approximated by narrower networks whose depth increase is no more than polynomial. This polynomial lower bound for width is significantly smaller than the exponential lower bound for depth. However, it does not rule out the possibility of the existence of an exponential lower bound for width efficiency. On the other hand, insights from the previous analysis suggest us to study if there is a polynomial upper bound, i.e., a polynomial increase in depth and size suffices for narrow networks to approximate wide and shallow networks. Theoretically proving a polynomial upper bound seems very difficult, and we formally pose it as an open problem. Nevertheless, we conduct extensive experiments and the results demonstrate that when the depth of the narrow network exceeds the polynomial lower bound by just a constant factor, it can approximate wide shallow networks to a high accuracy. Together, these results provide more comprehensive evidence that depth is more effective for the expressive power of ReLU networks.
Our contributions are summarized as follows:
We show a width efficiency polynomial lower bound. For integer , there exist a class of width- and depth-2 ReLU networks that cannot be approximated by any width- and depth- networks. On the other hand, experimental results demonstrate that networks with size slightly larger than the lower bound achieves high approximation accuracy.
Research analyzing the expressive power of neural networks date back to decades ago. As one of the most classic work, Cybenko proved that a fully-connected sigmoid neural network with one single hidden layer can universally approximate any continuous univariate function on a bounded domain with arbitrarily small error. Barron , Hornik et al. ,Funahashi achieved similar results. They also generalize the sigmoid function to a large class of activation functions, showing that universal approximation is essentially implied by the network structure. Delalleau et al. showed that there exists a family of functions which can be represented much more efficiently with deep networks than with shallow ones as well.
Since the development and success of deep neural networks recently, there have been much more works discussing the expressive power of neural networks theoretically. Depth efficiency is among the most typical results.
The remainder of the paper is organized as follows. In section 2 we introduce some background knowledge needed in this article. In section 3 we present our main result – the Width-Bounded Universal Approximation Theorem; besides, we show two comparing results related to the theorem. Then in section 4 we turn to explore quantitatively the role of width for the expressive power of neural networks. Finally, section 5 concludes. All proofs can be found in the Appendix and we give proof sketch in main text as well.
Preliminaries
The architecture of neural networks often specified by the width and the depth of the networks. The depth of a network is defined as its number of layers (including output layer but excluding input layer); while the width of a network is defined to be the maximal number of nodes in a layer. The number of input nodes, i.e. the input dimension, is denoted as .
Width-bounded ReLU Networks as Universal Approximator
In this section we consider universal approximation with width-bounded ReLU networks. The following theorem is the main result of this section.
The proof of this theorem is lengthy and is deferred to the supplementary material. Here we provide an informal description of the high level idea.
For any Lebesgue integrable function and any predefined approximation accuracy, we explicitly construct a width- ReLU network so that it can approximate the function to the given accuracy. The network is a concatenation of a series of blocks. Each block satisfies the following properties:
1) It is a depth- width- ReLU network.
2) It can approximate any Lebesgue integrable function which is uniformly zero outside a cube with length to a high accuracy;
3) It can store the output of the previous block, i.e., the approximation of other Lebesgue integrable functions on different cubes;
4) It can sum up its current approximation and the memory of the previous approximations.
It is not difficult to see that the construction of the whole network is completed once we build the blocks. We illustrate such a block in Figure 1 . In this block, each layer has neurons. Each rectangle in Figure 1 represents a neuron, and the symbols in the rectangle describes the output of that neuron as a function of the block. Among the neurons, neurons simply transfer the input coordinates. For the other neurons, neurons store the approximation fulfilled by previous blocks. The other neurons help to do the approximation on the current cube. The topology of the block is rather simple. It is very sparse, each neuron connects to at most neurons in the next layer.
The proof is just to verify the construction illustrated in Figure 1 is correct. Because of the space limit, we defer all the details to the supplementary materials.
Theorem 1 can be regarded as a dual version of the classical universal approximation theorem, which proves that depth-bounded networks are universal approximator. If we ignore the size of the network, both depth and width themselves are efficient for universal approximation. At the technical level however, there are a few differences between the two universal approximation theorems. The classical depth-bounded theorem considers continuous function on a compact domain and use distance; Our width-bounded theorem instead deals with Lebesgue-integrable functions on the whole Euclidean space and therefore use distance.
Theorem 1 implies that there is a phase transition for the expressive power of ReLU networks as the width of the network varies across , the input dimension. It is not difficult to see that if the width is much smaller than , then the expressive power of the network must be very weak. Formally, we have the following two results.
Then it’s a direct comparison with Theorem 1 since in Theorem 1 the distance can be arbitrarily small.
The main idea of the two theorems is grabbing the disadvantage brought by the insufficiency of dimension. If the corresponding first layer values of two different input points are the same, the output will be the same as well. When the ReLU network’s width is not larger than the input layer’s width, we can find a ray for "most" points such that the ray passes the point and the corresponding first layer values on the ray are the same. It is like a dimension reduction caused by insufficiency of width. Utilizing this weakness of thin network, we can finally prove the theorem.
Width Efficiency vs. Depth Efficiency
Going deeper and deeper has been a trend in recent years, starting from the 8-layer AlexNet , the 19-layer VGG , the 22-layer GoogLeNet , and finally to the 152-layer and 1001-layer ResNets . The superiority of a larger depth has been extensively shown in the applications of many areas. For example, ResNet has largely advanced the state-of-the-art performance in computer vision related fields, which is claimed solely due to the extremely deep representations. Despite of the great practical success, theories of the role of depth are still limited.
Theoretical understanding of the strength of depth starts from analyzing the depth efficiency, by proving the existence of deep neural networks that cannot be realized by any shallow network whose size is exponentially larger. However, we argue that even for a comprehensive understanding of the depth itself, one needs to study the dual problem of width efficiency: Because, if we switch the role of depth and width in the depth efficiency theorems and the resulting statements remain true, then width would have the same power as depth for the expressiveness, at least in theory. It is worth noting that a priori, depth efficiency theorems do not imply anything about the validity of width efficiency.
In this section, we study the width efficiency of ReLU networks quantitatively.
Theorem 4 states that there are networks such that reducing width requires increasing in the size to compensate, which is similar to that of depth qualitatively. However, at the quantitative level, this theorem is very different to the depth efficiency theorems in . Depth efficiency enjoys exponential lower bound, while for width Theorem 4 is a polynomial lower bound. Of course if a corresponding polynomial upper bound can be proven, we can say depth plays a more important role in efficiency, but such a polynomial lower bound still means that depth is not strictly stronger than width in efficiency ,sometimes it costs depth super-linear more nodes than width.
This raises a natural question: Can we improve the polynomial lower bound? There are at least two possibilities.
1) Width efficiency has exponential lower bound. To be concrete, there are wide networks that cannot be approximated by any narrow networks whose size is no more than an exponential bound.
2) Width efficiency has polynomial upper bound. Every wide network can be approximated by a narrow network whose size increase is no more than a polynomial.
Exponential lower bound and polynomial upper bound have completely different implications. If exponential lower bound is true, then width and depth have the same strength for the expressiveness, at least in theory. If the polynomial upper bound is true, then depth plays a significantly stronger role for the expressive power of ReLU networks.
Currently, neither the exponential lower bound nor the polynomial upper bound seems within the reach. We pose it as a formal open problem.
We further conduct extensive experiments to provide some insights about the upper bound of such an approximation. To this end, we study a series of network architectures with varied width. For each network architecture, we randomly sample the parameters, which, together with the architecture, represent the function that we would like narrower networks to approximate. The approximation error is empirically calculated as the mean square error between the target function and the approximator function evaluated on a series of uniformly placed inputs. For simplicity and clearity, we refer to the network architectures that will represent the target functions when assigned parameters as target networks, and the corresponding network architectures for approximator functions as approximator networks.
To be detailed, the target networks are fully-connected ReLU networks of input dimension , output dimension , width and depth , for and . For each of these networks, we sample weight parameters according to standard normal distribution, and bias parameters according to uniform distribution over . The network and the sampled parameters will collectively represent a target function that we use a narrow approximator network of width and depth to approximate, with a corresponding . The architectures are designed in accordance to Theorem 4 – we aim to investigate whether such a lower bound is actually an upper bound. In order to empirically calculate the approximation error, uniformly placed inputs from for and such inputs for are evaluated by the target function and the approximator function respectively, and the mean square error is reported. For each target network, we repeat the parameter-sampling process times and report the mean square error in the worst and average case.
We adopt the standard supervised learning approach to search in the parameter space of the approximator network to find the best approximator function. Specifically, half of all the test inputs from and the corresponding values evaluated by target function constitute the training set. The training set is used to train approximator network with a mini-batch AdaDelta optimizer and learning rate . The parameters of approximator network are randomly initialized according to . The training process proceeds epoches for and epoches for ; the best approximator function is recorded.
Table 1 lists the results. Figure 2 illustrates the comparison of an example target function and the corresponding approximator function for and . Note that the target function values vary with a scale in the given domain, so the (absolute) mean square error is indeed a rational measure of the approximation error. It is shown that the approximation error is indeed very small, for the target networks and approximator networks we study. From Figure 2 we can see that the approximation function is so close to the target function that we have to enlarge a local region to better display the difference. Since the architectures of both the target networks and approximator networks are determined according to Theorem 4, where the depth of approximator networks are in a polynomial scale with respect to that of target networks, the empirical results show an indication that a polynomial larger depth may be sufficient for a narrow network to approximate a wide network.
Conclusion
In this paper, we analyze the expressive power of neural networks with a view from the width, distinguished from many previous works which focus on the view from the depth. We establish the Universal Approximation Theorem for Width-Bounded ReLU Networks, in contrast with the well-known Universal Approximation Theorem, which studies depth-bounded networks. Our result demonstrate a phase transition with respect to expressive power when the width of a ReLU network of given input dimension varies.
We also explore the role of width for the expressive power of neural networks: we prove that a wide network cannot be approximated by a narrow network unless with polynomial more nodes, which gives a lower bound of the number of nodes for approximation. We pose open problems on whether exponential lower bound or polynomial upper bound hold for the width efficiency, which we think is crucial on the way to a more thorough understanding of expressive power of neural networks. Experimental results support the polynomial upper bound and agree with our intuition and insights from the analysis.
The width and the depth are two key components in the design of a neural network architecture. Width and depth are both important and should be carefully tuned together for the best performance of neural networks, since the depth may determine the abstraction level but the width may influence the loss of information in the forwarding pass. A comprehensive understanding of the expressive power of neural networks requires looking from both views.
Acknowledgments
This work was partially supported by National Basic Research Program of China (973 Program) (grant no. 2015CB352502), NSFC (61573026), and the elite undergraduate training program of School of Mathematical Science in Peking University. We would like to thank the anonymous reviewers for their valuable comments on our paper.
References
Andrew R Barron. Approximation and estimation bounds for artificial neural networks. Machine Learning, 14(1):115–133, 1994.
Nadav Cohen, Or Sharir, and Amnon Shashua. On the expressive power of deep learning: A tensor analysis. In Conference on Learning Theory, pages 698–728, 2016.
George Cybenko. Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals, and Systems (MCSS), 2(4):303–314, 1989.
Olivier Delalleau and Yoshua Bengio. Shallow vs. deep sum-product networks. In Advances in Neural Information Processing Systems, pages 666–674, 2011.
Ronen Eldan and Ohad Shamir. The power of depth for feedforward neural networks. In Conference on Learning Theory, pages 907–940, 2016.
Ken-Ichi Funahashi. On the approximate realization of continuous mappings by neural networks. Neural networks, 2(3):183–192, 1989.
Nick Harvey, Chris Liaw, and Abbas Mehrabian. Nearly-tight vc-dimension bounds for piecewise linear neural networks. COLT 2017, 2017.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016.
Kurt Hornik, Maxwell Stinchcombe, and Halbert White. Multilayer feedforward networks are universal approximators. Neural networks, 2(5):359–366, 1989.
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097–1105, 2012.
R. Srikant Shiyu Liang. Why deep neural networks for funtion approximation? ICLR 2017, 2017.
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014.
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. CoRR, abs/1409.4842, 2014.
Matus Telgarsky. Benefits of depth in neural networks. COLT 2016: 1517-1539, 2016.
Dmitry Yarotsky. Error bounds for approximations with deep relu networks. arXiv preprint arXiv:1610.01145, 2016.
Quynh Nguyen and Matthias Hein. The loss surface of deep and wide neural networks. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 2603–2612, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR.
Appendix A Appendix
We prove this theorem by constructing a network architecture which can approximate any Lesbegue-integrable function w.r.t distance. We will firstly illustrate that can be approximated by finite weighted sum of indicator functions on n-dimensional cubes. Then we will show how a ReLU network approximate an indicator function on an n-dimensional cube. Finally we will show that ReLU network can "store" the quantities and sum them up.
Assume is the input. Since is L-integrable, for any , there exists which satisfies
For simplication, the following symbols are introduced.
denotes the positive part of, while denotes the negative part. is the space between and in , i=1,2.
For i=1,2, since is measurable, there exists a Lebesgue cover of consisting finite (n+1)-dimensional cubes , satisfying
. We assume the number of is . Here and below denotes Lebesgue measure.
For any (n+1)-dimensional cube , we assume
Note that each corresponds to an indicator function. we define
From (7) and (9), we can prove that f can be approximated by finite weighted sum of indicator function on n-dimensional cubes. Also we have
Then we will show how to use ReLU network to approximate such a function. We wish to find functions , satisfying
For any I {}, we assume
Next we will construct a network to produce a function J, satisfying
We define some notations here. We denote the network by , the function represented by the whole network by , the function represented by the layer of the network by , the function represented by the node in the layer by , the function represented by the first layers of the network after being ReLUed by . The function represented by the node in the layer after ReLUed is . Here, without loss of generality, denotes the input layer. The weight matrix is denoted by and the offset vector by . The depth is denoted by h.
For any , we can design a ReLU network satisfying following conditions: (1)The width of each layer of is n+4. (2)The depth of is 3. (3)for i=0,1,2,3, j=1,2,…,n, (4)for j=n+1,n+2, all the weights related to are 0. (5) is a function of x such that
for any x
if
if
(6) is a function of x such that
for any x
if
if
We call this shallow ReLU network Single ReLU Unit(SRU). We will explain some details of SRU. The first n+2 nodes in each layer is "memory element" of SRU while the last two is the "computation element" of SRU. The main idea of SRU is to process the function to get .
The main idea of this process is to "chop" the function and reduce the support set of the function. See Figure 1 for a simulation sample when .
We will show that, for any , can produce exatly the same shape as the hyper-trapezoid inscribed in cube in Figure 1. For simplicity, define , here . Examine . The input layer is identity function in every dimension.
For simplicity, define . The first hidden layer retains the information of the input layer.
The first n nodes remain unchanged thorough out the whole network , which are used to record the information of the input layer.The and th node are reserved for the positive and negetive part of the whole target function respectively. In fact, the whole network is constructed to simulate a single indicator function , if the function is positive, then we will store the simulation result into the th node. Otherwise, will be stored into th node. By adding up those simulation results in these two nodes, we can get a simulation of , and thus simulates the target function. We list the result in second,third and fourth layer below.
For simplicity, denote .The network is similar to the case of .The input layer is the final layer in .
For each k, we "chop" two sides in the kth dimension. Finally, we get the shape J in Figure 3.It is stored in the (n+3)th node as in the last layer of . We then use a single layer to record it in the (n+1)th or the (n+2)th node, and reset the last two nodes to zero. Now the network is ready to simulate another (n+1)-dimensional cube. The whole construction process is shown in Figure 4.
Using this construction, we can simulate by , which is produced by network . Note that, as approaches 0, the simulation error w.r.t distance converges to 0.
Next we will find a value of to fit the need of our proof. See Figure 3. The side length of small square on the top surface is as the side length of the top surface. We will select a suitable , satisfying . Denote
Notice that on , and the maximum value of on is 1. Thus,
Thus, for , can be approximated by network function . Satisfies
Sum those equations up, combined with (13), we have
Thus, we have the approximation of cubes . Next we show how to combine those approximation functions together by network. There are positive cubes, corresponding to positive functions ; negative cubes, correspond to negative functions . The detailed network is shown in Figure 3.
Finally, we have . is the result function produced by our designed network. Combined with (7),(9),(17), we have
Thus, is the function we need in the theorem.
A.2 Proof of Theorem 2
The proof is long and complicated, so we firstly define some notations for convenience afterwards. We denote the network by , the function represented by the whole network by , the function represented by the layer of the network by , the function represented by the node in the layer by , the function represented by the first layers of the network after being ReLUed by . Here, without loss of generality, denotes the input layer. We define
Condition 1: and the widths of all the layers except the output layer are n.
Obviously other cases where are just special cases of this setting. The weight matrix of each layer is denoted by and the offset vector by where d is the number of layer. The depth is denoted by h. Here we will introduce 2 definitions inspired by Benefits of depth in neural networks (Telgarsky ,2016).
Definition 1: A set X is a linear block if there exist t linear functions , and m tuples where and are subsets of [t](where [t]:=), such that \vec{x}\in\X is equivalent to
Definition 2: A function f: is if there exist t polynomials of degree , and m triples where and are subsets of [t](where [t]:=) and is a polynomial of degree , such that
We can see Theorem 2 is a direct conclusion of Lemma 1 as follows:
Lemma 1: Consider a function represented by a relu neural network where , the following equation holds.
We will prove that if assumption 1 holds,
, which is equivalent to Lemma 1. To prove Lemma 1, we need Lemma 2.
Lemma 2: For any given where assumption 1 and Condition 1 hold and any , there exists a linear block which satisfies following conditions:
:For any ,
:For any in , , where , the boundary set of , is defined as
:There exists a matrix and a vector such that for
If Lemma 2 holds and assumption 1 holds, let , is a linear function on its support set, a linear block. It is not hard to prove Lemma 1 after that. However, the proof of Lemma 2 is difficult. Before getting into the detail, we’d like to make some remark. Our conclusion may seem strange at first since is like a linear function. Note we derive all these conclusions under assumption 1. Our proof actually shows that assumption 1 does not hold in most cases and the expressive power of thin neural networks is weak. Before proving Lemma 2, we need Lemma 3 as a preparation.
Apparently, for any Relu neural network , there exists an s.t. is a (,1,1)-sa function. This means that there exists an M s.t. can be partitioned into M linear blocks where is a linear function in each block. Furthermore, must be a Lipschitz function in each block. Since is continuous in , it is a Lipschitz function in , which means there exists an L s.t.
for any . Then we can prove Lemma 3.
Lemma 3: If assumption 1 and Condition 1 hold, then for any ray X, if is constant in X, then
Proof of Lemma 3: We assume is L-Lipschitz. For simplicity, let and assume without loss of generality. Then we define a set . Apparently, for any and the volume of is . Thus,
Proof of Lemma 2: We prove this lemma with mathematical induction.
Basis: The k=0 case is simple. We let . It is easy to verify that holds for i=1,2,3,4.
Inductive step: Given that holds for i=1,2,3,4, we will prove that holds for i=1,2,3,4 too. Let . Apparently, is a linear block which is a subset of . We will prove satisfies for i=1,2,3,4.
Based on , it is easy to see is a linear function on . There exist a matrix and a vector such that on
Note is convex and is convex based on . Thus is convex and so that holds.
Now we are going to prove holds. For any , there exists , such that . Note depends on , but we write it as for simplicity.
Since is an matrix, there must exist an n-dimensional vector such that . Note, depends on , however, we write it as for simplicity. We assume . If it does not hold, we substitute for . Then we consider the following set
, the intersection of and the ray corresponding to and . By , is convex. Obviously, the ray corresponding to and is also convex. Thus is a convex set and so that a continuous part of a ray. For any and any ,
Besides, for any , when i=j,
In general, we find is constant on . Therefore is constant on . We define
Since is a continuous part of a ray, is an interval.
If , then is a ray and thus we can conclude by using Lemma 3.
If , for any , there exist such that
By the definition of , . By ,
. On the other hand, is constant on . Because of continuity it is constant on
Obviously, . Thus,
Since ,then
In all, for any , if assumption 1 holds, . Besides, since for any , , then holds.
Because is continuous and holds, we can easily find holds.
It is a linear function. holds.
Proof of Lemma 1: If assumption 1 holds, by setting in Lemma 3, we find there exists a linear block such that
is a linear function on LBX.
, is a linear function on LBX. As outside LBX, to finish the proof we just need to prove that for any , . For any , let
Since LBX and are both convex, is convex. Thus there exists an interval A such that
Apparently, is a linear function of t on A. Define
If ,then . Thus
. Since is a linear function,
If or , we assume without loss of generality. Then . If , because of the linearity of
Since is Lipschitz, it contradicts with . So
If , we can prove in a similar way.
In general, for any if assumption 1 holds.
Then obviously Theorem 2 is a direct result of Lemma 1.
A.3 Proof of Theorem 3
We denote the input by , and the value of the first layer’s nodes of by , here and let
where , . and are parameters of .Since , there exists a non-zero vector in , which satisfies
Since changes along don’t affect the first layer of network : , which is determined by the first layer of itself, it is constant along as a result. Thus must be constant along some fixed direction .
Now we can prove that: given f and a fixed unit vector , we have a positive that for all continuous which is constant along the direction , the distance between and is lower bounded by . Pick two points and along that , due to the continuity of , there exists positive and that for all in and in , . Let the lebesgue-measure of be , with the triangle inequality , we can see there exists such an which is .
Then treat as a function of . Since is positive and continuous because and are continuous and have compact domain (so any such is uniformly continuous, then ’rotating’ by a small angle guarantees a small uniform difference, one can easily see is continuous now), it has a lower bound over all unit vector . Denote this lower bound as , must be positive because the set of all unit vector is a compact set (see it as the surface of unit ball). Since must be constant along some direction, is the desired universal constant for all .
A.4 Proof of Theorem 4
We first prove the case with input dimension , then the extension to cases is trivial.
We will choose different points and consider functions represented by ReLU network on them. Here,
For any ReLU network , we define a -dimensional vector
We will begin our proof by introducing 2 lemmas.
For any , we will fabric a ReLU network with width and depth 3 such that . Firstly, it is easy to choose appropriate first layer weights and bias to make
Denote the weights and bias of kth layer by and . is a matrix and is a vector such that
Define to be the function at the node in the second layer, which is a piecewise linear function which is linear between any integral points on the x-axis. It satisfies:
Together with the linearity between integral points on the x-axis, the function represented by the node can be uniquely decided. Then we activate those functions by RELU, and add them up to get the final output . One can easily check that
Combined with the definition of and , we have:
Lemma 5: For any k5, only a 0 measure set(Lebesgue measure on the weight and bias space) of the networks in can be equaled by a deep network whose width and depth .
We prove a stronger statement: only a 0 measure set(Lebesgue measure on the weight and bias space) of the networks in can be equaled on specific different points ,by a deep network whose width and depth . Notice the fact that a network with width and depth has degree of freedom = . Define to be one of the deep networks, with width and depth . Let be the function mapping the parameters of the deep network to :
When and , the degree of freedom of the deep network , and is -derivable almost everywhere. Thus, : the set of all , which is the solution space of has a zero measure in according to Differential Homeomorphism Theorem. In fact, we can implement the original mapping to a new function
in the way of adding variables which have no effect on the value of , then the Jacobian of is zero now because the differential of to s is 0, thus by the transform formulation of integration, the measure of the range is zero.
It’s obvious that , so is a negligible subset in and as a result only a negligible set of the functions in this family of wide networks can be equaled by such deep networks.
Then because all parameters in these deep networks are bounded, we can extend the difference on finite points to integration on input domain.
Apparently, the shape of such a deep network can be denoted by a vector whose entry denotes the width of the layer except for the output layer. We denote the shape vector of a network by S(N). Thus for all networks with and ,
Denote the all elements of by , we only need to prove Lemma 6 as followed,then case is proved directly by setting :
Lemma 6: For any wide network which can’t be equaled by deep networks with width and depth as above, there exists a for all deep network with satisfies
Set We are going to prove . With the conclusion of inequability above and continuity of the function , we know for any
Thus, if There must be a sequence satisfies
This causes contradiction to our conclusion of inequability above. So and we are finished with the proof of the case with . ∎
For cases with , we denote these inputs by . We construct the same wide network for only and ignore other inputs(set the weights from them to the first later to be 0). Our wide network still has width and depth 3, and for any deep network with width and depth all our results above hold as well (for the choice of the prechosen points, their value on can be arbitary). The whole proof is finished now.