Skip to main content
QUICK REVIEW

[Paper Review] ASH: A Modern Framework for Parallel Spatial Hashing in 3D Perception

Wei Dong, Yixing Lao|arXiv (Cornell University)|Oct 1, 2021
Robotics and Sensor-Based LocalizationEngineering51 references9 citations
TL;DR

ASH is a high-performance, user-friendly GPU framework for parallel spatial hashing in 3D perception, enabling efficient, collision-free key-value lookups with a tensor interface and seamless integration into PyTorch. It achieves up to 150× faster performance and 5× fewer lines of code in 3D reconstruction and differentiable rendering tasks by decoupling hash map internals from data storage and using an index-first adaptor with optimized SoA layout.

ABSTRACT

We present ASH, a modern and high-performance framework for parallel spatial hashing on GPU. Compared to existing GPU hash map implementations, ASH achieves higher performance, supports richer functionality, and requires fewer lines of code (LoC) when used for implementing spatially varying operations from volumetric geometry reconstruction to differentiable appearance reconstruction. Unlike existing GPU hash maps, the ASH framework provides a versatile tensor interface, hiding low-level details from the users. In addition, by decoupling the internal hashing data structures and key-value data in buffers, we offer direct access to spatially varying data via indices, enabling seamless integration to modern libraries such as PyTorch. To achieve this, we 1) detach stored key-value data from the low-level hash map implementation; 2) bridge the pointer-first low level data structures to index-first high-level tensor interfaces via an index heap; 3) adapt both generic and non-generic integer-only hash map implementations as backends to operate on multi-dimensional keys. We first profile our hash map against state-of-the-art hash maps on synthetic data to show the performance gain from this architecture. We then show that ASH can consistently achieve higher performance on various large-scale 3D perception tasks with fewer LoC by showcasing several applications, including 1) point cloud voxelization, 2) retargetable volumetric scene reconstruction, 3) non-rigid point cloud registration and volumetric deformation, and 4) spatially varying geometry and appearance refinement. ASH and its example applications are open sourced in Open3D (http://www.open3d.org).

Motivation & Objective

  • Address the lack of a high-level, collision-free, and differentiable GPU hash map for large-scale 3D perception tasks.
  • Bridge the gap between low-level GPU hash map implementations and high-level research workflows using PyTorch and automatic differentiation.
  • Enable efficient, scalable, and user-friendly spatial hashing for volumetric geometry and appearance reconstruction with minimal code.
  • Support rich functionality such as spatially varying data access, in-place autodiff, and integration with modern deep learning libraries.
  • Reduce implementation complexity and improve performance across diverse 3D perception workloads.

Proposed method

  • Decouple key-value data from low-level hash map structures, storing values in separate buffers accessible via indices.
  • Introduce an index-first adaptor that maps tensor indices to hash map entries using an index heap, enabling high-level tensor I/O and efficient memory access.
  • Support both generic and non-generic integer-only hash map backends for multi-dimensional keys, enabling flexibility and performance.
  • Adopt an optimized structure-of-arrays (SoA) data layout to accelerate batched operations and reduce memory access overhead.
  • Expose a high-level tensor interface that integrates natively with PyTorch, enabling automatic differentiation and end-to-end differentiable pipelines.
  • Use CUDA kernels to parallelize hash map operations, including insertion, lookup, and collision resolution, with minimal thread divergence.

Experimental results

Research questions

  • RQ1Can a high-level, GPU-accelerated spatial hashing framework be designed to support differentiable operations and seamless integration with deep learning frameworks?
  • RQ2How can the performance and maintainability of 3D perception pipelines be improved by decoupling hash map logic from data storage?
  • RQ3To what extent can a tensor-based interface reduce code complexity while maintaining or improving performance in volumetric reconstruction tasks?
  • RQ4Can a unified framework efficiently support both static and dynamic spatial hashing with minimal performance overhead?
  • RQ5How does the proposed architecture compare to existing GPU hash maps in terms of speed, memory efficiency, and ease of use for complex 3D perception workloads?

Key findings

  • ASH achieves up to 150× faster performance per iteration in spatially varying spherical harmonics (SVSH) optimization compared to a baseline implementation.
  • The framework reduces code complexity by 5×, with only 254 lines of code for SVSH optimization versus 605 in the original implementation.
  • In joint geometry and appearance optimization, ASH reduces runtime from 147.3 seconds to 0.916 seconds per epoch, a 150× speedup.
  • ASH enables end-to-end differentiable 3D reconstruction with PyTorch autodiff, achieving comparable rendering quality (RMSE: 0.627 vs. 0.677) with significantly less code.
  • The framework supports spatially varying parameterizations such as SVSH and retargetable volumetric reconstruction with minimal engineering effort.
  • ASH outperforms state-of-the-art implementations in both synthetic benchmarks and real-world 3D perception tasks, including non-rigid registration and volumetric deformation.

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.