Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking the Gerchberg-Saxton Algorithm

Peter J. Christopher, George S. D. Gordon|arXiv (Cornell University)|May 18, 2020
Cellular Automata and ApplicationsComputer Science14 references5 citations
TL;DR

This paper benchmarks the Gerchberg-Saxton (GS) algorithm for computer-generated holography on GPU hardware, analyzing convergence speed, precision, and performance trade-offs. It proposes a heuristic runtime model dependent on resolution, modulation levels, and hardware FLOPS, showing GS performs well on multi-level SLMs but diverges on binary SLMs, with FFT time dominating execution and performance scaling predictably across systems.

ABSTRACT

Due to the proliferation of spatial light modulators, digital holography is finding wide-spread use in fields from augmented reality to medical imaging to additive manufacturing to lithography to optical tweezing to telecommunications. There are numerous types of SLM available with a multitude of algorithms for generating holograms. Each algorithm has limitations in terms of convergence speed, power efficiency, accuracy and data storage requirement. Here, we consider probably the most common algorithm for computer generated holography - Gerchberg-Saxton - and examine the trade-off in convergent quality, performance and efficiency. In particular, we focus on measuring and understanding the factors that control runtime and convergence.

Motivation & Objective

  • To evaluate and benchmark the Gerchberg-Saxton (GS) algorithm’s performance on modern GPU hardware for computer-generated holography.
  • To identify key factors influencing GS convergence speed, accuracy, and computational efficiency.
  • To develop a heuristic model for estimating GS algorithm runtime based on system parameters, resolution, and floating-point precision.
  • To compare GS performance across different image resolutions, modulation levels, and hardware configurations.
  • To assess the impact of algorithmic variants like Weighted GS and Liu-Taghizadeh on convergence and execution time.

Proposed method

  • Benchmarking GS using a GTX 1080 GPU with direct CUDA access and cuFFT library for FFT operations.
  • Testing on 512×512 pixel images from the USC-SIPI database to evaluate performance across diverse image content.
  • Measuring FFT performance across various resolutions, especially powers of two versus non-power-of-two sizes.
  • Analyzing the effect of floating-point precision (single vs. double) on runtime and convergence.
  • Implementing and comparing variants: Weighted GS (with β factor) and Liu-Taghizadeh (region-of-interest constraint) to assess convergence improvements.
  • Deriving a heuristic runtime formula: $ t_{GS} = C_{numitr} C_{machine} C_{precision} C_{software} (C_{itr1} + C_{itr2} N_x N_y \log(N_x) \log(N_y)) $, with empirically derived constants.

Experimental results

Research questions

  • RQ1How does image resolution affect the runtime and convergence of the Gerchberg-Saxton algorithm on GPU?
  • RQ2What is the impact of floating-point precision (single vs. double) on GS algorithm performance and convergence?
  • RQ3How do algorithmic variants like Weighted GS and Liu-Taghizadeh improve convergence speed and quality compared to standard GS?
  • RQ4What is the relationship between the number of modulation levels per pixel and the performance/accuracy trade-off in GS?
  • RQ5Can a general-purpose heuristic model predict GS algorithm runtime across different hardware and system configurations?

Key findings

  • FFT operations account for over 98% of the GS algorithm’s runtime, making them the dominant performance bottleneck.
  • Performance degrades significantly for non-power-of-two resolutions, with up to 3.1× slowdown compared to power-of-two sizes.
  • The number of iterations and convergence error are independent of image resolution, indicating resolution does not affect convergence characteristics.
  • The maximum effective number of modulation levels for practical systems is approximately $ 2^6 $, beyond which gains diminish due to a power-law relationship.
  • The proposed heuristic runtime model predicts performance within 20% across seven diverse workstations (2011–2019), with $ C_{itr1} \approx 0.71 $ and $ C_{itr2} \approx 1.09 \times 10^{-6} $ as key constants.
  • The Liu-Taghizadeh variant can improve execution time by up to 100% over standard GS in specialized cases, though it requires expert tuning.

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.