Repository logo
Research Outputs
Projects
People
Statistics
  1. Home
  2. HSG CRIS
  3. HSG Publications
  4. Training Neural Networks in Single vs Double Precision
Details

Training Neural Networks in Single vs Double Precision

Journal
14th International Conference on Knowledge Discovery and Information Retrieval
ISSN
2184-3228
ISBN
978-989-758-614-9
Type
conference paper
Date Issued
2022-10
Author(s)
Tomas Hrycej  
;
Bernhard Bermeitinger  
;
Siegfried Handschuh  
DOI
10.5220/0011577900003335
Abstract
The commitment to single-precision floating-point arithmetic is widespread in the deep learning community. To evaluate whether this commitment is justified, the influence of computing precision (single and double precision) on the optimization performance of the Conjugate Gradient (CG) method (a second-order optimization algorithm) and RMSprop (a first-order algorithm) has been investigated. Tests of neural networks with one to five fully connected hidden layers and moderate or strong nonlinearity with up to 4 million network parameters have been optimized for Mean Square Error (MSE). The training tasks have been set up so that their MSE minimum was known to be zero. Computing experiments have disclosed that single-precision can keep up (with superlinear convergence) with double-precision as long as line search finds an improvement. First-order methods such as RMSprop do not benefit from double precision. However, for moderately nonlinear tasks, CG is clearly superior. For strongly nonlinear tasks, both algorithm classes find only solutions fairly poor in terms of mean square error as related to the output variance. CG with double floating-point precision is superior whenever the solutions have the potential to be useful for the application goal.
Language
English
HSG Classification
contribution to scientific community
Refereed
Yes
Book title
Proceedings of the 14th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (IC3K 2022) - KDIR
Publisher
SciTePress
Start page
307
End page
314
Pages
8
Event Title
14th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (IC3K 2022) - KDIR
Event Location
Valetta, Malta
Event Date
24-26 October 2022
Official URL
https://www.scitepress.org/Link.aspx?doi=10.5220/0011577900003335
URL
https://www.alexandria.unisg.ch/handle/20.500.14171/123205
Contact Email Address
bernhard.bermeitinger@unisg.ch
Support
HSG researchers can find instructions here for adding or importing publications (DOI, ORCID). Please send questions to alexandria@unisg.ch

Built with DSpace-CRIS software - Extension maintained and optimized by 4Science

  • Accessibility settings
  • Privacy policy
  • End User Agreement
  • Send Feedback
Repository logo COAR Notify