Abstract
Solving the Eikonal equation is a cornerstone of wave propagation modeling, distance transforms, and optimal path planning. While traditional serial methods like the Fast Marching Method (FMM) offer optimal complexity, they translate poorly to parallel architectures. This paper introduces the Improved Fast Iterative Method (iFIM), a GPU-optimized approach that decouples the main update loop from expensive convergence checks. By utilizing a speculative "Update Step" followed by a targeted "Remedy Step," iFIM achieves significant speedups over existing parallel solvers while maintaining mathematical rigor.
Introduction
The Eikonal equation, defined as $\|\nabla \phi\| = 1/F$, describes the arrival time $\phi$ of a front moving with speed $F$. It is essential for tracking interfaces in fluid dynamics and determining shortest paths in robotics. However, the inherent causality of the solution—where the value at a point depends on its neighbors in the direction of propagation—presents a significant challenge for parallel computation.
The Parallelization Challenge
Existing numerical methods face distinct bottlenecks on modern hardware:
- Fast Marching Method (FMM): Relies on a serial priority queue, making it unsuitable for massive parallelism.
- Fast Sweeping Method (FSM): Uses Gauss-Seidel iterations with specific memory access patterns that lead to low GPU utilization.
- Fast Iterative Method (FIM): While designed for GPUs, FIM is hindered by frequent synchronization and redundant neighbor-validation checks in every iteration.
The iFIM Approach
The core innovation of the Improved Fast Iterative Method (iFIM) is the separation of the solver into two distinct phases: an optimistic Update Step and a corrective Remedy Step.
1. The Update Step
Similar to the original FIM, iFIM maintains an "Active List" of points to be updated. However, it removes the requirement for points to verify the convergence of their neighbors during the main loop. This "speculative" execution allows threads to run with minimal branching and memory overhead, maximizing SIMD (Single Instruction, Multiple Data) efficiency.
2. The Remedy Step
To ensure correctness, a final "remedy" phase identifies and recalculates points that do not satisfy the Eikonal discretization. Since most points converge correctly in the initial pass, this set is typically small and can be processed rapidly in parallel.
Discretization and Causality
The algorithm employs a Godunov upwind finite difference scheme to discretize the equation. This ensures that information propagates correctly from the boundary $\Gamma$ into the domain $\Omega$.
As shown in the figure above, the decomposition of vectors at the interface is critical for maintaining the "upwind" property, where the solution at point $x$ is derived from the direction of the incoming wave front. By resolving the vector $v$ into parallel ($v^{\|}$) and perpendicular ($v^{\perp}$) components relative to the normal $n$, the solver maintains causality during the update process.
Experimental Evaluation
The iFIM was evaluated on an NVIDIA Tesla P100 across five synthetic scenarios, ranging from simple expanding circles to complex maze-like environments with high-contrast speed functions.
Key results include:
- Performance: iFIM demonstrated a 2x speedup over the original FIM and was 4.7x faster than the serial FSM for high-resolution grids ($4000^2$).
- Scalability: The performance advantage of iFIM grows with grid resolution, maintaining $O(N)$ complexity with significantly lower constant overhead.
- Path Planning: In complex environments, iFIM efficiently generated distance maps for gradient-descent-based pathfinding, outperforming traditional methods in both speed and robustness.
Conclusion
The iFIM provides a highly efficient framework for solving the Eikonal equation on parallel architectures. By adopting an "optimistic" update strategy and relegating convergence checks to a specialized remedy phase, the algorithm fully leverages the computational power of modern GPUs. Future work will explore extending this "Update + Remedy" paradigm to more complex Hamilton-Jacobi equations.
Summary updated