0

Neural Networks Fail to Learn Periodic Functions and How to Fix It

New activation function $x + \sin^2(x)$ achieves periodic inductive bias in neural networks, successfully learning periodic functions and applied to temperature and financial data prediction.

Year
2020
Venue
NeurIPS 2020 12
Authors
3
Hosting
Abstract onlyARXIV-DEFAULT

Cite

Notes

Only stored in your browser.

Attribution

Abstract & full text
arxiv.org/abs/2006.08195v2ARXIV-DEFAULT
TL;DR
Semantic Scholar
Attribution policy →

Abstract

Previous literature offers limited clues on how to learn a periodic function using modern neural networks. We start with a study of the extrapolation properties of neural networks; we prove and demonstrate experimentally that the standard activations functions, such as ReLU, tanh, sigmoid, along with their variants, all fail to learn to extrapolate simple periodic functions. We hypothesize that this is due to their lack of a "periodic" inductive bias. As a fix of this problem, we propose a new activation, namely, $x + \sin^2(x)$, which achieves the desired periodic inductive bias to learn a periodic function while maintaining a favorable optimization property of the ReLU-based activations. Experimentally, we apply the proposed method to temperature and financial data prediction.

Authors

3