Skip to main content
QUICK REVIEW

[Paper Review] High-resolution imaging on TPUs

Fantine Huot, Yifan Chen|arXiv (Cornell University)|Dec 13, 2019
Seismic Imaging and Inversion TechniquesEarth and Planetary Sciences19 references8 citations
TL;DR

This paper demonstrates that Cloud TPUs can efficiently accelerate full-waveform inversion (FWI), a high-resolution imaging technique, by leveraging higher-order numerical stencils and the TPU's high-bandwidth interchip network. The authors achieve competitive performance—matching or exceeding Tesla V100 GPUs—on 3D wavefield modeling using TensorFlow, showing TPUs are viable for computationally intensive scientific imaging beyond deep learning.

ABSTRACT

The rapid evolution of artificial intelligence (AI) is leading to a new generation of hardware accelerators optimized for deep learning. Some of the designs of these accelerators are general enough to allow their use for other computationally intensive tasks beyond AI. Cloud tensor processing units (TPUs) are one such example. Here, we demonstrate a novel approach using TensorFlow on Cloud TPUs to implement a high-resolution imaging technique called full-waveform inversion. Higher-order numerical stencils leverage the efficient matrix multiplication offered by the Cloud TPU, and the halo exchange benefits from the dedicated high-speed interchip connection. The performance is competitive when compared with Tesla V100 graphics processing units and shows promise for future computation- and memory-intensive imaging applications.

Motivation & Objective

  • To explore the feasibility of using Cloud TPUs for high-resolution imaging beyond deep learning.
  • To address the high computational cost of full-waveform inversion (FWI) by leveraging TPU-specific optimizations.
  • To evaluate whether TPUs can match or surpass GPU performance in wavefield modeling for 3D imaging.
  • To develop a high-level, readable TensorFlow implementation that is portable and extensible for scientific computing on TPUs.

Proposed method

  • Adapted a full-waveform inversion (FWI) wavefield modeling engine to run on Cloud TPUs using TensorFlow.
  • Employed higher-order numerical stencils (8th and 16th order) to improve accuracy and reduce computational domain size.
  • Leveraged the TPU’s efficient matrix multiplication for dense numerical kernels in wave equation solvers.
  • Utilized the dedicated high-speed, low-latency interchip mesh network for efficient halo exchange in stencil computations.
  • Optimized tensor dimensions to be multiples of 128 to maximize TPU utilization and memory bandwidth.
  • Implemented the entire workflow in high-level Python code to ensure readability and ease of extension.

Experimental results

Research questions

  • RQ1Can Cloud TPUs efficiently accelerate full-waveform inversion (FWI), a computationally intensive imaging technique?
  • RQ2How does the use of higher-order stencils affect TPU utilization and computational domain size in wavefield modeling?
  • RQ3What performance gains can be achieved by leveraging the TPU’s high-bandwidth interchip network for halo exchange?
  • RQ4How does TPU-based FWI performance compare to state-of-the-art GPU implementations in terms of speed and efficiency?
  • RQ5Can a high-level TensorFlow implementation on TPUs achieve competitive performance while remaining maintainable and extensible?

Key findings

  • The 16th-order stencil reduced the computational domain by 12% on each axis compared to the 8th-order stencil, enabling significant savings in 3D imaging workloads.
  • On a 1024³ domain, the TPU implementation ran at approximately 50% of the speed of the GPU baseline (15.68s vs. 8.98s for 100 time steps).
  • By switching to a 16th-order stencil and reducing the domain to 768³, the TPU implementation achieved a computation time of 9.14s, outperforming the 8th-order TPU run and approaching GPU performance.
  • The TPU implementation achieved 4.96 Gcells/s with the 16th-order stencil on a 768³ domain, demonstrating strong scalability and efficiency.
  • Despite being implemented in high-level Python, the TPU code achieved competitive performance compared to a highly optimized C++/CUDA GPU baseline.
  • The results indicate that TPUs are a viable alternative for scientific computing workloads, especially when combined with algorithmic optimizations like higher-order stencils and efficient halo exchange.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.