A Low Memory Footprint Quantized Neural Network for Depth Completion of Very Sparse Time-of-Flight Depth Maps

Xiaowen Jiang, Valerio Cambareri, Gianluca Agresti, Cynthia Ifeyinwa Ugwu, Adriano Simonetto, Fabien Cardinaux, Pietro Zanuttigh · DOI

Abstract

Sparse active illumination enables precise time-of-flight depth sensing as it maximizes signal-to-noise ratio for low power budgets. However, depth completion is required to produce dense depth maps for 3D perception. We address this task with realistic illumination and sensor resolution constraints by simulating ToF datasets for indoor 3D perception with challenging sparsity levels. We propose a quantized convolutional encoder-decoder network for this task. Our model achieves optimal depth map quality by means of input pre-processing and carefully tuned training with a geometry-preserving loss function. We also achieve low memory footprint for weights and activations by means of mixed precision quantization-at-training techniques. The resulting quantized models are comparable to the state of the art in terms of quality, but they require very low GPU times and achieve up to 14-fold memory size reduction for the weights w.r.t. their floating point counterpart with minimal impact on quality metrics.

Introduction

Time-of-Flight (ToF) sensors are essential for 3D perception in modern mobile and AR/VR devices. To optimize for power efficiency, these sensors often utilize sparse active illumination, emitting a grid of dots rather than full-scene light. This results in extremely sparse depth data—often as low as 0.4% density—requiring sophisticated depth completion algorithms to reconstruct dense 3D maps. While state-of-the-art models can achieve high accuracy, their memory and computational requirements often exceed the capabilities of mobile hardware. This paper presents a collaboration between Sony and academic partners to develop a highly efficient, quantized neural network that addresses these constraints.

Methodology

The proposed solution is a quantized encoder-decoder CNN architecture designed to handle extreme sparsity through three primary innovations:

  1. Input Pre-processing: To reduce the computational load on the network, raw sparse points are pre-processed using Nearest Neighbors Interpolation (NNI) to create a rough initial depth map. Additionally, a Euclidean Distance Transform (EDT) provides an "uncertainty map," indicating the distance of each pixel from a ground-truth measurement.
  2. Geometry-Preserving Loss: A Normals Estimation Block is integrated into the training pipeline. By supervising the model with surface normals (the orientation of surfaces), the network learns to preserve sharp object boundaries and geometric details that are often lost in standard depth-only training.
  3. Mixed-Precision Quantization-Aware Training (QAT): Unlike uniform quantization, this model employs mixed precision. During training, the network learns which layers require 8-bit precision and which can be compressed to 4-bit. This allows for a 14-fold reduction in weight memory while maintaining high fidelity.
Architecture of the proposed quantized encoder-decoder network featuring input pre-processing and a geometry-preserving loss function.

Datasets

The model was rigorously evaluated on two benchmarks:

  • NYU-Depth v2: A standard indoor dataset subsampled to simulate realistic ToF patterns.
  • SDS-ST1k: A new dataset contributed by the authors, featuring 18,000 ray-traced images that simulate sparse ToF and RGB camera setups in diverse indoor environments.
Example of a sparse ToF depth map from the SDS-ST1k dataset, illustrating the extreme sparsity (0.4% density) addressed by the model.

Results and Discussion

The experimental results demonstrate that the proposed model achieves a superior balance between efficiency and accuracy:

  • Memory Footprint: The "Mixed ($W_*$)" model achieved a 14-fold reduction in weight memory, dropping from 198.5 MB to 13.9 MB compared to the floating-point baseline.
  • Inference Performance: The model achieved a median inference time of 5.11ms on an NVIDIA GTX 1080 Ti, significantly outperforming the state-of-the-art NLSPN (42.5ms).
  • Accuracy: On the NYU-v2 dataset, the Root Mean Square Error (RMSE) only increased from 63.7mm to 64.9mm, a negligible trade-off for the massive gain in efficiency.

Conclusion

This work demonstrates that combining geometry-aware loss functions with learned mixed-precision quantization enables high-performance depth completion on resource-constrained devices. Future research will focus on incorporating temporal information for video sequences and adapting the model to handle the specific noise profiles of real-world ToF hardware.

Summary updated

BibTeX
@misc{jiang2022low,
  author = {Xiaowen Jiang and Valerio Cambareri and Gianluca Agresti and Cynthia Ifeyinwa Ugwu and Adriano Simonetto and Fabien Cardinaux and Pietro Zanuttigh},
  title = {{A Low Memory Footprint Quantized Neural Network for Depth Completion of Very Sparse Time-of-Flight Depth Maps}},
  year = {2022},
  eprint = {2205.12918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.12918},
}
Figure