News for hackers. Stuff that matters.
Re:Any Deep ReLU Network Is Shallow by superkuh on Friday June 23, 2023 @04:24PM (#36451779)
So any N-layer network with the relu _/ activation function can be restated in terms of a 3 layer network as long as the 3 layers can have infinite parameters and as long as you have near infinite computing power to convert the big ones. Cool but not yet useful.
Re:Any Deep ReLU Network Is Shallow by PartiallyTyped on Friday June 23, 2023 @04:43PM (#36451951)
> How well does a classic deep net architecture like AlexNet or VGG19 classify on a standard dataset such as CIFAR-10 when its “width”— namely, number of channels in convolutional layers, and number of nodes in fully-connected internal layers — is allowed to increase to infinity? Such questions have come to the forefront in the quest to theoretically understand deep learning and its mysteries about optimization and generalization. They also connect deep learning to notions such as Gaussian processes and kernels. A recent paper [Jacot et al., 2018] introduced the Neural Tangent Kernel (NTK) which captures the behavior of fully-connected deep nets in the infinite width limit trained by gradient descent; this object was implicit in some other recent papers. An attraction of such ideas is that a pure kernel-based method is used to capture the power of a fully-trained deep net of infinite width.

https://openreview.net/pdf?id=rkl4aESeUH, https://github.com/google/neural-tangents

> It has long been known that a single-layer fully-connected neural network with an i.i.d. prior over its parameters is equivalent to a Gaussian process (GP), in the limit of infinite network width.

https://arxiv.org/abs/1711.00165

And of course, one needs to look back at SVMs applying a kernel function and separating with a line, which looks a lot like an ANN with a single hidden layer followed by a linear mapping.

https://stats.stackexchange.com/questions/238635/kernel-meth...

Re:Any Deep ReLU Network Is Shallow by visarga on Friday June 23, 2023 @06:45PM (#36453234)
> So any N-layer network with the relu _/ activation function

The paper talks only about models with additive operations among activations. It doesn't say anything about more complex networks like transformers.

In transformers there are multiplicative interactions between activations inside the attention matrix, it is unclear if they can be approximated with just a 3 layer ReLU network, or if such conversion would be practical at all.

Re:Any Deep ReLU Network Is Shallow by uoaei on Saturday June 24, 2023 @02:39AM (#36456190)
It would be very surprising if this result was relevant for transformers considering the softmax that's present there.
Re:Any Deep ReLU Network Is Shallow by visarga on Saturday June 24, 2023 @04:36AM (#36456753)
true