Saved in:
Bibliographic Details
Main Authors: Zucchet, Nicolas, Orvieto, Antonio
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2405.21064
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929575764688896
author Zucchet, Nicolas
Orvieto, Antonio
author_facet Zucchet, Nicolas
Orvieto, Antonio
contents Recurrent neural networks (RNNs) notoriously struggle to learn long-term memories, primarily due to vanishing and exploding gradients. The recent success of state-space models (SSMs), a subclass of RNNs, to overcome such difficulties challenges our theoretical understanding. In this paper, we delve into the optimization challenges of RNNs and discover that, as the memory of a network increases, changes in its parameters result in increasingly large output variations, making gradient-based learning highly sensitive, even without exploding gradients. Our analysis further reveals the importance of the element-wise recurrence design pattern combined with careful parametrizations in mitigating this effect. This feature is present in SSMs, as well as in other architectures, such as LSTMs. Overall, our insights provide a new explanation for some of the difficulties in gradient-based learning of RNNs and why some architectures perform better than others.
format Preprint
id arxiv_https___arxiv_org_abs_2405_21064
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Recurrent neural networks: vanishing and exploding gradients are not the end of the story
Zucchet, Nicolas
Orvieto, Antonio
Machine Learning
Artificial Intelligence
Optimization and Control
Recurrent neural networks (RNNs) notoriously struggle to learn long-term memories, primarily due to vanishing and exploding gradients. The recent success of state-space models (SSMs), a subclass of RNNs, to overcome such difficulties challenges our theoretical understanding. In this paper, we delve into the optimization challenges of RNNs and discover that, as the memory of a network increases, changes in its parameters result in increasingly large output variations, making gradient-based learning highly sensitive, even without exploding gradients. Our analysis further reveals the importance of the element-wise recurrence design pattern combined with careful parametrizations in mitigating this effect. This feature is present in SSMs, as well as in other architectures, such as LSTMs. Overall, our insights provide a new explanation for some of the difficulties in gradient-based learning of RNNs and why some architectures perform better than others.
title Recurrent neural networks: vanishing and exploding gradients are not the end of the story
topic Machine Learning
Artificial Intelligence
Optimization and Control
url https://arxiv.org/abs/2405.21064