NeurIPS 2020poster174 citations

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

Liu Ziyin, Tilman Hartwig, Masahito Ueda

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.

BibTeX
@inproceedings{NEURIPS2020_11604531,
 author = {Ziyin, Liu and Hartwig, Tilman and Ueda, Masahito},
 booktitle = {Advances in Neural Information Processing Systems},
 editor = {H. Larochelle and M. Ranzato and R. Hadsell and M.F. Balcan and H. Lin},
 pages = {1583--1594},
 publisher = {Curran Associates, Inc.},
 title = {Neural Networks Fail to Learn Periodic Functions and How to Fix It},
 url = {https://proceedings.neurips.cc/paper_files/paper/2020/file/1160453108d3e537255e9f7b931f4e90-Paper.pdf},
 volume = {33},
 year = {2020}
}
Neural Networks Fail to Learn Periodic Functions and How to Fix It · NeurIPS 2020