Abstract
Although deep convolutional neural networks (CNNs) have achieved remarkable results on object detection and segmentation, pre- and post-processing steps such as region proposals and non-maximum suppression (NMS) have traditionally been required. These steps result in high computational complexity and sensitivity to hyperparameters. In this work, we propose a novel end-to-end trainable deep neural network architecture, consisting of convolutional and recurrent layers, that generates the correct number of object instances and their segmentation masks given an image, using only a single network evaluation without any pre- or post-processing steps. We tested our approach on synthesized multi-digit MNIST images and the KITTI car detection benchmark. The proposed approach outperforms a strong CNN baseline on the synthesized digits datasets and shows promising results on KITTI car detection.
Introduction
In the mid-2010s, state-of-the-art object detection systems like R-CNN were characterized by multi-stage pipelines. These systems typically required a separate region proposal algorithm, followed by a CNN for classification, and finally a Non-Maximum Suppression (NMS) step to prune overlapping predictions. This "Frankenstein’s monster" approach was computationally expensive and brittle; for instance, a poorly tuned NMS threshold could lead to missing objects or redundant detections.
While early single-shot detectors like YOLO were emerging, they often relied on fixed output grids. DecompNet addresses these limitations by proposing a system that can handle a variable number of objects through a unified neural architecture, effectively baking the logic of NMS directly into the network's learned weights.
The DecompNet Architecture
The core of DecompNet is a two-stage decomposition process that translates raw pixels into individual instance masks.
- Category Decomposition: An all-convolutional network (CNN) processes the input image to produce category-specific "response maps." These maps act as heatmaps, highlighting regions likely to contain objects of a specific class (e.g., the digit "3" or "cars").
- Instance Decomposition: This stage utilizes a Recurrent Neural Network (RNN) to iteratively "peel off" individual instances from the category maps. At each time step, the RNN generates a mask for a single object. By maintaining a hidden state that "remembers" previously identified objects, the RNN can focus on the remaining instances in subsequent steps.
This sequential "peeling" mechanism allows the network to handle a variable number of objects without a fixed output size. The authors explored several recurrent block architectures to optimize this instance decomposition process, varying the placement of recurrent connections and the type of layers used.
The RNN effectively performs an implicit NMS by learning not to predict the same object twice.
Training and Loss Functions
Training DecompNet requires a loss function capable of handling sets of predictions. The authors employed a mask-based loss with bipartite matching, which finds the optimal one-to-one correspondence between predicted masks and ground truth instances.
A critical component of the training objective is the stop condition. To prevent the network from over-predicting (generating "ghost" instances), a penalty term compares the sum of predicted masks to the sum of ground truth masks. This ensures the RNN stops generating instances once the category map has been fully decomposed.
Experimental Results
The model was evaluated on two primary benchmarks:
- Synthesized MNIST: 100x100 images containing 5 to 10 overlapping digits. DecompNet outperformed a strong sliding-window CNN baseline, achieving high precision (0.84 for the digit '3') and successfully separating overlapping characters.
- KITTI Car Detection: On this real-world autonomous driving dataset, the model showed promising results, though performance degraded in highly crowded scenes (10-20+ cars).
Discussion and Future Work
While DecompNet represents a significant step toward end-to-end detection, several challenges remain. The simple RNN architecture used in this study struggled with high object density and very small objects. Future improvements could involve:
- Advanced Recurrent Units: Transitioning to LSTMs to better manage long-term dependencies in crowded images.
- Weighted Loss Functions: Implementing weighted activation maps to improve the detection of small objects.
- Architectural Simplification: Directly attaching the instance decomposition RNN to the main CNN feature maps, bypassing the explicit category decomposition step to improve speed.
In conclusion, DecompNet demonstrates that object detection and instance segmentation can be unified into a single, end-to-end trainable framework, paving the way for more efficient and robust computer vision systems.
Summary updated