TL;DR
This paper introduces ASDR, a novel algorithm-hardware co-design framework that significantly accelerates neural rendering for applications like virtual reality. By intelligently adapting sampling strategies and optimizing data access through Computing-in-Memory (CIM), ASDR achieves substantial speedups with minimal impact on image quality, making real-time neural rendering more feasible on resource-constrained devices.
What Problem Does This Paper Address?
Neural Radiance Fields (NeRF) have revolutionized 3D scene representation and rendering, enabling photorealistic image generation from novel viewpoints. However, current NeRF models suffer from high computational and memory demands, leading to slow inference times and excessive power consumption. This makes them impractical for real-time applications, especially on edge devices or in immersive environments like VR/AR where low latency and low power are critical. Existing accelerators often focus on optimizing specific stages of the rendering pipeline, neglecting the interplay between algorithmic choices and hardware capabilities, and failing to address the irregular and heavy data access patterns inherent in NeRF.
Methods
ASDR tackles these challenges through a combination of algorithmic and architectural innovations:
- Adaptive Sampling Strategy: Instead of uniformly sampling points along rendering rays, ASDR dynamically adjusts the number of samples per pixel based on its rendering difficulty. This is achieved by analyzing color variance in a subset of pixels and using interpolation to determine the optimal number of samples for each pixel, reducing unnecessary computations.
- MLP Decoupling Scheme: The authors observe that the color MLP contributes significantly more to computational overhead than the density MLP. They propose decoupling these two MLPs and approximating color predictions for some points using linear interpolation, thereby reducing the number of color MLP executions.
- CIM-based Architecture with Data Reuse: ASDR employs a Computing-in-Memory (CIM) architecture, specifically using ReRAM crossbars, to perform computations directly within memory. This minimizes data movement, a major bottleneck. To further optimize data access, ASDR introduces:
- Hybrid Address Generation: A novel scheme for low-resolution embedding tables that avoids hash mapping and uses bit reordering/concatenation to ensure parallel access to different memory banks, reducing conflicts.
- Register-based Cache: A cache mechanism that exploits inter-ray and intra-ray locality to store frequently accessed embedding table entries, bypassing repeated memory accesses.
- Data Reuse: The architecture is designed to maximize data reuse by intelligently mapping data and addresses.
Datasets
The paper evaluates ASDR on five commonly used datasets:
- Synthetic-NeRF [23] (Scenes: Mic, Hotdog, Ship, Chair, Ficus, Lego)
- Synthetic-NSVF [22] (Scene: Palace)
- BlendedMVS [12] (Scene: Fountain)
- Tanks&Temples [38] (Scene: Family)
- Instant-NGP [24] (Scene: Fox)
These datasets represent a mix of synthetic and real-world scenes with varying resolutions and rendering complexities.
Key Insights and Ideas
- Pixel Difficulty Matters: The rendering difficulty varies significantly across pixels. Focusing computational effort only where needed (i.e., for difficult pixels) can yield substantial savings without sacrificing quality.
- Color MLP is the Bottleneck: The color prediction MLP is the primary computational burden in NeRF rendering. Optimizing this stage offers the greatest potential for performance gains.
- Spatial Locality is Key: Both neighboring rays (inter-ray locality) and points along the same ray (intra-ray locality) exhibit high spatial locality, often residing within the same 3D voxels. This observation is crucial for effective data reuse and caching.
- CIM is a Natural Fit: Computing-in-Memory architectures are well-suited to address the memory-intensive nature of NeRF, especially when combined with intelligent data mapping and reuse strategies.
- Algorithm-Hardware Co-design is Essential: Significant performance improvements are achieved by jointly optimizing algorithmic choices (sampling, MLP decoupling) with hardware architecture (CIM, caching, address generation).
Key Results
- Speedup: ASDR achieves significant speedups:
- Up to 9.55× over a state-of-the-art NeRF accelerator (Neurex) on an edge device (Xavier NX).
- Up to 11.84× over a high-end GPU (RTX 3070) in server configurations.
- ASDR-Edge provides a 49.61× speedup over Xavier NX.
- Rendering Quality: ASDR maintains nearly lossless rendering quality, with an average PSNR difference of only 0.07 dB compared to Instant-NGP. It even shows slight PSNR improvements in some scenes, suggesting adaptive sampling can filter noise. SSIM and LPIPS metrics also show comparable quality to baselines.
- Energy Efficiency: ASDR achieves an average of 59.22× higher energy efficiency compared to GPUs and 4.08× higher than accelerators.
- Area and Power: The ASDR architecture incurs minimal area and power costs, making it suitable for edge deployments.
Limitations and Future Work
- Generalizability to Other NeRF Models: While the paper argues for generalizability, the primary evaluation is on Instant-NGP. Further validation on a wider range of NeRF variants is suggested.
- 3D Gaussian Splatting: The paper briefly discusses 3D Gaussian Splatting (3DGS) as an alternative approach. The authors plan to explore adapting their adaptive sampling technique to optimize 3DGS rendering in future work.
- Real-time Training: The focus of this work is on inference speed. Optimizing NeRF training for real-time performance remains an open challenge.
- Hardware Implementation Details: While area and power are reported, detailed performance characteristics of the ReRAM CIM arrays themselves could be further explored.
Summary updated