Introduction
3D data is inherently sparse. Whether it's a city-scale LiDAR scan or a high-resolution mesh of a single object, most of the surrounding volume is empty space. Traditional "dense" tensors are ill-suited for this data, as their memory requirements scale cubically with resolution. Doubling the resolution leads to an eightfold increase in memory usage, quickly hitting hardware limits.
While existing sparse frameworks utilize hash tables or octrees to mitigate this, they often force a trade-off. Hash tables excel at convolutions but struggle with spatial queries like ray tracing due to a loss of spatial coherence. Octrees maintain spatial relationships but suffer from slow traversal speeds. Furthermore, researchers often have to stitch together multiple libraries to handle different tasks like rendering and convolution.
fVDB is a high-performance GPU framework designed to bridge these gaps. It introduces a unified suite of differentiable operators—including convolution, sampling, and ray tracing—within a single, spatially-aware architecture. By leveraging a novel "IndexGrid" structure, fVDB achieves significant improvements in speed and memory efficiency over current state-of-the-art libraries.
The fVDB Architecture
The foundation of fVDB is the IndexGrid, a data structure derived from NVIDIA’s NanoVDB. Unlike deep octrees, the IndexGrid uses a shallow but wide fixed-depth tree. This design enables $O(1)$ constant-time data access, similar to a hash table, while preserving the spatial hierarchy necessary for efficient geometric queries.
Key Innovations
- Topology/Value Separation: fVDB separates the "shape" of the data (the IndexGrid) from the actual feature values (sidecar tensors). This allows a single spatial index to point to multiple feature sets, which is highly memory-efficient for deep learning where features change per layer but the geometry remains static.
- Hierarchical Digital Differential Analyzer (HDDA): For ray marching, fVDB utilizes the tree hierarchy to "leapfrog" over large empty regions, drastically accelerating rendering tasks.
- Specialized Convolution Kernels: Recognizing that sparsity patterns vary, fVDB employs three distinct convolution strategies: Leaf for memory-bound tasks, Brick for high local density, and LGGS for extremely sparse data like LiDAR.
- Jagged Tensors: A custom memory layout handles minibatches where each 3D scene contains a different number of active voxels, ensuring efficient GPU utilization.
Performance and Applications
The authors evaluated fVDB across a wide range of benchmarks, including SemanticKITTI for LiDAR segmentation, the Waymo Open Dataset for large-scale NeRFs, and the Stanford Bunny for high-resolution ray marching.
Key Results
- Efficiency: In ray marching tasks, fVDB is 1.5x to 3x faster than NerfAcc while using up to 100x less memory at high resolutions ($1024^3$).
- Speed: The framework can construct a spatial index from millions of points in milliseconds, outperforming MinkowskiEngine and maintaining better memory stability than TorchSparse++.
- Scalability: fVDB demonstrated its capability by performing surface reconstruction from 350 million points in just 2 minutes using 8 GPUs—a scale that typically causes other frameworks to crash.
Conclusion and Future Directions
fVDB establishes that spatial coherence is vital for efficient 3D deep learning. By making operations like ray tracing "first-class citizens" alongside convolution, it provides a robust foundation for spatial intelligence.
Future work includes expanding the operator library with hierarchical dual marching cubes and differentiable particle-to-grid functions for physics-based learning. The authors also aim to implement dynamic dispatch, allowing the framework to automatically select the optimal convolution kernel for each local neighborhood based on its specific sparsity. fVDB is slated for release as an open-source project, offering the community a powerful tool for large-scale 3D data processing.
Summary updated