Partial-Label Counterfactuals for Data-Starved Flow Surrogates

Every high-fidelity flow simulation of a car body costs about 375 CPU-hours; DrivAerNet++ spent roughly three million CPU-hours on 8,000 designs. That cost is why engineers want neural surrogates, but training a surrogate takes many such simulations. The obvious way to stretch a small simulation budget is data augmentation on the table of design parameters that describes each car. In this setting, augmentation fails for the same reason it fails on ordinary tables: changing a column (say, the trunk-lid angle) changes the answer, so the original label is no longer valid.

For a spatial output, the label is not invalidated everywhere at once. If the trunk-lid angle changes, the pressure on the front bumper barely moves. This proposal builds synthetic training examples by perturbing one design parameter, keeping the simulated pressure field only in the surface regions the perturbation should not affect, and masking the loss elsewhere. The map of where each parameter has influence comes from the surrogate itself. Each design parameter is a separate input token to a cross-attention decoder, the network that lets each surface point look up relevant information in the parameter table, so the gradient of the prediction with respect to that one token gives a cheap per-parameter sensitivity map. The question is whether such partially labeled counterfactuals are worth real simulations when only a few hundred runs are affordable, and how many runs each one is worth.

Core Claim

Tabular augmentation methods treat a row's label as atomic: it is either preserved or destroyed. Physical design surrogates break that assumption because their labels are fields over space, and most of a field is locally insensitive to most design changes. A cross-modal surrogate that factorizes its conditioning by parameter can estimate this locality. It can therefore turn label-destroying perturbations into label-preserving ones on a restricted region. We claim this region-restricted augmentation lowers surface-pressure error in the 100–1,000 simulation regime by more than either naive tabular augmentation or no augmentation. We further claim the gain is measurable as an equivalent number of saved simulations.

Where This Sits

The tabular augmentation literature motivates the problem and constrains the design. SCARF replaces random columns with draws from each column's marginal distribution and helps on 69 classification tasks. However, it creates contrastive views for representation learning, not new labeled pairs. MI-CVAE shows that marginal swapping breaks dependencies between correlated features, and it trains per-cluster generators to keep rows coherent. Bazaga et al. and several studies of noise injection (Jiang et al., Shwartz-Ziv et al.) document that unstructured perturbation invalidates labels or causes noise memorization.

The closest relative is CRDA. CRDA perturbs only features it judges conditionally independent of a base model's residuals, then adds the residual back. It reports a 22.9% average MSE reduction for MLPs, but it is restricted to scalar regression and relies on a PC-algorithm independence test. We borrow CRDA's idea of a counterfactual label that stays valid under a restricted perturbation. We differ in what is restricted: the region of the output field that keeps its label, decided per parameter and per point, rather than which input features may be perturbed globally.

The surrogate architecture reuses established cross-attention pieces. Wang et al. already fuse a point-cloud geometry encoder with flow-condition tokens through cross-attention on DrivAerNet++ and AircraftData. They predict only scalar lift and drag, with no augmentation. CViT shows that a cross-attention decoder queried at continuous coordinates acts as a resolution-free field evaluator. Gated cross-attention shows that a learned gate keeps a small modality from being swamped by a large one. That matters here, because roughly 30 parameter tokens face about $10^5$ surface points. We combine these three ingredients into a field surrogate and do not claim the architecture as the contribution. A field-predicting cross-attention model conditioned on design tables is the obvious next step, and we treat it as a strong baseline rather than the novelty.

Research Program

The surrogate $f(G, t, x)$ takes a surface geometry $G$, a design table $t$ with entries $t_j$, and a query point $x$ on the surface, and predicts pressure. It encodes the geometry into point tokens. Each $t_j$ becomes its own embedded token. Query points then attend over both token sets through gated cross-attention.

After a warm-up phase on real simulations, the model computes a per-parameter sensitivity $S_j(x) = |\partial f(G,t,x)/\partial t_j|$ for each training design. This is one backward pass per parameter, not one per point. We then perturb a single parameter by $\Delta t_j$, drawn from the empirical distribution of real design differences to stay inside the design space. The perturbed geometry $G'$ is regenerated by the parametric morphing step, which is a CAD operation costing seconds, not a simulation. The synthetic example keeps the original field $u$ only where the predicted change is negligible. Its loss is

$$ \mathcal{L}_{\text{aug}} = \frac{1}{|M|}\sum_{x \in M} \big(f(G', t + \Delta t_j e_j, x) - u(x)\big)^2, \quad M = \{x : S_j(x)\,|\Delta t_j| < \tau\}. $$

Here $e_j$ is the unit vector for parameter $j$, and $\tau$ is a tolerance set relative to the surrogate's current validation error, so synthetic labels are never trusted below the model's own noise floor. Masks are recomputed every few epochs. To limit the model confirming its own mistakes, sensitivities come from an exponential-moving-average copy of the network, and $\tau$ is calibrated on held-out real pairs, as described below.

Two risks are central. First, incompressible flow is elliptic: a change at the rear perturbs pressure everywhere, if only slightly. The method's premise is that this far-field change is smaller than the surrogate's own error at low data, and that premise is directly measurable. Second, gradient sensitivity is a first-order estimate and may miss nonlinear effects of large $\Delta t_j$. This is why perturbation sizes are capped and the calibration uses real finite differences.

If the morphing pipeline for DrivAerNet++ cannot be reproduced, the fallback restricts augmentation to flow-condition parameters, which leave the geometry unchanged. This uses AircraftData's Mach and angle-of-attack grid. It also uses TandemFoilSet's operating conditions.

Baselines

The naive reference is the same gated cross-attention field surrogate trained only on the real simulations at each budget, with no augmentation. Every other method is reported as a change from it.

The strongest existing competitor is the cross-attention design of Wang et al., extended with a coordinate-query decoder in the style of CViT so it predicts fields. It is the strongest competitor because it already solves the fusion problem on this exact dataset. Wang et al. report a lowest mean relative error of $4.610\times10^{-2}$ on aerodynamic coefficients. For drag alone, DragSolver reports $R^2 = 0.9712$ on DrivAerNet++. For surface-pressure field error on DrivAerNet++, no reported result was found on Lacuna, so all field numbers will be produced here.

A conditioning baseline follows F-FNO and broadcasts the table as constant input channels. An augmentation baseline applies SCARF-style marginal replacement and Gaussian noise to the table, keeping the full original field as the label. This is the "tabular augmentation as usually practiced" reference.

Two ablations isolate the key ingredient. The first uses a geometric-footprint mask: keep labels at points farther than a tuned distance from where the morph moved the surface. The second uses an oracle mask, computed from true field differences on real near-pairs, which bounds what perfect influence estimation could give.

All methods share the same training subsets, sampled from the same 100, 250, 500, and 1,000 design splits, with five seeds each. They share the same GPU-hour cap, which includes the extra forward and backward passes augmentation costs. They also get the same number of hyperparameter trials, tuned on a shared validation split. Beating the field-extended Wang et al. model means a lower relative $L_2$ surface-pressure error at 250 and 500 runs, with seed-level confidence intervals that do not overlap. It also means drag integrated from the predicted pressure that is no worse than the unaugmented model.

Why not just…?

Why not just use standard tabular augmentation on the design table? SCARF-style replacement or Gaussian noise, with the original field kept as the label, teaches the model that different designs share one flow field. The tabular literature already shows unstructured perturbation degrades models (Jiang et al., Shwartz-Ziv et al.) and breaks feature dependencies (MI-CVAE). We expect this baseline to hurt near the changed part and to flatten the model's sensitivity to design parameters. That flattening is measured directly by correlating predicted and true finite-difference responses on near-pairs.

Why not just mask by geometric distance from the morphed region? This is the real threat. If the footprint mask matches the learned mask, the cross-attention sensitivity machinery is unnecessary and the contribution shrinks to "masked counterfactuals." The learned map should win for two reasons. Wake changes travel far downstream of a rear modification. Parameters with no localized geometric footprint, such as ride height or underbody style, have no meaningful distance mask. The footprint-versus-learned-versus-oracle comparison settles this, broken down by parameter type. If the footprint mask matches, we will report that as the finding.

Why not just use a simpler conditioning network and skip cross-attention? Any differentiable surrogate yields per-parameter gradients, so cross-attention is not logically required. To separate the two questions, we run the augmentation with an F-FNO channel-concatenation surrogate as well. If augmentation helps equally there, the claim is about augmentation, not fusion. The gated design is kept only for its separately measured effect on the 30-versus-$10^5$ token imbalance documented by Kim et al..

Why not just spend the budget on more simulations, or predict drag with gradient boosting? Gradient boosting on the design table reaches only $R^2 = 0.35$ at 640 samples and 0.55 at 3,200 in DrivAerNet++, and it produces no field. Buying more simulations is the honest comparison. We report an exchange rate: the number of extra real runs the unaugmented model needs to match the augmented model's error. At about 375 CPU-hours per run, that converts the result into compute saved.

Proposed Experiments

The primary benchmark is surface pressure on DrivAerNet++ under the budgets above. Metrics are relative $L_2$ field error, error stratified by distance from the perturbed region, $R^2$ of drag integrated from predicted pressure, and the simulation exchange rate.

The decisive check comes before any surrogate result and tests the premise itself. DrivAerNet++ designs are parametric, so we mine real pairs that differ mainly in one parameter. On those pairs we measure how much of the surface keeps its pressure within the low-data surrogate's own error when that parameter changes. If almost none does, because elliptic coupling spreads changes everywhere above the error floor, the idea fails. We will then report it as a negative result about augmenting design-conditioned surrogates.

The same real pairs serve three further purposes. They calibrate $\tau$. They score each mask source by precision, meaning the fraction of kept points whose true change is below tolerance. They also provide the oracle ablation.

A second benchmark tests whether the effect transfers to operating conditions rather than geometry. It uses TandemFoilSet, whose 8,104 two-dimensional simulations include matched single- and tandem-airfoil configurations (TandemFoilSet), with perturbations of gap, stagger, and incidence angle.

A final stress test checks for confirmation bias. Starting from deliberately under-trained warm-up models, we test whether self-estimated masks degrade gracefully or amplify early errors. Graceful degradation would show up as mask precision tracking validation error.