#### Surprising Instabilities in Training Deep Networks and a Theoretical Analysis

Part of Advances in Neural Information Processing Systems 35 (NeurIPS 2022) Main Conference Track

#### Authors

Yuxin Sun, DONG LAO, Ganesh Sundaramoorthi, Anthony Yezzi

#### Abstract

We empirically demonstrate numerical instabilities in training standard deep networks with SGD. Specifically, we show numerical error (on the order of the smallest floating point bit) induced from floating point arithmetic in training deep nets can be amplified significantly and result in significant test accuracy variance, comparable to the test accuracy variance due to stochasticity in SGD. We show how this is likely traced to instabilities of the optimization dynamics that are localized over iterations and regions of the weight tensor space. We do this by presenting a theoretical framework using numerical analysis of partial differential equations (PDE), and analyzing the gradient descent PDE of a one-layer convolutional neural network, which is sufficient to illustrate these instabilities. We show that it is stable only under certain conditions on the learning rate and weight decay. We reproduce the localized instabilities in the PDE for the one-layer network, which arise when the conditions are violated.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8959811,"math_prob":0.83520836,"size":1180,"snap":"2023-14-2023-23","text_gpt3_token_len":224,"char_repetition_ratio":0.09948979,"word_repetition_ratio":0.0,"special_character_ratio":0.17118645,"punctuation_ratio":0.07329843,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95582294,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-04T10:06:28Z\",\"WARC-Record-ID\":\"<urn:uuid:42bdf48d-0927-4abc-bc4d-f967bd719d2c>\",\"Content-Length\":\"9039\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6d9e7b3e-89b5-4506-a37c-58525dfa6035>\",\"WARC-Concurrent-To\":\"<urn:uuid:6b0ac91f-780e-4f44-b489-7c95ab130f46>\",\"WARC-IP-Address\":\"198.202.70.94\",\"WARC-Target-URI\":\"https://papers.neurips.cc/paper_files/paper/2022/hash/7b97adeafa1c51cf65263459ca9d0d7c-Abstract-Conference.html\",\"WARC-Payload-Digest\":\"sha1:AGMBKPPM4R2V7UGVTNKMSEWXEIJ676KL\",\"WARC-Block-Digest\":\"sha1:HS3HJURX5NTKJKF5XAGJDT3KR7BUQL7W\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224649741.26_warc_CC-MAIN-20230604093242-20230604123242-00282.warc.gz\"}"}