Predicting High-precision Depth on Low-Precision Devices Using 2D Hilbert Curves
Mykhailo Uss, Ruslan Yermolenko, Oleksii Shashko, Olena Kolodiazhna, Ivan Safonov, Volodymyr Savin, Yoonjae Yeo, Seowon Ji, Jaeyun Jeong
TL;DR
This work tackles the limitation of high dynamic range depth prediction on devices with low-precision arithmetic by encoding depth as two components on a 2D Hilbert curve. A full-precision network is trained to predict these Hilbert components, and a lightweight LUT-based post-processing step on CPU reconstructs high-precision depth from low-bit predictions, effectively increasing depth bit-width by up to $\log_2 L$ bits. Experiments on stereo depth (DispNet and DPT variants) show that eight-bit quantized models with Hilbert-component prediction can match or exceed the quality of higher-precision baselines while delivering on-device speedups and energy savings, accompanied by substantial quantization-error reductions (up to $4.6\times$ on DSP). The approach is hardware-friendly, relies on standard quantization methods (PTQ/QAT), and generalizes to monocular depth, depth completion, and related dense-prediction tasks, offering a practical path to HDR depth on resource-limited devices.
Abstract
Dense depth prediction deep neural networks (DNN) have achieved impressive results for both monocular and binocular data, but still they are limited by high computational complexity, restricting their use on low-end devices. For better on-device efficiency and hardware utilization, weights and activations of the DNN should be converted to low-bit precision. However, this precision is not sufficient to represent high dynamic range depth. In this paper, we aim to overcome this limitation and restore high-precision depth from low-bit precision predictions. To achieve this, we propose to represent high dynamic range depth as two low dynamic range components of a Hilbert curve, and to train the full-precision DNN to directly predict the latter. For on-device deployment, we use standard quantization methods and add a post-processing step that reconstructs depth from the Hilbert curve components predicted in low-bit precision. Extensive experiments demonstrate that our method increases the bit precision of predicted depth by up to three bits with little computational overhead. We also observed a positive side effect of quantization error reduction by up to 4.6 times. Our method enables effective and accurate depth prediction with DNN weights and activations quantized to eight-bit precision.
