Beware of Sharp Minima: Loss Landscape Geometry Predicts the Generalizability of Hydrological Models

Lee, Max Nghiem, Janssen, Joseph, Lai, Ching-Yao

–arXiv.org Artificial Intelligence 

In hydrology, many parameter configurations exhibit comparable performance on training data, but a (seemingly random) subset of these fail to generalize under climate change, leading to poor post-deployment performance. In this paper, we aim to demonstrate that this failure to generalize may be a result of the underlying structure of the loss landscape at these local extrema. Specifically, we hypothesize that parameter sets at sharp minima have poor generalization ability while parameter sets at flat minima have strong generalization ability. While optimizing for flat minima has gained significant attention in computer science--most notably through algorithms like Sharpness-Aware Minimization (SAM)--these techniques remain largely unexplored in the hydrology community. We evaluate the effectiveness of SAM in finding more generalizable deep learning models using the CAMELS dataset, a standard benchmark in hydrology. By demonstrating the link between flat solutions and improved test accuracy, our work highlights practical, easily implementable methods that hydrologists can use to improve model generalization.