Accelerating innovation with software abstractions for scalable computational geophysics

Mathias Louboutin, Philipp A. Witte, Ali Siahkoohi, Gabrio Rizzuti, Ziyi Yin, Rafael Orozco, Felix J. Herrmann · DOI

TL;DR

The SLIM framework is an open-source software ecosystem that bridges the gap between high-level mathematical abstractions and high-performance computing (HPC) for geophysics. By vertically integrating domain-specific languages (DSLs) like JUDI and Devito, researchers can write concise, math-like code that automatically scales to modern hardware, enabling rapid innovation in seismic inversion and physics-informed machine learning.

What Problem Does This Paper Address?

In computational geophysics, software development has historically been a zero-sum game between performance and usability. To achieve the extreme efficiency required for massive seismic datasets, developers often wrote low-level code that was difficult to maintain, port to new hardware, or adapt for new research ideas.

This "performance-first" approach created a significant barrier to innovation. If a researcher wanted to test a new optimization algorithm or integrate a machine learning model, they often faced the daunting task of refactoring thousands of lines of legacy code. The authors address this by advocating for a "separation of concerns," where the mathematical formulation of a problem is decoupled from its low-level implementation on hardware like GPUs or CPUs.

Methods

The authors introduce the SLIM framework, which relies on three core principles: high-level mathematical abstraction, vertical integration for scalability, and interoperability through language standards.

The framework is built as a stack of specialized tools:

  • Devito: At the lowest level, this symbolic DSL allows users to define wave equations using syntax similar to mathematical notation. It features a just-in-time (JIT) compiler that generates highly optimized C code for various architectures (CPU, GPU, ARM).
  • JUDI: A linear algebra DSL that sits on top of Devito. It treats wave-equation modeling and inversion as abstract matrix-vector operations, allowing complex solvers like Full-Waveform Inversion (FWI) to be written in just a few lines of Julia code.
  • ML Integration: The framework connects these tools to popular machine learning libraries like PyTorch and Flux. This allows researchers to treat seismic propagators as differentiable layers within a neural network.
Figure 1: Schematics of the vertical integration in JUDI that enables at scale inversion through layers of abstractions.

Datasets

The paper demonstrates the framework's versatility using several industry-standard and research datasets:

  • 2007 BP TTI model: Used to demonstrate Reverse Time Migration (RTM) at scale on GPUs.
  • Marmousi-II model: Used for parallel FWI exercises combining multiple optimization toolboxes.
  • Parihaka dataset: A 2D subset used for seismic imaging with deep priors and uncertainty quantification.
  • 2D Overthrust model: Used to test loop-unrolled Least-Squares RTM (LSRTM).
  • Compass model: Used for the end-to-end CO2 monitoring simulation.

Key Insights and Ideas

  • Math-to-Code Parity: The biggest "aha moment" is that complex geophysical problems can be expressed almost exactly as they appear in textbooks. For example, a Gauss-Newton update for FWI can be reduced to five lines of code without sacrificing the performance of the underlying C/OpenMP kernels.
  • Plug-and-Play Physics: Because each step is abstracted, researchers can easily swap components. The authors demonstrate this by replacing a traditional fluid-flow solver with a trained Fourier Neural Operator (FNO) for carbon storage monitoring, significantly boosting computational efficiency while maintaining accuracy.
  • Differentiable Programming: By following language standards (like multiple dispatch in Julia), the framework enables seamless integration with Automatic Differentiation (AD). This allows for "end-to-end" inversion where gradients can flow through fluid-flow, rock physics, and wave physics modules simultaneously.

Key Results

The framework's efficiency is showcased through several high-impact applications:

  • Scalable Imaging: The authors successfully ran RTM on the 2007 BP TTI model entirely on a GPU using randomized trace estimation, avoiding costly data transfers back to the CPU.
Figure 2: 2D RTM on the 2007 BP TTI model with a marine acquisition. This RTM was run on a GPU without moving off to the CPU at any time using randomized trace estimation as an extension of JUDI [17, 18].
  • Uncertainty Quantification: Using "deep priors" (untrained CNNs as regularizers), the framework produced not just seismic images but also normalized pointwise standard deviation maps, giving researchers a measure of confidence in their results.
Figure 3: Imaging a 2D subset of the Parihaka [35] dataset with deep priors [34]. (a) LSRTM without any regularization. (b) The conditional (posterior) mean estimate, using the deep prior as regularization. (c) Normalized pointwise standard deviation.
  • Multi-Physics Inversion: The authors built a coupled framework for monitoring geological carbon storage, jointly inverting for rock permeability from time-lapse seismic data by integrating three different types of physics.
Figure 5: End-to-end inversion of CO2 concentration from seismic measurements. In order to obtain this end-to-end result, the three operators representing the fluid-flow modeling, rock property modeling, wave modeling, and their derivatives are integrated by combining AD and manually defined gradients.

Limitations and Future Work

While the SLIM framework significantly lowers the barrier to entry for HPC-backed research, the authors note that there is always room for more specialized hardware support. Future work will focus on:

  • Expanding capabilities for Cloud computing environments.
  • Targeting task-dedicated accelerators like TPUs.
  • Developing more robust tools for non-convex optimization problems common in geophysics.

Summary updated

BibTeX
@inproceedings{louboutin2022accelerating,
  author = {Mathias Louboutin and Philipp A. Witte and Ali Siahkoohi and Gabrio Rizzuti and Ziyi Yin and Rafael Orozco and Felix J. Herrmann},
  title = {{Accelerating innovation with software abstractions for scalable computational geophysics}},
  booktitle = {Second},
  year = {2022},
  doi = {10.1190/image2022-3750561.1},
}
Figure