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

By Liu Ziyin, Tilman Hartwig, Masahito Ueda. 2020

233 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Management Science and Operations Research, Statistical and Nonlinear Physics

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Cong Han
  2. Nima Mesgarani
  3. Boris Ginsburg
  4. Wei Ping
  5. Gavin Mischler
  6. Vinay S. Raghavan
  7. Hubert Siuzdak
  8. Sang-gil Lee

In Management Science and Operations Research

  1. Nima Mesgarani
  2. Wei Ping
  3. Sang-gil Lee
  4. Bryan Catanzaro
  5. Boris Ginsburg

In Statistical and Nonlinear Physics

  1. Bryan Catanzaro
  2. Wei Ping
  3. Sang-gil Lee
  4. Kundan Kumar
  5. Sung-Hoon Yoon
  6. Boris Ginsburg
  7. Rithesh Kumar

Citations in the corpus