The relationship between theoretical maximum prediction limits of the LSTM and network size
Abstract
Machine learning is increasingly important for rainfall–runoff modelling. In particular, the community started to widely adopt the Long Short-Term Memory (LSTM) network. One of the most important established best practices  in this context is to train the LSTMs on a large number of diverse basins  (Kratzert et al., 2019; 2024). Intuitively, the reason for adopting this practice is that training deep learning models on small and homogeneous data sets (e.g., data from only a single hydrological basin) leads to poor generalization behavior — especially for high-flows.  To examine this behavior, Kratzert et al. (2024) use a theoretical maximum prediction limit for LSTMs. This theoretical limit is computed as the L1 norm (i.e., the sum of the absolute values of each vector component) of the learned weight vector that relates the hidden states to the estimated streamflow. Hence, for random vectors we could simply obtain larger theoretical limits by increasing the size of the network (i.e., the  number of parameters). However, since LSTMs are trained using gradient descent, this relationship is more intricate.  This contribution explores the relationship between the theoretical limit and the network size. In particular, we will look at how increasing the network size in untrained models increases the prediction limit and contrast it to the scaling behavior of trained models.
BibTeX
@misc{klotz2025relationship,
author = {Daniel Klotz and Sanika Baste and Ralf Loritz and Martin Gauch and Frederik Kratzert},
title = {{The relationship between theoretical maximum prediction limits of the LSTM and network size}},
year = {2025},
doi = {10.5194/egusphere-egu25-10650},
}Ask Althea to put this paper to the test.
Loading related content...