PoreML: A Data-Driven Framework for Learning Multiphase Flow in Porous Media

arXiv:2610.10314 · cs.LG, physics.flu-dyn · Submitted 2026-10-07 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "PoreML: A Data-Driven Framework for Learning Multiphase Flow in Porous Media".

Jane: Detailed Research Summary of PoreML: A Data-Driven Framework for Learning Multiphase Flow in Porous Media PoreML is an open-source, physics-grounded framework designed to unify data generation, model training,

Tom: First, who's behind it and why it matters.

Paper summary: Tom: So we’ve covered that PoreML is a framework aiming to unify data generation, training, and evaluation for multiphase flow in porous media. We talked about how it uses a GPU-native lattice Boltzmann solver to make the data reproducible > Page one -- <ref:2610.10314#pg1>

Jane: And then they have this dataset, which is described as substantial—it contains five hundred sixty simulation runs and over one hundred fifty-eight thousand five hundred forty-six stored time steps across four application-driven scenarios > Page two --

Lu: It's important to note that this dataset isn't just synthetic; it pairs generated structures with real geometries from microcomputed tomography scans, covering various domain sizes and wettabilities > Page two -- <ref:2610.10314#pg1>

Meng: From a production standpoint, the scale of that data is huge. Having all those time steps means you can train models on very long sequences > Page one -- <ref:2610.10314#pg1>

Tom: And the framework includes methods for one-step prediction and autoregressive rollouts to assess long-term predictive capability > Page one -- <ref:2610.10314#pg1>

Jane: So, what this really means for someone listening who isn't deep in pore-scale physics is that they have a standardized way to generate high-quality data and a rigorous benchmark to test any AI model they build on top of it > Page three -- <ref:2610.10314#pg1>

Lu: It shows that the scarcity of time-resolved experimental data can be overcome by using direct simulation on microCT scans as a controlled alternative, though the resolution of the input mesh still matters > Page three -- <ref:2610.10314#pg1>

Meng: And from my perspective, if you want to deploy a model, having this unified evaluation protocol that checks for physical consistency is key because low field error doesn't guarantee correct connectivity > Page three -- <ref:2610.10314#pg1>

Tom: So it’s about moving beyond just looking at the final state of the flow and starting to check how the fluid actually moved through those complex pore spaces > Page one -- <ref:2610.10314#pg1>

Jane: So, we're setting up a system where you can generate data that is both physically accurate and ready for rigorous machine learning research > Page one -- <ref:2610.10314#pg1>

Conclusion: Tom: To wrap up, PoreML is this open-source framework that connects physics to machine learning for modeling multiphase flow in porous media > Page one -- <ref:2610.10314#pg1,multiphase flow in porous media>

Jane: The authors are Chunyang Wang, Mingrui Zhang, Yuyan Zhang, Linqi Zhu, Xin Ju, Edo Sicco Boek, Martin J. Blunt and Gege Wen > Page one -- <ref:2610.10314#pg1>

Lu: The main implication is that they provide a shared foundation for the community to develop reliable predictive models for this complex physical system > Page one -- <ref:2610.10314#pg1>

Meng: If you're building an AI model for something like CO two storage or fuel cells, you have this framework to start with rather than starting from scratch > Page one -- <ref:2610.10314#pg1>

Tom: It means the community can focus on developing models that actually work in these real-world scenarios because they are tested against physical consistency metrics like the Euler characteristic > Page three -- <ref:2610.10314#pg1>

Jane: So, it’s about moving from just having a lot of data to having a robust system for learning accurate predictive models for these complex physical processes > Page one -- <ref:2610.10314#pg1>

Chunyang Wang, Mingrui Zhang, Yuyan Zhang, Linqi Zhu, Xin Ju, Edo Sicco Boek, Martin J. Blunt, Gege Wen

Imperial College London University of Stanford University Queen Mary University of London EarthFlow AI, Inc.

cs.LG, physics.flu-dyn

Submitted: 2026-10-07

Updated: 2026-10-07

Code: https://github.com/PoreML/bob2https:

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 92/100

The gist: Detailed Research Summary of PoreML: A Data-Driven Framework for Learning Multiphase Flow in Porous Media PoreML is an open-source, physics-grounded framework designed to unify data generation, model

Key concepts

Lattice Boltzmann Method (LBM)
This is a GPU-native solver used to simulate fluid flow within porous structures. It models the physics by distributing fluid properties across a discrete grid, ensuring that the resulting motion is consistent with fundamental fluid dynamics equations like Navier–Stokes. It allows for reproducible data generation.
PoreML Dataset
This is an extensive collection of time-resolved, 3D fluid distribution data for multiphase flow in porous media. It includes 560 simulation runs and over 158,000 stored time steps across different geometries and wetting conditions. This dataset serves as the foundation for training machine learning models.
Euler Characteristic ($\chi$)
This mathematical tool is used to quantify the topological fidelity of a fluid flow simulation. It measures the connectivity of the fluid phases by counting features like islands, tunnels, and enclosed bubbles. A high Euler characteristic indicates that a model accurately captures how fluids are connected in space.
Autoregressive Rollouts
This is a machine learning evaluation technique where models are tested by predicting future states sequentially over long sequences of time steps. This assesses the model's ability to maintain physical consistency and predict the long-term evolution of fluid interfaces rather than just single-step accuracy.

Summary

Detailed Research Summary of PoreML: A Data-Driven Framework for Learning Multiphase Flow in Porous Media

PoreML is an open-source, physics-grounded framework designed to unify data generation, model training, and evaluation for learning multiphase flow within porous media. Its primary goal is to empower the research community to develop reliable predictive models for this complex physical system. The framework is structured around three core components: a validated data generation engine, an extensive dataset, and an integrated learning benchmark.

Core Components of PoreML

1. Data Generation Engine (Solver):

The foundation of PoreML is a modern, GPU-native Lattice Boltzmann Method (LBM) solver. This solver is rigorously validated against both analytical solutions and published experimental data across an eight-case suite. It utilizes the Color-Gradient Lattice Boltzmann Method (CG-LBM) to model the physics, ensuring that component distribution functions yield hydrodynamic limits consistent with Navier–Stokes equations, thereby accurately capturing fluid motion and interface evolution on a common lattice.

The solver is designed to generate reproducible data by pairing each wetting boundary condition with the surface-tension formulation from its original source publication. Key boundary conditions include:

  • Piston Inlet: Simulating non-wetting phase injection at a precise volumetric rate, driving displacement experiments where capillary number (Ca) is directly controlled.

  • Pressure Inlet/Outlet: Using per-color Zou–He pressure boundaries to fix reservoir plane densities, allowing control over purely capillary-driven imbibition or pressure-controlled drainage by varying the inlet-outlet density difference (P).

  • Outflow: A density-rescaled copy of the penultimate plane for free wetting phase exit.

Crucially, the solver handles complex geometries by computing wall normals from a solid mask rather than relying on known analytical solutions for curved surfaces (e.g., in sphere packs or rock crops), ensuring fidelity across the dataset's varied geometries.

2. The PoreML Dataset:

PoreML boasts an open and extensive dataset, described as the first and largest to provide time-resolved, full 3D fluid distributions for multiphase flow in porous media. This dataset is substantial, containing 560 simulation runs and 158,546 stored time steps across four distinct application-driven scenarios.

The data is uniquely comprehensive, spanning:

  • Geometries: A pairing of generated structures with real geometries obtained from microcomputed tomography (mu CT) scans, covering multiple domain sizes and wettabilities.

  • Scenarios: Four application-driven scenarios.

  • Parameters: A grid of wettabilities and viscosity ratios.

The data is meticulously organized and adheres strictly to FAIR principles:

  • Findable: Data and geometry collections reside at public Hugging Face addresses with descriptive metadata.

  • Accessible: Data can be downloaded without registration via command-line utilities or framework tools.

  • Interoperable: Trajectories are stored as HDF5 files with Zstandard compression, paired with an XDMF index for ParaView visualization; geometries are stored as NumPy arrays.

  • Reusable: The solver, framework, and dataset are released under permissive licenses (MIT/CC 4.0). Every run is traceable via recorded solver settings, software environment, and input geometry hash.

3. Unified Learning Framework:

The framework provides a standardized environment for machine learning research on multiphase flow in porous media. It facilitates:

  • One-Step Prediction: Training models to predict the next time step based on the current state.

  • Autoregressive Rollouts: Evaluating models over extended sequences (e.g., 64 steps) to assess long-term predictive capability.

The evaluation protocols are domain-specific, assessing not only predictive accuracy but also physical consistency. PoreML employs advanced metrics to quantify this consistency:

  • Minkowski Functionals: Used as state variables of two-fluid flow in porous media, established by prior literature (Armstrong et al., 2016; McClure et al., 2018).

  • Mean Curvature: Tied to the Young–Laplace equation, which governs capillary pressure (Blunt, 2017).

  • Euler Characteristic (chi): Quantifies topological fidelity by measuring connected components (beta 0), tunnels (beta 1), and enclosed bubbles (beta 2). The formula is chi = beta 0 - beta 1 + beta 2.

Key Contributions and Findings

PoreML's contributions are threefold:

(1) Open-Source Solver: A GPU-sharded LBM solver validated on an eight-case suite, enabling community data generation for novel geometries and conditions.

(2) Comprehensive Dataset: The first and largest dataset providing time-resolved, full 3D fluid distributions across diverse physical conditions and geometries.

(3) Integrated Learning Benchmark: A standardized evaluation protocol assessing five benchmark architectures using metrics covering field accuracy, geometry fidelity, and topology.

Insights from Evaluation:

The framework reveals critical failure modes in current approaches. Specifically, the analysis of rollout failures (Appendix I) shows that voxel-level errors can close loops and fill films—phenomena that traditional field loss metrics often fail to penalize adequately. PoreML addresses this by introducing topological accounting:

  • Topological Accounting: The Euler characteristic decomposition explicitly tracks specks (islands/bubbles, adding +1), tunnels (subtracting-1), and bubbles, providing a metric that captures connectivity beyond simple voxel-level errors.

  • Physical Consistency Check: While low field error does not guarantee correct connectivity (topology), the framework demonstrates encouraging transfer capabilities in Geo-Shift tests (transfer to mu CT scans) and Scale-Up tests (doubling spatial dimensions). However, the analysis highlights that preserving physically meaningful phase topology over long rollouts remains a key area for future research.

In summary, PoreML provides a shared, robust foundation—a solver for generating physically accurate data, a massive dataset spanning diverse physical regimes and geometries, and an integrated benchmark utilizing sophisticated metrics (Minkowski functionals and Euler characteristic) to rigorously test the predictive capabilities of machine learning models in multiphase flow.

Improvements for AI systems

  1. Bold header: Improved topological fidelity during autoregressive rollouts. The framework assesses whether a 64-step rollout keeps the interface geometry and topology that govern capillary dynamics, which is crucial because low field error does not guarantee the right connectivity.

  2. Bold header: Physics-grounded metric refinement for topological accuracy. Instead of relying solely on MAE, the system should prioritize metrics like the MAE of the Euler characteristic per unit volume, as this keeps it comparable across domain sizes and is explicitly used to quantify whether a prediction engulfs a fiber or bridges two regions with a voxel-thin strand closes a loop and lowers the Euler characteristic by one.

  3. Bold header: Specialized error mitigation for GDL geometries. Since GDL geometries are noted as favoring tunnels, the system should be trained with representations that can distinguish between specks (discretization noise) and tunnels (handles of the invading phase), which are quantified by the Euler characteristic decomposition.

  4. Bold header: Geometry-aware conditioning for transferability. The learning framework must explicitly condition its predictions on geometry, as specified by the unified learning framework, enabling effective transfer between synthetic structures and real microCT-derived materials (Geo-Shift transfers models from generated structures to real rock and carbon-paper geometries).

Abstract

Multiphase flow in porous microstructures is central to CO 2 storage, fuel-cell operation, and flip-chip packaging. Predicting these flows remains challenging because wettability and complex pore geometry govern the nonlinear evolution of fluid interfaces. Machine learning holds substantial promise for advancing the field, but progress is constrained by scarce time-resolved 3D datasets and a lack of a unified workflow for training and evaluating models. To fill this critical gap, we introduce PoreML, an open-source framework unifying data generation, model training, and evaluation grounded in pore-scale physics. The framework comprises three core components. (a) A modern GPU-native lattice Boltzmann solver, validated against analytical solutions and published experiments, enables reproducible data generation. (b) A 3.3 TB dataset contains 560 simulation runs and 158,546 stored time steps across four application-driven scenarios. These trajectories span synthetic structures and geometries derived from micro-CT scans of real materials, covering diverse wetting conditions and viscosity ratios. (c) A unified learning framework evaluates one-step prediction and autoregressive rollouts. Its domain-specific evaluation protocols assess predictive accuracy and physical consistency. We evaluate five models of diverse architecture under these protocols. Two complementary challenges assess transfer to larger domains and from synthetic to micro-CT-derived structures. PoreML provides a shared foundation for machine-learning research on multiphase flow in porous media, with the aim of empowering the community to develop reliable predictive models and advance the field.

Related papers