Abstract

Implementing artificial neural networks is commonly achieved via high-level programming languages such as Python and easy-to-use deep learning libraries such as Keras. These software libraries come preloaded 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 the optimizer proves unexpectedly critical. This in turn reveals many new neural network architectures that produce considerable improvements in climate model stability including some with reduced error, for an especially challenging training dataset.

Highlights

  • Introduction eFortran programming language was originally developed in the 1950s and published in 1957

  • We introduce a software library, the Fortran-Keras Bridge (FKB). is two-way bridge connects environments where deep learning resources are plentiful with those where they are scarce. e paper describes several unique features offered by FKB, such as customizable layers, loss functions, and network ensembles. e 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

  • One solution is to rewrite all existing deep learning libraries in Fortran. e second solution is to leverage existing frameworks and bridge available functionalities to Fortran. e former is extremely arduous and time consuming, considering the size and scope of existing deep learning packages and the dizzying pace of their evolution [17,18,19]. e latter approach, which this paper describes, is to allow users to leverage the power of existing frameworks while providing a bridge between paradigms where deep learning resources are plentiful and those where they are scarce

Read more

Summary

A Fortran-Keras Deep Learning Bridge for Scientific Computing

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). E latter approach, which this paper describes, is to allow users to leverage the power of existing frameworks while providing a bridge between paradigms where deep learning resources are plentiful and those where they are scarce In this way, we can leverage aspects of currently available deep learning software libraries, such as Keras [20], and bring them to large-scale scientific computing packages written in Fortran. We can leverage aspects of currently available deep learning software libraries, such as Keras [20], and bring them to large-scale scientific computing packages written in Fortran To this end, we propose the Fortran-Keras Bridge (FKB), a two-way bridge connecting models in Keras with ones available in Fortran. We begin by reviewing existing Fortran projects that would benefit from the integration of FKB

Fortran Projects
Features of FKB
Findings
Neural networks
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call