We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.LG

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Machine Learning

Title: Approximating Activation Functions

Abstract: ReLU is widely seen as the default choice for activation functions in neural networks. However, there are cases where more complicated functions are required. In particular, recurrent neural networks (such as LSTMs) make extensive use of both hyperbolic tangent and sigmoid functions. These functions are expensive to compute. We used function approximation techniques to develop replacements for these functions and evaluated them empirically on three popular network configurations. We find safe approximations that yield a 10% to 37% improvement in training times on the CPU. These approximations were suitable for all cases we considered and we believe are appropriate replacements for all networks using these activation functions. We also develop ranged approximations which only apply in some cases due to restrictions on their input domain. Our ranged approximations yield a performance improvement of 20% to 53% in network training time. Our functions also match or considerably out perform the ad-hoc approximations used in Theano and the implementation of Word2Vec.
Comments: 10 Pages, 5 Figures, 1 Table
Subjects: Machine Learning (cs.LG); Performance (cs.PF); Machine Learning (stat.ML)
MSC classes: 68U99 (Primary) 68T01
Cite as: arXiv:2001.06370 [cs.LG]
  (or arXiv:2001.06370v1 [cs.LG] for this version)

Submission history

From: Nicholas Gerard Timmons [view email]
[v1] Fri, 17 Jan 2020 15:25:44 GMT (363kb,D)

Link back to: arXiv, form interface, contact.