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.
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.
- 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.
- 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.
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