CVNov 7, 2023

Analysis of NaN Divergence in Training Monocular Depth Estimation Model

arXiv:2311.03938v1h-index: 8
Originality Incremental advance
AI Analysis

This addresses a practical issue for researchers and practitioners in computer vision by offering incremental solutions to prevent training failures.

The study tackled the problem of NaN loss disrupting training in monocular depth estimation models by identifying three vulnerabilities causing it, such as square root loss and log-sigmoid issues, and provided guidelines that improved optimization stability and performance.

The latest advances in deep learning have facilitated the development of highly accurate monocular depth estimation models. However, when training a monocular depth estimation network, practitioners and researchers have observed not a number (NaN) loss, which disrupts gradient descent optimization. Although several practitioners have reported the stochastic and mysterious occurrence of NaN loss that bothers training, its root cause is not discussed in the literature. This study conducted an in-depth analysis of NaN loss during training a monocular depth estimation network and identified three types of vulnerabilities that cause NaN loss: 1) the use of square root loss, which leads to an unstable gradient; 2) the log-sigmoid function, which exhibits numerical stability issues; and 3) certain variance implementations, which yield incorrect computations. Furthermore, for each vulnerability, the occurrence of NaN loss was demonstrated and practical guidelines to prevent NaN loss were presented. Experiments showed that both optimization stability and performance on monocular depth estimation could be improved by following our guidelines.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes