Recurrent neural networks: vanishing and exploding gradients are not the end of the story
<|reference_start|>Recurrent neural networks: vanishing and exploding gradients are not the end of the story: 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.<|reference_end|>
@article{zucchet2024recurrent,
    title={Recurrent neural networks: vanishing and exploding gradients are not the
  end of the story},
    author={Nicolas Zucchet, Antonio Orvieto},
    journal={arXiv preprint arXiv:2405.21064},
    year={2024},
    archivePrefix={arXiv},
    eprint={2405.21064},
    primaryClass={cs.LG cs.AI math.OC}
}