Learned multiphysics inversion with differentiable programming and machine learning

Mathias Louboutin, Ziyi Yin, Rafael Orozco, Thomas J. Grady Ii, Ali Siahkoohi, Gabrio Rizzuti, Philipp A. Witte, Olav Møyner, Gerard J. Gorman, Felix J. HerrmannThe Leading Edge 2023

TL;DR

This paper introduces a new open-source software framework for geophysical inverse problems that seamlessly integrates wave physics, fluid flow simulations, and machine learning. By leveraging differentiable programming and high-level abstractions, they demonstrate a scalable approach to complex problems like subsurface permeability inversion, paving the way for faster and more efficient subsurface characterization.

What Problem Does This Paper Address?

The paper tackles the challenge of performing complex geophysical inversions, particularly for subsurface characterization (like estimating permeability for CO2 storage). Traditional methods often rely on monolithic, low-level code that is difficult to maintain, extend, and couple with modern techniques like machine learning or multiphase flow simulations. This lack of abstraction and interoperability hinders innovation and makes it costly to develop new algorithms or integrate different physical models. The authors aim to bridge this gap by creating a flexible, scalable, and maintainable software framework that facilitates the integration of diverse computational components.

Methods

The core of the paper lies in the design principles and software architecture of their framework. Key methodological aspects include:

  • Differentiable Programming: They heavily utilize Julia's automatic differentiation (AD) capabilities. This allows them to compute gradients of complex, coupled physical models (wave physics, fluid flow) with respect to model parameters, which is crucial for optimization-based inversion.
  • High-Level Abstractions: The framework is built on layers of abstraction, making it readable and scalable. This includes:
  • Mathematical Language: Using mathematical formulations (e.g., partial differential equations for wave physics, linear algebra for operators) to guide the software design.
  • Domain-Specific Languages (DSLs): Employing DSLs like Devito for wave physics and JUDI.jl for linear algebra, which automatically generate optimized code.
  • Separation of Concerns: Hierarchically organizing the inversion problem to manage complexity.
  • Integration of Machine Learning:
    • Learned Priors (Normalizing Flows): Using invertible neural networks (Normalizing Flows) to learn complex distributions of subsurface models, acting as powerful regularizers in inversion.
  • Learned Surrogates (Fourier Neural Operators - FNOs): Employing FNOs as fast, data-driven approximations for computationally expensive multiphase flow simulations, significantly speeding up the inversion process.
  • Reproducible Research: Adopting practices like version control and automated build systems.

Datasets

The paper uses synthetic datasets for demonstration and evaluation. Specifically:

  • Compass Model: Slices from the Compass model (a standard benchmark in geophysics) are used to train the normalizing flow prior.
  • Synthetic Time-Lapse Seismic Data: Generated from a simulated CO2 injection scenario in a realistic geological model. This synthetic data is used to test the end-to-end inversion framework.

Key Insights and Ideas

  • Differentiable Programming as a Unifier: AD is presented not just as a tool for machine learning but as a fundamental enabler for integrating diverse physical models and computational components in a unified inversion framework.
  • Abstraction is Key to Scalability and Maintainability: The success of their framework hinges on high-level abstractions that hide low-level implementation details, making it easier to develop, maintain, and extend complex geophysical workflows.
  • Learned Priors Dramatically Improve Inversion Quality: Normalizing flows, when used as priors, can guide the inversion towards more geologically realistic solutions, as demonstrated by improved permeability estimates.
  • Neural Surrogates are Essential for Speed: Replacing computationally intensive fluid flow simulations with FNOs is critical for making end-to-end inversions computationally feasible, especially for time-lapse data.
  • Interoperability is Achievable: The framework demonstrates that it's possible to seamlessly combine specialized software for wave physics (Devito), linear algebra (JUDI.jl), fluid flow (Jutul.jl), and machine learning (InvertibleNetworks.jl, FNOs) within a single, differentiable ecosystem.

Key Results

  • Scalable Prototype for Permeability Inversion: The authors successfully built and demonstrated a scalable prototype for time-lapse permeability inversion for CO2 storage monitoring.
  • Improved Inversion Accuracy: The FWI results using a learned normalizing flow prior showed a velocity estimate closer to the ground truth compared to traditional FWI without a prior.
  • Significant Speedup with FNO Surrogates: While specific speedup numbers are not detailed for the end-to-end inversion, the paper highlights that FNOs provide a "fast alternative to numerical solvers" and that distributed FNOs can achieve "over 1300x" speedup compared to traditional simulators.
  • Demonstrated Modularity: The framework allowed for easy swapping of physics-based fluid flow solvers with their learned neural surrogate approximations, showcasing the benefit of the modular design.
  • Realistic CO2 Plume Estimation: The inversion results, when used to simulate CO2 plumes, showed a considerable improvement in estimating past, current, and predicted plume behavior compared to the initial model.

Limitations and Future Work

  • 3D Scale-Up: While the framework is designed to be scalable to 3D, demonstrating this capability on large-scale 3D synthetic and field data is an ongoing challenge, partly due to the lack of access to large-scale computational resources.
  • Memory Bottlenecks: Efforts are underway to remove fundamental memory bottlenecks in certain components.
  • Validation on Field Data: The current work primarily uses synthetic data. Future work will focus on validating the methodology on real-world field data.
  • Further Integration: The authors are continuously working on improving and integrating components, such as supporting GPU acceleration for all codes and developing new Julia packages for advanced tensor manipulations.
  • Addressing Complex Physics: While the paper demonstrates coupling wave physics and fluid flow, future work will likely explore even more complex multiphysics scenarios.

Summary updated

BibTeX
@misc{louboutin2023learned,
  author = {Mathias Louboutin and Ziyi Yin and Rafael Orozco and Thomas J. Grady II and Ali Siahkoohi and Gabrio Rizzuti and Philipp A. Witte and Olav Møyner and Gerard J. Gorman and Felix J. Herrmann},
  title = {{Learned multiphysics inversion with differentiable programming and machine learning}},
  year = {2023},
  eprint = {2304.05592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.05592},
}
Figure