NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Physics-Informed Machine Learning for Two-Phase Moving-Interface and Stefan Problems

Che-Chia Chang, Te-Sheng Lin, Ming-Chih LaiarXiv 2025

TL;DR

This paper introduces a novel cusp-capturing Physics-Informed Neural Network (PINN) framework designed to solve complex two-phase Stefan (moving interface) problems. By decoupling the problem into two networks—one tracking the interface and another modeling the temperature field augmented with a modified level-set function—the method accurately captures sharp gradient discontinuities across moving boundaries. It significantly outperforms existing deep learning approaches in both forward and inverse phase-change simulations, even capturing complex physical phenomena like the Mullins-Sekerka instability.

What Problem Does This Paper Address?

The Stefan problem is a classic mathematical challenge that models phase-change processes, such as ice melting into water or liquid metal solidifying. Computationally, it is notoriously difficult because the boundary separating the two phases moves over time, and the thermal properties (like diffusivity) change abruptly across this interface.

This abrupt change causes a sharp "kink" or jump discontinuity in the temperature gradient (heat flux) at the boundary. Standard PINNs struggle with this because they rely on smooth activation functions, making them notoriously bad at capturing sharp, non-smooth gradient jumps (cusp singularities) without incurring massive errors. The authors aim to bridge this gap by creating a deep learning framework that can explicitly track moving interfaces and accurately resolve these gradient discontinuities.

Methods

The authors develop a cusp-capturing PINN framework that relies on two distinct but coupled neural networks:

  1. Interface Network ($\hat{s}$): Explicitly models and tracks the moving interface position over time.
  2. Temperature Network ($\hat{u}$): Models the global temperature field.

The Key Innovations:

  • Cusp-Capturing Input Augmentation: To help the temperature network learn the sharp gradient change at the boundary, the authors augment its input with a modified level-set function: $\phi^a(x,y,t) = |x - \hat{s}(y,t)|$. The absolute value naturally introduces a non-differentiable "kink" (cusp) at the exact location of the interface, allowing the network to effortlessly represent the physics of the gradient jump.
  • Dynamic Diffusivity Categorization: The interface network allows the framework to rapidly determine which phase a spatial point belongs to at any given time. This avoids explicit, slow loop-based sorting and enables efficient assignment of thermal diffusivities ($k^+$ or $k^-$) during training using PyTorch's torch.where.
  • Levenberg-Marquardt (LM) Optimization: Instead of using standard first-order optimizers like Adam, the authors utilize the LM algorithm, a second-order optimization method that blends gradient descent and Gauss-Newton steps, providing much more stable and faster convergence for this highly non-linear loss landscape.

Datasets

No external or real-world datasets were used. Instead, the framework was evaluated using synthetic benchmarks and physical simulation scenarios where training points were generated dynamically via Latin Hypercube Sampling (LHS). These benchmarks included:

  • 1D and 2D forward two-phase Stefan problems with known analytical solutions.
  • Inverse Problems (Type I & II): Scenarios where boundary/initial conditions are unknown, but sparse temperature measurements (with or without added Gaussian noise) are provided.
  • Mullins-Sekerka Instability Setup: A challenging physical scenario where small perturbations in a flat interface grow arbitrarily large over time.

Key Insights and Ideas

  • Feature Engineering Beats Network Size: Instead of forcing a massive, deep neural network to approximate a non-smooth function through brute force, injecting a non-smooth geometric feature ($|x - \hat{s}|$) directly into the network architecture allows a remarkably shallow network to solve the problem with near-perfect accuracy.
  • Optimizer Choice is Critical: Switching from the ubiquitous Adam optimizer to the Levenberg-Marquardt algorithm was essential. The LM optimizer successfully navigated the complex, tightly coupled loss landscape of the two interacting networks.
  • Robustness to Noise: For inverse problems, the framework proved highly resilient to measurement noise. Even when temperature data was corrupted with up to 10% Gaussian noise, the networks accurately reconstructed both the temperature fields and the hidden moving boundaries.

Key Results

  • Unprecedented Accuracy in 1D: For a standard 1D two-phase Stefan benchmark, the proposed method achieved a relative $L^2$ error on the order of $10^{-9}$ for both temperature and interface tracking. It did this using a tiny network of just 1 hidden layer with 32 neurons. In comparison, previous state-of-the-art deep learning methods yielded errors around $10^{-4}$ despite using much larger architectures (3 hidden layers, 100 neurons).
  • High-Fidelity 2D Simulations: In 2D forward and inverse problems, the framework maintained exceptional accuracy, keeping maximum ($L^\infty$) errors around $10^{-8}$ to $10^{-9}$.
  • Qualitative Success on Instabilities: The method successfully captured the physics of the Mullins-Sekerka instability. It correctly simulated how the amplitude of interface perturbations grows over time, demonstrating its utility for complex, real-world fluid and thermal dynamics.

Limitations and Future Work

  • Interface Parameterization Constraints: The current model assumes the interface can be written as a single-valued function $x = s(y,t)$. This means it cannot easily handle highly complex topological changes, such as an interface that loops back on itself, breaks apart, or merges (e.g., splashing droplets).
  • Future Directions: The authors plan to extend this framework to higher dimensions and more geometrically complex Stefan problems. They also aim to explore how this cusp-capturing technique can be integrated into other variants of physics-informed machine learning.

Summary updated

BibTeX
@misc{chang2025physics,
  author = {Che-Chia Chang and Te-Sheng Lin and Ming-Chih Lai},
  title = {{Physics-Informed Machine Learning for Two-Phase Moving-Interface and Stefan Problems}},
  year = {2025},
  eprint = {2512.14010},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.14010},
}
Figure