DeepONet: branch and trunk networks

Part 8, Operator learning for seismology

Learning objectives

  • Write a DeepONet's answer as a constant plus a sum of the trunk's functions of the output's coordinate weighted by the branch's numbers of the input
  • Say which part of a DeepONet changes with the input and which does not
  • Build the answer up term by term and read how many terms it needs
  • Explain why a DeepONet answers a new input with one pass of its branch

A Basis of Depth, Weighted by the Column

A DeepONet writes its answer as G[v](z)=b0+βˆ‘k=1pbk(v) tk(z)G[v](z) = b_0 + \sum_{k=1}^{p} b_k(v)\,t_k(z): a trunk network turns the depth into pp functions tk(z)t_k(z), and a branch network turns the column into pp numbers bk(v)b_k(v) that weight them. Once training ends the trunk's functions are fixed and shared by every column; a new column changes only the numbers. No single function is the curve: in the book's DeepONet of Section 8.1, with pp = 32, the largest term alone leaves the Marmousi2 column's curve 409 ms off, 17 terms ranked by size come within twice the network's own error, and all 32 give 5.2 ms.

Deeponet Basis And CoefficientsInteractive figure, enable JavaScript to interact.

The Two Networks

The branch is an MLP of 36 inputs, the column's velocities over V0V_0 at its 36 nodes, two hidden layers of 48 tanh units and 32 outputs; the trunk an MLP of one input, z/Lz/L with LL = 1800 m, the same hidden layers and 32 outputs; b0b_0 is one learned number. Together they hold 9713 parameters, trained as Section 8.1 describes. The branch reads the column at fixed sensors, its 36 nodes, so a column must be given there; the trunk can be asked for any depth.

Lu, Jin and Karniadakis (2019) built DeepONet so: a branch network that encodes the input function at fixed sensor locations and a trunk network that encodes the output's locations.

Plate (a) draws the trunk's 32 functions of depth, plate (b) each term's size (the RMS over depth of bk(v) tk(z)b_k(v)\,t_k(z), in ms) ranked, plate (c) the curve from b0b_0 and the mm largest terms, and plate (d) its RMS error against mm.

Building the Curve Term by Term

For the Marmousi2 column the constant b0b_0 is 47.2 ms, the same for every column. The largest term, the trunk's function 5 times its weight, is 132.9 ms in size; with the constant alone it leaves the curve 409 ms off. Eight ranked terms leave 92.7 ms, 17 terms 8.1 ms, within twice the network's own 5.2 ms. The error does not fall at every added term: it rises at 10 of the 31 steps, because the trunk's functions are not orthogonal and large terms partly cancel. The network was trained to make the whole sum right, not any part of it.

Same Functions, New Numbers

Give the network another column and the faint functions of plate (a) do not move; the numbers of plate (b) do, and with them the ranking: for held-out column 1 the largest term is the trunk's function 23. That is why a new column costs one pass of the branch and one of the trunk at the depths asked for: nothing is solved and nothing is trained. It is also the network's limit. Its answers lie in the span of 32 functions of depth fixed by training, so a column whose curve those functions cannot make is answered with the nearest curve they can.

The Marmousi2 column is a 1D cut of a 2D acoustic, constant-density slice of a synthetic model, not field data; the family is the book's own.

What Comes Next

Section 8.3 learns the same map another way: a Fourier neural operator, which convolves the whole column in its Fourier modes.

References

  • Lu, L., Jin, P. and Karniadakis, G. E. (2019). DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operators. arXiv:1910.03193. doi:10.1038/s42256-021-00302-5.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.