News for hackers. Stuff that matters.
Re:Why train when you can optimize? by whatshisface on Saturday April 30, 2022 @12:47AM (#31213423)
If we're allowed to do that, why can't my activation function be sin(x)?
Re:Why train when you can optimize? by yobbo on Saturday April 30, 2022 @01:11AM (#31213507)
It can, but sin(x) has infinite number of extremes, and the gradients will vanish at those points. Activations will get stuck at 1 and -1 (x=π/2, 3π/2, ...). They set x+(1/a)*sin²(x) to be monotonic, which fixes this.

Or you need to optimize without using gradients.

Re:Why train when you can optimize? by blackcat201 on Saturday April 30, 2022 @01:03AM (#31213474)
You can use sin as activation function, but that would require careful initialization to avoid gradient explosion as you would ended up with a lot of points where gradient is simply zero. You can refer to Implicit Neural Representations with Periodic Activation Functions for more details.
Re:Why train when you can optimize? by zarzavat on Saturday April 30, 2022 @01:35AM (#31213612)
It works perfectly if you don’t have any parameters.
Re:Why train when you can optimize? by PartiallyTyped on Saturday April 30, 2022 @01:49AM (#31213676)
Re:Why train when you can optimize? by sicp-enjoyer on Saturday April 30, 2022 @02:08AM (#31213777)
I'm surprised to see almost no discussion of fourier series in that paper, considering fourier series is all about representing signals as linear combinations of sinusoidal functions.
Re:Why train when you can optimize? by PartiallyTyped on Saturday April 30, 2022 @02:22AM (#31213830)
You may be interested in [1] where they go to a great extend to show that the convolution operation that we consider in DL is the dual of fourier series [2].

[1] https://geometricdeeplearning.com

[2] https://arxiv.org/pdf/2104.13478.pdf page 27 (23 if you count book pages).

Re:Why train when you can optimize? by amelius on Saturday April 30, 2022 @08:00AM (#31215357)
Is convolution in DL not implemented with the FFT as the underlying workhorse?
Re:Why train when you can optimize? by PartiallyTyped on Saturday April 30, 2022 @09:41AM (#31216013)
Probably no since FFT is slower and less parallelizable than products.
Re:Why train when you can optimize? by anoy8888 on Saturday April 30, 2022 @08:58AM (#31215707)
I like your article and went to your home page to find more good articles and I like what I saw. Thank you for sharing. The only thing is that I am reading from my phone and the site is not very mobile friendly