Manuscript Offprint
arXiv:2610.32299CoPiT: A conditional Position-induced Transformer for aerodynamic field prediction on unstructured meshes
Abstract
High-fidelity Reynolds-averaged Navier–Stokes (RANS) simulations remain a standard tool for aerodynamic analysis, yet each solve on an unstructured mesh is computationally expensive, making many-query tasks such as design exploration, optimization, and multi-condition evaluation costly. Neural operators provide mesh-flexible surrogates for mapping geometry and operating conditions to flow fields; however, in many existing architectures, global parameters such as the freestream state and design variables are concatenated with pointwise inputs, leaving their influence on intermediate features implicit. This paper proposes CoPiT, a Conditional Position-induced Transformer that builds on the Position-induced Transformer (PiT) as its geometric backbone and injects a global condition vector through multi-stage feature-wise linear modulation (FiLM), thereby making parametric modulation explicit while preserving geometry-based attention weights. The model is evaluated on two-dimensional AirfRANS airfoil fields, including scarce-data and extrapolation regimes, and on three-dimensional BlendedNet++ blended-wing-body surfaces. On the AirfRANS full-data test set, CoPiT reduces surface and volume losses by approximately 54% and 24% relative to Transolver, respectively, and achieves the lowest overall normalized test MSE among the compared baselines on BlendedNet++. Matched ablations show that FiLM conditioning generally improves upon input concatenation, while the preferred placement is task-dependent. CoPiT thus provides a practical operator-learning surrogate for parametric aerodynamics on unstructured meshes.
Keywords: Neural operator, Aerodynamic surrogate, Transformer, Feature-wise linear modulation
1. Introduction
Parametric partial differential equations (PDEs) are central to fluid mechanics and aerospace applications [1, 2]. In particular, high-fidelity Reynolds-averaged Navier–Stokes (RANS) simulations yield velocity, pressure and wall-shear fields that are indispensable for aerodynamic analysis, yet each solve is computationally expensive. Many-query tasks—design exploration, optimization and multi-condition evaluation—therefore motivate surrogate models that approximate the map from geometry and freestream or design parameters to aerodynamic fields at a fraction of the CFD cost [3, 4]. Figure 1 illustrates this surrogate-assisted workflow.
Neural operators learn mappings between function spaces and, once trained, evaluate new inputs by a single forward pass [5, 6, 7]. Fourier Neural Operators (FNO) [5] and DeepONet [6] are representative neural-operator architectures, while Geo-FNO and GINO extend operator learning to
Corresponding authors
Email addresses: majfchen@ust.hk (Junfeng Chen), 23040781r@connect.polyu.hk (Yongchen Fan)

Same architecture; trained separately for the two datasets.
Figure 1. Schematic of a surrogate-assisted aerodynamic design workflow. Offline CFD generates training data; a learned operator then provides approximate evaluations during design exploration.
more general geometries [8, 9]. Graph networks and transformer-based solvers further address unstructured meshes [10, 11, 12, 13]. These developments make operator learning a natural framework for aerodynamic field prediction, where the surrogate must remain accurate across varying meshes and parametric regimes.
Aerodynamic field prediction on irregular geometries presents two coupled challenges. First, the discrete domain is geometry-dependent (unstructured meshes or surface triangulations) rather than a fixed Cartesian grid. Second, the solution depends jointly on local geometry and global parameters such as freestream speed, angle of attack and design variables [14, 15, 16, 17]. These two dependencies motivate distinct architectural roles for geometry-based spatial aggregation and condition-dependent feature modulation. Geometry-aware architectures (MeshGraphNets [10], Transolver [11], PiT [13]) capture spatial interactions effectively, but when global parameters such as the freestream state and design variables are supplied only through input concatenation, their influence on intermediate representations remains implicit. Such one-shot fusion does not explicitly distinguish geometry-driven aggregation from parametric response modulation. Whether explicit conditioning at intermediate stages improves field and integrated-load prediction, and how its placement affects different metrics, therefore remain empirical questions.
Feature-wise Linear Modulation (FiLM) offers a lightweight alternative: a small network maps a parameter vector to channel-wise scale and shift coefficients that modulate intermediate features [18, 19]. This provides a means of explicitly conditioning intermediate representations at multiple stages, rather than relying solely on input-level parameter injection.
We propose CoPiT, a Conditional Position-induced Transformer for aerodynamic field prediction. CoPiT retains PiT's latent-mesh encode–process–decode architecture, in which position-induced attention weights are determined by pairwise spatial distances rather than feature values [13]. It introduces multi-stage FiLM conditioning after instance normalization in every processor block and in the decoder, allowing global conditions to modulate intermediate features without altering the geometry-based attention weights. We evaluate CoPiT on AirfRANS [16] (two-dimensional
RANS airfoil fields; full-data, scarce-data, and extrapolation settings) and BlendedNet++ [17] (three-dimensional blended-wing-body surface fields). Dataset-specific encoder inputs and conditioning configurations are detailed in Section 5. We further analyze the properties of this conditioning mechanism, including its effect on position-attention and the dependence of predictions on global conditions.
The contributions of this work are as follows:
• Architecture. We propose CoPiT, which combines PiT’s geometry-based position-attention with multi-stage FiLM conditioning in the processor and decoder, enabling explicit modulation of intermediate features by global parameters.
• Analysis. We show that pointwise FiLM does not modify position-attention weights and preserves convergence of an already convergent attention output under bounded modulation. Under FiLM-only conditioning, the encoder features and all attention weights are independent of the condition for fixed geometric inputs, and the prediction is Lipschitz continuous in the condition, with an explicit bound depending on the FiLM generators and backbone components; see Propositions 2 and 3.
• Evaluation. We evaluate CoPiT on two-dimensional AirfRANS and three-dimensional BlendedNet++, including scarce-data and extrapolation settings on AirfRANS. On the AirfRANS full-data test set, CoPiT reduces surface and volume losses by approximately 54% and 24%, respectively, relative to Transolver; on BlendedNet++, it achieves the lowest overall normalized test MSE among the reimplemented baselines. Matched conditioning ablations show that FiLM generally outperforms input concatenation, while the preferred FiLM placement depends on the evaluation metric.
The remainder of the paper is organized as follows. Section 2 reviews related work. Section 3 states the learning problem and reviews position-induced attention. Section 4 introduces CoPiT. Section 5 reports numerical experiments. Section 6 concludes.
Data-driven aerodynamic surrogates include convolutional predictors of airfoil fields [14, 15]. Public benchmarks such as AirfRANS [16] and BlendedNet++ [17] provide two-dimensional airfoil flow fields and three-dimensional blended-wing-body surface fields, respectively. These benchmarks provide complementary settings for assessing the role of explicit conditioning in geometry-aware aerodynamic surrogates.
Global parameters can be incorporated by concatenating a broadcast condition vector with pointwise features. Feature-wise Linear Modulation (FiLM) instead maps a condition vector to channel-wise scale and shift coefficients that modulate intermediate features [18, 19]. In aerodynamic surrogate modeling, BlendedNet [24] uses FiLM for pointwise surface-field prediction, while the BlendedNet++ benchmark includes a FiLMNet model without position-induced attention [17]. CoPiT combines PiT's geometry-based position-induced attention with multi-stage FiLM conditioning, allowing global parameters to modulate intermediate features without altering the distance-based attention weights.
3. Preliminaries
3.1. Operator learning
Consider a parametric PDE of the form
where
Here are spatial sets (not necessarily identical) that may represent volumetric domains or surfaces; and are Banach spaces of functions over and , respectively, and is a differential operator depending on the parameter function . Assuming suitable boundary conditions and well-posedness, the associated solution operator is
Operator learning aims to construct a parameterized surrogate such that for previously unseen inputs [7].
In applications, a and u are observed only through samples on finite meshes
Given training pairs , with and sampled on the corresponding input and output point sets and , respectively, the parameters can be learned by minimizing an empirical loss, for example,
where the norm is evaluated on the corresponding output point set (or on a subsample of it). Once trained, is designed to accept inputs sampled on different meshes and produce predictions at specified query locations in .
In the present work the parameter function is induced by a geometry and a global parameter vector collecting freestream and design quantities. We write . For varying geometries, the input and output domains, and hence the corresponding function spaces, may depend on ; the operator notation above is understood accordingly. The output fields considered later are
(AirfRANS),
(6)
(BlendedNet++),
(7)
and the learning task is to approximate by under the corresponding data protocol.
3.2. Position-induced attention
A standard building block of Transformer architectures is content-based self-attention [25]. Query, key and value projections of a feature matrix are combined through a softmax over pairwise feature affinities, so the weights depend on the current field values, must be recomputed for every input, and do not directly encode the geometry of the underlying mesh. For PDE surrogates, however, the relative positions of sampling points provide a useful inductive bias for feature aggregation.
Position-induced attention incorporates such geometric structure in an explicit and efficient way [13]. Let collect the values of a feature field on a mesh , and define the pairwise squared-distance matrix
With a nonnegative learnable kernel scale and a value projection matrix , the basic position-attention operator is
Each row of the output is therefore a distance-weighted average of value-transformed features: the kernel depends on mesh geometry rather than on the current feature content. Multi-head variants use a kernel scale on head , where is a nonnegative reparameterization of an unconstrained parameter , and the corresponding operator is written . When the query mesh and the key mesh differ, the rectangular matrix defines cross position-attention , with the rows of on . Self position-attention is the special case . A locality parameter may further restrict attention to a nearest-neighbor fraction of keys (quantile masking), while recovers a global kernel.
A central property of (9) is discretization consistency: under the sampling and boundedness assumptions of Theorem 2.1 in [13], its discrete outputs converge in probability to those of an integral operator with a normalized Gaussian-type kernel as the number of sampling points increases. This property makes position-attention an attractive geometric primitive for mesh-based aerodynamic surrogates.
In the PiT architecture [13], position-attention is organized in an encoder–processor–decoder form with a latent mesh of moderate size. Cross position-attention maps the input mesh to the latent mesh and, later, the latent representation to the output mesh, while a stack of self position-attention blocks refines features on the latent mesh. The next section builds CoPiT on this geometric organization.
4. CoPiT: conditional position-induced Transformer
4.1. Overview
CoPiT builds on the latent-mesh encoder–processor–decoder architecture of PiT, incorporating global conditions through FiLM at intermediate stages (Fig. 2). Given an input mesh with pointwise features, a target mesh and a condition vector c, the network (i) encodes the input onto a latent mesh, (ii) refines latent features with L processor blocks containing FiLM modulation, and (iii) decodes to the target mesh with a final FiLM stage before the readout. The same architectural skeleton is used for AirfRANS and BlendedNet++; dataset-specific encoder inputs, the components of c and auxiliary decoder channels are detailed in Section 5.1.
4.2. Multi-stage FiLM conditioning
Let denote the number of channels being modulated, and let be the feature at one mesh or latent point after instance normalization [26]. The normalization is computed channel-wise across the points of the feature matrix, as in (21), rather than on an isolated feature vector, and is the row at that point. A FiLM generator maps to one scale-shift pair and applies
Figure 3 illustrates the mechanism [18]. CoPiT uses two generators:
• Processor FiLM: outputs , with each vector in ;
Global conditions

Figure 2. Overview of CoPiT architecture. Surface features are encoded onto a latent mesh, then refined by L position-attention layers, and decoded at query points. Global conditions modulate processor and decoder features through FiLM.

Figure 3. Feature-wise Linear Modulation (FiLM) [18] in CoPiT. A global condition vector is mapped to channel-wise scale and shift , which modulate instance-normalized features. The width printed on the feature matrices is the number of channels being modulated, denoted in the text.
• Decoder FiLM: outputs , with each vector in .
The widths and are fixed in Section 4.3. The implemented processor generator is , split into the pairs above, and the decoder generator is . Each generator is a small MLP (two hidden layers of width 64 in our experiments) trained end-to-end. Thus, the condition modulates features throughout the processor and again in the decoder, rather than only at the input.
The affine transformation in (10) has the following basic properties; the approximation statement in (iii) follows from universal approximation for multilayer perceptrons [27].
Proposition 1 (Basic properties of FiLM). Let . Then:
(i) and recover the unmodulated feature;
(ii) suppresses channel ;
(iii) on any compact set of conditions, continuous maps can be approximated uniformly by a feed-forward generator of sufficient width [27].
4.3. Processor and decoder with FiLM
We now specify how FiLM enters the PiT processor and decoder. Denote the latent feature at one point after encoding by , where is the hidden width, and let be the matrix whose rows are these features on . In the reported implementation every value projection in (9) is the identity, and channel mixing is performed by the multilayer perceptron in (15). For block and head ,
and denotes the row of at the point under consideration. The processor attention stage concatenates that point's feature with these head outputs,
Equations (12)–(15) describe the update at a single latent point; instance normalization is computed over the full feature matrix. The concatenation gives exactly channels, so each processor block modulates channels. All reported models use , and therefore . Compared with the corresponding unconditioned processor block, (14) introduces the condition-dependent modulation. The decoder transfers features from to by cross position-attention and, when auxiliary channels such as the signed distance to the wall are present, merges them before FiLM. Let be the row, at the query point, of . The decoder does not append the query features:
With one head, the cross-attention output has channels and the auxiliary merge returns a -channel feature, so for every reported model. The auxiliary merge in (17) is omitted when no auxiliary channels are used; in the analysis below, this corresponds to taking as the identity. Linear layers use Kaiming initialization [28], and the MLPs use GELU activations. Residual connections in (15) stabilize deep processors.
4.4. Preservation of the positional kernel under FiLM
Under the sampling and boundedness assumptions in [13], discrete position-attention outputs converge in probability to those of a kernel integral operator as the number of sampled points increases. Because FiLM acts pointwise on features, it does not change the distance-based attention weights. To isolate its effect on this convergence, let denote a discrete position-attention operator on a discretization , let denote its limiting operator, and let denote the FiLM map (10) at a fixed condition . This is the discretization sequence of the cited result and is distinct from the fixed meshes and . We compare the two outputs at the same evaluation points, using the Euclidean norm over their feature values. If , then
Consequently, for a fixed c, bounded FiLM preserves convergence when applied to an already convergent attention output. This observation concerns the affine modulation of an attention output;
it does not establish discretization consistency for the complete network, which also contains instance normalization, nonlinear multilayer perceptrons, latent-mesh selection and auxiliary decoder features. Establishing such a result for the complete composition would require additional assumptions on these components.
4.5. Separation of geometry and condition, and stability in the condition
The preceding observation concerns a single modulated attention output. We now examine the dependence of the full network on , focusing on the FiLM-only configuration, in which enters only through the FiLM generators and the encoder receives geometric features only. This is the configuration of the reported AirfRANS full-data and BlendedNet++ models. For the analysis we use the matrices of Section 4.3: on , and collects the predictions at the points of . The matrices , and are formed likewise from , and in (12)–(19). Instance normalization in (13) and (18) acts on each channel over the points of the set: for ,
with a fixed ( in our implementation).
Proposition 2 (Separation of geometry and condition). Fix a geometry, the input, latent and output point sets, and the auxiliary channels a. In FiLM-only CoPiT, the encoder, processor (12) and decoder (16) attention weights, as well as the encoded latent features and, when present, the auxiliary embedding , do not depend on c. Consequently,
where the processor map and the decoder map depend on only through and , respectively.
Proof. Each attention matrix is determined by pairwise squared distances between fixed point sets, the learned kernel scales and the locality masks defined by distance quantiles. None of these depends on the feature values or c. The encoder uses only these weights and geometric input features, while any auxiliary embedding depends only on the fixed auxiliary channels. In (12)–(19), the condition appears only in the FiLM coefficients.
Remark 1. Proposition 2 has two consequences. First, FiLM does not alter the position-attention weights. When the hypotheses of [13, Theorem 2.1] hold for an attention layer at a fixed condition, (20) shows that bounded FiLM preserves the convergence of its output. Second, for a sweep over K conditions on a fixed geometry, the condition-independent quantities can be computed once, giving an idealized cost of rather than , where and denote reusable geometry-dependent and condition-dependent computation costs, respectively. When c is also concatenated with the encoder input, becomes condition-dependent, although the attention weights and any condition-independent auxiliary embeddings remain reusable.
Beyond this separation, we quantify how the prediction varies with . For a matrix with rows, we use the root-mean-square norm over points, . We assume that the conditions lie in a compact set and that all FiLM generators satisfy, for ,
These bounds hold for multilayer perceptrons with Lipschitz activations on a compact set. In (23), is the scale applied to the normalized features. On BlendedNet++ the generator emits and this scale is , which changes but not ; the parameterization is given in Section 5.1. Let denote a Lipschitz constant of GELU, and let , and be Lipschitz constants of (for all ), and , applied row by row. The attention maps in (12) and in (16) are linear; we denote their Lipschitz constants with respect to by and . For the attention weight matrices and , , valid bounds for the concatenated processor output and the cross-attention output in our implementation are
without the returned input, the term 1 in the bound for is dropped. No value-projection norm appears, because those maps are the identity (Section 4.3).
Proposition 3 (Lipschitz dependence on the condition). Under the assumptions above, for FiLM-only CoPiT with fixed point sets and auxiliary channels and for all ,
with
where , and .
The proof is given in Appendix A. The constant is not sharp; the factor from instance normalization makes it pessimistic. Its structure is nevertheless informative: the condition enters only through the FiLM generators, so every term of contains or , while the amplification of condition-induced perturbations is determined jointly by the backbone constants , , , the attention norms, , and the number of blocks. The Lipschitz constants of the generators can be bounded by products of weight norms and activation Lipschitz constants. If is also concatenated with the encoder input and the encoder is Lipschitz in , the same argument extends by propagating the additional initial perturbation through the processor and decoder.
5. Numerical experiments
We evaluate CoPiT on AirfRANS and BlendedNet++ and compare it with graph-based and transformer-based baselines. Quantities obtained on training data are treated only as optimization diagnostics; all generalization claims are based on held-out data.
5.1. Experimental setup
5.1.1. Datasets and metrics
AirfRANS [16] provides two-dimensional RANS simulations around NACA-family airfoils under freestream states , with unstructured meshes of order points. We consider full data (800/200 train/test), scarce data (200/200), Reynolds-number extrapolation and angle-of-attack extrapolation. The full-data model uses four geometric encoder channels (coordinates and unit normals), so enters only through the FiLM generators. The scarce-data, Reynolds-extrapolation and angle-of-attack models use six encoder channels: the same geometry with concatenated, while FiLM still reads . The network predicts on the CFD mesh. The decoder additionally uses the signed distance function (SDF) to the wall through a small auxiliary MLP, as in (17).
Held-out field errors are computed in the normalized space. The benchmark volume loss is the sum of the pointwise MSEs of , averaged first over the volume points of each test case and then over test cases. For CoPiT, the squared errors are pooled over all test points; scoring the full-data CoPiT checkpoint with the unmodified benchmark routine gives the same surface loss to four significant digits and a volume loss 1.2% higher, which does not change any comparison in Table 1. Because no-slip velocity and turbulent viscosity are prescribed at the wall in this benchmark, the reported surface loss is the corresponding wall-pressure MSE. Force coefficients are obtained by surface integration of pressure and wall shear using the same sampling, gradient and quadrature implementation for every model. We report Spearman correlations of drag and lift, denoted by and ; absolute and relative load errors are discussed separately.
BlendedNet++ [17] is a large-scale blended-wing-body (BWB) surface-flow benchmark. We adopt the official forward split with 8 992 / 1 000 / 2 498 train/validation/test cases and predict surface . Pointwise encoder inputs are six geometric channels (coordinates and unit normals); the 12-dimensional design/flight vector drives processor and decoder FiLM only. A hybrid variant that additionally broadcasts into the pointwise encoding is evaluated only as an ablation (Section 5.3).
Targets are z-score normalized using training-set statistics only. The test metric is the MSE of each normalized channel over all surface points of a case, averaged over cases, together with the mean over the three channels; the baselines are evaluated on the full surface with the same definition.
5.1.2. Implementation
On AirfRANS, the latent mesh has 7 000 points, four processor blocks, hidden width 256 and one attention head. Encoder and decoder locality are ; processor self-attention uses . All three stages employ the same quantile-masked position-induced attention as PiT. Training minimizes a surface-weighted mean-squared error with Adam [29], initial learning rate and cosine annealing [30] for 398 epochs. The reported AirfRANS scores use the last-epoch checkpoint: the training script writes a single model .pth at the end of the run.
On BlendedNet++, we use hidden width 256, one attention head, four processor blocks and encoder/decoder locality . Pairwise distances are Euclidean squared distances in ambient . The latent mesh retains 10% of the surface points by Z-order sampling. On this dataset, the generator of the reported model and of the hybrid ablation emits , and the scale applied after instance normalization is , that is, , so that a vanishing generator output recovers the identity. Because the output layer of the generator carries a bias, this is the same function class as (10) with a shifted initialization. AirfRANS applies (10) directly, with .
Training uses a random subset of 20 000 surface points per case at every step, and the subset serves as both encoder input and query set. At test time each surface of n points (several tens of thousands) is partitioned into random subsets of equal size, at most 20 000 points each, which are processed in the same way, so that every surface point is predicted. Training uses AdamW with learning rate , weight decay , a one-cycle schedule and gradient clipping at unit norm, for 100 epochs. For BlendedNet++, the checkpoint with the lowest validation loss is evaluated once on the test set. Unless stated otherwise, scores are single-run point estimates.
5.1.3. Baselines
AirfRANS baselines are MLP [31], GraphSAGE [32], PointNet [33], Graph U-Net [34] and Transolver [11]. On the full-data split we further evaluate matched PiT variants that change only how is injected: no global condition, input concatenation, processor-only FiLM, decoder-only FiLM, a width-matched concatenation model, and complete CoPiT. BlendedNet++ baselines are reimplemented using the same split, training-set normalization and surface-MSE definition: PointNet, GraphSAGE, Graph U-Net, GNOT [23], Transolver and FiLMNet (FiLM without position-induced attention). On BlendedNet++ we additionally compare concatenation-only and hybrid (broadcast globals plus FiLM) variants of the same PiT backbone.
5.2. AirfRANS results
Tables 1–4 report held-out test losses and force-rank correlations for the four AirfRANS splits. All surface and volume entries are evaluation losses rather than optimization losses. The graph-baseline entries are taken from the benchmark evaluation outputs; Transolver and CoPiT predictions are aggregated with the same channel definitions. We first examine the full-data split, followed by scarce-data and extrapolation settings, and then assess the role of conditioning.
5.2.1. Full-data performance
On the full-data split, CoPiT reduces the test surface and volume losses relative to Transolver by approximately 54% and 24%, respectively, and has the highest drag and lift rank correlations. Repeating the full-data training with two further random seeds confirms this comparison: over three seeds, CoPiT attains surface and volume losses of and , and (mean ± sample standard deviation), and each of the three CoPiT runs improves on the Transolver run of Table 1 in all four metrics.
Velocity, pressure and eddy viscosity on one full-data test case are shown in Figs. 4 and 5. The predicted fields recover the stagnation region, suction peak, pressure recovery and near-wake, while residuals remain concentrated near the wall. The example is used to visualize spatial error structure rather than to estimate dataset-level accuracy.
Since and are obtained by surface integration of pressure and wall shear, Fig. 6 compares these surface quantities for CoPiT and Transolver on the same test airfoil. Wall shear is computed from the predicted velocity field under a no-slip wall condition. On this sample, the surface-pressure relative errors are approximately 0.06 for CoPiT and 0.18 for Transolver. The case-wise comparison is descriptive and does not replace test-set aggregate statistics.
Predicted and reference force coefficients on the 200-case full-data test set are compared in Fig. 7 under the same integration protocol. CoPiT yields and , whereas Transolver reaches and : lift ranking is strong for both models, while drag ranking is substantially improved by CoPiT.
For the full-data CoPiT run, the mean relative errors of and are 0.4595 and 0.0467, respectively. Thus the high drag rank correlation is relevant to design screening, but does not imply accurate absolute drag prediction.
Table 1. AirfRANS full-data test results. The best point estimate in each column is shown in bold. The CoPiT row reports random seed 0; statistics over three seeds are given in the text.
| Model | Surface loss↓ | Volume loss↓ | ||
|---|---|---|---|---|
| MLP | 0.112950 | 0.045625 | -0.1169 | 0.9129 |
| GraphSAGE | 0.066220 | 0.040903 | -0.3033 | 0.9651 |
| PointNet | 0.092511 | 0.112178 | -0.0220 | 0.9376 |
| Graph U-Net | 0.038649 | 0.056590 | -0.1384 | 0.9667 |
| Transolver | 0.009120 | 0.037414 | 0.1444 | 0.9981 |
| CoPiT | 0.004228 | 0.028599 | 0.8388 | 0.9994 |



Figure 4. AirfRANS full-field maps on one full-data test case : CFD reference, CoPiT prediction and absolute error. Truth and prediction share a color scale per variable; the error uses a separate scale.
5.2.2. Scarce-data and extrapolation
Table 2. AirfRANS scarce-data test results (200 training cases).
| Model | Surface loss↓ | Volume loss↓ | ||
|---|---|---|---|---|
| MLP | 0.219169 | 0.120089 | -0.2423 | 0.9235 |
| GraphSAGE | 0.194539 | 0.137171 | -0.1390 | 0.9813 |
| PointNet | 0.182676 | 0.147593 | -0.0501 | 0.9493 |
| Graph U-Net | 0.147319 | 0.112956 | -0.0950 | 0.9760 |
| Transolver | 0.086225 | 0.180010 | 0.0673 | 0.9938 |
| CoPiT | 0.049273 | 0.237275 | 0.4231 | 0.9963 |
Under scarce data, CoPiT has the lowest surface loss and the highest force-rank correlations, whereas Graph U-Net has the lowest volume loss. The comparatively large CoPiT volume error is driven mainly by turbulent-viscosity prediction and prevents a claim of uniformly superior field accuracy.



Figure 5. Near-wall view of the same AirfRANS test case as Fig. 4.
Table 3. AirfRANS Reynolds-number extrapolation test results.
| Model | Surface loss↓ | Volume loss↓ | ||
|---|---|---|---|---|
| MLP | 2.089834 | 0.318465 | -0.1465 | 0.6423 |
| GraphSAGE | 0.179743 | 0.318270 | 0.0130 | 0.9271 |
| PointNet | 0.201310 | 0.332888 | 0.0062 | 0.8985 |
| Graph U-Net | 0.205886 | 0.309486 | 0.0280 | 0.9045 |
| Transolver | 0.044703 | 0.332677 | 0.0898 | 0.9477 |
| CoPiT | 0.045225 | 0.278162 | 0.1645 | 0.9741 |
For Reynolds-number extrapolation, CoPiT and Transolver have similar surface losses, with Transolver lower by approximately . CoPiT has the lowest volume loss and the highest rank correlations, although its mean relative drag error is large (approximately ), which limits the practical interpretation of .
Table 4. AirfRANS angle-of-attack extrapolation test results.
| Model | Surface loss↓ | Volume loss↓ | ||
|---|---|---|---|---|
| MLP | 0.876219 | 0.836325 | 0.0378 | 0.8608 |
| GraphSAGE | 0.763761 | 0.765209 | 0.0546 | 0.9078 |
| PointNet | 0.584604 | 0.870350 | 0.1223 | 0.9357 |
| Graph U-Net | 0.696672 | 0.843954 | -0.1955 | 0.9344 |
| Transolver | 0.237925 | 0.423247 | 0.0692 | 0.9957 |
| CoPiT | 0.261624 | 0.727504 | 0.5921 | 0.9579 |
Under angle-of-attack extrapolation, Transolver is more accurate on both field losses and lift

Transolver: surface pressure
Transolver: skin friction
Figure 6. Surface pressure and wall shear on one AirfRANS test case (airFoil2D_SST_31.812_...). Top: CoPiT; bottom: Transolver. Blue: CFD; orange: prediction. Wall shear is evaluated from the predicted velocity with a no-slip wall condition.
Table 5. Trainable parameter counts (AirfRANS full-data models). The six-channel CoPiT checkpoints used for the other splits have 1,494,538 parameters.
| MLP | GraphSAGE | PointNet | Graph U-Net | Transolver | CoPiT | |
|---|---|---|---|---|---|---|
| Params | 19,988 | 29,204 | 75,244 | 65,820 | 5,996,868 | 1,494,026 |
ranking, whereas CoPiT has the highest drag rank correlation. CoPiT's mean relative errors of and are approximately 108% and 35%, respectively, so the drag-rank result should be interpreted as an ordering metric rather than evidence of accurate extrapolative loads.
5.2.3. Conditioning ablation
Before comparing conditioning strategies, we report the model sizes on the full-data split. CoPiT uses about four times fewer trainable parameters than Transolver (Table 5).
Matched PiT variants are evaluated with the same full-data test protocol as in Table 1 (Table 6). Removing the freestream condition (geometry-only PiT) collapses both field accuracy and lift ranking. Supplying by input concatenation, with or without a width increase to match CoPiT's parameter count, recovers lift ranking but remains weaker than FiLM on surface loss, volume loss and . Decoder-only FiLM attains the lowest surface and volume losses in this family, whereas complete CoPiT (processor and decoder FiLM) attains the highest . The ablation is reported separately from Table 1.
Table 6. AirfRANS full-data test ablation (same evaluator as Table 1). Single-run point estimates; the lowest field loss and highest rank correlation in each column are in bold.
| Variant | Surface | Volume | ||
|---|---|---|---|---|
| Geometry-only PiT | 0.859223 | 1.013652 | 0.3449 | 0.7797 |
| Concatenation only | 0.009882 | 0.035483 | 0.6478 | 0.9995 |
| Widened concatenation | 0.008969 | 0.037486 | 0.7104 | 0.9993 |
| Processor-only FiLM | 0.007099 | 0.037301 | 0.6774 | 0.9991 |
| Decoder-only FiLM | 0.002370 | 0.026978 | 0.8273 | 0.9992 |
| Complete CoPiT | 0.004228 | 0.028599 | 0.8388 | 0.9994 |


(a) CoPiT


(b) Transolver
Figure 7. True versus predicted (left panels) and (right panels) on the AirfRANS full-data test set.
5.3. BlendedNet++ results
Table 7. BlendedNet++ forward surface regression under a common reimplementation protocol (test set, ). Single-run normalized MSE; the lowest point estimate in each column is shown in bold.
| Model | Overall↓ | |||
|---|---|---|---|---|
| CoPiT | 0.0518 | 0.0175 | 0.0978 | 0.0400 |
| Transolver | 0.0568 | 0.0188 | 0.1107 | 0.0411 |
| FiLMNet | 0.0691 | 0.0202 | 0.1356 | 0.0516 |
| PointNet | 0.0715 | 0.0236 | 0.1336 | 0.0572 |
| GraphSAGE | 0.0859 | 0.0346 | 0.1416 | 0.0817 |
| Graph U-Net | 0.1327 | 0.1320 | 0.1614 | 0.1046 |
| GNOT | 0.5234 | 0.5055 | 0.5088 | 0.5559 |
On the official forward test set, under a common reimplementation protocol, CoPiT attains the lowest overall normalized MSE (0.0518) and the lowest error on each of the three channels (Table 7). Transolver is the closest competitor overall (0.0568, about higher). Streamwise skin friction is the hardest channel for every model. All scores are expressed in the same per-channel z-score space used for training and therefore differ in scale from physical relative errors reported elsewhere. The ordering is a single-run point estimate. The GNOT reimplementation completed training (early stopping at validation MSE 0.547) but yielded substantially higher errors than the other models and is therefore not considered a competitive baseline.
Surface on one test case (test_case_0674) is shown in Fig. 8. Both CoPiT and Transolver recover the large-scale topology; CoPiT exhibits weaker error peaks near the wing-body junction on this sample (relative error of order 0.06 versus 0.12).

Figure 8. BlendedNet++ surface on test_case_0674: CFD reference, CoPiT and Transolver predictions (shared color scale), and absolute errors (shared color scale).
Streamwise skin friction on the same case is shown in Fig. 9. The relative errors are of order 0.11 for CoPiT and 0.35 for Transolver; the largest residuals lie near the wing–body junction.

Figure 9. BlendedNet++ streamwise skin friction on the same test case as Fig. 8: CFD, CoPiT and Transolver (shared color scale), and absolute errors (shared color scale).
Spanwise skin friction is shown in Fig. 10. The relative errors are of order 0.16 for CoPiT and 0.46 for Transolver. These three figures are qualitative and are not used as evidence of population-level superiority.

Figure 10. BlendedNet++ spanwise skin friction on the same test case as Fig. 8: CFD, CoPiT and Transolver (shared color scale), and absolute errors (shared color scale).
The conditioning mechanism is isolated on the same PiT backbone, Euclidean metric, official split and 100-epoch budget in Table 8. Concatenation-only (12-dimensional globals broadcast into 18-dimensional point features, no FiLM) yields overall test MSE 0.0741. Adding FiLM to that encoding (hybrid) reduces the error to 0.0570. Removing the broadcast and retaining only dual-stage FiLM—the reported CoPiT configuration—gives 0.0530. Thus, on this split, FiLM is beneficial relative to concatenation, and broadcasting globals into the encoder is not required once FiLM is present. These three runs are single-seed point estimates. Table 8 reports, for all three variants, the test metric recorded at the end of training, which uses one random subset of 20 000 surface points per case; for the reported model this metric is 0.0530, compared with 0.0518 on the full surface in Table 7.
Table 8. BlendedNet++ conditioning ablation on the official forward test set (N = 2,498). Single-run normalized MSE; lowest point estimate in each column in bold. All variants use the same PiT backbone and Euclidean positional metric. Metric on one random 20,000-point subset per case, as recorded at the end of training.
| Variant | Overall↓ | Params | |||
|---|---|---|---|---|---|
| Concatenation only | 0.0741 | 0.0263 | 0.1382 | 0.0577 | 1.19M |
| Hybrid (broadcast+FiLM) | 0.0570 | 0.0203 | 0.1066 | 0.0442 | 1.50M |
| FiLM-only (CoPiT) | 0.0530 | 0.0181 | 0.0991 | 0.0417 | 1.50M |
5.4. Computational efficiency
If denotes the latent-mesh size, the number of processor blocks, the number of heads and the hidden width, dense processor self-attention scales as in arithmetic operations
Table 9. Single-run training wall-clock time on one A100. AirfRANS Full uses 398 epochs; BlendedNet++ uses 100 epochs on the official 8,992/1,000/2,498 split.
| Dataset | Model | Wall-clock |
|---|---|---|
| AirfRANS Full | CoPiT | 11.6 h |
| AirfRANS Full | Transolver | 19.3 h |
| BlendedNet++ | CoPiT (FiLM-only) | 25.8 h |
| BlendedNet++ | Transolver | 21.3 h |
| BlendedNet++ | Concatenation only | 24.1 h |
| BlendedNet++ | Hybrid | 25.8 h |
and requires quadratic attention storage unless evaluated in chunks. Encoder and decoder costs depend on the number of retained query-key pairs and scale linearly with the full-mesh size when the number of attended keys per query is bounded. Chunking can reduce peak memory usage without necessarily reducing arithmetic complexity. Wall-clock training times on one NVIDIA A100 (80 GB) for the main single-run checkpoints are listed in Table 9. CoPiT is smaller than Transolver on AirfRANS (Table 5) and trains in less wall-clock time on that dataset; on BlendedNet++ the two training times are comparable.
For a single operating condition, predicting a full AirfRANS mesh (about points, chunks of 32 000) takes 0.075 s with CoPiT and 0.098 s with Transolver on the same GPU (peak memory 0.9 and 0.24 GB). During inference, CoPiT evaluates the encoder and processor once per field rather than once per query chunk, and evaluates the localized cross-attention on the nearest latent points with the same quantile threshold as in training, aggregated by a sparse matrix product. In single precision, this reproduces the training-time forward pass to a relative difference of .
For multi-condition evaluation, the separation of geometry and condition established in Remark 1 allows condition-independent computations to be reused. Computing these quantities once per airfoil (0.29 s) and then evaluating 20 angles of attack reproduces the standard forward pass exactly and takes 0.013 s per condition, i.e. 0.027 s per condition including the geometric part.
5.5. Discussion
Ranking versus absolute error. The drag coefficient is a small residual between pressure and friction contributions, so relative error is sensitive to modest absolute deviations and to cases with small reference drag. Spearman correlation measures the ordering of cases and can be informative for design screening, but it does not measure calibration or absolute load accuracy. The full-data run combines high with a mean relative drag error of approximately ; both aspects must therefore be reported.
Role of FiLM. On AirfRANS (Table 6), a global condition is necessary: geometry-only PiT is not competitive. FiLM variants improve surface loss and relative to concatenation; increasing hidden width without FiLM does not close that gap. Decoder-only FiLM can outperform complete CoPiT on field MSE, so the two FiLM stages are not uniformly additive, while complete CoPiT attains the highest in the reported family. On BlendedNet++ (Table 8), FiLM-only CoPiT outperforms both concatenation and hybrid broadcast-plus-FiLM on the same backbone and Euclidean metric.
6. Conclusion
We have presented CoPiT, a conditional neural operator for aerodynamic field prediction on irregular meshes. Building on a position-induced Transformer backbone, CoPiT incorporates multi-stage FiLM conditioning to modulate processor and decoder features according to freestream and design parameters. The pointwise modulation leaves position-attention weights unchanged and preserves convergence of an already convergent attention output under bounded modulation.
However, establishing discretization consistency for the complete network would require additional analysis.
On the AirfRANS full-data test set, CoPiT achieves the lowest surface and volume losses among the compared published baselines and a higher drag rank correlation than Transolver. Matched ablations show that geometry-only PiT performs substantially worse than conditioned variants, while complete CoPiT improves field losses and drag ranking over concatenation-only alternatives. However, decoder-only FiLM attains lower field losses than complete CoPiT, indicating that the benefits of the two FiLM stages are not uniformly additive. Performance gains also vary across more challenging settings: Graph U-Net achieves the lowest scarce-data volume loss, while Transolver is more accurate on angle-of-attack extrapolation fields and lift ranking. Moreover, the relatively large drag errors show that high rank correlation does not necessarily imply accurate load prediction.
On BlendedNet++, CoPiT achieves the lowest overall normalized test-MSE point estimate among the reimplemented baselines. A matched ablation further favors FiLM-only conditioning over both input concatenation and hybrid broadcast-plus-FiLM, supporting the effectiveness of explicit feature modulation without broadcasting global parameters into the encoder.
Several limitations remain. Proximity-based attention may still couple points that are close in ambient space but separated on the surface. On AirfRANS, prediction errors remain concentrated near the wall. Training also relies entirely on supervised data. Future work includes topology-aware metrics, residual-based regularizers, adaptive latent meshes and tighter coupling of the surrogate to aerodynamic optimization.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Acknowledgements
Z. Qiao's work is partially supported by the NSFC/RGC Joint Research Scheme (grant N_PolyU5145/24).
Further support for Z. Qiao's work comes from The Hong Kong Polytechnic University projects H-ZGX8 and H-ZGZ1.
This work was partially supported by the National Natural Science Foundation of China (No. 92370108).
Data availability
The AirfRANS dataset is publicly available at https://github.com/Extrality/AirfRANS. The BlendedNet++ dataset [17] is publicly available from the Harvard Dataverse, https://doi.org/10.7910/DVN/ICIDK4.
Code availability
The source code and the evaluation records used for the tables will be released upon acceptance. The AirfRANS and BlendedNet++ datasets can be downloaded from their public releases and are not included in the code archive.
CRediT authorship contribution statement
Junfeng Chen: Methodology, Software, Supervision, Writing – review & editing;
Yongchen Fan: Conceptualization, Methodology, Software, Investigation, Validation, Visualization, Writing – original draft, Writing – review & editing;
Zhonghua Qiao: Conceptualization, Formal analysis, Supervision, Funding acquisition, Writing – review & editing;
Kailiang Wu: Methodology, Formal analysis, Funding acquisition, Supervision, Writing – review & editing.
Appendix A. Proof of Proposition 3
Throughout, the point sets are fixed, , and primed quantities are computed with . A map applied row by row with Lipschitz constant in the Euclidean norm of a row is -Lipschitz with respect to , because is the mean of the squared row norms.
Lemma 1. For all m, q and all , the map in (21) satisfies
Proof. Instance normalization acts on each column separately, so it suffices to consider the map on , where is the orthogonal projection onto vectors with zero mean and . Its Jacobian is
The symmetric matrix in parentheses has the eigenvalues 1 and , and ; hence . By the mean-value inequality on the convex set , is -Lipschitz in the Euclidean norm. Summing the squared column differences and dividing by gives the first claim. For the second, with ,
so that .
Lemma 2. Let for , with generators satisfying (23). If , then
Proof. We have
Multiplication from the right by a diagonal matrix increases at most by the largest absolute diagonal entry, and . The claim follows from (23).
Proof of Proposition 3. Let . By Proposition 2, . In block , the attention output satisfies , and Lemma 1 with together with Lemma 2 gives
By (15),
and induction from yields
In the decoder, the auxiliary embedding does not depend on , so the inputs of in (17) differ only in the attention output, and after (17). Applying Lemma 1 with , Lemma 2 and the Lipschitz constant of to (18)–(19) yields
Inserting the bound on proves (24)–(25).
References
[1] J. D. Anderson, Fundamentals of Aerodynamics, 6th Edition, McGraw-Hill Education, 2017.
[2] R. Vinuesa, S. L. Brunton, Enhancing computational fluid dynamics with machine learning, Nature Computational Science 2 (6) (2022) 358–366.
[3] S. L. Brunton, B. R. Noack, P. Koumoutsakos, Machine learning for fluid mechanics, Annual Review of Fluid Mechanics 52 (2020) 477–508.
[4] G. E. Karniadakis, I. G. Kevrekidis, L. Lu, P. Perdikaris, S. Wang, L. Yang, Physics-informed machine learning, Nature Reviews Physics 3 (6) (2021) 422–440.
[5] Z. Li, N. Kovachki, K. Azizzadenesheli, B. Liu, K. Bhattacharya, A. Stuart, A. Anandkumar, Fourier neural operator for parametric partial differential equations, in: International Conference on Learning Representations, 2021.
[6] L. Lu, P. Jin, G. Pang, Z. Zhang, G. E. Karniadakis, Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators, Nature Machine Intelligence 3 (3) (2021) 218–229.
[7] N. B. Kovachki, Z. Li, B. Liu, K. Azizzadenesheli, K. Bhattacharya, A. Stuart, A. Anandkumar, Neural operator: Learning maps between function spaces with applications to PDEs, Journal of Machine Learning Research 24 (89) (2023) 1–97.
[8] Z. Li, D. Z. Huang, B. Liu, A. Anandkumar, Fourier neural operator with learned deformations for PDEs on general geometries, Journal of Machine Learning Research 24 (2023) 1–26.
[9] Z. Li, N. B. Kovachki, C. Choy, B. Li, J. Kossaifi, S. P. Otta, M. A. Nabian, M. Stadler, C. Hundt, K. Azizzadenesheli, A. Anandkumar, Geometry-informed neural operator for large-scale 3D PDEs, in: Advances in Neural Information Processing Systems, Vol. 36, 2023.
[10] T. Pfaff, M. Fortunato, A. Sanchez-Gonzalez, P. Battaglia, Learning mesh-based simulation with graph networks, in: International Conference on Learning Representations, 2021.
[11] H. Wu, H. Luo, H. Wang, J. Wang, M. Long, Transolver: A fast transformer solver for PDEs on general geometries, in: Proceedings of the 41st International Conference on Machine Learning, 2024.
[12] H. Luo, H. Wu, H. Zhou, L. Xing, Y. Di, J. Wang, M. Long, Transolver++: An accurate neural solver for PDEs on million-scale geometries, in: Proceedings of the 42nd International Conference on Machine Learning, 2025.
[13] J. Chen, K. Wu, Positional knowledge is all you need: Position-induced Transformer (PiT) for operator learning, in: Proceedings of the 41st International Conference on Machine Learning, Vol. 235, 2024, pp. 7526–7552.
[14] S. Bhatnagar, Y. Afshar, S. Pan, K. Duraisamy, S. Kaushik, Prediction of aerodynamic flow fields using convolutional neural networks, Computational Mechanics 64 (2) (2019) 525–545.
[15] N. Thuerey, K. Weißenow, L. Prantl, X. Hu, Deep learning methods for Reynolds-averaged Navier–Stokes simulations of airfoil flows, AIAA Journal 58 (1) (2020) 25–36.
[16] F. Bonnet, J. A. Mazari, P. Cinnella, P. Gallinari, AirfRANS: High fidelity computational fluid dynamics dataset for approximating Reynolds-averaged Navier–Stokes solutions, in: Advances in Neural Information Processing Systems, Vol. 35, 2022, pp. 22820–22833.
[17] N. Sung, S. Spreizer, M. Elrefaie, M. C. Jones, F. Ahmed, BlendedNet++: A dataset and benchmark for field-resolved aerodynamics and inverse design of blended wing body aircraft, arXiv preprint arXiv:2512.03280 (2025).
[18] E. Perez, F. Strub, H. de Vries, V. Dumoulin, A. Courville, FiLM: Visual reasoning with a general conditioning layer, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 32, 2018, pp. 3942–3951.
[19] V. Dumoulin, J. Shlens, M. Kudlur, Feature-wise transformations, Distill 3 (7) (2018) e11.
[20] J. Chen, E. Hachem, J. Viquerat, Graph neural networks for laminar flow prediction around random two-dimensional shapes, Physics of Fluids 33 (12) (2021) 123607.
[21] S. Cao, Choose a transformer: Fourier or Galerkin, in: Advances in Neural Information Processing Systems, Vol. 34, Curran Associates Inc., 2021, pp. 24924–24940.
[22] Z. Li, K. Meidani, A. B. Farimani, Transformer for partial differential equations' operator learning, Transactions on Machine Learning Research (2023).
[23] Z. Hao, Z. Wang, H. Su, C. Ying, Y. Dong, S. Liu, Z. Cheng, J. Song, J. Zhu, GNOT: A general neural operator transformer for operator learning, in: Proceedings of the 40th International Conference on Machine Learning, 2023, pp. 12556–12569.
[24] N. Sung, S. Spreizer, M. Elrefaie, K. Samuel, M. C. Jones, F. Ahmed, BlendedNet: A blended wing body aircraft dataset and surrogate model for aerodynamic predictions, in: International Design Engineering Technical Conferences and Computers and Information in Engineering Conference, Vol. 89237, American Society of Mechanical Engineers, 2025, p. V03BT03A049.
[25] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, I. Polosukhin, Attention is all you need, in: Advances in Neural Information Processing Systems, Vol. 30, 2017.
[26] D. Ulyanov, A. Vedaldi, V. Lempitsky, Instance normalization: The missing ingredient for fast stylization, arXiv preprint arXiv:1607.08022 (2016).
[27] K. Hornik, M. Stinchcombe, H. White, Multilayer feedforward networks are universal approximators, Neural Networks 2 (5) (1989) 359–366.
[28] K. He, X. Zhang, S. Ren, J. Sun, Delving deep into rectifiers: Surpassing human-level performance on ImageNet classification, in: Proceedings of the IEEE International Conference on Computer Vision, 2015, pp. 1026–1034.
[29] D. P. Kingma, J. Ba, Adam: A method for stochastic optimization, in: International Conference on Learning Representations, 2015.
[30] I. Loshchilov, F. Hutter, SGDR: Stochastic gradient descent with warm restarts, in: International Conference on Learning Representations, 2017.
[31] I. Goodfellow, Y. Bengio, A. Courville, Deep Learning, MIT Press, 2016.
[32] W. L. Hamilton, R. Ying, J. Leskovec, Inductive representation learning on large graphs, in: Advances in Neural Information Processing Systems, Vol. 30, 2017.
[33] C. R. Qi, H. Su, K. Mo, L. J. Guibas, PointNet: Deep learning on point sets for 3D classification and segmentation, in: IEEE Conference on Computer Vision and Pattern Recognition, 2017, pp. 652–660.
[34] H. Gao, S. Ji, Graph U-Nets, in: Proceedings of the 36th International Conference on Machine Learning, 2019, pp. 2083–2092.