> No matter what the function, there is guaranteed to be a neural network so that for every possible input, x, the value f(x) (or some close approximation) is output from the network Love NNs, but accuracy is relative. At some resolution of "close approximation," every function "computes" every other function.
A visual proof that neural nets can compute any function
21–30 of 67 posts
Re: A visual proof that neural nets can compute any function
#22Earlier quoted context omitted.
What would be an example of a practical task that needs to be modeled with such a function?
Rounding
Re: A visual proof that neural nets can compute any function
#23Re: A visual proof that neural nets can compute any function
#24Earlier quoted context omitted.
Rounding
Good example, but in this case it's actually very easy to find weights for the neural network that would do rounding with any desired precision (look for the "stack of towers" method in the article).
In practice, if we needed such a network, we would probably have a restricted domain, so there is only a finite number of discontinuous, and there would be a sufficiently large network that could solve it to an arbitrary precision.
We would not be able to do this with more exotic functions that are densly discontinues, such as the function:
f(x) = 0 iff x is rational
f(x) = 1 iff x is irrational
There is no way a neural network can reasonably model that function.Re: A visual proof that neural nets can compute any function
#25Re: A visual proof that neural nets can compute any function
#26Given that we can have infinite big neural network and train it in an infinite length of time, it can compute any function.
Re: A visual proof that neural nets can compute any function
#27https://en.wikipedia.org/wiki/Basis_function
This is basic and obvious math. Does slapping the word 'neural' magically make obvious results 1000% more interesting? Why? Because the word 'neural' carries some of that artificial-intelligence-technology-of-the-future cachet?
Re: A visual proof that neural nets can compute any function
#28> Every continuous function in the function space can be represented as a linear combination of basis functions https://en.wikipedia.org/wiki/Basis_function This is basic and obvious math. Does slapping the word 'neural' magically make obvious results 1000% more interesting? Why? Because the word 'neural' carries some of that artificial-intelligence-technology-of-the-future cachet?
" If you're a mathematician the argument is not difficult to follow, but it's not so easy for most people. That's a pity, since the underlying reasons for universality are simple and beautiful."
Indeed, as a mathematician, the universality of neural networks is obvious to me from their definition. However, this article is explicitly not aimed at mathematicians, and (as far as I can tell) does a good job of presenting the argument without requiring unnecessary math knowledge, which is something that we tend to be bad at doing.
Furthermore, the universality does not directly follow from the quote you provide, as you would still need to show that the hidden layer neurons form a basis. Infact, the article was about constructing such a basis in the neurons. The only thing that bringing in your quote would serve to do is make the article more confusing by unnecessarily introducing the concept of basis functions.
Re: A visual proof that neural nets can compute any function
#29> No matter what the function, there is guaranteed to be a neural network so that for every possible input, x, the value f(x) (or some close approximation) is output from the network Love NNs, but accuracy is relative. At some resolution of "close approximation," every function "computes" every other function.
What the author means by "close approximation" is clarified later (under the "Two caveats" header). The point is that you can get an arbitrarily close approximation of any continuous function, just by choosing a sufficiently large number of hidden units. That is, for any epsilon > 0, a neural network can approximate any function within epsilon of the function's exact value at all points, with enough hidden units. The…
Re: A visual proof that neural nets can compute any function
#30Isn't this similar to infinite monkey theorem: "Given an infinite length of time, a chimpanzee punching at random on a typewriter would almost surely type out all of Shakespeare's plays." Given that we can have infinite big neural network and train it in an infinite length of time, it can compute any function.
It's more like given an infinite number of parameters, you have enough degrees of freedom to describe the vector space a function lives in with some set of basis functions, and a neural net supplies that.