TL;DR
FastGRT is a high-performance system that accelerates the training of 3D Gaussian Ray Tracing (GRT) by 1.9x to 5x without sacrificing rendering quality. By optimizing how GPUs handle ray traversal, gradient accumulation, and spatial data structures, it brings the flexibility of ray tracing—such as handling reflections and distorted lenses—closer to the training speeds of standard rasterization-based methods.
What Problem Does This Paper Address?
3D Gaussian Splatting (3DGS) has revolutionized 3D scene reconstruction, but it relies on rasterization, which projects 3D objects onto a 2D screen. This approach struggles with "non-ideal" scenarios: wide-angle fisheye lenses, reflections in mirrors, or refractive surfaces.
Ray Tracing (GRT) solves this by casting rays from pixels into the scene, allowing for complex camera models and secondary light effects. However, GRT is notoriously slow to train. The authors identified three primary bottlenecks in existing GRT implementations:
- Redundant Work: Systems often re-trace every ray during the backward pass (gradient calculation), even though the forward pass already found the intersections.
- Atomic Contention: Thousands of rays often update the same Gaussian simultaneously, leading to massive "traffic jams" (atomic operation overhead) in GPU memory.
- BVH Maintenance: Rebuilding the Bounding Volume Hierarchy (the "map" used to find Gaussians) from scratch every iteration is incredibly expensive, especially in large outdoor scenes.
Methods
The authors developed FastGRT, implemented in Vulkan to provide cross-vendor hardware control. Their approach rests on three pillars:
- Adaptive Multi-Round Traversal: Instead of one giant "megakernel," FastGRT splits tracing into "gather" and "blend" rounds. It records intersections in a hit archive during the forward pass. The backward pass then simply "replays" these hits, eliminating the need to traverse the BVH a second time. An adaptive budget adjusts the number of rounds based on scene complexity to keep the process efficient.
- Fast Gradient Accumulator: To solve the atomic operation bottleneck, FastGRT aggregates gradients within GPU subgroups (small clusters of threads) using fast on-chip shared memory. Only after the subgroup has a combined result does it issue a single update to global memory.
- Hybrid BVH Update Strategy: Instead of a full rebuild every time, FastGRT uses "refitting"—a cheaper operation that just updates the boundaries of existing boxes. It only triggers a full rebuild when the number of Gaussians changes significantly or after a set number of iterations.
Datasets
The authors evaluated FastGRT across several standard benchmarks for novel view synthesis:
- Mip-NeRF 360: Unbounded indoor and outdoor scenes (e.g., Bonsai, Bicycle).
- Tanks and Temples & Deep Blending: Standard datasets for high-quality reconstruction.
- Zip-NeRF: Specifically used to test complex camera models, featuring fisheye lenses and distorted inputs where traditional splatting fails.
Key Insights and Ideas
- Organization over Raw Traversal: The paper argues that the biggest cost in GRT isn't the ray-tracing math itself, but how the computation is organized. By decoupling traversal from blending, they unlock massive parallelism.
- The "Hit Archive" Trade-off: Reusing hits saves computation but costs memory. The authors found that a fixed-size archive (512 slots) combined with a fallback for "long rays" provides the best balance of speed and memory usage.
- Locality is King: Even though Vulkan doesn't guarantee which pixels share a subgroup, the authors exploited the fact that neighboring pixels usually hit the same Gaussians. This "tile-level" spatial locality is the secret sauce behind their 10x speedup in gradient accumulation.
Key Results
- Speed: FastGRT achieves end-to-end training speedups of 1.9x to 4.97x compared to the 3DGRT baseline.
- Backward Pass Efficiency: In the "Bicycle" scene at full resolution, the backward pass time plummeted from 484ms to just 43ms.
- Quality Preservation: The optimizations do not change the underlying math. Consequently, FastGRT maintains the same high PSNR and SSIM scores as the original 3DGRT, outperforming standard 3DGS on distorted camera datasets.
- First of its Kind: It is the first open-source Vulkan-based GRT implementation that supports both training and rendering.
Limitations and Future Work
- Memory Footprint: Storing the "hit archive" for every pixel increases peak GPU memory usage. For very high-resolution scenes, this could become a constraint.
- New Bottlenecks: By drastically optimizing the backward pass and BVH updates, the forward pass has now become the primary bottleneck.
- Future Directions: The authors suggest exploring "ray reordering" to improve traversal coherence and using reduced-precision shading to further squeeze out performance.
For more details, the code is open-sourced at https://github.com/meetbanthia/fastgrt.
Summary updated