[Paper Review] GPGPU Acceleration of the KAZE Image Feature Extraction Algorithm
This paper presents a GPGPU-accelerated implementation of the original KAZE feature extraction algorithm using CUDA, achieving up to 8× speedup over a 16-threaded CPU version without using binary descriptors. The approach leverages fine-grained parallelization across the nonlinear scale space construction, keypoint detection, and descriptor computation stages, maintaining full algorithmic fidelity while significantly reducing runtime for high-resolution images.
The recently proposed open-source KAZE image feature detection and description algorithm offers unprecedented performance in comparison to conventional ones like SIFT and SURF as it relies on nonlinear scale spaces instead of Gaussian linear scale spaces. The improved performance, however, comes with a significant computational cost limiting its use for many applications. We report a GPGPU implementation of the KAZE algorithm without resorting to binary descriptors for gaining speedup. For a 1920 by 1200 sized image our Compute Unified Device Architecture (CUDA) C based GPU version took around 300 milliseconds on a NVIDIA GeForce GTX Titan X (Maxwell Architecture-GM200) card in comparison to nearly 2400 milliseconds for a multithreaded CPU version (16 threaded Intel(R) Xeon(R) CPU E5-2650 processsor). The CUDA based parallel implementation is described in detail with fine-grained comparison between the GPU and CPU implementations. By achieving nearly 8 fold speedup without performance degradation our work expands the applicability of the KAZE algorithm. Additionally, the strategies described here can prove useful for the GPU implementation of other nonlinear scale space based methods.
Motivation & Objective
- To address the high computational cost of the original KAZE algorithm, which limits its use in real-time applications.
- To accelerate the full KAZE pipeline—nonlinear scale space, keypoint detection, and descriptor computation—using GPGPU without sacrificing algorithmic accuracy.
- To demonstrate that full-precision KAZE can be efficiently parallelized on GPU using CUDA, avoiding performance degradation from binary descriptor approximations.
- To provide a GPU-optimized implementation strategy applicable to other nonlinear scale space-based computer vision methods.
Proposed method
- The KAZE algorithm is ported to CUDA C, with each stage—nonlinear scale space construction, Hessian-based keypoint detection, and descriptor computation—parallelized using GPU kernels.
- Nonlinear scale space is built via iterative solution of the Perona-Malik anisotropic diffusion PDE using explicit finite difference schemes, parallelized across image pixels.
- Keypoint detection is accelerated by parallelizing 3×3×σ-scale Hessian determinant computation across all spatial and scale locations.
- Descriptor computation is parallelized by assigning each keypoint to a GPU thread block, with spatial locality exploited using texture memory for derivative access.
- Memory access is optimized through coalesced memory transactions and reuse of intermediate scale-space layers in shared memory.
- The CPU only manages kernel launches and data transfers, enabling asynchronous execution and offloading general computation.
Experimental results
Research questions
- RQ1Can the original, non-binary KAZE algorithm be efficiently accelerated on GPU without performance degradation?
- RQ2What is the achievable speedup of a full-precision KAZE implementation on GPU compared to a multithreaded CPU version?
- RQ3How does the computational load distribute across the three main stages of KAZE (scale space, detection, descriptor) on GPU and CPU?
- RQ4To what extent does GPU memory optimization reduce memory footprint growth with increasing image size?
Key findings
- For a 1920×1200 image, the GPU-KAZE implementation achieved a 7.8× speedup over a 16-threaded CPU version, reducing runtime from ~2400 ms to ~300 ms.
- The nonlinear scale space construction stage contributed most to the speedup, achieving up to 18× speedup on large images (1200×1920) with a single CPU thread.
- Memory utilization for GPU-KAZE grew only 3× when image size increased from 480×640 to 1200×1920, compared to a 20× increase for CPU-KAZE, indicating superior memory optimization.
- The GPU implementation achieved identical keypoint counts (~2200) as the CPU version when using the exact procedure, confirming feature detection accuracy is preserved.
- The speedup was most significant for scale space construction (up to 18×) and keypoint orientation computation (up to 200×), while descriptor computation achieved up to 130× speedup with a single CPU thread.
- The implementation maintains full precision and avoids binary descriptors, ensuring no loss in algorithmic robustness while enabling real-time performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.