Pessimism With a Physical Meaning: Offline Design of Solute Injection in Fractured Media When Solutes Thicken the Water

Many engineering optimizations are now done "offline". An optimizer searches a machine-learned stand-in for an expensive simulator or field trial, called a surrogate, that was trained on a fixed set of past runs. The best-known failure is that the optimizer finds places where the surrogate is wrong and optimistic, and proposes designs that collapse when tested for real. The standard defenses make the surrogate pessimistic away from its data. That pessimism comes with a strength knob, and nobody can set the knob honestly without access to the real system.

This proposal studies a setting where the knob can be replaced by physics. The setting is the design of solute injection schedules in fractured or macroporous media. Examples are fertilizer applied through irrigation water into structured soil, or chemically loaded fluid pumped into fractured rock. Dissolved nitrogen compounds such as urea make water measurably more viscous, which slows flow through the fast fractures and changes how solute moves into the slow surrounding rock or soil. Our claim is that in this setting the surrogate's dangerous errors concentrate along one physically known direction: high injected concentration, where the viscosity feedback is strongest and the historical data are thinnest. Our proposed defense is to build the surrogate around an explicit viscosity-versus-concentration law and make it pessimistic over the range of viscosity laws that lab rheology data allow, rather than over a free penalty weight. We will test whether this beats generic conservative surrogates, and whether its advantage grows as the viscosity effect gets stronger.

Core Claim

Offline model-based optimization (MBO) of injection schedules in dual-porosity media has a structured form of surrogate exploitation. The two porosities are a fast, low-storage fracture or macropore network and a slow, high-storage matrix, which exchange fluid and solute. The surrogate's optimism error is largest where concentration-dependent viscosity, $\mu(C)$, departs from the behavior seen in training. Concentrations in the fractures and in the matrix are out of equilibrium, so this departure is local and changes over time.

Let $\theta$ be the coefficients of a parametric viscosity law, and let $\Theta$ be the set of coefficients consistent with rheometer measurements. A hybrid surrogate $\hat f(x;\theta)$ evaluates a design $x$ by passing it through a differentiable reduced dual-porosity model whose fracture and matrix mobilities are $k/\mu(C;\theta)$, plus a learned neural residual. The design is then chosen robustly:

$$x^\star = \arg\max_x \; \min_{\theta \in \Theta} \hat f(x;\theta).$$

The width of $\Theta$ comes from calibration residuals, not from tuning against the true system. This sidesteps the offline hyperparameter paradox that Design-Bench identifies for the conservatism weight in PRIME and the temperature in DiffOPT. We predict three things. All methods should tie when the viscosity effect is switched off. The proposed method's advantage over generic pessimism should grow with the strength of the effect. The advantage should shrink if the dual-porosity structure is collapsed to a single averaged continuum.

Grounding and Prior Work

The physical motivation comes from Effect of Nitrogen on the Viscosity of the Erosive Sediment-Laden Flows. That paper measured, with a dual vertical tube rheometer, that urea raises the relative viscosity coefficient of sediment-laden flow by 89% to 150% at fixed sediment content. Its empirical viscosity model fits with $R^2 \approx 0.87$ and Nash–Sutcliffe efficiency $\approx 0.86$, over $C_v$ from 7.6% to 43.5% under laminar conditions.

That work is about overland, sediment-laden flow, not pore water. Carrying its law into fractures and soil pores is a hypothesis, not an established fact. We therefore treat effect strength as an experimental variable, $\lambda$, swept from zero up to the reported magnitude. We do not assume the 150% figure transfers.

The transport side builds on A model of solute diffusion in unsaturated double-porosity medium by homogenization. That paper derives a two-continuum diffusion model by asymptotic homogenization and reproduces the stair-step concentration profiles of a sand–clay-sphere medium in under one second, against 16 seconds for the fine mesh. It explicitly assumes constant viscosity, rigid geometry, and no advection. We add advection and a mobility that depends on concentration, and we use its geometry as the matrix configuration. The fracture-optimization work Automatic Optimization of Multi-Well Multi-Stage Fracturing Treatments Combining Geomechanical Simulation, Reservoir Simulation and Intelligent Algorithm shows the alternative: dual-permeability simulation run inside the optimizer. It gains about 20% in net present value but is limited to tens of iterations and uses fixed viscosity. That supports, but does not prove, the case for offline methods.

Two subsurface machine-learning papers motivate the exploitation concern without addressing it. Machine learning on field data for hydraulic fracturing design optimization trains an unregularized tree ensemble ($R^2 = 95.4\%$) and reports a roughly 400% target gain from a reinforcement-learning optimizer run against it. This is exactly the pattern that Design-Bench: Benchmarks for Data-Driven Offline Model-Based Optimization and Offline Model-Based Optimization by Learning to Rank warn tends to fail under ground-truth validation. An Artificial Intelligence Method for Flowback Control of Hydraulic Fracturing Fluid in Oil and Gas Wells uses viscosity as a measured input channel with no model of what drives it.

The defenses come from the MBO literature, and our method changes how one of them is calibrated. Three lines of work defend against exploitation in different ways:

All of these treat the out-of-distribution direction as unknown. We exploit the case where physics says which direction is dangerous and by how much. Autofocused oracles for model-based design supplies the evaluation protocol: train on the bottom 80% of designs and score on reaching the unseen top 20%.

Research Program

Benchmark. We will first build a benchmark, called DP-Visc for this note, because no existing benchmark couples these physics. The forward model is a dual-permeability advection–dispersion column, with Darcy flux in each continuum scaled by $k/\mu(C)$. Matrix–fracture exchange is driven by pressure and concentration differences, each with its own mobility.

The design vector has roughly 15 to 20 dimensions:

  • the concentration of eight injection pulses,
  • their timing,
  • the irrigation or injection rate,
  • the total solute mass.

The objective rewards solute retained in the matrix, which corresponds to the root zone for fertilizer, and penalizes solute breaking through the fast network.

The ground-truth viscosity law has the functional shape of the Zhang et al. empirical model, scaled by $\lambda$. Sometimes it is drawn from a broader family that the surrogate's parametric form does not contain, so that model misspecification is tested honestly.

Offline datasets. Datasets of about 2,000 simulations are restricted in two ways: to the bottom 80% by objective, and to pulse concentrations below a cap. This mirrors the realistic situation in which historical practice never tried aggressive dosing.

Method. The hybrid surrogate has two parts. One is a differentiable reduced dual-porosity model with a few lumped transfer coefficients fitted to the data. The other is a neural residual trained with a ranking loss in the style of RaM. Treating the residual as a ranking model keeps the comparison with RaM fair.

The uncertainty set $\Theta$ comes from a separate rheology calibration step. We fit the parametric $\mu(C)$ to synthetic rheometer readings generated from the true law with noise matched to the reported fit quality ($R^2 \approx 0.87$). $\Theta$ is the 95% region of the resulting fit. Optimization is gradient ascent on the inner minimum over $\Theta$, where the minimum is approximated by projected steps on $\theta$.

Baselines

Naive reference. The do-nothing reference is the best design in the offline dataset. The naive learned reference is a mean-squared-error neural surrogate searched by gradient ascent with z-score whitening, which Design-Bench found competitive on four of eight tasks. We also run the same tree ensemble with an unconstrained optimizer as in Machine learning on field data for hydraulic fracturing design optimization.

Generic pessimism and alternative objectives. The strongest existing competitors are RaM, MATCH-OPT, and COMs. Offline Model-Based Optimization by Learning to Rank reports an average rank of 2.2 for RaM-ListNet across Design-Bench, against 5.9 for the best of 20 baselines. MATCH-OPT reports Mean Normalized Rank #1 at both the 50th and 100th percentiles. DiffOPT reports a mean rank of 2.0 over six Design-Bench tasks. These are generic defenses with the strongest published records, so they are the right opponents. There is no reported result found on Lacuna for any method on a dual-porosity, viscosity-coupled design task, so all numbers on DP-Visc will be produced here.

Fair-comparison protocol. Every method gets the same offline data, the same 128-candidate output budget, and the same number of surrogate training epochs and optimizer steps. Each method's hyperparameters, including the COMs weight $\alpha$ and the DiffOPT temperature, get the same 20-configuration search budget scored by an offline validation heuristic. We also report an oracle-tuned upper bound for COMs, with $\alpha$ chosen against the true simulator, as the hardest possible version of generic pessimism.

Bar for success. Beating these baselines means a higher 100th-percentile and median normalized true score than the best of RaM, MATCH-OPT, and offline-tuned COMs at $\lambda$ at or above half the reported magnitude, across at least five seeds. It also means remaining within noise of oracle-tuned COMs.

Ablations. Three ablations isolate the key ingredient:

  • No robustness. The hybrid surrogate at the point estimate of $\theta$, with no worst case. This tests whether the physics structure alone helps.
  • Generic penalty instead of physical set. The hybrid surrogate with a COMs-style penalty in place of $\Theta$, matched for average pessimism. This tests whether the physically shaped set matters beyond its overall strength.
  • Single porosity. The full method run on a single-porosity version of the simulator. This tests whether the fracture–matrix structure is where the effect lives.

Why not just…?

Why not just run the simulator inside the optimization loop? For DP-Visc itself this is a real threat, because our oracle is cheap. We will therefore report a budget-matched online optimizer that is allowed $k$ true queries, for $k$ from 0 to 200. The offline setting is justified by field cases where the only data are historical treatments. Automatic Optimization of Multi-Well Multi-Stage Fracturing Treatments Combining Geomechanical Simulation, Reservoir Simulation and Intelligent Algorithm is limited to 30–50 coupled-simulation iterations, and PRIME reports a 93–99% simulation-time reduction from going offline. The claim we make is about offline performance. The online curve tells readers how many true queries the method is worth.

Why not just add viscosity as an input feature? The Western Siberia surrogate already uses effective viscosity among its 14 features. Our concern is that in historical data viscosity moves together with concentration over a narrow range, so a learned feature extrapolates no better than concentration itself. We include this variant, with measured fracture-fluid viscosity supplied as an input. If it closes the gap, our hypothesis about where exploitation lives is wrong.

Why not just tune generic conservatism well? This is the most serious alternative. A well-chosen $\alpha$ in COMs or PRIME might capture most of the benefit. The oracle-tuned COMs upper bound settles it. If oracle-tuned COMs matches our method, then the value of the physics is only that it sets the knob without access to the true system. That is still useful, but it is a weaker claim, and we would report it as such. If our method beats even oracle-tuned COMs, then the shape of the pessimism matters, not just its strength.

Why not just use a single-porosity model? Single-continuum averaging hides fast fracture channeling, and it erased the non-equilibrium steps that the homogenized two-continuum model kept in the Tran et al. benchmark. In our setting it would also average away the fracture–matrix concentration contrast that makes viscosity vary locally. The single-porosity ablation measures directly whether that contrast is what drives the exploitation gap.

Proposed Experiments

Experiment 1: the λ sweep. This is the decisive experiment. We plot normalized true score at the 100th and 50th percentiles against viscosity strength $\lambda$ for all methods. The proposal predicts the following:

  • At $\lambda = 0$ all methods are equivalent.
  • The gap between the robust hybrid and the best generic method grows with $\lambda$.
  • The gap appears together with a rising exploitation rate in the baselines, measured as the fraction of proposed designs that score below the best training design.

Alongside the sweep we report the optimism gap, defined as predicted minus true score of each method's chosen design, and where in concentration space the optimism concentrates. If baseline optimism does not concentrate at high pulse concentration, the core claim fails.

Experiment 2: misspecification and calibration width. Here the true viscosity law lies outside the assumed parametric family. Robust pessimism over a misspecified set could do worse than generic pessimism, and we will report that outcome if it happens. We also vary the width of $\Theta$ by changing rheometer noise and the number of rheometer measurements, to show how calibration quality turns into design quality.

Experiment 3: sanity checks on standard benchmarks.

  • Reproduction. We reproduce RaM and MATCH-OPT on Design-Bench Superconductor, to confirm our implementations are faithful before comparing on DP-Visc.
  • Protocol check. We apply the autofocus 80/20 protocol of Autofocused oracles for model-based design on DP-Visc and report the probability of exceeding the best training design, the metric that paper raised from 0.11% to 3.78% for CbAS.