Implementation of tangent linear and adjoint models for neural networks based on a compiler library tool
Sa Xiao, Hao Jing, Honglu Sun, Haoyu Li

TL;DR
This paper introduces TorchNWP, a compilation library that efficiently couples neural networks with traditional numerical models, enabling improved data assimilation and weather prediction accuracy through tangent linear and adjoint models.
Contribution
It presents a unified interface for integrating deep learning models into numerical models, supporting tangent linear and adjoint models, and enabling deployment on heterogeneous platforms with minimal code modifications.
Findings
Efficient coupling of neural networks with numerical models demonstrated in weather prediction.
Implementation of tangent linear and adjoint models improves data assimilation accuracy.
Supports deployment on heterogeneous computing platforms.
Abstract
This paper presents TorchNWP, a compilation library tool for the efficient coupling of artificial intelligence components and traditional numerical models. It aims to address the issues of poor cross-language compatibility, insufficient coupling flexibility, and low data transfer efficiency between operational numerical models developed in Fortran and Python-based deep learning frameworks. Based on LibTorch, it optimizes and designs a unified application-layer calling interface, converts deep learning models under the PyTorch framework into a static binary format, and provides C/C++ interfaces. Then, using hybrid Fortran/C/C++ programming, it enables the deployment of deep learning models within numerical models. Integrating TorchNWP into a numerical model only requires compiling it into a callable link library and linking it during the compilation and linking phase to generate the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMeteorological Phenomena and Simulations · Model Reduction and Neural Networks · Tropical and Extratropical Cyclones Research
