arXiv:2610.31465cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31465

RheOPT: Few-Shot Non-Newtonian Flow Prediction via Newtonian Pretraining of RheOFormer

Maedeh Saberi, Amir Barati Farimani, Safa Jamali

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Maedeh Saberi, 1^{1} Amir Barati Farimani, 2^{2} and Safa Jamali 1,∗^{1,*}

1^{1}Department of Mechanical and Industrial Engineering, Northeastern University, Boston, Massachusetts 02115, USA

2^{2}Department of Mechanical Engineering, Carnegie Mellon University, Pittsburgh, Pennsylvania 15213, USA

Despite the advances in numerical simulations, non-Newtonian flow simulations have remained computationally expensive because the velocity and stress fields must be advanced together through rate- and history-dependent constitutive dynamics. Neural-operator surrogates can reduce inference cost after training, but their training data often require the same expensive simulations they are intended to replace. This makes data efficient learning especially important in regimes where only a small number of non-Newtonian simulations can be afforded. Here, we introduce the Rheological Operator Pretrained Transformer (RheOPT), a neural-operator framework that pretrains a transformer-based operator on inexpensive Newtonian simulations and then fine-tunes it on a small number of non-Newtonian samples. Rather than transferring the Newtonian constitutive response itself, RheOPT reuses geometry-conditioned transport structure that remains useful after the stress model changes. We evaluate RheOPT in two geometry-matched settings: a 4:1 contraction channel for Giesekus, Oldroyd-B, and Bingham fluids, and the oscillatory wake behind a triangular obstacle for Oldroyd-B flow. In the contraction geometry, Newtonian pretraining substantially improves few-shot prediction, and a model fine-tuned on four target samples can match or exceed a from-scratch model trained on four times as many. This benefit is reliable under reversible instance normalization (RevIN) but dataset dependent under Global normalization, a difference we trace to the dynamic range of each fluid's velocity and stress fields. In the oscillatory wake, relative L2L_{2} error provides a useful first comparison but cannot by itself verify that vortex shedding is recovered. We therefore complement it with phase-insensitive diagnostics based on shedding frequency and wake fluctuation amplitude. These diagnostics show that pretraining recovers the shedding frequencies, spatial structures, and the wake fluctuation amplitude that are suppressed by the model trained from scratch in the few-shot regime. Overall, RheOPT establishes Newtonian simulation as a physically grounded pretraining source for data efficient non-Newtonian operator learning.

I. INTRODUCTION

Predicting non-Newtonian flow is essential in polymer manufacturing [1], biological systems [2], soft materials [3], and additive manufacturing [4, 5], but it remains among the most computationally demanding problems in continuum mechanics because the stress field is itself a dynamic unknown [6]. Unlike Newtonian fluids, whose stress response is fixed by a viscosity, complex fluids couple the momentum balance to a rate- and history-dependent constitutive model. The internal stress must therefore be evolved together with the velocity field. Resolving this coupling with finite-element or finite-volume solvers is expensive, and the cost must be paid again whenever the geometry, boundary condition, or constitutive parameter changes, since each scenario requires a full re-computation [7, 8].

This cost has motivated the development of machine-learning surrogates, and neural operators in particular [9–12], which learn solution maps between function spaces and can therefore predict flow fields for new conditions at inference cost rather than solver cost. Our prior work, RheOFormer [13], established that a transformer-based neural operator can reproduce spatio-temporal stress and velocity fields in viscoelastic and viscoplastic flows with complex geometries. Reaching this accuracy, however, comes with a large data requirement, as neural operators are data-hungry and typically require many training simulations spanning the range of conditions the model must later predict.

This creates a practical bottleneck. If many expensive non-Newtonian simulations are needed before the surrogate can be trained, the main computational burden is shifted from inference to data generation rather than removed. A learned model is therefore most valuable in the regime where it is also hardest to train: the data-scarce setting in which only a handful of non-Newtonian simulations can be afforded.

Newtonian simulations offer a physically motivated way to address this limitation. They are typically easier and more robust to generate than non-Newtonian simulations since they avoid the additional constitutive evolution and numerical stiffness associated with complex-fluid stresses. Meanwhile, they share important structure with non-Newtonian flows as the geometry, boundary conditions, and momentum balance organize the velocity gradients and transport pathways in both cases. These structures provide the kinematic scaffold on which viscoelastic or viscoplastic stresses evolve. This motivates the central question of this work: can a neural operator pretrained on Newtonian simulations be fine-tuned, using only a few non-Newtonian samples, into an accurate surrogate for complex-fluid flow?

This transfer is not guaranteed. Pretraining and fine-tuning are separated by a change in the constitutive law itself. That change is the defining difference between Newtonian and non-Newtonian flow, and it is not obvious that a representation learned under a Newtonian stress response survives the transition and remains useful for viscoelastic or viscoplastic prediction. Our hypothesis is that Newtonian pretraining transfers not the Newtonian constitutive response itself, but representations of momentum transport, velocity gradients, and boundary-driven flow organization that remain relevant after the stress model changes. Prior studies for partial differential equation (PDE) surrogates have transferred representations across coefficients, fidelities, and Newtonian equation families [14–17], while data-driven models of non-Newtonian flow have generally been trained on data from the target constitutive model [18–20]. To the best of our knowledge, Newtonian to non-Newtonian transfer across a constitutive law boundary has not been systematically examined, and it is an open question that RheOPT is designed to answer.

Different factors may determine when this transfer can be relied upon. One thing that should be considered is that non-Newtonian datasets can span wide ranges of velocity and stress magnitudes across flow regimes. The normalization used before training can therefore affect whether the pretrained representation remains useful during fine-tuning or is obscured by scale mismatch between the Newtonian source data and the non-Newtonian target data [21]. Second, many complex-fluid flows are unsteady, so pointwise error alone may not determine whether the relevant dynamics have been recovered. In oscillatory regimes such as vortex shedding, a prediction with the correct shedding structure can be penalized by a phase shift, while a nearly steady prediction can appear deceptively accurate if it remains close to the time-averaged field. Such cases require diagnostics that test the temporal content of the flow, not only the total field error [22, 23]. These issues are not separate from transfer. They determine whether transferred structure is both visible in the trained model and physically meaningful in the predicted flow.

We introduce RheOPT, a Newtonian-pretraining framework for few-shot non-Newtonian neural-operator prediction. We evaluate the framework in two canonical geometries: a 4:1 contraction channel and a flow past a triangular obstacle. The 4:1 contraction channel provides a controlled test of physical constitutive transfer across Giesekus, Oldroyd-B, and Bingham fluids, while the triangular obstacle wake tests whether the pretrained representations remain useful for recovering complex vortex-shedding dynamics.

The main contribution of this work is a controlled test of Newtonian to non-Newtonian transfer for neural-operator prediction. In the 4:1 contraction geometry, we show that geometry-matched Newtonian pretraining improves few-shot prediction across Giesekus, Oldroyd-B, and Bingham fluids, especially in the strict two snapshot input setting. We then show that the reliability of this transfer depends on field normalization: reversible instance normalization (RevIN) [21] gives consistent gains across datasets with wide field-magnitude variation, whereas Global normalization is more dataset dependent. Finally, we extend the analysis from quasi-steady contraction flow to the oscillatory wake flow past a triangular obstacle and use phase-insensitive diagnostics to show that pretraining helps recover vortex-shedding dynamics that are suppressed in the from-scratch model.