---
title: Transformer-Inspired DeepONet Variants
url: https://www.emergentmind.com/topics/transformer-inspired-deeponet-variants
type: topic
---

# Transformer-Inspired DeepONet Variants

Transformer-inspired DeepONet variants are extensions of the branch–trunk operator-learning paradigm that import ideas associated with Transformer architectures—most notably cross-conditioning, attention-based geometry encoding, multi-head decomposition, and structured conditioning—while preserving, to varying degrees, the canonical DeepONet factorization \(G(u)(y)\approx \sum_k b_k(u)\,t_k(y)\). In the current literature, the term spans both **direct** Transformer-based modifications of DeepONet, such as geometry-aware attention trunks and bidirectionally conditioned branch–trunk models, and **adjacent** variants that borrow Transformer-era design motifs without implementing self-attention or cross-attention. It therefore denotes a heterogeneous family rather than a single architectural template [2509.01679] [2602.11626] [2604.11972].

## 1. Taxonomy and scope

The literature separates naturally into three strata. First are **direct Transformer-inspired DeepONet variants**, in which the branch–trunk structure is retained but one or both subnetworks become explicitly attention-based or are modified to emulate Transformer-style query–context dependency. ArGEnT DeepONet is the clearest example: the branch remains conventional, while the trunk is replaced by a geometry-aware Transformer encoder operating on point-cloud geometry and query coordinates [2602.11626]. The family of T-DeepONet variants instead preserves MLP subnetworks but introduces input-level bidirectional cross-conditioning between branch and trunk, explicitly motivated by analogy with Transformer attention [2509.01679].

Second are **transformer-adjacent conditioned DeepONets**, which adopt motifs such as multi-head decomposition, residual modulation, or learned categorical embeddings, but do not use attention. Multi-Head Residual-Gated DeepONet is of this type: it is explicitly described as transformer-adjacent rather than transformer-based, because it has multi-head conditioned response channels and residual pathways but no Q/K/V interactions [2604.11972]. \(\phi\)-DeepONet is also adjacent rather than Transformer-based: its main innovation is a trunk conditioned on learned region/interface embeddings, together with multiple branch subnetworks for discontinuous inputs [2604.08076].

Third are **comparative or neighboring operator-learning designs** that are relevant because they address problems often targeted by Transformer-style models—irregular sampling, symmetry, discontinuity, causal evolution, or training stability—without importing attention. This includes resolution-independent coefficient embeddings, SVD/POD-informed factorization, sequential trunk–branch training, and numerical-time-integration-based DeepONets [2407.13010] [2204.12670] [2309.01020] [2505.17341].

| Stratum | Representative models | Defining mechanism |
|---|---|---|
| Direct Transformer-inspired | ArGEnT DeepONet; T-DeepONet variants | Attention trunk or explicit branch–trunk cross-conditioning |
| Transformer-adjacent | MH-RG DeepONet; \(\phi\)-DeepONet | Multi-head gating, residual modulation, region embeddings |
| Comparative neighboring variants | TI-DeepONet, RINO, SVD/flexDeepONet, 2ST DeepONet | Non-attention solutions to temporal, sampling, symmetry, or training bottlenecks |

A recurring source of confusion is terminological overreach. Some variants are relevant to Transformer-inspired DeepONet research because they solve nearby representation problems, but the papers themselves explicitly state that they are **not** Transformer models. TI-DeepONet, for example, is inspired by numerical time integration rather than attention; the paper states that it does not introduce self-attention, tokenization, or Transformer sequence modules [2505.17341].

## 2. Baseline DeepONet structure and the bottlenecks that motivate Transformer-style modifications

Across the surveyed papers, the baseline DeepONet is the standard unstacked branch–trunk decomposition. In one common notation, a branch network maps an input function sampled at sensors to latent coefficients, a trunk network maps a query coordinate to latent basis-like features, and the prediction is their inner product. For instance, TI-DeepONet writes
\[
\mathcal{G}_{\theta}(\mathbf{v}_j)(\zeta) = \sum_{i=1}^p br_i\big(\mathbf{v}_j(\eta_1), \dots, \mathbf{v}_j(\eta_m)\big)\cdot tr_i(\zeta),
\]
with \(\zeta=(x,y,z,t)\) [2505.17341]. Lee and Shin write the same structure as
\[
[\bm f;\Theta](y)=c_0(\bm f;\theta)+\sum_{j=1}^N c_j(\bm f;\theta)\phi_j(y;\mu),
\]
making explicit the interpretation of the branch as coefficient generator and the trunk as basis learner [2309.01020]. This factorization is also the starting point for SVD-DeepONet and flexDeepONet, which reinterpret DeepONet as a learned low-rank projection [2204.12670].

Transformer-inspired variants are motivated by concrete limitations of this separable form. One limitation is **late interaction**: in vanilla DeepONet, the branch and trunk remain independent until the final dot product. The T-DeepONet paper identifies two specific consequences: branch coefficients are static with respect to the query point, and trunk basis functions do not directly depend on the input function [2509.01679]. A second limitation is **geometry handling**: standard MLP trunks encode coordinates but are weak at representing irregular domains, especially when geometry is not naturally expressible through a low-dimensional parameterization. ArGEnT addresses this by moving geometry out of the branch and into an attention-based trunk [2602.11626]. A third limitation is **roughness and discontinuity**: classical DeepONet trunks span outputs through smooth coordinate-dependent basis functions, which is problematic for shocks, interfaces, and other low-regularity structures [2604.08076] [2405.19166].

The analogy to Transformer attention is made most explicitly in two places. The T-DeepONet paper argues that, unlike Transformer outputs, vanilla DeepONet coefficients are not query-dependent and its basis functions are not context-dependent [2509.01679]. The pure-transformer neural-operator paper makes the structural parallel algebraic: its cross-attention expression
\[
z_s(y_k) = \sum_{i=1}^d \frac{\sum_{j=1}^n k_i(x_j) v_s(x_j)}{n}\, q_i(y_k)
\]
is interpreted as analogous to a DeepONet-style expansion in which \(q_i(y_k)\) plays a trunk-like role and the inner sum over input locations plays a branch-like role [2405.19166]. This suggests that attention can be read as a generalized, data-dependent branch–trunk interaction.

## 3. Bidirectional cross-conditioning: the T-DeepONet family

The most explicit use of the phrase **Transformer-inspired DeepONet variants** appears in the family introduced for physics-informed operator learning on advection, diffusion–reaction, Burgers’, and KdV equations [2509.01679]. These models preserve the final DeepONet inner product,
\[
G^\theta(\bm u)(\bm y)=\sum_{k=1}^{w} b_k(\cdot)\,\gamma_k(\cdot),
\]
but modify the **inputs** of branch and/or trunk so that each subnetwork receives information from the other stream. The paper emphasizes that the approach is **non-intrusive**: there are no actual self-attention or cross-attention layers, no extra encoder stacks, and no hidden-layer fusion module. The Transformer connection is architectural philosophy rather than literal Q/K/V mechanics [2509.01679].

The branch-conditioning variant T-DeepONet--Bx augments the branch input with the query spatial coordinate \(\bm x\), producing coefficients \(b_k(\bm u,\bm x)\). The trunk-conditioning variant T-DeepONet--TL augments the trunk input with the local value \(\bm u(\bm x)\), so that the basis functions become \(\gamma_k(t,\bm x,\bm u(\bm x))\). These are combined in T-DeepONet--BxTL. Two further variants provide **global** conditioning of the trunk: T-DeepONet--BxTG gives the trunk the entire discretized input \(\bm u\), whereas T-DeepONet--TF and T-DeepONet--BxTF use truncated Fourier coefficients \(\widehat{\bm u}_\Lambda\), intended especially for periodic PDEs [2509.01679].

The reported empirical pattern is equation-dependent rather than uniform. For advection, the best variant is BxTG, with mean relative \(L^2\) error \(0.925\%\) versus \(0.926\%\) for modified DeepONet, and average time-per-iteration ratio \(0.559\) relative to modified DeepONet [2509.01679]. For diffusion–reaction, TL is best, with \(0.190\%\) versus \(0.205\%\) for modified DeepONet and time ratio \(0.581\). For Burgers’ at \(\nu=10^{-3}\), TF is equivalent to modified DeepONet under Wilcoxon TOST, with mean error \(1.038\%\) versus \(0.962\%\) and time ratio \(0.445\). For Burgers’ at \(\nu=10^{-4}\), BxTF achieves \(12.094\%\) versus \(18.119\%\) for modified DeepONet. For KdV, BxTG attains \(3.554\%\) versus \(4.203\%\), with time ratio \(0.392\) [2509.01679].

A central interpretive claim of that paper is that the best cross-conditioning pattern aligns with PDE structure. Local trunk conditioning is favored when the PDE uses a local source term explicitly, as in diffusion–reaction. Global conditioning is favored when propagation depends on the full field, as in advection and KdV. Fourier conditioning is favored for periodic problems whose solution structure is dominated by low-frequency modes, as in Burgers’ [2509.01679]. This suggests that Transformer-style cross-conditioning is most effective when chosen to match the operator’s domain of dependence or dominant representation.

## 4. Attention-based trunk replacement: ArGEnT DeepONet

ArGEnT is a direct Transformer-based DeepONet variant in which the **trunk network** is replaced by a geometry-aware attention encoder while the branch remains conventional and processes only non-geometric inputs \(\pmb{\mu}\) [2602.11626]. The resulting ArGEnT DeepONet retains the standard inner-product decoding logic,
\[
u = \sum_{j=1}^J c^j(\pmb{\mu})\, f^j(\cdot),
\]
but the trunk features \(f^j\) are now geometry-conditioned functions of query coordinates and, depending on the variant, a geometry point cloud \(\Omega\) [2602.11626].

The paper defines three trunk variants. In **self-attention**, geometry is encoded implicitly by the query-point set itself, so the trunk maps a set of query points with features such as coordinates and optional SDF values to a set of outputs. In **cross-attention**, a query point \(\tilde{\mathbf{x}}\) attends to a separate geometry token set \(\Omega\), making the trunk explicitly geometry-conditioned and pointwise with respect to the query. In **hybrid-attention**, an initial cross-attention layer injects geometry into query tokens and a subsequent self-attention layer models intra-query interactions [2602.11626]. The cross-attention form is especially compatible with DeepONet because it decouples geometry tokens from query points, preserving arbitrary-location evaluation.

The attention machinery is explicitly Transformer-like. Raw point features are projected by pointwise MLPs, RoPE is applied to queries and keys, residual MLP blocks are used before and after attention, and the experiments use Galerkin-type attention unless otherwise specified [2602.11626]. For cross-attention and hybrid models, geometry is represented with \(2{,}000\)–\(5{,}000\) geometry points. The default hyperparameters are 4 attention heads, 128-dimensional attention features, 2 transformer layers for self-attention and cross-attention, and 1 cross-attention plus 1 self-attention layer for the hybrid model [2602.11626].

ArGEnT’s most distinctive contribution to DeepONet is the relocation of geometry from branch to trunk. Standard geometry-aware DeepONets in the paper encode geometry in the branch using explicit parameters or point-cloud descriptors, whereas ArGEnT encodes geometry directly inside the trunk, thereby avoiding explicit geometry parameterization as a branch input [2602.11626]. The empirical evidence is broad. On laminar airfoil flow, relative \(L^2\) errors \((\times 10^{-3})\) for cross-attention are \(p=0.13,\rho=0.11,u=0.44,v=1.68\), compared with \(6.05,5.89,6.21,4.60\) for NURBS-DeepONet [2602.11626]. On lid-driven cavity flow, ArGEnT models improve accuracy over DeepONet but increase training-step time from \(0.047\) s to about \(0.154\) s [2602.11626]. On the 3D jet engine bracket, cross-attention attains lower mean absolute errors than DeepONet and Point-DeepONet at comparable parameter count [2602.11626].

A particularly important result is that cross-attention and hybrid-attention reduce dependence on query-side SDF features. For example, on lid-driven cavity flow, cross-attention test error is \(0.0071\) both with and without query-side SDF, whereas standard DeepONet changes from \(0.0125\) without SDF to \(0.0100\) with SDF [2602.11626]. This indicates that geometry tokens in the trunk can serve as an effective geometric context channel.

## 5. Transformer-adjacent conditioned DeepONets without attention

Several DeepONet variants are relevant because they borrow design motifs associated with Transformers but explicitly avoid attention. MH-RG DeepONet is the most explicit case. The paper describes it as a **transformer-adjacent neural operator rather than a true transformer-based DeepONet**, because it uses multi-head decomposition, residual modulation, and parallel state-versus-conditioning pathways, but no self-attention, cross-attention, or token–token interactions [2604.11972]. The model augments a standard DeepONet for \(\psi_0\mapsto \psi(x,t)\) with a descriptor pathway \(\phi(\psi_0)\) and three multiplicative residual mechanisms: a pre-branch residual modulator, a branch residual gate, and a trunk residual gate. In the multi-head version, head-specific low-rank gates condition shared branch and trunk embeddings and the final prediction is additive over heads:
\[
\hat{\mathbf{\psi}(x_j,t_j) = \sum_{r=1}^{R}\hat{\mathbf{\psi}^{(r)}(x_j,t_j).
\]
The reported gains are substantial on coherent wave benchmarks: for the NLSE task, full-field MSE improves from \(1.242\times 10^{-2}\) for vanilla DeepONet and \(3.110\times 10^{-3}\) for single-head RG to \(1.406\times 10^{-3}\) for MH-RG with \(R=18\); for the 2D damped GPE task, the best MH-RG result is \(3.004\times 10^{-3}\) versus \(4.540\times 10^{-3}\) for RG and \(1.188\times 10^{-2}\) for vanilla [2604.11972].

\(\phi\)-DeepONet is another adjacent model. It is not Transformer-based, but its trunk conditioning on learned categorical region embeddings resembles segment embeddings or token-type embeddings in Transformer systems [2604.08076]. The model addresses discontinuous inputs and interface-driven output non-smoothness by combining multiple branch subnetworks—one per subdomain—with a shared trunk conditioned on a latent interface embedding \(\phi(\mathbf y)\). The nonlinear categorical embedding
\[
\phi(\mathbf y)=\sigma\!\left(\mathbf E\,\mathds{1}(\mathbf y)\right)
\]
is constructed from a one-hot domain indicator and a learned embedding matrix \(\mathbf E\) [2604.08076]. On a 1D single-interface benchmark with weak output discontinuity, vanilla DeepONet yields relative \(L_2\) error \(7.22\times 10^{-1}\), whereas \(\phi\)-DeepONet with nonlinear CE reaches \(3.45\times 10^{-3}\) at \(D=5\); on the 2D diagonal-interface problem, nonlinear CE reaches \(2.71\times 10^{-3}\) at \(D=5\) versus \(5.13\times 10^{-1}\) for DeepONet [2604.08076]. The paper is explicit, however, that subdomain partitions must be known a priori.

These models matter in the Transformer-inspired context because they demonstrate that **conditional structure** can be introduced into DeepONet in ways other than attention. A plausible implication is that some of the empirical benefits often attributed to Transformer-style architectures may in fact arise from more specific mechanisms—query-conditioned coefficients, descriptor-driven modulation, or structural embeddings—rather than from full token–token attention alone. That interpretation remains inferential, but it is consistent with the comparative framing in these papers [2604.11972] [2604.08076].

## 6. Comparative background, neighboring alternatives, and conceptual boundaries

The broader DeepONet literature contains several non-Transformer variants that are frequently adjacent to Transformer-inspired research because they address the same failure modes. TI-DeepONet and TI(L)-DeepONet target long-horizon temporal extrapolation for time-dependent PDEs, but the paper explicitly states that the method is **not Transformer-based** and is instead inspired by classical numerical time integration, especially RK4 and predictor–corrector multistep schemes [2505.17341]. The model learns the instantaneous time derivative and evolves the state through an integrator; TI(L)-DeepONet further makes the RK4 output weights state-dependent. On three PDE benchmarks, TI/TI(L) reduce extrapolation errors by about \(81\%\) versus autoregressive and \(70\%\) versus full-rollout DeepONet, with stability up to about twice the training interval [2505.17341]. This makes TI-DeepONet relevant to long-range forecasting, but not to Transformer-inspired architecture proper.

RINO is also non-transformer, yet directly relevant because it solves a problem often addressed by set encoders or attention: variable-length, irregularly sampled functional observations [2407.13010]. It replaces raw branch inputs with coefficient vectors obtained by projecting arbitrary point-cloud observations onto a learned continuous dictionary of SIREN basis functions. The resulting RI-DeepONet keeps the standard branch–trunk structure but makes the branch input resolution-independent. Empirically, it shows robust performance under random sensor downsampling, for example on 2D nonlinear Darcy where the error remains around \(1.1\times 10^{-3}\) under downsampling from \(20\times 20\) to \(10\times 10\) and increases only moderately at \(4\times 4\) [2407.13010].

SVD-DeepONet, flexDeepONet, and two-step training expose further design dimensions. SVD-DeepONet interprets branch and trunk as coefficient and basis regressors tied to an SVD/POD decomposition, while flexDeepONet introduces a pre-transformation network that learns shifts, rotations, and stretches before trunk evaluation [2204.12670]. On a shifting hyperbolic tangent problem, flexDeepONet reduces parameters by roughly \(99.5\%\) while improving RMSE from \(0.00147976\) for vanilla DeepONet to \(0.00028490\) [2204.12670]. Lee and Shin’s two-step training method learns the trunk first, orthonormalizes it by QR, and then trains the branch against coefficient targets; on inverse Darcy flow, average relative error improves from \(1.48\times 10^{-1}\) for monolithic training to \(4.14\times 10^{-4}\) for two-step training [2309.01020]. These are not Transformer variants, but they sharpen the factorization view that many Transformer-inspired designs also exploit.

Finally, pure-transformer neural operators provide a comparative upper bound on what attention can buy and at what cost. The transformer operator paper does not build a DeepONet hybrid, but reports that on a 1D Euler Riemann problem the transformer achieves lower test relative \(\ell_2\) errors than a state-of-the-art trained DeepONet baseline in the intermediate-pressure-ratio case—\(0.24\%\) versus \(0.33\%\) for density, \(0.58\%\) versus \(0.86\%\) for velocity, and \(0.09\%\) versus \(0.20\%\) for pressure—while requiring \(343.343\) min rather than \(33.06\) min of training time [2405.19166]. This underscores a central boundary condition for the field: Transformer-inspired DeepONet variants are motivated not only by expressivity, but by the search for **attention-like gains without full-transformer cost**.

## 7. Synthesis: design principles, recurring trade-offs, and open classification issues

A coherent picture emerges from these papers. The dominant design move is to weaken or replace the strict separability of branch and trunk. In the T-DeepONet family, this is done by **cross-conditioning at the inputs** of the two subnetworks [2509.01679]. In ArGEnT, it is done by replacing the trunk with a **geometry-conditioned attention encoder** [2602.11626]. In transformer-adjacent models, it is done through **descriptor-driven gating**, **multi-head conditioned channels**, or **categorical structural embeddings** [2604.11972] [2604.08076]. Across all of these, the common goal is to make the basis side depend more intelligently on context, geometry, or conditioning signals.

A second recurring principle is that the most effective modification depends on problem structure. The T-DeepONet results explicitly tie local versus global versus Fourier conditioning to the PDE’s locality, periodicity, and transport characteristics [2509.01679]. ArGEnT finds cross-attention especially advantageous because it decouples geometry tokens from query sampling, which is crucial for arbitrary-domain evaluation [2602.11626]. MH-RG shows that compact physically meaningful descriptors can be more useful than generic hidden-layer conditioning when the dynamics are organized by a small set of observables [2604.11972]. \(\phi\)-DeepONet shows that interface-aware embeddings can dominate smooth coordinate trunks on discontinuous media [2604.08076].

The principal trade-off is computational. Attention-based or attention-inspired conditioning generally improves expressivity, but the literature repeatedly reports higher cost than plain DeepONet. ArGEnT improves accuracy on geometry-dependent problems but raises per-step training time in cavity flow by about a factor of three relative to standard DeepONet [2602.11626]. Full transformer operators outperform DeepONet in some low-regularity regimes but are roughly an order of magnitude more expensive to train [2405.19166]. The T-DeepONet paper is notable because it claims the opposite direction of trade-off relative to modified DeepONet: by using lightweight cross-conditioning rather than heavy architectural augmentation, it often improves both accuracy and efficiency [2509.01679].

The classification boundary itself remains an open issue. Some papers are explicit that they are **not** Transformer-based—TI-DeepONet, MH-RG DeepONet, \(\phi\)-DeepONet, RINO, SVD-DeepONet, flexDeepONet, and two-step DeepONet all fall in this category [2505.17341] [2604.11972] [2604.08076] [2407.13010] [2204.12670] [2309.01020]. Yet they remain relevant because they solve the same representational problems that motivate Transformer-inspired DeepONet research. The most precise encyclopedia-level usage therefore distinguishes **Transformer-based**, **Transformer-inspired**, and **Transformer-adjacent** DeepONet variants rather than collapsing them into a single class.

Taken together, the literature suggests that the defining question is no longer whether DeepONet should remain a pure branch–trunk dot-product model, but **how** that factorization should be conditioned, structured, or relaxed for geometry, irregular sampling, low regularity, long-range dependence, and physically meaningful side information. Direct attention mechanisms are one answer, but not the only one [2509.01679] [2602.11626] [2405.19166].

Source: https://www.emergentmind.com/topics/transformer-inspired-deeponet-variants