[Paper Review] GrooMeD-NMS: Grouped Mathematically Differentiable NMS for Monocular 3D Object Detection
GrooMeD-NMS introduces a differentiable, closed-form Non-Maximal Suppression (NMS) method for monocular 3D object detection that enables end-to-end training with losses applied after NMS. By formulating NMS as a matrix operation and applying unsupervised grouping and masking, it achieves state-of-the-art performance on the KITTI benchmark, outperforming both single-image and video-based methods.
Modern 3D object detectors have immensely benefited from the end-to-end learning idea. However, most of them use a post-processing algorithm called Non-Maximal Suppression (NMS) only during inference. While there were attempts to include NMS in the training pipeline for tasks such as 2D object detection, they have been less widely adopted due to a non-mathematical expression of the NMS. In this paper, we present and integrate GrooMeD-NMS -- a novel Grouped Mathematically Differentiable NMS for monocular 3D object detection, such that the network is trained end-to-end with a loss on the boxes after NMS. We first formulate NMS as a matrix operation and then group and mask the boxes in an unsupervised manner to obtain a simple closed-form expression of the NMS. GrooMeD-NMS addresses the mismatch between training and inference pipelines and, therefore, forces the network to select the best 3D box in a differentiable manner. As a result, GrooMeD-NMS achieves state-of-the-art monocular 3D object detection results on the KITTI benchmark dataset performing comparably to monocular video-based methods. Code and models at https://github.com/abhi1kumar/groomed_nms
Motivation & Objective
- To address the mismatch between training and inference in monocular 3D object detection, where NMS is applied only at inference but not during training.
- To develop a mathematically differentiable NMS that supports backpropagation and enables gradient-based optimization of 3D box selection.
- To improve the correlation between predicted box scores and 3D IoU by training the network to select the best-localized boxes through differentiable NMS.
- To eliminate the need for heuristic or non-differentiable post-processing by integrating NMS into the training pipeline as a learnable, GPU-friendly layer.
Proposed method
- Formulate classical NMS as a matrix operation using IoU matrices and score vectors to enable differentiable computation.
- Introduce unsupervised grouping and masking of candidate boxes to simplify the NMS expression and eliminate the need for matrix inversion.
- Replace hard thresholding in NMS with a soft pruning function (e.g., linear, exponential, sigmoidal) to maintain gradient flow during backpropagation.
- Integrate GrooMeD-NMS as a differentiable layer in the network, allowing gradients to flow from the loss after NMS back to the network parameters.
- Use a differentiable AP loss per image (imagewise AP) to better align training with inference, improving generalization.
- Combine self-balancing confidence scores with classification scores to improve localization accuracy during NMS.
Experimental results
Research questions
- RQ1Can a mathematically differentiable NMS be formulated as a closed-form expression using matrix operations for end-to-end 3D object detection?
- RQ2Does integrating NMS into the training pipeline improve the correlation between predicted box scores and 3D IoU?
- RQ3Can unsupervised grouping and masking simplify the differentiable NMS expression while preserving gradient flow and performance?
- RQ4Does training with a loss applied after NMS lead to better generalization and state-of-the-art performance on monocular 3D detection benchmarks?
Key findings
- GrooMeD-NMS achieves state-of-the-art performance on the KITTI benchmark, with a 3D mAP of 19.67% at 0.7 IoU and 14.32% at 0.5 IoU on the Val 1 split, surpassing previous SoTA methods.
- The method achieves a 3D mAP of 55.62% on the KITTI Val 2 split at 0.7 IoU, outperforming both M3D-RPN and Kinematic (Image) baselines.
- The Score-IoU correlation after NMS reaches 0.345, exceeding that of M3D-RPN, Kinematic (Image), and even Kinematic (Video), proving improved alignment between scores and localization quality.
- Training with GrooMeD-NMS reduces the performance gap between training and inference, as evidenced by consistent improvements across moderate and hard difficulty sets.
- The inference time per image is 0.15ms with GrooMeD-NMS, only slightly higher than classical NMS (0.12ms), and performance remains unchanged when switching back to classical NMS at inference.
- Ablation studies confirm that using self-balancing confidence scores and imagewise AP loss improves performance, while using classification scores alone for NMS is detrimental.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.