VQ-NeRF: Vector Quantization Enhances Implicit Neural Representations

Yiying Yang, Wen Liu, Fukun Yin, Xin Chen, Gang Yu, Jiayuan Fan, Tao ChenarXiv 2023 · DOI

Abstract

Neural Radiance Fields (NeRFs) provide high-quality 3D reconstructions but suffer from slow rendering speeds due to dense MLP queries. VQ-NeRF addresses this by rendering in a compressed latent feature space and utilizing a pre-trained Vector Quantized (VQ) decoder for high-resolution reconstruction. Combined with a multi-scale sampling strategy and CLIP-based semantic loss, VQ-NeRF achieves over 10x speedup compared to traditional implicit methods while maintaining superior visual fidelity and surface geometry.

Introduction

Implicit neural representations like NeRF have transformed 3D scene reconstruction. However, the requirement to query a Multi-Layer Perceptron (MLP) for thousands of points along every ray for every pixel creates a significant computational bottleneck. While explicit methods such as voxel grids or hash tables (e.g., Instant-NGP) offer faster training and inference, they often struggle with noisy geometry or structural gaps due to the lack of smooth inductive biases found in pure implicit functions.

VQ-NeRF proposes a hybrid approach that leverages the speed of compressed representations alongside the high-fidelity surface reconstruction typical of implicit models. By treating the rendering bottleneck as a signal compression problem, VQ-NeRF significantly reduces the number of expensive MLP queries required to synthesize a scene.

Methodology

The VQ-NeRF architecture integrates several key innovations to balance speed and quality:

Vector Quantization and Latent Rendering

Instead of rendering every pixel at full resolution, VQ-NeRF renders a feature map at a lower resolution (1/4 of the original). This feature map is quantized using a pre-trained codebook and then processed through a Variational Autoencoder (VAE) decoder to reconstruct the full-resolution image. This shift moves the computational load from per-pixel MLP queries to a fast, pre-trained convolutional decoder.

Multi-scale Sampling and SDF Geometry

To prevent the blurriness often associated with compression, the authors implement a dual-path optimization scheme. A "global sampling" branch optimizes a parameter-shared Signed Distance Function (SDF) volume renderer at the original scale, ensuring fine-grained details are preserved. The use of SDF-based geometry, similar to VolSDF, facilitates the extraction of clean, watertight 3D surfaces.

The VQ-NeRF training and testing pipeline, highlighting the VQ-VAE integration and multi-scale sampling strategy.

Semantic Consistency Loss

To maintain perspective consistency and visual realism, a semantic loss function based on CLIP (Contrastive Language-Image Pretraining) is incorporated. This minimizes the semantic discrepancy between synthesized views and ground truth images, ensuring that the upscaled results remain faithful to the scene's semantic structure.

Experiments and Results

The model was evaluated on the DTU, BlendedMVS, and H3DS datasets, which provide a range of challenging geometries and textures.

Performance and Speed

VQ-NeRF achieves an inference time of approximately 0.935 seconds per frame on an NVIDIA V100, representing a 14x speedup over VolSDF and a 20x speedup over Coco-INR. Despite this acceleration, the model maintains high quality, reaching a PSNR of 27.278 on the DTU dataset, outperforming both the original NeRF (22.162) and VolSDF (26.609).

Comparison of PSNR vs. Inference Time across various neural rendering methods. VQ-NeRF occupies the top-left region, indicating high quality and low latency.

Qualitative Analysis

Visually, VQ-NeRF produces cleaner backgrounds and sharper surface details compared to Instant-NGP, which can exhibit "floaters" or grainy artifacts during rapid reconstruction. The pre-trained VAE decoder acts as a powerful structural prior, helping the model fill in details even with sparse underlying 3D sampling.

Conclusion

VQ-NeRF demonstrates that vector quantization is a powerful tool for accelerating implicit neural representations. By rendering in a latent space and employing multi-scale optimization, the model achieves a significant speedup without sacrificing reconstruction quality. Future work will focus on reducing scene-specific training times (currently 3 to 10 hours) and developing generalizable representations that do not require extensive per-scene optimization.

Summary updated

BibTeX
@misc{yang2023vq,
  author = {Yiying Yang and Wen Liu and Fukun Yin and Xin Chen and Gang Yu and Jiayuan Fan and Tao Chen},
  title = {{VQ-NeRF: Vector Quantization Enhances Implicit Neural Representations}},
  year = {2023},
  eprint = {2310.14487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.14487},
}
Figure