A Fortran-Keras Deep Learning Bridge for Scientific Computing
Not on the map. Why?
Abstract (arXiv)
Implementing artificial neural networks is commonly achieved via high-level programming languages like Python and easy-to-use deep learning libraries like Keras. These software libraries come pre-loaded with a variety of network architectures, provide autodifferentiation, and support GPUs for fast and efficient computation. As a result, a deep learning practitioner will favor training a neural network model in Python, where these tools are readily available. However, many large-scale scientific computation projects are written in Fortran, making it difficult to integrate with modern deep learning methods. To alleviate this problem, we introduce a software library, the Fortran-Keras Bridge (FKB). This two-way bridge connects environments where deep learning resources are plentiful, with those where they are scarce. The paper describes several unique features offered by FKB, such as customizable layers, loss functions, and network ensembles. The paper concludes with a case study that applies FKB to address open questions about the robustness of an experimental approach to global climate simulation, in which subgrid physics are outsourced to deep neural network emulators. In this context, FKB enables a hyperparameter search of one hundred plus candidate models of subgrid cloud and radiation physics, initially implemented in Keras, to be transferred and used in Fortran. Such a process allows the model's emergent behavior to be assessed, i.e. when fit imperfections are coupled to explicit planetary-scale fluid dynamics. The results reveal a previously unrecognized strong relationship between offline validation error and online performance, in which the choice of optimizer proves unexpectedly critical. This reveals many neural network architectures that produce considerable improvements in stability including some with reduced error, for an especially challenging training dataset.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 3; 2023: 5; 2024: 2; 2025: 1; 2026: 1.
16 papers.
Sort:
- 2022Hard-Constrained Deep Learning for Climate Downscalingcited by 29
- 2021Climate-Invariant Machine Learningcited by 24
- 2024FuXi Weather: A data-to-forecast machine learning system for global weathercited by 21
- 2021Bridging observation, theory and numerical simulation of the ocean using Machine Learningcited by 15
- 2022Online model error correction with neural networks in the incremental 4D-Var frameworkcited by 13
- 2021Using Machine Learning at Scale in HPC Simulations with SmartSim: An Application to Ocean Climate Modelingcited by 7
- 2022Deep Reinforcement Learning for Computational Fluid Dynamics on HPC Systemscited by 6
- 2021Deep Learning Based Cloud Cover Parameterization for ICONcited by 5
- 2023Multi-fidelity climate model parameterization for better generalization and extrapolationcited by 4
- 2023Navigating the Noise: Bringing Clarity to ML Parameterization Design with O(100) Ensemblescited by 3
- 2023In Situ Framework for Coupling Simulation and Machine Learning with Application to CFDcited by 2
- 2024Online Test of a Neural Network Deep Convection Parameterization in ARP-GEM1cited by 2
4 more
- 2023RoseNNa: A performant, portable library for neural network inference with application to computational fluid dynamicscited by 1
- 2025Stabilizing PDE--ML coupled systemscited by 1
- 2026climt-paraformer: Stable Emulation of Convective Parameterization using a Temporal Memory-aware Transformercited by 1
- 2023Perspectives on AI Architectures and Co-design for Earth System Predictabilitycited by 0
- 2026climt-paraformer: Stable Emulation of Convective Parameterization using a Temporal Memory-aware Transformer22 Apr 2026
- 2025Stabilizing PDE--ML coupled systems24 Jun 2025
- 2024Online Test of a Neural Network Deep Convection Parameterization in ARP-GEM129 Oct 2024
- 2024FuXi Weather: A data-to-forecast machine learning system for global weather10 Aug 2024
- 2023Navigating the Noise: Bringing Clarity to ML Parameterization Design with O(100) Ensembles28 Sep 2023
- 2023Multi-fidelity climate model parameterization for better generalization and extrapolation19 Sep 2023
- 2023RoseNNa: A performant, portable library for neural network inference with application to computational fluid dynamics30 Jul 2023
- 2023In Situ Framework for Coupling Simulation and Machine Learning with Application to CFD22 Jun 2023
- 2023Perspectives on AI Architectures and Co-design for Earth System Predictability7 Apr 2023
- 2022Online model error correction with neural networks in the incremental 4D-Var framework25 Oct 2022
- 2022Hard-Constrained Deep Learning for Climate Downscaling8 Aug 2022
- 2022Deep Reinforcement Learning for Computational Fluid Dynamics on HPC Systems13 May 2022
4 more
- 2021Deep Learning Based Cloud Cover Parameterization for ICON21 Dec 2021
- 2021Climate-Invariant Machine Learning14 Dec 2021
- 2021Bridging observation, theory and numerical simulation of the ocean using Machine Learning26 Apr 2021
- 2021Using Machine Learning at Scale in HPC Simulations with SmartSim: An Application to Ocean Climate Modeling13 Apr 2021
- 2022Hard-Constrained Deep Learning for Climate Downscalingcited by 29
- 2021Climate-Invariant Machine Learningcited by 24
- 2024FuXi Weather: A data-to-forecast machine learning system for global weathercited by 21
- 2021Bridging observation, theory and numerical simulation of the ocean using Machine Learningcited by 15
- 2022Online model error correction with neural networks in the incremental 4D-Var frameworkcited by 13
- 2021Using Machine Learning at Scale in HPC Simulations with SmartSim: An Application to Ocean Climate Modelingcited by 7
- 2022Deep Reinforcement Learning for Computational Fluid Dynamics on HPC Systemscited by 6
- 2021Deep Learning Based Cloud Cover Parameterization for ICONcited by 5
- 2023Multi-fidelity climate model parameterization for better generalization and extrapolationcited by 4
- 2023Navigating the Noise: Bringing Clarity to ML Parameterization Design with O(100) Ensemblescited by 3
- 2023In Situ Framework for Coupling Simulation and Machine Learning with Application to CFDcited by 2
- 2024Online Test of a Neural Network Deep Convection Parameterization in ARP-GEM1cited by 2
12 most cited of 16 All 16 (JSON)
- 2026climt-paraformer: Stable Emulation of Convective Parameterization using a Temporal Memory-aware Transformer22 Apr 2026
- 2025Stabilizing PDE--ML coupled systems24 Jun 2025
- 2024Online Test of a Neural Network Deep Convection Parameterization in ARP-GEM129 Oct 2024
- 2024FuXi Weather: A data-to-forecast machine learning system for global weather10 Aug 2024
- 2023Navigating the Noise: Bringing Clarity to ML Parameterization Design with O(100) Ensembles28 Sep 2023
- 2023Multi-fidelity climate model parameterization for better generalization and extrapolation19 Sep 2023
- 2023RoseNNa: A performant, portable library for neural network inference with application to computational fluid dynamics30 Jul 2023
- 2023In Situ Framework for Coupling Simulation and Machine Learning with Application to CFD22 Jun 2023
- 2023Perspectives on AI Architectures and Co-design for Earth System Predictability7 Apr 2023
- 2022Online model error correction with neural networks in the incremental 4D-Var framework25 Oct 2022
- 2022Hard-Constrained Deep Learning for Climate Downscaling8 Aug 2022
- 2022Deep Reinforcement Learning for Computational Fluid Dynamics on HPC Systems13 May 2022
12 newest of 16 All 16 (JSON)