arXiv:2610.11260cs.DCOct 2026

Manuscript Offprint

arXiv:2610.11260

LLM Agents as Resilience Engineers for Scientific Applications

Hai Duc Nguyen, Tekin Bicer, Kyle Chard, Ian Foster, Bogdan Nicolae

Hai Duc Nguyen*, Tekin Bicer*, Kyle Chard†, Ian Foster*, Bogdan Nicolae*

  • Argonne National Laboratory, † University of Chicago

{hai.nguyen,tbicer,bnicolae}@anl.gov, {chard,foster}@uchicago.edu

Abstract—Efficient checkpoint/restart support is essential for resilient HPC scientific applications, but implementing it requires substantial expertise: developers must identify recoverable state, choose globally consistent checkpoint points, and preserve application invariants during restart. We study whether frontier LLM coding agents can automate this process. We build a benchmark suite of 16 MPI applications spanning diverse domains, code sizes, and critical-state structures, and evaluate them with a no-human-in-the-loop generate-validate-revise pipeline for checkpoint/restart synthesis. Across the benchmark, the pipeline produces 41 working resilient implementations. Our results show that agent-driven resilience engineering is practical when critical state is visible or accessible through coherent abstractions: successful runs finish in under one hour on average, consume about 15M tokens, and produce implementations with negligible failure-free overhead and recovery efficiency comparable to human-written code. However, modularized and fragmented state remains a major limitation, with some failed attempts consuming over 100M tokens and 300 minutes without producing a working implementation.

Index Terms—checkpoint/restart, AI-driven resilience, HPC, fault tolerance, automated state capture using code generation, LLMs and transformers

I. INTRODUCTION

Modern scientific applications often execute for hours or days on large-scale HPC systems, making them vulnerable to hardware, software, and infrastructure failures whose likelihood increases with scale and runtime [1], [2]. Resilience is therefore essential for preserving progress. The dominant approach is checkpoint/restart, where the application periodically saves its execution state to durable storage and, after a failure, resumes from the latest checkpoint instead of restarting from scratch. However, implementing efficient checkpoint/restart support remains challenging. Developers must identify the proper critical state needed for recovery, choose checkpoint points where the distributed state is globally consistent, and implement restart logic that preserves communication and data-structure invariants. Performing these tasks efficiently requires significant engineering effort, application knowledge, and time.

Recent advances in large language models (LLMs) and tool-using coding agents [3], [4], whose performance on real-world software engineering has improved rapidly [5], [6], raise a natural question: can expert resilience-engineering tasks be automated? Checkpoint/restart integration appears well matched to coding-agent capabilities because its high-level workflow is straightforward: first identify critical state, insert checkpoint calls, then implement restart and recovery logic. In principle, coding agents could provide a new form of transparent checkpointing (e.g., DMTCP [7]) by generating application-level checkpoint/restart code that captures only the critical state needed for recovery, rather than snapshotting the entire process. Realizing this promise, however, remains difficult because scientific applications vary widely in data layout, communication patterns, build systems, runtime behavior, and checkpoint/restart requirements.

This paper investigates the operational viability of agent-driven resilience engineering as a building block for distributed HPC applications. We construct a benchmark suite of 16 MPI applications spanning diverse domains, code sizes, computation and communication patterns, and critical-state structures. We classify these applications into four groups (e.g., plain static, plain dynamic, encapsulated, and modularized) that capture increasing difficulty in identifying and restoring the state needed for recovery. We then build a no-human-in-the-loop generate-validate-revise pipeline to test whether frontier LLM coding agents can synthesize efficient checkpoint/restart implementations for these applications. Our results show that agent-driven resilience engineering is practical for a meaningful class of applications: agents reliably generate working implementations when critical state is directly visible or accessible through coherent framework abstractions, and the generated code achieves negligible failure-free overhead while mitigating injected failures with efficiency comparable to human-engineered checkpoint/restart implementations. However, our study also exposes clear limitations. Applications whose critical state is highly modularized and fragmented across subsystems remain difficult for current agents, largely because they struggle to infer a complete and correct view of the application state needed for recovery. The contributions of this paper are as follows.

• Critical-state classification for resilience refactoring. We introduce a four-class taxonomy that captures how critical state visibility, mutability, abstraction, and fragmentation affect checkpoint/restart support ( §IV§IV).

• Automatic resilience-generation pipeline. We design a no-human-in-the-loop generate-validate pipeline that drives LLM-backed coding agents to refactor MPI applications, producing 41 working resilient implementations across 48 application-model settings ( §V§V).

• Comprehensive evaluation and practical insights. We evaluate three frontier LLM models on 16 representative

MPI applications. The results show that agent-driven resilience engineering is practical: agents produce implementations with negligible failure-free overhead and recovery efficiency comparable to human-written code in less than one hour, consuming about 15M tokens on average. We also identify modularized and fragmented critical state as a key limitation for current agents ( §\SVI).

References (70)