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

Introduction

In the field of computational geophysics, researchers have long grappled with a fundamental trade-off between performance and usability. To achieve the computational efficiency required for large-scale seismic modeling and inversion, software is traditionally written in low-level languages like C or Fortran. While high-performing, these "brittle" codebases are notoriously difficult to modify, port to emerging hardware architectures (such as GPUs), or integrate with modern machine learning ecosystems. This creates a significant barrier to innovation, as researchers may spend months refactoring thousands of lines of code just to test a new mathematical formulation.

The SLIM framework addresses this challenge by proposing a "separation of concerns." By utilizing a multi-layered software abstraction stack, it allows mathematicians and geophysicists to focus on physics and optimization using high-level notation, while a specialized backend handles the automated generation of optimized, hardware-agnostic machine code.

Methods: A Vertical Integration Stack

The core of the SLIM framework is the vertical integration of Domain-Specific Languages (DSLs) that bridge the gap from abstract mathematics to high-performance computing (HPC) execution.

The SLIM software stack: vertical integration from high-level Julia abstractions to optimized C code.

JUDI (Julia)

At the highest level, JUDI provides a linear algebra DSL in Julia. It represents wave-equation modeling as abstract linear operators, allowing users to write code that mirrors mathematical notation (e.g., d = F * q). This abstraction simplifies the implementation of complex algorithms like Full Waveform Inversion (FWI) or Least-Squares Reverse Time Migration (LSRTM).

Devito (Python)

JUDI interfaces with Devito, a symbolic DSL that utilizes SymPy to define partial differential equations (PDEs). Devito employs a just-in-time (JIT) compiler to transform these symbolic equations into highly optimized C code. This code is automatically tailored for specific hardware architectures, including CPUs, GPUs, and ARM processors, ensuring performance without manual tuning.

Physics-as-a-Layer

To support physics-informed machine learning, the framework includes interoperability layers such as Devito4PyTorch and JUDI4Flux. These allow wave-equation operators to function as standard layers within deep learning frameworks, enabling automatic differentiation (AD) through the physics-based modeling.

Key Insights and Applications

Math-to-Code Parity

The framework drastically reduces the "turnaround time" for research. Complex inversions can be implemented in a few lines of code, allowing for rapid prototyping of new ideas. Because the low-level code is JIT-compiled, the same high-level Julia script can run seamlessly on a laptop or a massive GPU cluster.

Deep Priors and Uncertainty Quantification

By wrapping PDE solvers as neural network layers, the framework combines the inductive bias of convolutional neural networks (CNNs) with the physical rigor of the wave equation. This is particularly effective for seismic imaging under noise or with sparse data. Using a Bayesian approach with "deep priors," the framework can produce cleaner subsurface images and provide normalized point-wise standard deviation maps, offering a quantifiable measure of confidence in the reconstruction.

Results

The scalability and flexibility of the framework have been demonstrated on several industry-standard benchmarks, including the 2007 BP TTI and Marmousi-II models.

Uncertainty quantification results: (a) LSRTM without regularization, (b) conditional mean estimate with deep priors, and (c) normalized point-wise standard deviation.

Key achievements include:

  • Scalable RTM: Successful execution of Reverse Time Migration on the BP TTI model using GPUs, employing randomized trace estimation to manage memory constraints.
  • Robust Imaging: The integration of deep priors resulted in significantly improved image quality compared to standard non-regularized imaging, as seen in the Parihaka dataset experiments.
  • Multi-Physics Integration: The abstractions facilitate the coupling of different physical simulations, such as fluid-flow and seismic wave propagation, which is essential for monitoring carbon capture and storage (CCS).

Conclusion and Future Work

The SLIM framework demonstrates that high-level abstractions do not have to come at the cost of performance. By automating the path from math to machine code, it empowers researchers to explore complex, multi-physics inverse problems at scale. Future developments will focus on expanding hardware support for dedicated accelerators like TPUs, integrating non-convex optimization techniques, and further simplifying cloud deployment to make large-scale geophysics more accessible to the broader research community.

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