Memory Optimization in RNN-Based Full Waveform Inversion Using Boundary Saving Wavefield Reconstruction
- 20 September 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Geoscience and Remote Sensing
- Vol. 61 (01962892) , 1-12
Abstract
In wave equation modeling, wavefields propagating over time can be regarded as feedforward in a recurrent neural network. Therefore, the seismic inversion problem based on partial differential wave equations can be addressed using automatic differentiation in the state-of-art deep learning frameworks, eliminating the need for explicit backpropagating the residual wavefield. However, one challenge that arises in the context of automatic differentiation is the significant memory usage due to the necessity of storing the hidden states of the RNN (i.e., wavefields in seismic modeling) during forward computation for constructing the computational graph and computing the derivatives during backpropagation. This memory overhead can become a bottleneck, particularly when dealing with large-scale inversion problems. To mitigate this issue, we propose an effective boundary saving strategy that allows for the reconstruction of the computational graph during the backpropagation process. Instead of storing all the intermediate wavefields at each time step, we selectively save the necessary information at the boundaries, thereby significantly reducing the memory footprint. This approach enables us to maintain the convenience and efficiency of automatic differentiation computations while minimizing the memory requirements. Both 2D and 3D numerical experiments validate the accurate reconstruction of wavefields with minimal loss in precision, while the computational graph is simultaneously reconstructed. Consequently, the gradients can also be calculated correctly by automatic differentiation with minimal CPU/GPU memory occupation.Keywords
Funding Information
- Wenhai Program of the ST Fund of Laoshan Laboratory (LSKJ202204803)
- National Natural Science Foundation of China (42074138)
- China National Offshore Oil Corporation (CCL2023XHPS001EM, KJGG-2022-0104, CCL2022RCPS0513RCN)
- Open Fund Project of No. 1 Geological Team of Shanong Provincial Bureau of Geology and Mineral Resources (2022DY03)
This publication has 15 references indexed in Scilit:
- Attenuating Crosstalk Noise of Simultaneous-Source Least-Squares Reverse Time Migration With GPU-Based Excitation Amplitude Imaging ConditionIEEE Transactions on Geoscience and Remote Sensing, 2018
- Full-waveform inversion in acoustic orthorhombic media and application to a North Sea data setGeophysics, 2018
- A graphics processing unit implementation of time-domain full-waveform inversionGeophysics, 2015
- RTM using effective boundary saving: A staggered grid GPU implementationComputers & Geosciences, 2014
- Theory of multisource crosstalk reduction by phase-encoded staticsGeophysical Journal International, 2011
- Reverse time migration with random boundaries2009
- Computational strategies for reverse‐time migration2008
- A review of the adjoint-state method for computing the gradient of a functional with geophysical applicationsGeophysical Journal International, 2006
- Marmousi2: An elastic upgrade for MarmousiThe Leading Edge, 2006
- Inversion of seismic reflection data in the acoustic approximationGeophysics, 1984