paper-with-me

Papers

Systematic LLM Translation of Legacy Scientific Code to Differentiable Frameworks: Application to a Land Surface Model

2026-06-04 · Aya Lahlou, Linnia Hawkins, Pierre Gentine arxiv

Differentiable programming offers transformative capabilities for scientific modeling, enabling gradient-based parameter estimation, sensitivity analysis, and data assimilation. Yet, migrating legacy codebases into differentiable frameworks remains a challenge. We present a five-phase LLM-based agentic pipeline that translates legacy Fortran into JAX: static dependency analysis determines module translation order from the full call graph; iterative compile-repair loops correct errors autonomously; and a Fortran reference oracle enforces numerical parity at the module level before integration and gradient verification. We instantiate and evaluate the pipeline on CLM-ml-v2, a 19,000-line Fortran land surface model, and analyze agent behavior across 73 module translation tasks. The resulting differentiable model computes the complete Jacobian in a single backward pass, recovers physical parameters in eight times fewer steps than gradient-free optimization, and achieves a 24 times wall-clock speedup over sequential Fortran at ensemble size N=2,048. Both the translated model and pipeline infrastructure are released as a reusable framework for differentiating other Earth system model components.

📄 PDF Abstract BibTeX arXiv:2606.07681

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study

2025-04-21 · Nishath Rajiv Ranasinghe, Shawn M. Jones, Michal Kucer, Ayan Biswas 외

Large Language Models (LLMs) are increasingly being leveraged for generating and translating scientific computer codes by both domain-experts and non-domain experts. Fortran has served as one of the go to programming lan…

C++ codeCode TranslationTranslation

Accelerating Legacy Numerical Solvers by Non-intrusive Gradient-based Meta-solving

2024-05-05 · Sohei Arisaka, Qianxiao Li

Scientific computing is an essential tool for scientific discovery and engineering design, and its computational cost is always a main concern in practice. To accelerate scientific computing, it is a promising approach t…

Meta-Learningscientific discovery

Leveraging Large Language Models for Code Translation and Software Development in Scientific Computing

2024-10-31 · Akash Dhruv, Anshu Dubey

The emergence of foundational models and generative artificial intelligence (GenAI) is poised to transform productivity in scientific computing, especially in code development, refactoring, and translating from one progr…

Code TranslationPrompt EngineeringTranslation

Static analysis-guided agentic AI translation enables Rust as a full stack bioinformatics language

2026-08-13 · Johan Henriksson arxiv

The field of bioinformatics struggles with legacy code - old code that is commonly used but may no longer have a maintainer, or may be written in an now-unfamiliar language (e.g. Perl, Fortran). This incurs maintenance c…

The Neural Compiler: Program-to-Network Translation for Hybrid Scientific Machine Learning

2026-05-21 · Lucas Sheneman arxiv

Scientific machine learning often requires combining known physics with unknown parameters or correction terms learned from data. Existing approaches either ignore known structure, encode it as a soft penalty, or require…