---
title: Fourier-Enhanced Trunknet DeepONet
url: https://www.emergentmind.com/topics/trunknet-fourier-feature-enhanced-deeponet
type: topic
---

# Fourier-Enhanced Trunknet DeepONet

Searching arXiv for the cited papers and closely related work on Fourier-enhanced trunk networks in DeepONet.
The Trunknet Fourier Feature-Enhanced DeepONet is a DeepONet variant in which the trunk network is augmented with a randomized Fourier-feature embedding of the query variables before the standard branch–trunk inner product is formed. In the formulation reported for 1-D consolidation operator learning, this architecture is designated “Model 4” and is introduced to address limitations observed when excess pore-pressure solutions exhibit significant variation. Its defining modification is that the trunk network does not ingest \((z,t,C_v)\) directly; instead, it processes a fixed sinusoidal embedding of these variables, thereby enriching the trunk representation used to construct the operator basis. Within the reported study, this design is the most accurate and the most efficient among the four DeepONet configurations evaluated for the consolidation problem [2507.10368].

## 1. Conceptual role within DeepONet operator learning

DeepONet seeks a parametrized operator \(\mathcal{O}_\Theta:\mathcal{U}\to\mathcal{S}\) mapping an input function \(u(z,0)\) in a function space \(\mathcal{U}\) to a solution field \(u(z,t)\) in a solution space \(\mathcal{S}\). For a query point \(y=(z,t)\in D\), the prediction is expressed through a branch–trunk decomposition,
\[
\mathcal{O}_\Theta[u](y)\;\approx\;\mathcal{G}(u)(y),
\]
with the standard inner-product form
\[
\mathcal{O}_\Theta[u](y)
\;=\;
\sum_{k=1}^q
b_k\bigl(u(x_1),\ldots,u(x_m)\bigr)\;t_k(y).
\]
In the reported 1-D consolidation setting, the fixed sensor count is \(m=100\) and the latent dimension is \(q=50\) [2507.10368].

Within this framework, the branch network encodes the initial excess pore-pressure profile from sensor values, while the trunk network encodes the query variables at which the solution is evaluated. The architectural premise of the trunk Fourier-feature enhancement is that the main representational bottleneck lies in the coordinate encoding. The study first evaluates standard DeepONet variants in which the coefficient of consolidation is embedded in the branch network, then a physics-inspired configuration in which the coefficient is embedded in the trunk network, and finally the Fourier-featured trunk variant. The reported progression indicates that relocating physically salient variables to the trunk already improves performance, and that adding Fourier features further improves the learning of rapidly varying functions [2507.10368].

A useful contextual distinction is that not all “Fourier-enhanced DeepONet” constructions modify the trunk in the same manner. Some use random Fourier features directly in the trunk input, whereas others replace downstream decoding blocks with Fourier Neural Operator modules or place spectral modules in the branch. The trunknet Fourier feature-enhanced DeepONet refers specifically to the first category.

## 2. Mathematical formulation and Fourier embedding

The architectural modification is centered on a randomized Fourier-feature map
\[
\gamma:\mathbb{R}^k\to\mathbb{R}^{2m},
\]
applied to the trunk input. In Model 4, \(k=3\) because the trunk variables are \((z,t,C_v)\), and \(m=50\) frequencies are used. The embedding is
\[
\gamma(v)
\;=\;
\begin{bmatrix}
\sin\bigl(2\pi\,\mathbf{B}\,v\bigr)\\[6pt]
\cos\bigl(2\pi\,\mathbf{B}\,v\bigr)
\end{bmatrix}
\;\in\mathbb{R}^{2m},
\]
where \(\mathbf{B}\in\mathbb{R}^{m\times k}\) is drawn once from \(\mathcal{N}(0,\sigma^2 I)\) with \(\sigma=1.0\). The resulting embedding dimension is \(2m=100\), so the trunk input becomes \(\gamma([z,t,C_v])\in\mathbb{R}^{100}\) [2507.10368].

This construction leaves the branch–trunk output structure unchanged:
\[
\mathcal{O}_\Theta[u](y)
=
\sum_{k=1}^q b_k(\cdot)\,t_k(\cdot).
\]
What changes is the basis learned by the trunk net. Instead of learning \(t_k(z,t,C_v)\) directly from low-dimensional coordinates, the trunk learns \(t_k(\gamma(z,t,C_v))\) from a sinusoidal lifting of the coordinates. The study states that this enrichment addresses the identified limitations by capturing rapidly varying functions [2507.10368].

The rationale is also tied to the analytical structure of the consolidation solution cited in the study,
\[
u(z,t)=\sum_m\bigl[\,\sin(Mz/H)\,e^{-M^2C_vt/H^2}\bigr].
\]
The reported interpretation is that embedding \(C_v\) in the trunk is already more aligned with this analytical form than placing it in the branch. The additional Fourier embedding then expands the trunk’s capacity to resolve high-frequency and steep-gradient components, especially at early times. This suggests that the method is not merely a generic positional encoding device, but a targeted modification motivated by the spectral and transient structure of the operator being learned [2507.10368].

## 3. Network architecture and representational design

All three MLPs discussed in the study—the branch net, the trunk net, and the merge net where applicable—share the same layer-width pattern: 6 fully-connected hidden layers, each with 30 neurons. The nonlinearity is not explicitly stated as “ReLU” or “tanh”; the study notes that implementations of DeepONet commonly use \(\tanh\) activations, and that one may use \(\mathrm{ReLU}\) or \(\tanh\) interchangeably [2507.10368].

For Model 4, the branch net receives only the sensorized initial condition \(u(x_1),\dots,u(x_{100})\), so its input dimension is 100. After the 6 hidden layers of width 30, it outputs a \(q=50\)-dimensional vector. The trunk net also outputs dimension \(q=50\), but its input is not the raw coordinate tuple. Instead, the trunk input is the 100-dimensional Fourier embedding \(\gamma([z,t,C_v])\), followed by the same 6-layer, width-30 MLP stack [2507.10368].

The architecture can therefore be summarized as follows.

| Component | Input | Output |
|---|---|---|
| Branch net | \(u(x_1),\dots,u(x_{100})\) | \(q=50\) |
| Trunk net | \(\gamma([z,t,C_v])\in\mathbb{R}^{100}\) | \(q=50\) |
| Final operator output | branch–trunk inner product | scalar field value |

This design is structurally conservative: it preserves the canonical DeepONet factorization and modifies only the representation supplied to the trunk. That is an important technical point, because the reported gains are not attributed to a larger latent dimension or a more elaborate merger mechanism. The improvement is associated with the Fourier lifting of the trunk variables and the resulting ability to learn rapidly varying dependence on \((z,t,C_v)\) [2507.10368].

## 4. Training protocol and data generation

The only loss term is the mean-squared error between DeepONet predictions and solver outputs,
\[
\mathcal{L}(\Theta)
=
\frac{1}{N\,P}
\sum_{i=1}^N
\sum_{j=1}^P
\Bigl\lvert
\mathcal{O}_\Theta\bigl[u^{(i)}\bigr]\,(y_j^{(i)})
-
\mathcal{G}\bigl(u^{(i)}\bigr)(y_j^{(i)})
\Bigr\rvert^2,
\]
where \(N\) is the number of input functions and \(P=100\) is the number of sampled output locations per function. The reported training set size is 40 000 input functions and the validation set size is 5 000. No additional regularization such as weight decay or PDE-residual terms is applied [2507.10368].

The data-generation setup uses the spatial domain \(z/H_{dr}\in[0,1]\) and time domain \(T_v=C_v\,t/H_{dr}^2\in[0,2]\). The coefficient of consolidation is sampled as
\[
C_v\sim\mathrm{Uniform}(0.3,1.0)\ \text{m}^2/\text{yr}.
\]
Initial profiles \(u(z,0)\) are either constant in \([10,20]\) kPa or sampled from a Gaussian random field with variance \(10^3\) kPa\(^2\) and length scale \(l=0.5\). The branch input uses \(m=100\) fixed sensors \(x_\ell\), while each training function is paired with \(P=100\) random evaluation locations \(y_j=(z,t)\) [2507.10368].

The training details are reported as not fully specified in the paper, with standard choices listed as Adam, initial learning rate \(10^{-3}\), decay when validation loss plateaus, batch size typically 32–256, and training up to 600–1000 epochs, with loss curves shown to 600 epochs [2507.10368].

A recurrent misconception in the broader neural-operator literature is that “physics-inspired” or “physics-guided” necessarily implies PDE-residual enforcement during optimization. In this model, the only stated objective is supervised MSE against solver outputs. The role of physics enters through variable placement in the architecture and through the analytical interpretation of the solution structure, not through an explicit residual penalty.

## 5. Quantitative performance and computational characteristics

The reported numerical comparisons show that Model 4 improves both accuracy and runtime relative to the three alternative DeepONet configurations tested in the same study. For the representative case \(C_v=0.5\) with non-uniform \(u_0\), the reported errors are:

| Model | Representative MSE (Pa\(^2\)) | \(\max|\,\mathrm{err}\,|\) (Pa) |
|---|---:|---:|
| Model 1 | \(9.38\times10^{-4}\) | \(1.40\times10^3\) |
| Model 2 | \(1.14\times10^{-3}\) | \(1.31\times10^3\) |
| Model 3 | \(1.17\times10^{-4}\) | \(8.69\times10^2\) |
| Model 4 | \(3.69\times10^{-5}\) | \(2.97\times10^2\) |

On the test set, the mean \(\pm\) standard deviation of MSE is reported as \(5\,921.96 \pm 5\,266.16\) for Model 1, \(5\,921.96 \pm 5\,266.16\) for Model 2, \(740.62 \pm 787.00\) for Model 3, and \(508.96 \pm 339.44\) for Model 4. In the ablation, worst-case MSE drops from \(9.87\times10^{3}\) for Model 3 to \(3.47\times10^{3}\) for Model 4 [2507.10368].

The timing results on an NVIDIA RTX 2000 Ada Laptop GPU are also explicit. Computational time per full \(100\times100\) field is 0.00709 s for Model 1, 0.00822 s for Model 2, 0.00677 s for Model 3, and 0.00619 s for Model 4. The corresponding solver baselines are 0.01118 s for the implicit BDF solver and 0.71304 s for the explicit RK45 solver. The study therefore reports DeepONet models as approximately \(1.5\)–\(2\times\) faster than BDF and approximately \(100\times\) faster than RK45, with Model 4 the fastest among the four architectures [2507.10368].

The study’s interpretation of these results is architectural rather than purely empirical. Model 3 already benefits from placing \(C_v\) in the trunk, which the study states reduces MSE by approximately \(10\times\) over Model 1. Model 4 then adds Fourier embedding so that high-frequency or steep-gradient components, especially at early times, can be learned more effectively. In worst-case samples, maximum absolute error spikes at early \(T_v\) are reported to be reduced by approximately \(3\times\) when Fourier features are used. Out-of-distribution tests further indicate that Model 4 remains accurate for \(C_v\in[0.3,1.0]\), degrades gracefully outside that range, and exhibits lower error for smoother initial profiles with correlation lengths \(\ell>0.5\), while \(\ell<0.5\) yields higher error but still within reasonable bounds [2507.10368].

## 6. Relation to adjacent Fourier-enhanced operator-learning approaches

The trunknet Fourier feature-enhanced DeepONet belongs to a broader line of work that incorporates Fourier structure into operator networks, but the specific locus of Fourier augmentation varies considerably across papers. In the 1-D consolidation study, the Fourier enhancement is an explicit random Fourier-feature map applied to the trunk input \((z,t,C_v)\) before a standard MLP trunk [2507.10368].

A closely related use of Fourier features appears in a bi-fidelity DeepONet for predicting time trajectories of drag and lift coefficients, where the Fourier feature network is employed as the trunk network because of its proficiency in capturing and learning the oscillatory nature of the target solution with high precision. There, the operator maps the undisturbed free-stream velocity \(\bar u\in[0.9,1.1]\) m/s and time \(t\in[0,8]\) s to \(C_D(t)\) or \(C_L(t)\), and the Fourier trunk is paired with a branch network in the standard DeepONet sum \(\sum_{k=1}^p \phi_k(\bar u)\psi_k(t)\). That work also combines the Fourier trunk with a physics-guided sinusoidal parametrization and a two-stage bi-fidelity residual framework [2311.03639].

By contrast, “Fourier-DeepONet” for variable-source full waveform inversion does not explicitly introduce a random Fourier-feature map in the trunk. Instead, it uses a parameter-space DeepONet in which the branch produces a tensor, the trunk encodes source parameters, and a modified Fourier Neural Operator acts as the decoder after branch–trunk merging. The paper states that one may interpret the first Fourier layer as constructing spatial–temporal basis functions, but the architecture is not the same as a trunk-input random Fourier embedding [2305.17289].

An even closer conceptual relative is “FEDONet,” which replaces the plain fully connected trunk with a Fourier-embedded trunk using
\[
\phi(\zeta)=\bigl[\sin(2\pi B\zeta),\cos(2\pi B\zeta)\bigr],
\quad B_{ij}\sim\mathcal{N}(0,\sigma^2),
\]
and reports average relative \(L_2\) performance gains of \(2\)–\(3\times\) over a DeepONet baseline across several PDE-driven datasets. The explicit motivation given there is the mitigation of trunk spectral bias in standard MLP trunks [2509.12344]. This closely parallels the rationale of Model 4 in the consolidation study, although the latter is framed as an architectural investigation tied to the analytical structure of consolidation solutions.

Related hybrid DeepONet surrogates for multiphase flow also integrate Fourier structure, but primarily in the branch rather than the trunk. In those models, FNO modules encode spatial fields in the branch, while the trunk remains an MLP or KAN handling time and, if desired, spatial query coordinates. This yields spatial–temporal decoupling rather than a Fourier-embedded coordinate trunk [2511.02962].

Taken together, these works indicate that “Fourier-enhanced DeepONet” is not a single architecture class. It may denote a random Fourier-feature trunk, a Fourier-featured trunk specialized to oscillatory targets, an FNO decoder appended to a DeepONet merger, or an FNO-based branch within a hybrid operator network. The trunknet Fourier feature-enhanced DeepONet is specifically the variant in which the trunk input is lifted by a fixed randomized sinusoidal map to improve the learning of rapidly varying coordinate dependence, and, in the reported 1-D consolidation experiments, that modification yields the best combination of accuracy and efficiency among the tested DeepONet architectures [2507.10368].

Source: https://www.emergentmind.com/topics/trunknet-fourier-feature-enhanced-deeponet