Non-intrusive Differentiation of High-Performance Seismic Solvers
Xi Wang, Zhanwen Li, Xin Liu
Key points
From the paper's conclusion- Here we present a non-intrusive workflow and an Agent Skill for adapting existing seismic solvers to differentiable inversion.
Abstract
Differentiable frameworks for seismic tomography compute model gradients without hand-derived adjoint sources. Some differentiate through wave propagation, which can be costly in time and memory at scale. Others use native adjoints with automatically constructed sources, and the efficiency is largely determined by forward and adjoint solves. Mature seismic solvers offer efficient, well-tested propagation, but a reusable workflow is still needed to connect them to user-defined misfit functions. Here we present a non-intrusive workflow and an Agent Skill for adapting existing seismic solvers to differentiable inversion. We apply automatic differentiation (AD) to the preprocessing and misfit, stopping backpropagation at the synthetic data. The solver injects this data derivative at the receivers to form the adjoint source, then computes the model gradient from the native forward and adjoint simulations. To assess accuracy and computational cost, we compared our hybrid implementation (HybridADFWI) with full AD in ADFWI using the same forward solver. Across six settings, the gradients agreed to within $1.4\times10^{-6}$ in relative $L_2$ norm. For one iteration, HybridADFWI was 2.4-4.6 times as fast as ADFWI and used 5-22% less peak reserved GPU memory. Guided by the Skill, a coding agent adds missing adjoint routines, verifies gradients, and runs recovery tests for user-selected model parameters. We applied the Skill to two independent solvers, building DiffSPECFEM2D and DiffAxiSEM3D. In the P-wave velocity tests, DiffSPECFEM2D recovered the main dipping layers of Marmousi-II, and DiffAxiSEM3D recovered the overall shape of the SEG/EAGE salt body. Both frameworks support user-defined misfits while preserving native kernels and parallel execution.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Flexible Automatic Differentiation‐Based Framework for Seismic Data Q CompensationGeophysical Prospecting · 2026
- AdjointFlow: Accelerating Scientific Inverse Problems with Physics-Based TransportarXiv · 2026
- Velocity Model Building and Editing With Guided Denoising Diffusion Implicit ModelsJournal of Geophysical Research: Machine Learning and Computation · 2026
- G 2 IFWI: Gradient‐Coupled Diffusion Priors for Regularizing Implicit Full Waveform InversionJournal of Geophysical Research: Machine Learning and Computation · 2026
- Automatic Differentiation with Constraints in Forward and Inverse ProblemsarXiv · 2026
- Memory-Efficient Deep-Learning-Matching Full Waveform Inversion for Field-Scale DatasetsGeophysical Journal International · 2026