Instant-NeRF: Instant On-Device Neural Radiance Field Training via Algorithm-Accelerator Co-Designed Near-Memory Processing

Yang Katie Zhao, Shang Wu, Jingqun Zhang, Sixu Li, Chaojian Li, Yingyan Celine Lin

Abstract

Neural Radiance Fields (NeRFs) have transformed 3D scene reconstruction, yet their high training latency on edge devices remains a significant barrier for real-time applications like AR/VR. This paper presents Instant-NeRF, a hardware-algorithm co-design that addresses the "memory wall" in NeRF training. By employing locality-sensitive 3D hash mapping and a Near-Memory Processing (NMP) accelerator integrated into DRAM, Instant-NeRF achieves up to a 266x speedup and 420x better energy efficiency compared to standard edge GPUs, while maintaining high rendering quality.

Introduction

Neural Radiance Fields (NeRFs) have revolutionized the field of 3D computer vision by enabling high-fidelity scene reconstruction from 2D images. While recent advancements like Instant-NGP (iNGP) have reduced training times to seconds on high-end cloud GPUs, the transition to edge devices—such as standalone VR headsets or AR glasses—remains problematic. On these resource-constrained platforms, training a single scene can take over an hour, rendering real-time interaction impossible.

This research identifies that the primary bottleneck for edge NeRF training is not raw computational power, but rather memory bandwidth. On typical edge GPUs, memory bandwidth utilization can be up to 21 times higher than arithmetic utilization. This "memory wall" is driven by the random nature of hash table lookups and the limited on-chip cache available on mobile hardware. Instant-NeRF addresses these challenges through a holistic co-design of algorithms and hardware.

The Memory Bottleneck in Edge NeRF

Profiling the state-of-the-art iNGP algorithm on edge hardware reveals two critical issues:

  1. Random Hash Lookups: iNGP utilizes multi-resolution hash tables to store 3D features. The standard hashing functions result in frequent, small, and non-sequential memory requests, which are inefficient for standard cache hierarchies.
  2. Cache Constraints: Edge devices lack the massive on-chip caches required to store large hash tables and intermediate Multi-Layer Perceptron (MLP) data, leading to constant and energy-expensive off-chip memory traffic.

Instant-NeRF: A Co-Design Approach

To overcome these limitations, Instant-NeRF introduces innovations at both the software and hardware levels.

Algorithmic Innovations

  • Locality-Sensitive 3D Hash Mapping: The researchers replaced standard random hashing with Morton encoding. This ensures that 3D points physically close in space are mapped to neighboring entries in the hash table. This change significantly improves data locality, reducing the average memory requests per 3D cube from 4.02 to 1.58.
  • Ray-First Point Streaming: By processing points sequentially along a single ray, the system maximizes register hits. Since consecutive points on a ray often reside within the same or adjacent voxels, this streaming order minimizes redundant memory fetches.

Hardware Microarchitecture

  • Near-Memory Processing (NMP): The core of the hardware solution is the integration of custom logic directly into LPDDR4 DRAM banks. By moving the computation to the data, the system provides massive internal bandwidth and eliminates the energy cost of moving data across the memory bus.
  • Mixed-Precision Computation: The accelerator employs dedicated INT32 Processing Elements (PEs) for index calculations and FP32 PEs for MLP training, optimizing for both speed and precision.
  • Heterogeneous Parallelism: The architecture utilizes parameter parallelism for hash tables (distributing levels across banks) and data parallelism for MLPs (duplicating weights across banks). This strategy minimizes inter-bank data movement.

Experimental Results

The framework was evaluated using the Synthetic-NeRF benchmark, featuring eight diverse scenes (e.g., Lego, Chair, and Ship). The results demonstrate a transformative leap in performance compared to NVIDIA Jetson TX2 and Xavier NX edge GPUs:

  • Speedup: Instant-NeRF achieved a speedup of 109.5× to 266.1× over the TX2 and 22.0× to 49.3× over the Xavier NX.
  • Energy Efficiency: The design improved energy efficiency by 172.9× to 420.3× compared to the TX2.
  • Quality: The algorithmic shifts resulted in a negligible rendering quality drop (approximately 0.23 dB PSNR), remaining superior to other fast NeRF variants like TensoRF and FastNeRF.

Discussion and Conclusion

Instant-NeRF demonstrates that the path to real-time 3D reconstruction on the edge lies in breaking the memory wall. By making the hash function spatially aware and moving computation into the DRAM, the proposed microarchitecture achieves massive gains with minimal area overhead (only 1.5% of a DRAM bank).

While the current implementation is optimized for hash-based embeddings, future work may explore the flexibility of NMP for evolving NeRF architectures. As it stands, Instant-NeRF provides a commercially viable blueprint for integrating high-performance 3D training capabilities into the next generation of mobile and wearable devices.

Summary updated

BibTeX
@inproceedings{zhao2023instant,
  author = {Yang Katie Zhao and Shang Wu and Jingqun Zhang and Sixu Li and Chaojian Li and Yingyan Celine Lin},
  title = {{Instant-NeRF: Instant On-Device Neural Radiance Field Training via Algorithm-Accelerator Co-Designed Near-Memory Processing}},
  booktitle = {DAC},
  year = {2023},
  url = {https://openreview.net/forum?id=QNKZQ3OS3P},
}
Figure