Abstract
Physics-informed neural networks (PINNs) are difficult to train on strongly coupled, multi-objective systems: with fixed loss weights an otherwise identical run succeeds or diverges with the random seed, and a leading explanation attributes the failures to conflict between the loss-term gradients. We test that explanation on a coupled non-isothermal Buckley–Leverett displacement with a passive tracer, a three-front hot-water flood with an exact analytical solution as ground truth. The test produces an exactly verified counterexample: the conflict-free update ConFIG attains its alignment objective yet converges to a stable solution that violates the equations, while a quasi-second-order optimizer (SOAP) and per-term gradient surgery (PCGrad) train the network reliably with no loss-weight search. The most aligned update is thus the one that fails: gradient alignment is neither necessary nor sufficient for trainability, and the conflict is a diagnostic of the loss rather than its cause. The same formulation serves the forward, parametric, and inverse problems: it predicts the movable-oil recovery with a relative error of about 5%, returns the solution for any oil viscosity in a trained range from one network, and, from sparse near-injector monitoring, recovers the thermal front speed and one transport coefficient when the other is known. To our knowledge this is the first PINN solution of this coupled displacement, which is central to thermal oil recovery.
1. Introduction
Physics-informed neural networks (PINNs) solve a differential equation by training a network to minimize a weighted sum of the equation residual and the initial- and boundary-condition errors [1,2]. On a single equation with one moving feature the approach is now well understood, but on strongly coupled, multi-objective systems it becomes unreliable in a specific way: with fixed loss weights, an otherwise identical run succeeds or diverges with the random seed, and the error varies widely across seeds. A growing body of work attributes these failures to conflict between the gradients of the loss terms [3,4,5], and a family of gradient-manipulation methods removes that conflict directly. Whether removing the conflict actually restores trainability has not, however, been tested interventionally on a coupled system with an exact solution as ground truth. This paper supplies that test.
The testbed is the coupled non-isothermal Buckley–Leverett displacement with a passive tracer. Sumnu-Dindoruk and Dindoruk [6] derived an exact analytical solution of this coupled saturation, temperature, and tracer system by the method of characteristics (MOC), so every predicted field can be compared against a known answer, which few coupled problems allow. The system is also a demanding test. It carries three moving fronts, a saturation shock, a temperature discontinuity, and a tracer step, whose speeds span a factor of about 8, so one smooth network must represent three discontinuities at disparate scales at once. The temperature discontinuity moves inside the saturation rarefaction, and the two fields are coupled in both directions through a temperature-dependent fractional flow. Each field is easy to learn alone, while the outcome of the joint training depends on the seed. Finally, the physical coupling strength is a single parameter, adjustable from zero to beyond the reference case with the exact solution regenerated at every setting, so the coupling can be varied as a controlled dose. For the isothermal Buckley–Leverett equation the central difficulty is the sharp saturation shock, which a plain network smears [7]; the coupled problem adds the multi-objective optimization pathology that is our subject [3].
The problem also arises in practice: it is the one-dimensional core of hot-water flooding, a thermal-recovery process used where steam injection is impractical, such as offshore heavy-oil fields and high-pour-point or waxy crudes [8,9]. The injected heat forms a thermal front that lags far behind the water front, and a chemical tracer is added to map the displacement between wells [10]: the leading water front sets breakthrough, the tracer tags the injected water, and the slow thermal front carries the viscosity reduction the flood is run for. Designing and monitoring such a flood requires many solves of the same coupled model, so a fast surrogate with known accuracy is useful in its own right. PINNs suit the task: they are mesh-free, continuous, and differentiable, they can represent a family of solutions, and they can absorb monitoring data in the inverse direction [1]. In petroleum engineering, PINNs have addressed sparse-data reservoir simulation [11], two-phase Buckley–Leverett flow [12], and single-phase flow in heterogeneous media [13]. Those reservoir treatments are isothermal, and to our knowledge the coupled saturation, temperature, and tracer displacement had not been solved with a PINN. The closest work, on polymer-thermal flooding, is validated against numerical references [14,15] (Section 2).
This study makes two contributions. The first is a machine-learning result on the training question. Comparing gradient-manipulation and optimizer-based methods under one budget and a multi-seed protocol, we reach a negative result and identify the mechanism behind it: the update that removes the conflict completely (ConFIG) fails and converges to a stable solution that violates the equations, while a curvature-aware optimizer (SOAP), which leaves the conflict untouched, and mild gradient surgery (PCGrad), which removes only the pairwise conflicting components, both succeed. The most aligned method is the one that diverges, so alignment is neither necessary nor sufficient for trainability, and the conflict is a diagnostic of the loss rather than its cause. One system suffices for this claim because the logic is that of a counterexample: the verified failure of ConFIG shows that alignment is not sufficient, and the success of SOAP and PCGrad with the conflict present shows that it is not necessary. What a single system cannot establish is which remedy is best in general, and we scope the positive findings accordingly. The second contribution is to solve the problem itself: the coupled non-isothermal displacement is central to thermal oil recovery, yet it had not previously been solved with a PINN, and we built and validated the first such surrogate against an exact solution, in forward, parametric, and inverse form. The forward network reproduces the three fronts, the recovery curve, and the material balance of the flood. Conditioned on the reservoir oil viscosity, it returns the full solution across the parameter range from one forward evaluation, and from sparse near-injector monitoring it recovers the thermal front speed and one transport coefficient once the other is known from cores. Throughout we report means and standard deviations over five random seeds with the fraction of diverged runs because a single run is not a reliable measure of a seed-sensitive method.
2. Related Work
Fluid flow in porous media is governed by mass conservation and Darcy’s law [16]. For the immiscible displacement of oil by water, the fractional-flow theory of Buckley and Leverett [17] describes the saturation front as a nonlinear hyperbolic conservation law. Enhanced oil recovery, and thermal recovery in particular, requires non-isothermal extensions in which the fluid viscosities and mobilities depend on temperature [9]. For this setting Sumnu-Dindoruk and Dindoruk [6] derived an exact analytical solution of the coupled saturation, temperature, and tracer system by the method of characteristics, and it provides the exact reference used in this work.
Such systems are traditionally solved with finite-difference, finite-element, and finite-volume schemes [18]. For the Buckley–Leverett problem these discretizations are prone to numerical diffusion that smears the saturation shock and to spurious oscillations near the discontinuity unless fine grids and restrictive time-step limits are used [18]. These costs motivate mesh-free alternatives. PINNs, introduced above, turn the governing equations themselves into the training objective [1]. They use automatic differentiation to evaluate the residual derivatives exactly [19], and they have been applied across fluid mechanics and porous-media transport [20,21]. In reservoir settings, domain decomposition lets a PINN assimilate sparse production data at field-relevant scale [11], an enriched formulation extends the approach to two-phase flow in heterogeneous and fractured media [12], and a graph variant handles the unstructured grids of practical simulators [13]; all three treat the reservoir as isothermal.
Standard PINNs nonetheless struggle on hyperbolic problems such as Buckley–Leverett because the smooth network conflicts with the sharp shock and because the training problem is ill-conditioned. Wang and co-workers [22] identified a gradient-flow pathology in which the residual and boundary-condition terms are imbalanced in scale; related analyses attribute the difficulty to spectral bias and stiff training dynamics [23,24]. Krishnapriyan and co-workers [3] traced the resulting failures to the optimization itself and Rathore and co-workers [25] to an ill-conditioned loss landscape induced by the differential operators; the modeling of shock fronts has recently been reviewed and benchmarked [26]. The multi-task learning community studies the related problem of gradients in opposing directions and has produced gradient-surgery methods that project away the conflicting component [4], although whether such methods improve on a well-weighted loss sum is debated [27]. Two recent methods carry the idea into PINN training, adjusting the update so it never conflicts with any single term [28] or restricting it to a cone in which no term increases [29]; most directly, Wang and co-workers [5] showed that second-order optimization resolves these conflicts implicitly through the SOAP optimizer, with an alignment score that generalizes the pairwise gradient cosine.
Several remedies address the shock and the unstable training. Artificial viscosity recovers the front at the cost of slight smearing [7,30,31], entropy or Welge constraints enforce admissible shocks [32], and self-adaptive pointwise weights, their residual-based attention (RBA) refinement, and adaptive sampling focus the network on the front [33,34,35,36]. Architectural options include attention and transformer networks, domain decomposition, learnable-activation Kolmogorov–Arnold networks (KANs) [11,37,38,39,40], and second-order preconditioning with the SOAP optimizer [41]; these developments are surveyed in a recent review [2]. We evaluated RBA, the KAN, SOAP, gradient surgery, and the conflict-free update directly.
Most of this work treats a single isothermal equation with one moving front. Coupled multiphase formulations have also been solved with PINNs, including two-phase flow in porous media [42], multiphase poroelasticity with sequential training [43], and joint pressure-saturation prediction [44]. PINNs have recently reached thermal and chemically coupled multiphase settings, among them multiphase flow with dual shocks [45], hybrid physics-informed surrogates for CO2 storage in shale [46], and the wider use of machine learning in enhanced oil recovery [47]. Closest to this work, PINNs have been built for polymer flooding and for polymer-assisted hot-water flooding with temperature- and concentration-dependent viscosity [14,15]; the latter solves a one-dimensional saturation, concentration, and temperature system; examines how normalization, architecture, and depth affect training stability; and validates against numerical references. In those polymer problems the third transported quantity is an active polymer that changes the viscosity and feeds back into the flow. The coupled non-isothermal Buckley–Leverett problem with a passive tracer differs in two respects that matter for validation and for monitoring. The tracer does not affect the flow, which is what lets it tag the injected water in a field tracer test [10], and the system of Sumnu-Dindoruk and Dindoruk [6] admits an exact analytical solution, so the surrogate is graded against ground truth. To our knowledge this three-field saturation, temperature, and tracer system has not previously been solved with a PINN, and the non-isothermal displacement treatments above have not been validated against an exact solution.
A parametric surrogate can also be built by operator learning, in which a network maps one function to another: DeepONet learns the solution operator from sampled inputs [48], the Fourier neural operator parameterizes it in spectral space [49], physics-informed DeepONets train such operators on the residual without labeled data [50], and parameter-conditioned PINNs with a dedicated encoder improve on plain input augmentation [51]. We instead condition a single PINN on a scalar physical parameter by input augmentation, the lighter option for a one-parameter family. A general operator or parameter-encoded surrogate is left to future work.
Against this background, our study is complementary. The gradient-conflict mechanism and its second-order resolution were established on single-physics benchmarks [5], and the conflict-removal methods were validated on problems with one dominant front [4,28,29]; concurrent work by Park and co-workers [52] attributes coupling-induced accuracy loss to conditioning on different multiphysics systems and treats it with a preconditioned optimizer and gradient-norm balancing. We built a validated surrogate for the coupled non-isothermal process and, on the same exactly solvable system, compared PCGrad (gradient surgery) and ConFIG (the conflict-free update) against SOAP (a quasi-second-order optimizer) and tuned loss weighting under one budget and a multi-seed protocol, varying the physical coupling to see how the conflict, the error, and the failure rate respond. Our contribution differs in kind: we do not propose another fix but falsify the conflict hypothesis interventionally, with a conflict-free update that attains its alignment objective yet fails on an exactly solvable system whose coupling strength is adjustable so that alignment and trainability are shown to dissociate.
3. Materials and Methods
The Nomenclature section at the end of the paper collects the symbols used throughout.
3.1. Governing Equations
All quantities are dimensionless. Let denote position, denote time, denote water saturation, denote temperature, and C denote tracer concentration. The water fractional flow function depends on both saturation and temperature through the Corey relative permeabilities [53] and the temperature-dependent viscosities,
with Corey relative permeabilities and , where is the normalized saturation and and are the water and oil viscosities. Each viscosity varies linearly between a cold and a hot value as the temperature rises from to . The three governing balances are
Equation (2) is the water mass conservation equation written in non-conservative form, and it contains the thermal coupling term . Equation (3) is the conservative balance of the inert tracer. Equation (4) is the convective energy balance, in which the thermal front speed g depends on the saturation and on two dimensionless groups and that collect the rock and fluid heat capacities [6]. The model inherits the assumptions of the original formulation [6]: one-dimensional incompressible flow in a homogeneous reservoir, no capillary pressure and no gravity, local thermal equilibrium between the rock and the fluids, and purely convective heat transport, with no conduction and no heat loss to the over- and underburden. The Corey exponents are , the residual saturations are and , the thermal groups are and , the oil viscosity varies between 8 and 2 centipoise (cP; 1 cP mPa s) from the cold to the hot state, and the water viscosity varies between and cP. All parameters are collected in Table A1. The parameter set is the published validation case of Sumnu-Dindoruk and Dindoruk [6]. Its 8 cP cold oil corresponds to a moderately viscous or waxy, high-pour-point crude above its pour point; field heavy oils are one to three orders of magnitude more viscous, and that regime was not tested here. The initial state is a cold oil-saturated reservoir with , , and . The inlet at injects hot, tracer-laden water with , , and . The final time follows from the front speeds. The leading shock travels at a speed near and reaches at the final time, so water breakthrough at the outlet occurs near . The chosen window covers about three quarters of the time to breakthrough and keeps all three fronts inside the domain. It is also the regime in which the self-similar solution of Appendix A is valid on the whole space-time domain.
3.2. Coupling Structure
Saturation and temperature are coupled in both directions, and this structure is used throughout the paper. Saturation enters the temperature equation through the front speed g in Equation (4), and temperature enters the saturation equation through the viscosity dependence of in Equation (1) and through the explicit coupling term in Equation (2). The tracer is passive. It is transported by the saturation and the fractional flow, and it does not feed back into either field. This asymmetry has two consequences that we use below. First, because each field equation needs the others, no single field can be solved in isolation. Second, because the tracer is subordinate, it can be added on top of a converged saturation and temperature solution.
3.3. Reference Solutions
We use two independent references. The first is the exact MOC solution, which is piecewise analytical and is treated as ground truth; its construction is detailed in Appendix A. The second is a finite-volume method (FVM) solution computed with an explicit upwind scheme on a grid of 1000 cells, which provides an independent check that is free of the structural assumptions of the MOC construction. At the three fronts lie near for temperature, near for the tracer, and near for the leading saturation shock (Figure 1).
Figure 1.
Exact MOC reference solution at . The three coupled fields form three fronts at distinct positions.
This ordering follows from the physics of the flood. The rock matrix takes up heat from the injected water, so the thermal front is slowed by the rock heat capacity, which enters through the groups and , and it advances at about one eighth of the leading shock speed. The tracer moves with the injected water itself and sits between the two. Ahead of the thermal front the displacement runs cold, at the unfavorable native mobility ratio; behind it the heated oil has thinned from 8 to 2 cP and is displaced more efficiently. A temperature observation point is therefore informative only inside the narrow heated zone near the injector, a constraint that shapes the inverse problem of Section 3.10.
3.4. Network and Training Loss
The network is a fully connected map from to a chosen subset of with trainable parameters (Figure 2). The default architecture has 8 hidden layers of 60 units with the hyperbolic tangent activation, and its weights are initialized with the Glorot scheme [54]. The output layer is followed by activations that enforce the physical range of each field by construction. Saturation is mapped through , and temperature and tracer are mapped through the logistic function so that and for every input. These hard constraints remove the range errors that a free output would otherwise have to learn.
Figure 2.
Architecture and training of the PINN. A fully connected network maps to the three fields, each held in its physical range by the output activation. Automatic differentiation supplies the derivatives in the per-field residuals , and the weighted loss of Equation (5) combines the residual, initial-condition, and boundary-condition terms with the entropy penalty .
The training loss is a weighted sum of three groups of terms. The first group is the mean squared error (MSE) of the residual of each governing equation, evaluated by automatic differentiation at interior collocation points. The second group is the MSE of each field against its initial condition (IC) at . The third group is the MSE of each field against its inlet boundary condition (BC) at . The total loss is
where is the residual of the governing equation for field , the w are scalar weights, and is an optional entropy term defined below. Collocation points are drawn by Latin hypercube sampling [55] over the whole space-time domain. The residual is therefore enforced at all times in and not only at selected time levels. We use 10,000 interior points and 500 points on each of the initial and boundary sets.
The governing equations are hyperbolic, and the exact solution contains shocks, which a plain network smears. We add a small artificial diffusion term to the saturation residual as a numerical regularizer. This front-localized artificial viscosity follows the parabolic-regularization approach to the Buckley–Leverett shock [7,30], chosen as the simplest controllable regularizer for the coupled system. The diffusion coefficient is localized to the front by a smooth function of the saturation gradient,
with and sharpness . The coefficient is near zero in smooth regions and near at the shock. This term is a numerical aid for the network and is not part of the physical model. With it the network solves a lightly regularized approximation of the hyperbolic system, and the resulting front broadening is quantified directly by the shock-width metric of Equation (15). The training-pathology findings of this paper are properties of that regularized problem, which every method shares. The optional entropy term penalizes a rising saturation profile through , which is a soft form of the Oleinik entropy condition [56].
3.5. Output Configurations
We study the problem in three configurations of increasing coupling, and we use them to separate the cost of representing a field from the cost of coupling the fields. In the one-output configuration the network predicts a single field, and the other fields that the governing equation requires are supplied from the reference solution at the collocation points. The supplied fields are read from the FVM solution by bilinear interpolation in space and time, and the spatial derivative of the supplied temperature that the saturation equation needs is precomputed on the reference grid. This configuration measures how hard each field is to learn when the other fields are supplied externally. Because the FVM fields carry a small numerical diffusion at the fronts, the supplied coupling is itself imperfect, and we return to this point in the results. In the two-output configuration the network predicts saturation and temperature together and learns their mutual coupling from scratch. In the three-output configuration the network predicts all three fields, and the tracer is learned on top of the saturation and temperature fields.
3.6. Optimization and Loss Weighting
Training proceeds in two stages: a first-order optimizer for a fixed iterations, then refinement with L-BFGS [57] with a strong Wolfe line search, capped at iterations. We compare two first-stage optimizers, Adam with a step schedule [58] and the quasi-second-order SOAP (Shampoo with Adam in the preconditioner’s eigenbasis) [41]. SOAP preconditions the gradient with a Kronecker-factored curvature approximation, rescaling the update along the principal curvature directions so that flat and steep directions are treated comparably; its use for PINN training and the claim that this preconditioning aligns conflicting gradients implicitly are due to Wang and co-workers [5]. Three budgets should be kept distinct: the iteration budget is equal for every method, the wall-clock budget is not (over converged runs at fixed weights a SOAP run costs about times an Adam run, rising to about times for the tuned configuration, which also carries causal weighting; Appendix B, Table A4), and the human-tuning budget is not because the tuned-weight route spends a hyperparameter search of about two hours that the untuned SOAP and PCGrad routes avoid. By no weight search we mean the loss weights are not tuned; each optimizer still uses a single declared learning rate.
The weights in Equation (5) set the relative emphasis on the loss terms, and a poor choice lets one term dominate while another stalls [22]; we treat the weights as searched hyperparameters. We also measure the imbalance directly through the gradients, computing the cosine similarity between the parameter gradients of every pair of loss terms,
A negative value means the gradients of the two terms form an obtuse angle so that a first-order descent step for either term increases the other, and the summed update can increase one of them, a notion borrowed from multi-task learning [4,5]. We report the mean cosine over all pairs and the fraction that are in conflict.
We search the weights, the learning rates, and a binary causal-weighting flag [59] with the tree-structured Parzen estimator [60] in Optuna [61] over 30 trials, with eleven variables for the three-output problem. The objective is the mean relative error over two seeds with a penalty for each diverged seed, and the selected configuration is retrained and validated at five seeds. The search ranges and the resulting tuned configurations are listed in Appendix B.
3.7. Training Methods Compared
Beyond the optimizer and the loss weights, we compare four training strategies from the PINN literature on the same problem under the same budget. Residual-based attention (RBA) weights each collocation point by an exponential moving average of its normalized residual, so the points whose residual stays large receive the largest weight [34]. The Kolmogorov–Arnold network (KAN) replaces the fixed activation functions of the fully connected network with learnable functions on the edges [40]; we use the Chebyshev variant [62,63]. The other two strategies act directly on the per-term gradients, and they provide the first of our two interventions on the training difficulty: if conflict between the loss-term gradients causes the failure, removing the conflict should remove the failure. Gradient surgery (PCGrad) projects away the component of each term gradient that conflicts with another term [4], the mild member of this family. The conflict-free update (ConFIG) replaces the summed gradient by the unique direction whose projection onto every term gradient is equal and positive so that no loss term increases to first order [28], the strict member. Each gradient combination is applied at two granularities, per-term over the nine weighted losses of Equation (5) and grouped over the PDE, IC, and BC sums, the granularity of the original papers; the combined gradient replaces the plain summed gradient in the first stage only, and the L-BFGS refinement is identical for every method. Explicitly, with the unit gradients stacked as the rows of a matrix U, the conflict-free update is
where is the pseudoinverse and the vector of ones so that by construction no loss term increases to first order [28]; we verified numerically that the projections of the combined update onto the unit term gradients agree to machine precision. The dual-cone method [29] relaxes this to a cone in which no term increases and is left to future work. Residual-based attention uses the per-point update with and so that the PDE loss becomes [34], and the Chebyshev KAN applies a learnable combination of Chebyshev polynomials on each edge with a default degree of five [62,63]. Every method is run first at its default configuration and then with tuning; the failing combinations receive an escalating budget, a learning-rate grid over at two seeds and, for the grouped ConFIG variant, the full 30-trial Optuna search followed by five-seed validation because a failure at default settings is not evidence against a method. Further hyperparameter details are in Appendix B.
3.8. A Family of Problems with Adjustable Coupling Strength
The strength of the saturation–temperature coupling is a fluid property: it acts through the temperature dependence of the viscosities, which is strongest for the thermally responsive oils that hot-water flooding targets. This dependence provides a continuous experimental control, and it lets us test a second prediction of the conflict hypothesis: if the coupling produces the conflict and the conflict produces the failure, then weakening the physical coupling should weaken both. With a coupling strength we interpolate each hot-state viscosity geometrically from its cold-state value through and beyond its reference hot-state value,
applied to both phases, where is the cold-state viscosity of the phase and is its hot-state reference value from Table A1. At the viscosities lose their temperature dependence and the saturation equation decouples from temperature, although the temperature and tracer fronts remain. At the problem is the reference case, and at it couples more strongly than the reference. For every in we regenerate both the exact MOC solution and the FVM solution so that the error is measured against exact ground truth across the whole family, and the MOC and FVM references agree to the same degree at every (Appendix C). Six methods are then trained at five seeds for every coupling strength, with the Adam baseline later extended to ten seeds (Appendix C), and we record the error, the divergence rate, and the measured conflict. We also record a conditioning proxy for the loss landscape at every coupling strength, evaluated at initialization and after training; its construction and values are given in Appendix C.
3.9. Parametric Surrogate
To test whether a single network can serve a family of problems, we condition the network on a physical parameter in addition to position and time. The parameter is the reservoir oil viscosity, which we vary from 6 to 14 cP. The hot-state oil viscosity is scaled with it so that the whole temperature-dependent viscosity profile moves with the parameter, and therefore every front moves with it. The parameter is normalized to the unit interval before it enters the network. The network is trained over the whole parameter range with 20,000 interior points, and it is then validated against the exact MOC solution recomputed at five viscosity values.
3.10. Inverse Problem
The tracer is added to a hot-water flood to monitor the displacement, and the temperature and tracer arrivals recorded at observation points carry information about the thermal state of the reservoir; interwell tracer tests are run for exactly this kind of surveillance [10]. We pose the corresponding inverse problem: recovering the thermal transport coefficients and of Equation (4) from sparse observations of temperature and tracer concentration. Both groups can in principle be computed from core and fluid heat capacities, but the in situ effective values can differ from the core-derived ones through saturation, mineralogy, and heat losses. The decision-relevant quantity is the heat-front speed itself, which sets when the viscosity reduction reaches a given distance from the injector. The forward network and loss are reused, with and added as trainable scalars and a data-misfit term appended to the loss of Equation (5),
where and are the predicted and observed values at the observation points of each observed field. The coefficients enter the residual through the thermal front speed g and are trained jointly with the network parameters. The thermal front is slow, reaching only at the final time, so the temperature sensors are placed near the injector where the heat front transits. The observations combine four such sensors at with two downstream sensors at and that record the tracer, each sampled at ten times. They are drawn from the exact solution and corrupted with additive Gaussian noise of standard deviation 0, , and to represent measurement error. The network is the fully connected model of the forward problem, the loss weights are held fixed, and the two coefficients carry a higher learning rate and are initialized away from their true values, at and ; training proceeds through the same first-order and L-BFGS stages.
The coefficients and enter only through , and the temperature gradient is nonzero only at the thermal front, so the data constrains the front-speed combination g evaluated at the front while leaving and correlated along that line. The well-posed problem therefore fixes one coefficient at a value known from core measurements and recovers the other. We also report the joint recovery of both coefficients to document the trade-off, and we summarize the outcome by the recovered coefficients, the thermal front speed derived from them, and the field accuracy against the exact solution.
3.11. Evaluation Metrics and Protocol
We assessed the learned solutions with five metrics. All were computed after training, on an evaluation grid independent of the collocation points, and unless stated otherwise the spatial metrics were taken at the final time .
The primary accuracy metric is the relative error of a field. For a predicted field and a reference field sampled at the grid points ,
which we evaluated against both the exact MOC and the FVM references.
A small error against a reference does not guarantee that the governing equations or the conservation laws are satisfied, so we added four physics-based metrics. The first is the pointwise residual of each governing equation. Writing for the left-hand side of Equations (2), (3), or (4), which vanishes for an exact solution, we report its root mean square (RMS) and its median over the N evaluation points,
The RMS is dominated by the shock and the median is robust to it, and we report both for this reason. The second is the front-location error. For a field u we define its front position as the location of the steepest gradient at the final time, and the error as the distance between the predicted and the exact front positions,
reported as a fraction of the domain length. Because the front position equals the front speed times the elapsed time, this metric is a check of the shock speed and therefore of the Rankine–Hugoniot condition. The check carries weight here because the saturation residual is enforced in the non-conservative form of Equation (2), which does not by itself guarantee the correct shock speed at a discontinuity [18]. The third is a global water material balance, defined as the relative difference between the change in water-in-place and the net fractional-flow influx across the two boundaries,
where is the change in water in place, , and is the net fractional-flow influx across the two boundaries. The fourth is the saturation-shock width, which measures how sharply the front is resolved. With at the final time and its peak at , the width is the full width at half maximum of this gradient spike,
with and the nearest half-maximum crossings on either side of the peak. This isolates the sharp shock from the smooth rarefaction behind it. An exact discontinuity spans a single grid cell, and a diffuse front spans more.
Every configuration was run with at least five random seeds, and we report the mean and the sample standard deviation over those seeds; one experiment, the Adam coupling sweep, was extended to ten seeds where noted. We call a run diverged when its saturation error exceeds , and we report the number of diverged runs. Outside the grouped ConFIG family the outcomes separate cleanly: converged runs lie between about and , and diverged runs at and above, most of them above , so the classification is insensitive to the exact threshold; the closest case is the tuned KAN, whose two diverged seeds sit near and . The grouped ConFIG variants are the exception: they converge to the stable wrong solution examined in Section 4.3, whose saturation error of about to straddles the threshold, which is why an occasional seed of that family falls below it (Table A6); their failure is established by the missing coupling signature and the misplaced leading front, not by the threshold. We verified this directly by recounting every method at thresholds from to (Appendix B, Table A4). The central comparison does not move: tuned loss weighting, both SOAP configurations, and per-term PCGrad record no diverged run at any threshold in that range, including the strictest value of , and per-term ConFIG fails on all five seeds at every threshold. Several secondary configurations do change classification within the range, so individual divergence rates are threshold-dependent even though the cross-method conclusion is not. Because reductions on the graphics processing unit (GPU) are nondeterministic, even a fixed seed does not determine the outcome exactly; in repeated executions of the baseline we observed a borderline seed flip between convergence and divergence, which is a further reason to report rates over many seeds. We also record the wall-clock training time of every run, and report its seed-to-seed spread alongside the accuracy spread in Appendix B, Table A4. Unless stated otherwise, the reported error of a field is the relative error of Equation (11) against the reference at the final time, evaluated against both the MOC and the FVM solutions. The default training configuration is summarized in Table 1.
Table 1.
Default training configuration. The IC and BC abbreviations denote the initial and the boundary conditions.
4. Results
4.1. Forward Solution Accuracy
The tuned three-output network reproduces all three fields at three representative times (Figure 3). The predicted curves track both the exact MOC solution and the FVM solution as the fronts advance. The saturation shoulder and the leading shock are slightly smoothed, the expected effect of the artificial diffusion term in Equation (6), and the temperature and tracer fronts are placed accurately at every time.
Figure 3.
Forward solution of the tuned three-output network. Rows are times , and columns are the three fields. Each panel shows the exact MOC solution, the FVM solution, and the PINN prediction.
The error of the solution is concentrated at the moving fronts. Figure 4 shows the absolute error of each field over the whole space-time domain. The error is a thin band that follows the trajectory of each front and is near zero in the smooth regions between the fronts, which confirms that the difficulty of the problem is localized at the discontinuities.
Figure 4.
Absolute error of the tuned three-output network over the space-time domain, for each field.
4.2. The Cost of Coupling the Fields
Each field is accurate and reproducible when learned alone, and the error then grows as more fields are coupled into one network (Table 2). The one-output errors are for saturation, for temperature, and for the tracer, all with small standard deviations and no diverged runs. The temperature error grows the most under coupling conditions, from in the one-output case to in the two-output case and in the three-output case. The saturation error grows mildly, from to . The tracer error improves in the three-output network relative to the tracer-only case, from to . The joint network learns a single consistent velocity field that carries the tracer, whereas the tracer-only network is trained against supplied fields that are read from the FVM solution and therefore inherit its numerical diffusion at the fronts. We checked this directly by supplying the exact MOC fields in place of the FVM fields in the one-output runs (three seeds each). The tracer-only error then drops from to , so its larger value in Table 2 is caused by the numerical diffusion of the FVM-supplied velocity. Temperature stays easy alone at , against when coupled. Saturation alone is mildly harder with the exact and sharper thermal-front gradient, at against , so the FVM-supplied value slightly understates its standalone difficulty. The difficulty therefore lies in coupling the fields, and the temperature field incurs the largest error increase. The same ordering holds against the FVM reference (Table 2).
Table 2.
Relative error (mean ± standard deviation over five seeds) as the network couples more outputs, measured against both the exact MOC solution and the FVM solution. The tracer is not part of the two-output system. The larger errors against FVM, most visible for temperature, come from the numerical diffusion of the FVM solution at the sharp thermal front.
The profiles show the same pattern. With the coupling supplied from the reference, a single-output network captures every field, including the sharp thermal and tracer fronts (Figure 5). The two-output network, which must learn the saturation and temperature coupling from scratch, still reproduces both fields with a slightly smoother saturation shock, and the three-output profiles appear in Figure 3.
Figure 5.
One-output profiles at . Each panel is a separate single-output network for that field, with the other fields supplied from the reference solution.
4.3. Training Reliability and the Gradient-Conflict Diagnosis
Reliable training is the central difficulty of this coupled problem, and this section diagnoses it. We measured the gradient conflict in the trained baseline, compared the training methods, tested whether removing the conflict restores trainability, and varied the physical coupling as a dose.
The coupled loss is a genuine multi-objective problem, and the conflict has two facets in the trained baseline (Figure 6). The per-term gradient magnitudes are imbalanced: the initial-condition gradients, the temperature initial condition in particular, are up to three orders of magnitude smaller than the residual and boundary-condition gradients, so a plain summed update is dominated by a few terms. The directions also conflict: of the pairwise cosines of Equation (7) are negative, every term has a negative mean cosine with the others, and the initial- and boundary-condition gradients are the most strongly opposed because the injected inlet state is opposite to the initial reservoir state. The difficulty is therefore multi-objective and not a matter of network capacity.
Figure 6.
Gradient conflict in the three-output loss, from the trained fixed-weight baseline. (a) Distribution of the per-parameter gradient magnitude for each of the nine loss terms (PDE residual, initial condition, and boundary condition for each field). (b) The nine per-term gradients projected onto their two leading directions: initial-condition gradients in green, boundary-condition gradients in red, and residual gradients in blue.
Two strategies remove the instability (Table 3). The fixed-weight baseline has a large error and variance and diverges on one run in five. Tuned loss weighting with Adam reduces the errors to , , and on saturation, temperature, and the tracer, with no diverged runs; error triples keep this field order throughout. The largest weights fall on the temperature initial condition and residual (Table A2). The SOAP optimizer, with the baseline’s fixed weights and a single learning rate, reaches , , and with no diverged runs, so the optimizer alone removes the instability without any loss-weight search. The two strategies reach similar quality and do not compound, which indicates that they address the same difficulty by two routes; over the search, the objective is most sensitive to the learning rates and the temperature residual weight (Figure 7), consistent with the optimizer governing the outcome.
Table 3.
Relative error (mean ± standard deviation over five seeds), against both the exact MOC and the FVM solutions, and the number of diverged runs. The first four rows form a two-by-two comparison of optimizer and weighting; the fifth is per-term gradient surgery at fixed weights. RBA and the KAN are each shown at their default configuration and after a comparable search to the other methods.
Figure 7.
Hyperparameter importance over the eleven search variables, computed from the Optuna study.
The two popular alternatives fail at their defaults but respond differently to tuning. RBA diverges on all five seeds at its default because its per-point weighting amplifies the front where the coupled system is most fragile; given the same search budget, a weaker attention setting restores it to , , and with no diverged runs. The KAN improves with tuning, from a mean error near to about , but remains the weakest method and still diverges on two of five seeds, consistent with the documented initialization instability of deep Chebyshev physics-informed KANs [64,65]. Among Adam, SOAP, RBA, and the KAN, only the second-order optimizer succeeds with no search at all.
The training dynamics clarify how the optimizer helps (Figure 8). The SOAP trajectory is more oscillatory than the smooth Adam descent yet reaches lower minima, and the mean gradient cosine stays predominantly negative for both, so SOAP does not remove the conflict in the unpreconditioned parameter space but conditions the update so that descent is possible while the conflict is present. This is consistent with the implicit alignment that Wang and co-workers [5] report for the same optimizer, measured on the preconditioned updates and not the unpreconditioned gradients we track. An ablation on how often SOAP recomputes its preconditioner eigenbasis (Appendix B, Table A5) shows that this reliability survives a five-hundred-fold increase in the refresh period at ten seeds per setting, so it does not depend on a continuously refreshed basis; the ablation does not by itself apportion the benefit between the curvature information and the conditioning built from it. The unpreconditioned pairwise cosine is therefore not the quantity SOAP must improve to succeed, and the conflict diagnosis and the accuracy are not in one-to-one correspondence.
Figure 8.
Training dynamics of the four method families on the three-output problem, one representative seed each. (Left): first-stage training loss for the baseline (Adam) and the second-order optimizer (SOAP), whose descent is oscillatory but reaches lower minima. (Middle): the conflict-targeting methods against the baseline, where gradient surgery (PCGrad) descends and the conflict-free update (ConFIG) stalls orders of magnitude higher. (Right): mean gradient cosine for all four runs.
If the conflict were the cause of the failure, the methods that remove it should succeed, and the more completely a method removes it, the more reliably it should train (Section 3.7). Table 4 and Figure 8 show the opposite ordering. PCGrad, the mildest intervention, succeeds: at per-term granularity it eliminates the divergence and reaches , , and with no loss-weight search, joining SOAP as a stabilizer that needs none. The two granularities of the same method behave differently. Per-term PCGrad treats the nine weighted losses as separate objectives and diverges on no seed; grouped PCGrad combines the three PDE, initial-condition, and boundary-condition sums and diverges on three seeds of five (Table 4). The stabilizing result reported here is the per-term variant. ConFIG, the strongest intervention, fails on every seed at both granularities, and the failure does not depend on the settings: no learning rate recovers it, and the full Optuna search that restored RBA leaves the grouped variant at on saturation with all five validation seeds above the divergence threshold. The search changes the characteristics of the failure. The tuned variant no longer grows unboundedly but converges reliably to the same wrong solution (Figure 9): the five seeds agree with one another to a relative of while each sits from the exact solution, about four times closer to one another than to the truth. The shared solution misses the saturation drop at the thermal front, the signature of the coupling, and carries the leading shock past its true position. Prior work shows that a PINN can converge to a stable but incorrect solution when the dynamical system has an attracting fixed point [66]; the attractor here is induced instead by the equal-projection geometry of the conflict-free update. To our knowledge this is the first report of a conflict-free update converging to a stable solution that attains its alignment objective yet violates the equations.
Table 4.
Conflict-targeting gradient combinations: relative error (mean ± standard deviation over five seeds), against both the exact MOC and the FVM solutions, and the number of diverged runs. Per-term variants treat the nine weighted losses as separate objectives; grouped variants combine the three PDE/IC/BC sums, the granularity of the original papers. The tuned row received the same Optuna budget as the tuned methods of Table 3.
Figure 9.
The stable wrong solution of the tuned grouped ConFIG. Profiles at from all five validation seeds, against the exact solution. The seeds agree with one another more closely than with the truth: every seed misses the saturation drop at the thermal front, carries the leading shock too far, and smears the tracer shoulder, while the temperature front is nearly correct.
A per-iteration audit traces the failure to the geometry of the equal-projection update (Figure 10). The Gram matrix of the unit per-term gradients reaches a condition number of to , so the term gradients are nearly dependent, the equal-projection direction they define is nearly orthogonal to the summed-gradient direction, and the first-stage loss stalls one to two orders of magnitude above the baseline. That the same artificial-diffusion regularizer is shared by PCGrad and SOAP, which converge correctly, isolates the failure to the equal-projection geometry rather than to the regularization or the coupled physics; the method remains effective on the smoother multi-loss problems for which it was designed [28].
Figure 10.
ConFIG failure audit on the three-output fixed-weight baseline (median and interquartile band over seeds). (a) Cosine between the combined update and the ordinary summed-gradient direction; the plain sum is 1 by construction. (b) Condition number of the Gram matrix of unit per-term gradients, the linear system that sets the equal-projection direction.
Figure 8 shows the mechanism: ConFIG raises its mean gradient cosine from about to fluctuate around zero, so it removes the conflict, yet its training loss stalls orders of magnitude above the baseline, while PCGrad trains with the cosine near throughout. Alignment is therefore neither necessary for success nor sufficient for it on this system.
The intervention on the update rule is complemented by an intervention on the physics, through the coupling-strength family of Section 3.8. Raising the dose deepens the saturation drop at the thermal front while the front positions stay fixed, so the problem grows progressively stiffer (Figure 11). The primary evidence that alignment does not govern trainability is cross-method and does not rely on the dose: per-term ConFIG is the most aligned method at every coupling strength (Table A8) yet diverges at every one, and the grouped variant fails as often at unremarkable alignment, while the negative-cosine updates PCGrad and SOAP succeed. The coupling dose adds supporting, though statistically marginal, evidence. The clearest dose–response is grouped PCGrad: stable up to , it loses four of five seeds at and five of five from , an increase from zero failures at the decoupled that is significant in Fisher’s exact test ( at , at ). The Adam baseline shows a weaker trend; extended to ten seeds its divergence counts are across , and a Cochran–Armitage trend test is significant (, ). SOAP and per-term PCGrad stay stable across the range, while ConFIG fails at every including the decoupled , so its failure reflects the multi-front problem itself, independent of the coupling strength (Table A6).
Figure 11.
Physical effect of the coupling dose: exact saturation profile at for coupling strengths from decoupled () to stronger than the reference (), with the exact reference recomputed at every (Equation (9)). (a) The full profile; the front positions are fixed. (b) Zoom on the thermal front, where the saturation drop deepens monotonically as the coupling strengthens.
The measured conflict, by contrast, does not respond to the dose. The mean gradient cosine stays near for the successful methods and at or above zero for ConFIG across the whole range, while the failure rates respond strongly to . The physical dose changes the difficulty without changing the conflict score, so the pairwise cosine does not measure the quantity that governs trainability here.
The dissociation is not an artifact of the cosine. A magnitude-weighted alignment score , sensitive to the loss-term scales [5,22], ranks the failing per-term ConFIG highest of any method, places the grouped variant, which fails just as consistently, in the middle of the field, and shows no trend in that matches the failure rate for any method (Table A8). A conditioning proxy adds a caution against a static explanation: the Gauss–Newton kernel spectrum is indistinguishable across at initialization, and after training the condition numbers drift up only mildly with and do not match the failure rate (Table A7). The difficulty is not visible in the initial loss landscape and appears to develop during training; what separates the methods is how their updates are conditioned.
4.4. Shock Regularization
The artificial diffusion term and the optional entropy penalty both target the sharp fronts, and we compare their effect with fixed loss weights (Table 5). Diffusion alone captures the fronts, but it is unstable and one run in five diverges. The entropy penalty alone, with no diffusion, fails on every seed because it constrains the shape of the saturation profile yet provides no mechanism to capture the shock. The combination of diffusion and entropy is the best and the most stable, with no diverged runs and the lowest error, because the diffusion captures the shock while the entropy penalty discourages the non-physical rising profiles that destabilize training. This combination, with fixed weights, already reaches an accuracy close to the tuned configurations of Table 3. The choice of localization profile for the diffusion made no statistical difference. A sigmoid profile and a hyperbolic tangent profile gave errors that agreed within one standard deviation over five seeds, and we therefore used the hyperbolic tangent throughout.
Table 5.
Effect of the shock regularization with fixed loss weights (mean ± standard deviation over five seeds). The diffusion-only row is the fixed-weight baseline of Table 3, and the entropy term, where present, uses .
The amount of diffusion is itself a choice, and we swept it to confirm that the conclusions do not hinge on one value (Table 6). With the front-localized coefficient swept from zero to at five seeds, three regimes appear. With no diffusion, and with a coefficient too small at , the fixed-weight baseline diverges on all five seeds: the unregularized hyperbolic residual is not trainable by this baseline, consistent with the known need for added dissipation on Buckley–Leverett [7]. A trainable regime opens for between and , and within it more diffusion trades sharpness for stability. The divergence rate falls from two of five seeds to one as grows, while the saturation-shock width widens from to of the domain, the front-location error grows from to , and the material-balance error grows from to . The paper default sits in the middle of this regime, and the qualitative behavior is the same across it, so the training-pathology findings reflect the coupled problem itself; the regularization strength does not drive them. The coefficient is held fixed at this value for every method and is not part of the hyperparameter search, so the method comparisons reported here are made at a common regularization and none of the conclusions depends on it. A smaller yields a sharper front, but its accuracy is the same to within the seed spread and it does not reduce the divergence rate, so the residual front-broadening at is the sharpness limitation noted in the discussion; it does not confound the comparison. The row is the fixed-weight baseline; its two-of-five divergence here, against one of five in Table 3, is within the seed-to-seed variation of this unstable baseline and is itself an instance of the irreproducibility the paper documents.
Table 6.
Artificial-diffusion sensitivity for the fixed-weight three-output baseline (mean ± standard deviation over five seeds). The relative error and the divergence count are over all five seeds; the shock width, front-location error, and mass balance are over the converged seeds and are undefined when all five diverge. Width and front error are fractions of the domain length. The default is .
4.5. Recovery, Material Balance, and Front Tracking
For a reservoir engineer, the most useful quantity in the solution is the recovery it predicts. The displaced movable-oil fraction measures the sweep of the injected water, and the trained surrogate reproduces it over the whole displacement (Figure 12). At the final time the exact solution has swept about of the movable oil, and the surrogate predicts this fraction with a relative error of about , or in the recovered fraction, the same relative margin as its global material balance. The two checks coincide before breakthrough because the exact recovery then equals the injected water volume by material balance; the value of the surrogate is that it closes the balance while also resolving the internal fronts that set where the recovery comes from. The front locations have the same practical use: the leading front sits within 1– of the reservoir length of its true position, so the breakthrough time inferred by extrapolating the leading front beyond the trained window is accurate to a similar margin.
Figure 12.
Oil-recovery (sweep-efficiency) curve for the hot-water flood: the displaced movable-oil fraction against time, from the exact MOC solution, the finite-volume reference, and the trained PINN surrogate.
The surrogate also tracks the displacement fronts and closes the global material balance (Table 7), evaluated for the two-by-two comparison of Table 3 together with per-term PCGrad. The median pointwise residual (Equation (12)) is near zero for every method, so the governing equations are satisfied over most of the domain. The RMS of that residual is dominated by the shock and is therefore misleading because a sharper and more accurate front produces a larger pointwise residual. For this reason we report the median residual together with the integral material balance and the front-location error.
Table 7.
Material-balance and front-tracking metrics (mean ± standard deviation over the converged seeds). Front tracking and material balance are undefined for a diverged solution, so the one diverged baseline run is excluded from these statistics. Front-tracking error is given as a fraction of the domain length, and the material balance is the relative error of Equation (14).
The front-tracking error (Equation (13)) stays within about of the reservoir length, and the tuned methods place the tracer front most accurately, with an error near . The global material balance closes to within about 5– for the two-by-two configurations and to for the per-term PCGrad configuration. For context, the same functional evaluated on the FVM reference closes to better than , as expected for a conservative discretization, and on the MOC reference to about , so the gap is genuine and is the weakest of the formulation’s conservation properties.
This gap is a known limitation of the present soft-constrained formulation: conservation is enforced approximately, through a weighted residual rather than a discrete flux balance. Global mass-balance errors of such networks are characteristically orders of magnitude larger than those of a finite-volume scheme even when the predicted fields are accurate [67], and the residual concentrates at the shock that the soft formulation smears [7]. We did not identify directly comparable global material-balance values in the soft-PINN Buckley–Leverett literature. The nearest published figures measure other quantities, namely, residual and parameter errors in the 2– range [68] and base-case relative errors near [45]. Tighter closure is available through conservative and weak-form reformulations that impose flux continuity or a variational residual rather than a penalty [26,32,39], which we note as the route to reducing the imbalance associated with the soft constraint.
The level is adequate for some engineering uses and not for others. A five to six percent closure may support preliminary screening and ranking, where the quantity of interest is the difference between scenarios, provided those differences exceed the uncertainty it implies and the final candidates are verified with a conservative solver; it is comparable to the accuracy with which the recovery itself is predicted. It is not adequate where the absolute volume is the deliverable, such as reserves estimation or regulatory reporting, for which a conservative discretization closing to better than remains the appropriate tool.
The accuracy of the predicted fields is a separate question from the conservation error, and it admits a closer comparison with the literature. The stable configurations of Table 3 give final-time saturation errors between and against the exact solution. Coutinho and co-workers report mean relative errors from to for non-convex Buckley–Leverett problems, across mobility ratios and four artificial-viscosity strategies at twenty runs each, with the same normalized definition used here [30], so the saturation accuracy reported above falls inside that range. Studies of the single saturation equation report lower values, near in the closest multiphase case [45]. The comparison is contextual since those problems carry one transported field whereas the present network predicts saturation, temperature, and tracer together through a temperature-dependent fractional flow. The output ablation of Table 2 measures what that coupling costs: the saturation error rises from to and the temperature error from to between the one-output and three-output configurations.
A small relative error and an accurate front location do not by themselves rule out the possibility that the network and the finite-volume reference agree only because both blur the shock by a similar amount. To test this we measured the width of the saturation shock at the final time with the full width at half maximum of Equation (15), expressed as a fraction of the domain length (Table 8). The exact solution gives the sharpest front at of the domain, and the finite-volume solution is slightly wider at from its numerical diffusion. The network front is the widest at , which is about three times the exact MOC width and about twice the finite-volume width. The network therefore does not match the finite-volume front by co-smearing. It is in fact the most diffuse of the three, and its width is set by the artificial diffusion coefficient alone. The widths are quantized to the grid spacing of about , and the network width is identical across the five seeds. The exact front is a true discontinuity, and its measured width of is the resolution floor of the gradient-based metric on the 1000-point evaluation grid. This identifies the front width as the main target for improvement.
Table 8.
Saturation-shock width at the final time, as a fraction of the domain length: the full width at half maximum of the saturation-gradient spike.
These measurements also address a concern specific to the non-conservative form of Equation (2), which does not by itself guarantee the correct shock speed. The artificial diffusion is not incidental to the result: without it, and at , the baseline diverges on every seed (Table 6), so some dissipation is necessary before there is a solution to assess at all. The question is therefore whether the regularizer is also what places the front, and within the trainable regime the sweep answers it. As grows from to , the front-location error grows from to of the domain and the material-balance error grows from to : more dissipation moves the front further from its true position rather than closer, so the accuracy reported here is obtained at the low end of the viable range and degrades monotonically as the regularization strengthens. The front position is validated after the fact against the exact front of the unregularized system, which is fixed by the Rankine–Hugoniot speed, and the shock-width comparison above shows the network front to be the most diffuse of the three solutions, so the agreement with the reference is not produced by a shared amount of smearing.
4.6. Parametric Surrogate and Computational Cost
A single network conditioned on the reservoir oil viscosity reproduces the family of solutions over the whole range (Table 9 and Figure 13). Validated against the exact MOC solution at five viscosity values, the mean errors are for saturation, for temperature, and for the tracer. The temperature error grows with viscosity, from at the low end of the range to at the high end, which is the main limitation of the surrogate. These accuracies place the parameter-conditioned network at proof-of-concept level, in particular for temperature at high viscosity.
Table 9.
Parametric surrogate validated against the exact MOC solution at five values of the reservoir oil viscosity.
Figure 13.
Parametric surrogate. (Left): exact MOC solution (solid) and prediction of the single viscosity-conditioned network (dashed) at three representative oil viscosities, one color per viscosity. (Right): relative error against the exact solution across the viscosity range, per field.
Table 10 reports the wall-clock cost of each approach. A single forward solve favors the reference solvers because the method of characteristics returns a case in 83 ms, while training a network takes about two minutes. The advantage of the network appears when many solutions are required. The parametric surrogate is trained once and then returns the solution for any oil viscosity in about ms, four orders of magnitude faster per query than the finite-volume solve, so it amortizes against this finite-volume implementation after about ten queries, and it provides a continuous and differentiable representation of the whole family. The break-even point depends on the reference implementation: the finite-volume timing is for an unoptimized research code, and a compiled solver would move the break-even to more queries, though the per-query gap of four orders of magnitude remains. For workflows that span many more queries or a higher-dimensional parameter space, an operator surrogate is the more suitable tool [48,49]. The method of characteristics is faster per case in this one-dimensional problem, but it is available only because an exact solution exists, which is not the situation in the multi-dimensional problems that motivate a surrogate. These figures exclude the hyperparameter search: the tuned-weight route spends 30 trials at two seeds each, roughly two hours on one GPU, which the untuned SOAP route avoids.
Table 10.
Wall-clock cost. The reference solvers run on one processor core, and the network is trained and evaluated on one NVIDIA RTX 5090 GPU. Training is a one-time cost, while inference and the reference solves are per case. Inference is the evaluation of all three fields on a grid of 1000 points.
4.7. Inverse Recovery of the Thermal Transport Coefficients
The same network recovers the thermal transport coefficients from the sparse temperature and tracer observations of Section 3.10, whose layout over the space-time domain is shown in Figure 14a. Table 11 reports the recovered coefficients over five seeds, and Figure 14b,c compare them with the true values across the noise levels.
Figure 14.
Inverse recovery of the thermal transport coefficients. (a) Monitoring layout over the space-time domain: near-injector temperature sensors (green) transit the slow thermal front, and downstream sensors (orange) record the tracer. (b) Recovered and (c) recovered against observation noise (means over five seeds; bars one standard deviation; dashed line the true value), with the other coefficient known from cores and with both recovered jointly.
Table 11.
Thermal-coefficient recovery from sparse temperature and tracer observations (mean ± standard deviation over five seeds). The true values are , , and the derived thermal front speed . Each block fixes the coefficients not being recovered at their true values. The front-speed error is the relative error of computed from the recovered coefficients.
With one coefficient fixed at its core-measured value, the other is recovered accurately and the recovery is stable under measurement noise conditions. The mean recovered is within of the true value in the noise-free case and within at the two noise levels, and the mean recovered is within at every noise level (Table 11). That the noise-free case is not the most accurate is not anomalous: the differences across noise levels lie within one seed standard deviation, so at these levels the recovery error is set by the variability of the optimization across seeds and not by the measurement noise. The thermal front speed derived from the recovered coefficients is within of its true value . When both coefficients are recovered at once, the front speed is still recovered to within at worst, but the individual coefficients are biased and correlated: and move up together and settle near and , so their ratio preserves the observed front speed while their separate values drift. This is the identifiability limit anticipated in Section 3.10 because the temperature data constrains the front-speed combination and not the two groups independently. The field accuracy during the inversion is consistent with the forward surrogate, with relative errors near for saturation and below for temperature and the tracer. In practical terms, temperature monitoring near the injector fixes the heat-front speed to within a few percent, and one heat-capacity group follows once the other is known from core data; the monitoring data alone cannot separate the two, and an independent measurement is required. In the language of experimental design this correlated direction is a practically non-identifiable, or sloppy, direction of the likelihood, and fixing one coefficient from cores removes it. The sensor placement is itself a design output, consistent with a sensitivity- or D-optimality-driven criterion: temperature sensors carry heat-front information only where the solution is sensitive to the thermal coefficients, the heated zone near the injector, so a thermal monitoring point for such a flood belongs there, while tracer detection can sit at ordinary offset distances.
To confirm that the near-injector placement is what makes the recovery possible, rather than an incidental choice, we repeated the recovery of (with fixed) with several thermal-sensor layouts and a higher noise level (Table 12). Within the heated zone the recovery is stable in the number of sensors: two, four, and six near-injector sensors all recover the front speed to within 1–, so a dense array is not required. It also tolerates heavier noise, holding the front speed to within at observation noise. Moving the four sensors outside the heated zone to , where the thermal front never reaches, breaks the recovery: the temperature record is near zero throughout, the recovered coefficient scatters across seeds (), and the front-speed error rises to about . The placement is therefore a genuine design constraint, consistent with the sensitivity argument above.
Table 12.
Sensor placement and noise sensitivity of the inverse recovery of (with fixed at its true value; mean ± standard deviation over five seeds). The true value is , and the derived front speed is .
5. Discussion
The central finding concerns training reliability. On this coupled multi-front problem the bottleneck is one of optimization: each field is easy to learn alone, yet whether the joint network trains at all depends on the seed. A curvature-aware optimizer, mild gradient surgery, and tuned loss weighting each remove that failure, the first two with no loss-weight search. The common explanation that conflict between the loss-term gradients causes the difficulty does not hold here: the update that provably removes the conflict fails, the optimizer that leaves it untouched and the surgery that removes it only pairwise both succeed, and the most aligned update is the one that diverges. What separates the successful methods from ConFIG is how they condition or deflect the update, not whether they remove the conflict; we establish this negative result without isolating a positive metric since our conditioning proxy does not track the failure rate. We therefore read the conflict as a structural diagnostic of the loss. The full evidence is collected in Section 4.3, and it agrees with the loss-landscape analysis of Rathore and co-workers [25] and the second-order direction of Wang and co-workers [5].
Beyond the training question, the surrogate itself has engineering value. The trained network reproduces the recovery curve of the hot-water flood to a relative error of about ; tracks the thermal, tracer, and leading-water fronts to within 1– of the reservoir length; and closes the material balance to within 5–, so it reports the swept volume and the front arrivals that a thermal-recovery design depends on. In a parameter-conditioned form it returns the whole family of displacements over a range of reservoir oil viscosity from one forward evaluation, which is the setting of screening and uncertainty quantification. When retrained against sparse temperature and tracer monitoring, it recovers the heat-front speed.
The evaluation carries a methodological lesson for displacement problems. The strong-form pointwise residual is the expected quantity to report, yet it is dominated by the shock and rewards a blurred front over a sharp one, a structural property because the strong-form residual of a conservation law is singular at a discontinuity [7]. The recovery curve, the integral material balance, and the front-tracking check are stable and physically meaningful and should be preferred for a displacement with a shock; conservative and weak-form residuals are the route in the literature to closing the residual material-balance gap of the soft form [26,32]. With these measures the learned solutions track the fronts accurately, and the residual material-balance gap is a real but bounded cost of the soft, non-conservative formulation.
5.1. Implications
For reservoir engineering practice, the coupled saturation–temperature structure studied here is the one-dimensional core of thermal recovery, geothermal, and gas-storage simulation [9,14,47], and the failure mode we document, a training run that succeeds or diverges with the seed, is exactly what a surrogate-based workflow cannot tolerate. Two stabilizers, a quasi-second-order optimizer and per-term gradient surgery, remove that failure mode without problem-specific search, and once training is reliable the parametric surrogate returns a family of solutions at one forward evaluation per query, the regime of history matching and uncertainty quantification. The same formulation reads temperature and tracer monitoring data in the inverse direction and recovers the heat-front speed, and a thermal coefficient once the other is known from cores, so one network serves both the forward design problem and the reservoir characterization that a tracer campaign is run to support.
For those developing training methods for such surrogates, the results argue against alignment as the target. Methods that act on the direction of the gradients [4,28,29] were validated on problems with one dominant front; a coupled multi-front displacement lies outside that envelope, and the gap is not closed by tuning. The successful methods appear to condition or deflect the update during training, consistent with the loss-landscape view of Rathore and co-workers [25] and the second-order direction of Wang and co-workers [5]. The interventions establish the negative claim causally; the positive identification remains indirect. Alignment scores are useful diagnostics but should not serve as training objectives since a fully aligned update can coexist with a wrong solution (Section 4.3). Reliability itself should be reported as a divergence rate over many seeds because even a fixed seed does not reproduce across executions here. The adjustable coupling strength of Section 3.8, with the exact reference recomputed at each value, turns a single test case into a dose–response experiment anchored to ground truth [3,69].
5.2. Limitations
The study has limitations. The artificial diffusion smooths the saturation shock, and a sharper front would require a shock-capturing scheme. The diffusion sensitivity sweep varies the coefficient for the fixed-weight baseline only, and the tuned optimizers and weightings may respond differently. The tuned KAN still diverges on two of five seeds; dedicated stabilization schemes [64,65] were not tested. Each configuration was selected on seeds 0 and 1 and validated on seeds 0 to 4, so the tuned means are mildly optimistic. This affects only the tuned configurations of Table 3 and Table 4 and leaves the central comparison intact: SOAP and per-term PCGrad use no loss-weight search, and ConFIG fails on all five seeds under every budget. The conflict is summarized throughout by the pairwise mean cosine, and other alignment scores [5] may behave differently. The interventional evidence covers one problem family, and the failure of the conflict-free update need not transfer to the smoother problems on which it was validated [28]. The parametric surrogate is accurate for saturation and the tracer but loses accuracy for temperature at high viscosity, where a larger network or a parameter-encoded surrogate [51] may help. All results are for a one-dimensional problem with a single varied parameter, and the extension to higher dimensions and several parameters remains to be tested. The physical model is also idealized. The energy balance is purely convective, so conductive spreading of the heat front and vertical heat losses, which slow and degrade a field thermal front, are outside the model, and coefficients recovered from field data would be effective values that absorb those effects. The inverse recovery is demonstrated on synthetic observations with Gaussian noise; model-form error, non-ideal tracer transport, and correlated field noise would degrade it, and separating the two heat-capacity groups would still require an independent measurement. The tracer is ideal, with no dispersion, adsorption, or partitioning, so field tracer returns would be smeared relative to the sharp front modeled here. The test oil is moderately viscous, and the heavy-oil regime with its adverse mobility ratio is untested.
6. Conclusions
We built and validated a physics-informed neural network surrogate for the coupled non-isothermal Buckley–Leverett displacement with a passive tracer, the one-dimensional core of hot-water flooding. To our knowledge this is the first time the coupled saturation, temperature, and tracer displacement of hot-water flooding has been solved with a PINN and graded against an exact analytical solution. The findings are as follows.
- Training reliability, not accuracy, is the main obstacle, and we report what restores it. A quasi-second-order optimizer (SOAP) and per-term gradient surgery (PCGrad) train the network reliably with no loss-weight search, and tuned loss weighting remains the most accurate configuration, near on all three fields with no diverged runs. The common explanation that gradient conflict causes the difficulty of such coupled systems fails three independent tests here: the conflict-free update (ConFIG) attains its alignment objective yet converges to a stable wrong solution at every coupling strength, to our knowledge the first such report for a conflict-free update; the two stabilizers succeed while the measured conflict persists, SOAP leaving it untouched and PCGrad removing it only pairwise; and the conflict score stays flat while the failure rate responds to the physical coupling. The measured gradient conflict is therefore a structural diagnostic of the loss rather than its governing cause: the successful methods condition (SOAP) or deflect (PCGrad) the update without driving the measured conflict away. In practice this leaves three viable remedies: preconditioning the optimization, deflecting conflicting updates, and balancing the terms.
- The trained network reproduces the quantities a reservoir engineer reads from a simulation. It predicts the oil recovery of the flood, about of the movable oil at the final time, with a relative error of about , a margin set by its relative material-balance closure of 5–, and it places the saturation, temperature, and tracer fronts to within 1– of the reservoir length, so the breakthrough time inferred by extrapolating the leading front is accurate to a similar margin. The saturation shock is resolved at about three times the exact MOC width and about twice the finite-volume width, the cost of the artificial-diffusion regularization, so the network solves a lightly regularized form of the hyperbolic system.
- One formulation serves the forward, parametric, and inverse workflows. A single network conditioned on the reservoir oil viscosity returns the full solution for any value in the range in one forward evaluation of about ms, whereas the exact and numerical solvers must be rerun for each value; it is accurate for saturation and the tracer and loses accuracy for temperature at high viscosity, so it is a feasibility demonstration for screening, history matching, and uncertainty quantification. In the inverse direction, the same formulation, retrained with a data-misfit term, recovers the thermal front speed from sparse near-injector temperature and tracer monitoring to within a few percent at every tested noise level, and a heat-capacity group once the other is known from core data; the temperature data constrain only the front-speed combination of the two groups, an identifiability limit that the jointly recovered coefficients trace along the constant-front-speed contour.
- The study is one-dimensional with a single varied parameter, the artificial diffusion smooths the shock, and all data are synthetic. The extension to heterogeneous multi-dimensional reservoirs with wells, to conservative or weak-form residuals that would tighten the material balance, and to field monitoring data are the next steps. The interventional training result is established on one exactly solvable coupled system; it may transfer to other strongly coupled PINN problems, but that remains to be tested (Section 4.3).
Author Contributions
Conceptualization, Y.K., T.I. and S.D.B.; methodology, Y.K., T.I. and S.D.B.; software, Y.K. and S.D.B.; validation, T.I., S.D.B. and S.M.; formal analysis, Y.K., T.I., S.D.B. and S.M.; investigation, Y.K., T.I. and S.D.B.; resources, Y.K. and T.I.; data curation, Y.K. and S.D.B.; writing—original draft preparation, Y.K. and S.D.B.; writing—review and editing, T.I., S.D.B. and S.M.; visualization, Y.K. and S.D.B.; supervision, T.I. and S.M.; project administration, Y.K. and T.I.; funding acquisition, Y.K. and T.I. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Committee of Science of the Ministry of Science and Higher Education of the Republic of Kazakhstan under grant AP22688606.
Data Availability Statement
The reference solutions, collocation data, and evaluation data were generated from the equations and parameters reported in the manuscript and its appendices; no external dataset was used. The per seed experimental results and the code that generates them are available from the corresponding author on request.
Conflicts of Interest
The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
Nomenclature
All quantities are dimensionless unless noted; cP denotes centipoise (1 cP = 1 mPa s).
| Symbol | Meaning | Symbol | Meaning |
| , | position and time | , , C | water saturation, temperature, tracer |
| water fractional flow | , | water and oil relative permeability | |
| , | residual water and oil saturation | normalized saturation | |
| , | water and oil viscosity (cP) | , | Corey exponents |
| , | thermal transport (heat-capacity) groups | g | thermal front speed function |
| , , | thermal, tracer, and leading front speeds | coupling strength | |
| , | artificial-diffusion amplitude and sharpness | recovered movable-oil fraction | |
| network parameters | w | loss-term weights | |
| h | saturation-gradient magnitude | saturation-shock width |
Appendix A. Problem Formulation Details and Analytical Solution
Appendix A.1. Dimensionless Groups and Fluid Properties
The dimensionless temperature in Equation (4) is , where is the initial reservoir temperature and is the injection temperature. This convention places the injected state at . Sumnu-Dindoruk and Dindoruk [6] write the same system with the opposite normalization; the two are related by the relabeling together with the corresponding swap of the cold and hot viscosity endpoints, and the thermal groups and are unchanged. The thermal groups in the front speed collect the densities and heat capacities of the fluids and the rock,
where and are density and specific heat capacity, the subscripts o, w, and r denote oil, water, and rock, and is the porosity. The water and oil viscosities vary linearly with temperature between their cold and hot values,
and they enter the fractional flow of Equation (1). The physical and fluid parameters of the study case, taken from Sumnu-Dindoruk and Dindoruk [6], are listed in Table A1.
Table A1.
Physical and fluid parameters of the study case [6]. The viscosities are in centipoise (cP); all other quantities are dimensionless.
Appendix A.2. Method of Characteristics
The hyperbolic system of Equations (2)–(4) admits an exact solution by the method of characteristics [6,17]. At a fixed time the solution is self-similar in and consists of three zones. In the hot injection zone, , the temperature is at the injected value and the saturation follows the hot fractional-flow curve as a rarefaction from . In the cold reservoir zone, , the temperature is and the saturation follows the cold fractional-flow curve. In the undisturbed zone, , the reservoir retains its initial state , , and . The saturation values at the fronts follow from the Welge tangent construction [70] applied to the hot and cold fractional-flow curves, and the thermal, leading-saturation, and tracer front speeds are
The passive tracer forms a step that advances at , with behind the front and ahead. This construction is the exact reference that the network is evaluated against, and it produces the three fronts shown in Figure 1.
Appendix B. Reproducibility Details
Table A2 lists the tuned weight-and-rate configurations that the Bayesian search selected for the three principal models, and Table A3 lists the tuned RBA and KAN configurations together with their method-specific hyperparameters. The fixed-weight baseline uses unit weights on the residual and boundary terms, a shared initial-condition weight of 30 for every field, no entropy penalty (), and the Adam learning rate of Table 1. All runs use the network, the collocation counts, the artificial-diffusion settings, and the two-stage budget of Table 1, and each reported configuration is retrained at the five random seeds 0 to 4.
Table A2.
Tuned hyperparameter configurations. The first-stage learning rate is the Adam or SOAP step size, the loss weights refer to Equation (5), and the boundary weight is shared across fields. The tracer entries are not applicable to the two-output model.
Table A4 reports how the divergence classification responds to the threshold and the seed-to-seed spread of the training time. Two readings follow. The central comparison is stable: over the range to the counts for tuned loss weighting, both SOAP configurations, per-term PCGrad, and per-term ConFIG do not change at all, so the cross-method conclusion does not depend on the value chosen. Several secondary configurations do change classification within the range, among them the fixed-weight baseline, grouped PCGrad, both grouped ConFIG rows, and both KAN rows, so individual divergence rates should be read as threshold-dependent. For grouped ConFIG the failure is in any case established by the missing coupling signature rather than by the count, as Section 4.3 sets out. The training times show that the spread of the fixed-weight baseline, s, is caused by its diverged seed, which terminates after 86 s because L-BFGS stops early on a stalled loss; over its four converged seeds the time is s. Wall-clock time therefore carries the same instability the error does, and a comparison of means across methods should be made over converged runs. On that basis SOAP at fixed weights costs s against for the baseline, about more, while per-term PCGrad costs s.
Table A3.
Tuned configurations of the residual-based attention (RBA), Kolmogorov–Arnold network (KAN), and grouped ConFIG models, including the method-specific hyperparameters. The default RBA configuration uses and , and the default KAN uses Chebyshev degree 5 with the network of Table 1. Because the temporal re-weighting is incompatible with a per-term gradient combination, the causal-weighting flag is fixed off for ConFIG.
Table A5 probes one component of the SOAP update. SOAP accumulates Kronecker factors from the gradients, computes an eigenbasis from them, and runs an Adam-style update in that basis. The refresh period n governs how often the eigendecomposition is redone; the Kronecker factors and the second moments are updated at every step regardless of n, so the sweep varies the currency of the basis and not the amount of curvature information available. Every setting was run at ten seeds, twice the number used elsewhere in the study, because the quantity of interest is a difference between configurations that the seed spread of this problem could otherwise obscure. Across a five-hundred-fold range, from every second step to every thousandth, the saturation error stays between and and at most one run of ten diverges, including the setting that recomputes the basis only ten times in the whole first-order stage. The row is the weakest setting: it is the least accurate and carries the one diverged run. Adding the second five seeds moved it from to , while no other row moved by more than , so the five-seed estimate was sensitive to seed selection. Its median of is in line with every other setting, between and , and the elevated mean comes from a heavier upper tail, three runs of ten above . We therefore do not read as evidence of an effect of the refresh period since and recover the accuracy of the default, nor do we claim its behavior is entirely accounted for by seed variation. The ablation supports a robustness result: SOAP remains broadly reliable across the tested refresh periods, with the weakest of them. It does not apportion the benefit between the curvature information and the structured conditioning built from it since the two are not varied independently here and the Adam baseline differs from SOAP in learning rate and schedule as well as in the form of its preconditioner. A separation of that kind would require matched controls at identical learning rate and moment parameters, substituting an identity, frozen, or random basis for the one SOAP computes, which we leave to future work.
Table A4.
Divergence counts for alternative thresholds and training time. Columns two to six give the number of diverged runs of five when a run is called diverged at the stated saturation error; the paper uses . The last column is the wall-clock time of the two training stages together, mean ± standard deviation over the same five seeds.
The hyperparameter search uses the tree-structured Parzen estimator with 30 trials for every configuration, except the KAN search, which uses 24 trials over a compact architecture range, with the Chebyshev degree in , the depth in , and the width in , because each evaluation is about an order of magnitude slower. The objective averages the relative error over two seeds and adds a penalty of one for every diverged seed. The two-output search instead minimizes the larger of the saturation and temperature errors over three seeds, which prevents the optimizer from sacrificing one field. The selected trial of each search is retrained and validated at the five seeds, and every reported error and standard deviation is from this validation.
Table A5.
Eigenbasis-refresh ablation for SOAP: relative error (mean ± standard deviation over ten seeds) and number of diverged runs when the eigenbasis is recomputed every n first-order steps. The Kronecker factors and the second moments are updated at every step in all rows. Other settings follow the fixed-weight SOAP configuration of Table 3, whose five seeds are extended to ten in the row. The Adam baseline is listed for scale; it is not a matched control.
Figure A1 shows the first-stage training loss for one representative seed of each method family of Table 3 and Table 4. The methods that train descend steadily. The per-term ConFIG variant spikes throughout and stalls orders of magnitude higher. The grouped variants spike early and then settle onto a plateau close to the baseline trajectory, yet their validated solutions remain wrong (Table 4), which is a caution in itself: the training loss alone does not certify a solution, both because the weighted losses of different configurations are not directly comparable and because a smooth profile can keep the regularized residual small without satisfying the system.
Figure A1.
First-stage training loss for one representative seed (seed 0) of each method family, split into the methods that train (left) and the ConFIG variants ((right), with the baseline in gray for reference).
The MOC reference is the piecewise-analytical solution of Sumnu-Dindoruk and Dindoruk [6], constructed as in Appendix A and evaluated on a uniform grid of 1000 points in at the final time. The FVM reference solves the same three governing equations with an explicit first-order upwind finite-volume scheme on one thousand cells and a Courant-limited adaptive time step at Courant number , with the saturation and tracer advanced in conservative flux form and the temperature by upwind convection, and its solution is saved at 200 time levels. It provides an independent check that does not share the structural assumptions of the MOC construction. The coupling fields of the one-output configuration are read from the FVM solution by bilinear interpolation in space and time.
The parametric surrogate uses the network of Table 1 with one additional input for the normalized oil viscosity. It is trained over the range 6 to 14 cP with 20,000 interior collocation points, and the hot-state oil viscosity is set to one quarter of the cold-state value, which matches the base ratio of the eight-to-two cP viscosity variation of the governing equations.
The experiments were run with PyTorch 2.11 and CUDA 12.8, Optuna 4.9, NumPy 2.4, and SciPy 1.17, on two NVIDIA RTX 5090 GPUs, with each network trained on a single GPU.
Appendix C. Coupling-Strength Sweep Details
Table A6 lists the hot-state viscosities of Equation (9) and the divergence counts of the coupling-strength sweep: six methods, five seeds, and six coupling strengths, or 180 runs in total. The Adam baseline was additionally run at ten seeds per coupling strength, an extra 30 runs, to test the dose–response with a Cochran–Armitage trend test; the ten-seed counts () and the test (, ) are reported in the main text. Every run uses the training configuration of Table 1; SOAP uses its frontier learning rate of . The exact MOC reference and the FVM reference are regenerated at every , and their final-time disagreement is essentially constant across the family (relative of to for saturation, for temperature, and for the tracer), so the difficulty that grows with lies in the training and not in the references. At the construction of the MOC solution degenerates gracefully: the hot and cold fractional-flow curves coincide, the saturation is continuous across the thermal front, and the saturation profile is the isothermal Buckley–Leverett solution.
The conditioning proxy of Table A7 is computed as follows. The weighted training loss is a sum of squares, so its Gauss–Newton matrix is with J the Jacobian of the scaled residual vector with respect to the parameters; the nonzero spectrum equals that of the kernel , which we evaluate exactly on a fixed sample of 1152 residual rows (256 interior points per field and 64 initial- and boundary-condition points per field, identical for every configuration). We summarize the spectrum by two condition numbers, the ratio of the largest eigenvalue to the median () and to the tenth percentile (). The full largest-over-smallest ratio is not informative here because the smallest retained eigenvalue lies at the relative numerical floor of the kernel, so a robust denominator is required, and the tenth percentile probes the small-eigenvalue tail without resting on that floor. Because the spectrum has effective rank near three, we also examined the within-top-three eigenvalue ratio ; it is near at initialization and between and after training, with no trend in , the same conclusion the two tabulated condition numbers reach. This kernel conditioning is a coarse, global property of the loss landscape, and it is distinct from the near-dependence of the nine per-term gradients that drives the ConFIG failure (Figure 10); that smaller Gram matrix, whose small eigenvalues are reported there in full, is where the equal-projection pathology lives. Both condition numbers are evaluated at initialization, where a fixed seed gives the identical network at every , and at the end of the baseline training.
Table A7.
Conditioning proxy across the coupling sweep: of two condition numbers of the Gauss–Newton kernel, mean ± standard deviation over the five seeds, at initialization and at the end of the baseline (Adam) training. is the largest eigenvalue over the median, and the largest over the tenth percentile; the construction and the reason a robust denominator is required are given in the text.
The magnitude-weighted alignment score R at the end of training is listed in Table A8, computed on the same unweighted per-term gradients as the pairwise cosine. The per-term ConFIG attains the highest R at every coupling strength although it diverges at every one, the grouped variant fails throughout at mid-range values of R, and no method shows a trend in that matches the failure rate of the coupling sweep (Table A6), so the dissociation between alignment and trainability is not specific to the pairwise cosine.
Table A8.
Magnitude-weighted gradient alignment (mean over five seeds) at the end of training in the coupling sweep, by method and coupling strength . Higher is more aligned. Grouped variants are marked (g).
References
- Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-Informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef] [Scilit]
- Toscano, J.D.; Oommen, V.; Varghese, A.J.; Zou, Z.; Ahmadi Daryakenari, N.; Wu, C.; Karniadakis, G.E. From PINNs to PIKANs: Recent advances in physics-informed machine learning. Mach. Learn. Comput. Sci. Eng. 2025, 1, 15. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Krishnapriyan, A.S.; Gholami, A.; Zhe, S.; Kirby, R.M.; Mahoney, M.W. Characterizing Possible Failure Modes in Physics-Informed Neural Networks. In Proceedings of the Advances in Neural Information Processing Systems, Virtual, 6–14 December 2021; Volume 34, pp. 26548–26560. [Google Scholar]
- Yu, T.; Kumar, S.; Gupta, A.; Levine, S.; Hausman, K.; Finn, C. Gradient Surgery for Multi-Task Learning. In Proceedings of the Advances in Neural Information Processing Systems, Virtual, 6–12 December 2020; Volume 33, pp. 5824–5836. [Google Scholar]
- Wang, S.; Bhartari, A.K.; Li, B.; Perdikaris, P. Gradient Alignment in Physics-Informed Neural Networks: A Second-Order Optimization Perspective. In Proceedings of the Advances in Neural Information Processing Systems, San Diego, CA, USA, 2–7 December 2025; Volume 38. [Google Scholar] [CrossRef] [Scilit]
- Sumnu-Dindoruk, D.; Dindoruk, B. Analytical Solution of Nonisothermal Buckley–Leverett Flow Including Tracers. SPE Reserv. Eval. Eng. 2008, 11, 555–564. [Google Scholar] [CrossRef] [Scilit]
- Fuks, O.; Tchelepi, H.A. Limitations of Physics-Informed Machine Learning for Nonlinear Two-Phase Transport in Porous Media. J. Mach. Learn. Model. Comput. 2020, 1, 19–37. [Google Scholar] [CrossRef] [Scilit]
- Zhang, J.; Liang, D.; Zhou, W.; Zhang, Q.; Wang, L.; Wei, Z. Research on hot water chemical flooding technology in Bohai heavy oil field. Front. Energy Res. 2024, 11, 1324876. [Google Scholar] [CrossRef] [Scilit]
- Lake, L.W. Enhanced Oil Recovery; Prentice Hall: Englewood Cliffs, NJ, USA, 1989. [Google Scholar]
- Patidar, A.K.; Joshi, D.; Dristant, U.; Choudhury, T. A review of tracer testing techniques in porous media specially attributed to the oil and gas industry. J. Pet. Explor. Prod. Technol. 2022, 12, 3339–3356. [Google Scholar] [CrossRef] [Scilit]
- Han, J.X.; Xue, L.; Wei, Y.S.; Qi, Y.D.; Wang, J.L.; Liu, Y.T.; Zhang, Y.Q. Physics-informed neural network-based petroleum reservoir simulation with sparse data using domain decomposition. Pet. Sci. 2023, 20, 3450–3460. [Google Scholar] [CrossRef] [Scilit]
- Lin, J.Q.; Yan, X.; Wang, E.Z.; Zhang, Q.; Zhang, K.; Liu, P.Y.; Zhang, L.M. A layer-specific constraint-based enriched physics-informed neural network for solving two-phase flow problems in heterogeneous porous media. Pet. Sci. 2025, 22, 4714–4735. [Google Scholar] [CrossRef] [Scilit]
- Chen, H.Y.; Xue, L.; Liu, L.; Zhou, G.F.; Han, J.X.; Dong, Y.B.; Cong, M.Z.; Liu, Y.T.; Hosseini-Nasab, S.M. Physics-informed graph neural network for predicting fluid flow in porous media. Pet. Sci. 2025, 22, 4240–4253. [Google Scholar] [CrossRef] [Scilit]
- Chen, S.; Ouyang, X.; Rao, X. Physics-Informed Neural Network (PINNs) for Flow Simulation in Polymer-Assisted Hot Water Flooding. Processes 2026, 14, 197. [Google Scholar] [CrossRef] [Scilit]
- Liu, B.; Wei, J.; Kang, L.; Liu, Y.; Rao, X. Physics-Informed Neural Network (PINNs) for Convection Equations in Polymer Flooding Reservoirs. Phys. Fluids 2025, 37, 036622. [Google Scholar] [CrossRef] [Scilit]
- Bear, J. Modeling Phenomena of Flow and Transport in Porous Media; Theory and Applications of Transport in Porous Media; Springer: Cham, Switzerland, 2018; Volume 31. [Google Scholar] [CrossRef] [Scilit]
- Buckley, S.E.; Leverett, M.C. Mechanism of Fluid Displacement in Sands. Trans. AIME 1942, 146, 107–116. [Google Scholar] [CrossRef] [Scilit]
- LeVeque, R.J. Finite Volume Methods for Hyperbolic Problems; Cambridge Texts in Applied Mathematics; Cambridge University Press: Cambridge, UK, 2002. [Google Scholar] [CrossRef] [Scilit]
- Baydin, A.G.; Pearlmutter, B.A.; Radul, A.A.; Siskind, J.M. Automatic Differentiation in Machine Learning: A Survey. J. Mach. Learn. Res. 2018, 18, 5595–5637. [Google Scholar]
- Cai, S.; Mao, Z.; Wang, Z.; Yin, M.; Karniadakis, G.E. Physics-informed neural networks (PINNs) for fluid mechanics: A review. Acta Mech. Sin. 2021, 37, 1727–1738. [Google Scholar] [CrossRef] [Scilit]
- Luo, K.; Zhao, J.; Wang, Y.; Li, J.; Wen, J.; Liang, J.; Soekmadji, H.; Liao, S. Physics-informed neural networks for PDE problems: A comprehensive review. Artif. Intell. Rev. 2025, 58, 323. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Teng, Y.; Perdikaris, P. Understanding and Mitigating Gradient Flow Pathologies in Physics-Informed Neural Networks. SIAM J. Sci. Comput. 2021, 43, A3055–A3081. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Yu, X.; Perdikaris, P. When and why PINNs fail to train: A neural tangent kernel perspective. J. Comput. Phys. 2022, 449, 110768. [Google Scholar] [CrossRef] [Scilit]
- Anagnostopoulos, S.J.; Toscano, J.D.; Stergiopulos, N.; Karniadakis, G.E. Learning in PINNs: Phase transition, diffusion equilibrium, and generalization. Neural Netw. 2026, 193, 107983. [Google Scholar] [CrossRef] [Scilit]
- Rathore, P.; Lei, W.; Frangella, Z.; Lu, L.; Udell, M. Challenges in Training PINNs: A Loss Landscape Perspective. In Proceedings of the 41st International Conference on Machine Learning (ICML), Vienna, Austria, 21–27 July 2024; Volume 235, pp. 42159–42191. [Google Scholar] [CrossRef] [Scilit]
- Abbasi, J.; Jagtap, A.D.; Moseley, B.; Hiorth, A.; Andersen, P.Ø. Challenges and Advancements in Modeling Shock Fronts with Physics-Informed Neural Networks: A Review and Benchmarking Study. Neurocomputing 2025, 657, 131440. [Google Scholar] [CrossRef] [Scilit]
- Xin, D.; Ghorbani, B.; Gilmer, J.; Garg, A.; Firat, O. Do Current Multi-Task Optimization Methods in Deep Learning Even Help? In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 28 November–9 December 2022; Volume 35, pp. 13597–13609. [Google Scholar] [CrossRef] [Scilit]
- Liu, Q.; Chu, M.; Thuerey, N. ConFIG: Towards Conflict-Free Training of Physics Informed Neural Networks. In Proceedings of the International Conference on Learning Representations (ICLR), Singapore, 24–28 April 2025. [Google Scholar] [CrossRef] [Scilit]
- Hwang, Y.; Lim, D.Y. Dual Cone Gradient Descent for Training Physics-Informed Neural Networks. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 10–15 December 2024; Volume 37, pp. 98563–98595. [Google Scholar] [CrossRef] [Scilit]
- Coutinho, E.J.R.; Dall’Aqua, M.; McClenny, L.; Zhong, M.; Braga-Neto, U.; Gildin, E. Physics-informed neural networks with adaptive localized artificial viscosity. J. Comput. Phys. 2023, 489, 112265. [Google Scholar] [CrossRef] [Scilit]
- Kalesh, D.; Merembayev, T.; Omirbekov, S.; Amanbek, Y. Application of physics-informed neural networks for two-phase flow model with variable diffusion and experimental validation. Results Eng. 2025, 26, 105439. [Google Scholar] [CrossRef] [Scilit]
- Diab, W.; Al Kobaisi, M. PINNs for the Solution of the Hyperbolic Buckley–Leverett Problem with a Non-convex Flux Function. arXiv 2021, arXiv:2112.14826. [Google Scholar] [CrossRef] [Scilit]
- McClenny, L.D.; Braga-Neto, U.M. Self-Adaptive Physics-Informed Neural Networks. J. Comput. Phys. 2023, 474, 111722. [Google Scholar] [CrossRef] [Scilit]
- Anagnostopoulos, S.J.; Toscano, J.D.; Stergiopulos, N.; Karniadakis, G.E. Residual-Based Attention in Physics-Informed Neural Networks. Comput. Methods Appl. Mech. Eng. 2024, 421, 116805. [Google Scholar] [CrossRef] [Scilit]
- Hanna, J.M.; Aguado, J.V.; Comas-Cardona, S.; Askri, R.; Borzacchiello, D. Residual-based adaptivity for two-phase flow simulation in porous media using Physics-informed Neural Networks. Comput. Methods Appl. Mech. Eng. 2022, 396, 115100. [Google Scholar] [CrossRef] [Scilit]
- Wu, C.; Zhu, M.; Tan, Q.; Kartha, Y.; Lu, L. A comprehensive study of non-adaptive and residual-based adaptive sampling for physics-informed neural networks. Comput. Methods Appl. Mech. Eng. 2023, 403, 115671. [Google Scholar] [CrossRef] [Scilit]
- Rodriguez-Torrado, R.; Ruiz, P.; Cueto-Felgueroso, L.; Green, M.C.; Friesen, T.; Matringe, S.; Togelius, J. Physics-Informed Attention-Based Neural Network for Hyperbolic Partial Differential Equations: Application to the Buckley–Leverett Problem. Sci. Rep. 2022, 12, 7557. [Google Scholar] [CrossRef] [Scilit]
- Zhang, F.; Nghiem, L.; Chen, Z. A novel approach to solve hyperbolic Buckley–Leverett equation by using a transformer based physics informed neural network. Geoenergy Sci. Eng. 2024, 236, 212711. [Google Scholar] [CrossRef] [Scilit]
- Jagtap, A.D.; Kharazmi, E.; Karniadakis, G.E. Conservative physics-informed neural networks on discrete domains for conservation laws: Applications to forward and inverse problems. Comput. Methods Appl. Mech. Eng. 2020, 365, 113028. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Wang, Y.; Vaidya, S.; Ruehle, F.; Halverson, J.; Soljačić, M.; Hou, T.Y.; Tegmark, M. KAN: Kolmogorov–Arnold Networks. In Proceedings of the International Conference on Learning Representations (ICLR), Singapore, 24–28 April 2025. [Google Scholar] [CrossRef] [Scilit]
- Vyas, N.; Morwani, D.; Zhao, R.; Kwun, M.; Shapira, I.; Brandfonbrener, D.; Janson, L.; Kakade, S. SOAP: Improving and Stabilizing Shampoo using Adam. In Proceedings of the International Conference on Learning Representations (ICLR), Singapore, 24–28 April 2025. [Google Scholar] [CrossRef] [Scilit]
- Almajid, M.M.; Abu-Al-Saud, M.O. Prediction of porous media fluid flow using physics informed neural networks. J. Pet. Sci. Eng. 2022, 208, 109205. [Google Scholar] [CrossRef] [Scilit]
- Haghighat, E.; Amini, D.; Juanes, R. Physics-informed neural network simulation of multiphase poroelasticity using stress-split sequential training. Comput. Methods Appl. Mech. Eng. 2022, 397, 115141. [Google Scholar] [CrossRef] [Scilit]
- Kenzhebek, Y.; Imankulov, T.; Bekele, S.D.; Panfilova, I.; Akhmed-Zaki, D. Coupled pressure and saturation prediction for two-phase flow in porous media using physics-informed neural networks (PINNs). Comput. Methods Appl. Mech. Eng. 2025, 446, 118229. [Google Scholar] [CrossRef] [Scilit]
- Zhang, J.; Braga-Neto, U.; Gildin, E. Physics-Informed Neural Networks for Multiphase Flow in Porous Media Considering Dual Shocks and Interphase Solubility. Energy Fuels 2024, 38, 17781–17795. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.W.; Dai, Z.X.; Wang, G.S.; Chen, L.; Xia, Y.Z.; Zhou, Y.H. A hybrid physics-informed data-driven neural network for CO2 storage in depleted shale reservoirs. Pet. Sci. 2024, 21, 286–301. [Google Scholar] [CrossRef] [Scilit]
- Jing, T.; Lin, K.; Zhao, W.; Wei, N.; Zhou, J.; Jing, M.; Zhang, J.; Zhao, J.; Zhou, S. Applications and Challenges of Machine Learning in Enhanced Oil Recovery: A Review. Energy Fuels 2026, 40, 5395–5423. [Google Scholar] [CrossRef] [Scilit]
- Lu, L.; Jin, P.; Pang, G.; Zhang, Z.; Karniadakis, G.E. Learning Nonlinear Operators via DeepONet Based on the Universal Approximation Theorem of Operators. Nat. Mach. Intell. 2021, 3, 218–229. [Google Scholar] [CrossRef] [Scilit]
- Li, Z.; Kovachki, N.; Azizzadenesheli, K.; Liu, B.; Bhattacharya, K.; Stuart, A.; Anandkumar, A. Fourier Neural Operator for Parametric Partial Differential Equations. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 3–7 May 2021. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Wang, H.; Perdikaris, P. Learning the Solution Operator of Parametric Partial Differential Equations with Physics-Informed DeepONets. Sci. Adv. 2021, 7, eabi8605. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Cho, W.; Jo, M.; Lim, H.; Lee, K.; Lee, D.; Hong, S.; Park, N. Parameterized Physics-Informed Neural Networks for Parameterized PDEs. In Proceedings of the 41st International Conference on Machine Learning (ICML), Vienna, Austria, 21–27 July 2024; Volume 235, pp. 8510–8533. [Google Scholar] [CrossRef] [Scilit]
- Park, Y.; Kim, J.; Hong, J. Coupling-Robust Accuracy in Multiphysics Physics-Informed Neural Networks via Kronecker-Preconditioned Optimization. arXiv 2026, arXiv:2605.23391. [Google Scholar] [CrossRef] [Scilit]
- Corey, A.T. The Interrelation Between Gas and Oil Relative Permeabilities. Prod. Mon. 1954, 19, 38–41. [Google Scholar]
- Glorot, X.; Bengio, Y. Understanding the Difficulty of Training Deep Feedforward Neural Networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics (AISTATS), Sardinia, Italy, 13–15 May 2010; Volume 9, pp. 249–256. [Google Scholar]
- McKay, M.D.; Beckman, R.J.; Conover, W.J. A Comparison of Three Methods for Selecting Values of Input Variables in the Analysis of Output from a Computer Code. Technometrics 1979, 21, 239–245. [Google Scholar] [CrossRef] [Scilit]
- Oleinik, O.A. Discontinuous Solutions of Non-Linear Differential Equations. Uspekhi Mat. Nauk. 1957, 12, 3–73, English translation in Am. Math. Soc. Transl. Ser. 2 1963, 26, 95–172.. [Google Scholar]
- Liu, D.C.; Nocedal, J. On the Limited Memory BFGS Method for Large Scale Optimization. Math. Program. 1989, 45, 503–528. [Google Scholar] [CrossRef] [Scilit]
- Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. In Proceedings of the International Conference on Learning Representations (ICLR), San Diego, CA, USA, 7–9 May 2015. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Sankaran, S.; Perdikaris, P. Respecting Causality for Training Physics-Informed Neural Networks. Comput. Methods Appl. Mech. Eng. 2024, 421, 116813. [Google Scholar] [CrossRef] [Scilit]
- Bergstra, J.; Bardenet, R.; Bengio, Y.; Kégl, B. Algorithms for Hyper-Parameter Optimization. In Proceedings of the Advances in Neural Information Processing Systems, Granada, Spain, 12–14 December 2011; Volume 24, pp. 2546–2554. [Google Scholar]
- Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; Koyama, M. Optuna: A Next-Generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, AK, USA, 4–8 August 2019; pp. 2623–2631. [Google Scholar] [CrossRef] [Scilit]
- SynodicMonth. ChebyKAN: Kolmogorov–Arnold Networks (KAN) Using Chebyshev Polynomials Instead of B-Splines. 2024. Available online: https://github.com/SynodicMonth/ChebyKAN (accessed on 28 July 2026).
- Sidharth, S.S.; Keerthana, A.R.; Gokul, R.; Anas, K.P. Chebyshev Polynomial-Based Kolmogorov–Arnold Networks: An Efficient Architecture for Nonlinear Function Approximation. arXiv 2024, arXiv:2405.07200. [Google Scholar] [CrossRef] [Scilit]
- Rigas, S.; Anagnostopoulos, F.; Papachristou, M.; Alexandridis, G. Training Deep Physics-Informed Kolmogorov–Arnold Networks. Comput. Methods Appl. Mech. Eng. 2026, 452, 118761. [Google Scholar] [CrossRef] [Scilit]
- Mostajeran, F.; Faroughi, S.A. Scaled-cPIKANs: Spatial Variable and Residual Scaling in Chebyshev-Based Physics-Informed Kolmogorov–Arnold Networks. J. Comput. Phys. 2025, 537, 114116. [Google Scholar] [CrossRef] [Scilit]
- Rohrhofer, F.M.; Posch, S.; Gößnitzer, C.; Geiger, B.C. On the Role of Fixed Points of Dynamical Systems in Training Physics-Informed Neural Networks. Trans. Mach. Learn. Res. 2023, 2023, 490. [Google Scholar] [CrossRef] [Scilit]
- Mamud, M.L.; Mudunuru, M.K.; Karra, S.; Ahmmed, B. Quantifying local and global mass balance errors in physics-informed neural networks. Sci. Rep. 2024, 14, 15541. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fraces, C.G.; Papaioannou, A.; Tchelepi, H. Physics informed deep learning for transport in porous media. Buckley Leverett problem. arXiv 2020, arXiv:2001.05172. [Google Scholar] [CrossRef] [Scilit]
- New, A.; Eng, B.; Timm, A.C.; Gearhart, A.S. Tunable Complexity Benchmarks for Evaluating Physics-Informed Neural Networks on Coupled Ordinary Differential Equations. In Proceedings of the AAAI-22 Workshop on Knowledge-Guided Machine Learning (KGML-AAAI-22), Arlington, VA, USA, 17–19 November 2022. [Google Scholar] [CrossRef] [Scilit]
- Welge, H.J. A Simplified Method for Computing Oil Recovery by Gas or Water Drive. J. Pet. Technol. 1952, 4, 91–98. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.














