arXiv:2610.22157cs.LGOct 2026

Manuscript Offprint

arXiv:2610.22157

The importance of tensor handling and implementation of physics-informed DeepONets

Nahum Banks, Gustavo A. M. de Almeida, Sergio Maldonado

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

Nahum Banks

Faculty of Engineering and Physical Sciences

University of Southampton

Southampton, UK

nab1g24@soton.ac.uk

Gustavo A.M. de Almeida

Faculty of Engineering and Physical Sciences

University of Southampton

Southampton, UK

Sergio Maldonado

Faculty of Engineering and Physical Sciences

University of Southampton

Southampton, UK

s.maldonado@soton.ac.uk

October 16, 2026

Abstract

Physics-informed neural networks (PINNs) reduce or eliminate the need for large labelled datasets by enforcing governing equations during training. Physics-informed Deep Operator Networks (PI-DeepONets) extend this approach to learning solution operators, enabling rapid prediction across families of problems. Despite these advantages, we show that their application to higher-dimensional problems remains limited by the computational cost of training. To address this issue, we propose a modified PI-DeepONet architecture that reduces this cost by removing redundancy in how the Branch network processes input functions across collocation points. The proposed formulation is mathematically equivalent to the original architecture but reduces input tensor sizes and the number of Branch network evaluations. We analyse the computational complexity of both architectures and derive theoretical scaling laws for training time with respect to the number of collocation points and input functions. The proposed architecture is evaluated on 1D, 2D, and 3D linear advection problems. In all cases, it achieves comparable predictive accuracy to the original PI-DeepONet while consistently reducing training time. In 2D experiments, a maximum speed-up of 3.75×3.75\times is observed, with empirical training-time scaling agreeing with the predicted linear dependence on collocation points and input functions. Furthermore, training a 3D model on an NVIDIA A100 GPU is only feasible using the proposed architecture, as the original formulation exceeds memory limits. These results demonstrate that careful consideration of how PI-DeepONets are implemented can yield substantial gains, enhancing the practical performance of PI-DeepONets and enabling their application to otherwise intractable physics-informed learning problems.

Keywords Scientific machine learning, Physics-informed, Neural operator, Computational modelling

1 Introduction

Scientific Machine Learning (SciML) aims to make use of the vast amounts of prior knowledge that is often available about physical systems when training machine learning models [1, 2]. The seminal work by [3] introduced Physics-Informed Neural Networks (PINNs), which leverage automatic differentiation to compute derivatives appearing in the governing equations. PINNs encode the underlying Partial Differential

Equations (PDEs) governing a physical system, alongside the boundary and initial conditions directly into the loss function, reducing or even eliminating the requirements for labelled training data. Embedding physical constraints in the loss function greatly reduces the acceptable solution space without the need for labelled data [4]. In recent years, there has been an abundance of work applying PINNs, ranging from problems in fluid mechanics [5, 6, 7, 8, 9, 10, 11], molecular imaging [12], solid mechanics [13, 14, 15], and learning governing equations from data [16, 17, 15, 18], to cite only a few.

Despite their success, a critical limitation for the real-world application of PINNs for forward modelling is that they typically require retraining even for small changes to the domain, initial conditions, or — perhaps most importantly — boundary conditions. This stems from the fact that a conventional PINN takes only the independent variables of the PDE as input into the neural network, while the initial and boundary conditions are incorporated indirectly as soft constraints in the loss function. Consequently, the network is trained to output a solution corresponding to a fixed set of conditions, and does not naturally generalise to different initial or boundary conditions [19, 11]. As a result, the fast inference times of trained PINNs cannot be easily leveraged across different problem setups, limiting their practical utility in dynamic or rapidly changing scenarios [10].

A possible solution for this limitation is to use physics informed neural operators. Neural operators aim to learn mappings between infinite-dimensional function spaces [20]; for example, a mapping from boundary conditions to the PDE's solution across the whole spatiotemporal domain. One notable neural operator framework is the Deep Operator Network (DeepONet) [21], and its physics-informed variant, the PI-DeepONet [22].

DeepONet is grounded in the universal operator approximation theorem, which states that a neural network with a single hidden layer can approximate any non-linear continuous operator G to arbitrary accuracy [23]. The learned operator approximation G^\hat{G} maps an input function u to an output function G^(u)\hat{G}(u), which can then be evaluated at collocation/query points y to produce G^(u)(y)\hat{G}(u)(y). [21] extended this framework to use deep neural networks in their unstacked DeepONet. In a DeepONet a single Branch network encodes the input function at m sensor points ξj∈[1,m]\xi_{j\in[1,m]}, while a single Trunk network encodes the collocation/query point y=(x,t)y = (\mathbf{x}, t). For example, the input layer of the Branch network could depict a time-dependent boundary condition, whereas the Trunk network functions similarly to a conventional PINN, taking points within the spatiotemporal domain as input. The outputs of these subnetworks are then combined via a dot product to approximate the output function evaluated at the query point. This can be represented by the equation:

G^(u)(y)≈∑k=1sbk(u(ξ1),u(ξ2),...,u(ξm))τk(y),(1)\hat{G}(u)(y)\approx\sum_{k=1}^{s}b_{k}(u(\xi_{1}),u(\xi_{2}),...,u(\xi_{m}))\tau_{k}(y), \tag{1}

where, bkb_{k} are the Branch network outputs, τk\tau_{k} are the Trunk network outputs, both of which are of length s. The subnetworks require no specific architecture, allowing flexible integration of different networks like feedforward, convolutional, etc.

Owing to the simple, feedforward architecture of the subnetworks in the DeepONet, it is straightforward to integrate physics-informed techniques into DeepONet designs. A PI-DeepONet is trained using a loss function formulated in the same way as in PINNs [22]. A schematic of a PI-DeepONet can be seen in Figure 1. Derivative terms in the physics loss are calculated by automatic differentiation along the Trunk network, which encodes the collocation points of the output function space. The PI-DeepONet is especially attractive in scenarios where simulations are expensive, high-fidelity data are limited, and adherence to physical laws is critical for model reliability [24]. Such scenarios include real-time forecasting, uncertainty quantification, and digital twins. This is because the PI-DeepONet can be trained without labelled data, and can then efficiently generate predictions across a variety of problem configurations.

Overall, PI-DeepONet is one of the first physics-informed neural operator frameworks and has received substantial attention since its introduction [22], introducing a general approach that allows purely physics-informed operator learning, but broader adoption has been limited compared to data-driven neural operators. This is partly due to the extra computational burden of using automatic differentiation to calculate derivatives in the physics loss terms, which becomes more apparent for high-dimensional systems and when higher order derivatives are present. The high computational cost stems from the fact the number of Trunk evaluations scales exponentially with the number of dimensions (i.e. NdN^{d}), where N is the resolution of each coordinate axis and d is the number of spatiotemporal dimensions [25]. As a result, most research on PI-DeepONet to date has focused on low-dimensional problems, using hybrid approaches where physics constraints are combined with labelled data [26, 27, 28].

DeepONet

Figure

Figure 1: Schematic diagram of a physics-informed Deep Operator Network (PI-DeepONet). u is the input function discretised at m sensor points, and y is the query location for the output function of dimensionality d. Derivatives of the output with respect to the input coordinates are calculated via automatic differentiation; these operations are denoted by ∂x(o)\partial_x^{(o)} and ∂t(o)\partial_t^{(o)}, where o is the order of derivative. LPDE\mathcal{L}_{\text{PDE}}, LBC\mathcal{L}_{\text{BC}}, LIC\mathcal{L}_{\text{IC}}, and Ldata\mathcal{L}_{\text{data}} denote the PDE, boundary condition, initial condition, and labelled data loss terms, respectively.

Recent works have tried to overcome this hurdle by incorporating a separation-of-variables approach to help PINNs and PI-DeepONets scale to higher-dimensional problems [29, 25]. In the Separable PI-DeepONet, separate Trunk networks are employed to encode each coordinate axis (i.e. independent variable of the PDE). This PI-DeepONet structure reduces the number of Trunk network evaluations from NdN^{d} to Nd, making it favourable for high-dimensional problems. However, this method achieves the best performance when the underlying physical system is compatible with a separation-of-variables approach, somewhat limiting the general applicability of the PI-DeepONet framework — one of its most compelling advantages. To the best of the authors' knowledge, the work by [25] is the only so far that has aimed to reduce the computational expense of training PI-DeepONets.

This work investigates an alternative Accelerated Tensor Handling (ATenH) PI-DeepONet architecture which aims to increase its computational efficiency. This architecture takes inspiration from those suggested in [30], and applies it in the physics-informed setting.

The main objectives of this paper are summarised as follows:

  1. To introduce an alternative PI-DeepONet architecture, hereafter referred to as ATenH, that reduces the computational cost of training and inference.

  2. To derive the theoretical computational speed-ups achieved by ATenH relative to the original PI-DeepONet architecture (Vanilla).

  3. To evaluate the performance of ATenH through a set of increasingly challenging numerical experiments.

  4. To demonstrate that extending PI-DeepONets to higher-dimensional problems presents significant computational challenges, and that architectural improvements such as ATenH are essential for making some problems computationally tractable.

In doing so, we demonstrate that these architectural modifications enable PI-DeepONets to be applied to higher-dimensional PDE systems at greater spatial and temporal resolutions than was previously possible. All numerical results for the Vanilla and ATenH architectures are obtained using PyTorch, demonstrating that these efficiency gains can be realised within standard, widely used, deep learning frameworks.

The remainder of this paper is structured as follows. Section 2.1 outlines the PI-DeepONet framework for operator learning and identifies important issues responsible for their limited computational performance; Sections 2.2 and 2.3 detail the different PI-DeepONet architectures investigated in this research; Section 2.4 derives some theoretical scaling laws for the different architectures; Section 3 reports training time and accuracy of the Vanilla and ATenH PI-DeepONets for linear advection problems for progressively increasing spatial dimensions; Section 4 provides a discussion of key findings, and Section 5 provides concluding remarks.

Notation

Table 1: Glossary of key variables used throughout this work.

SymbolDescription
nnNumber of input functions used during training
ppNumber of collocation points per input function
mmNumber of sensor (discretisation) points for input functions
ddDimension of the spatiotemporal domain
ssLatent dimension (output size of Branch/Trunk networks)
u(j)\mathbf{u}^{(j)}jjth input function
ξ\xiSensor point at which input functions are sampled
y=(x,t)\mathbf{y} = (\mathbf{x}, t)Collocation point in the spatiotemporal domain
x=(x1,…,xd−1)\mathbf{x} = (x_{1}, \dots, x_{d-1})Spatial coordinate
c=(c1,…,cd−1)\mathbf{c} = (c_{1}, \dots, c_{d-1})Advection velocity vector
rlr_{l}Number of neurons in layer ll (Branch network)
ele_{l}Number of neurons in layer ll (Trunk network)
LBL_{B}Number of layers in multilayer perceptron (Branch network)
LTL_{T}Number of layers in multilayer perceptron (Trunk network)
MMNumber of Branch networks in PI-DeepONet

References (33)