Abstract
Joint object detection and semantic segmentation is essential in many fields such as self-driving cars. An initial attempt towards this goal is to simply share a single network for multi-task learning. We argue that it does not make full use of the fact that detection and segmentation are mutually beneficial. In this paper, we propose a framework called TripleNet to deeply boost these two tasks. On the one hand, to deeply join the two tasks at different scales, triple supervisions including detection-oriented supervision and class-aware/agnostic segmentation supervisions are imposed on each layer of the decoder. Class-agnostic segmentation provides an objectness prior to detection and segmentation. On the other hand, to further intercross the two tasks and refine the features in each scale, two light-weight modules (i.e., the inner-connected module and the attention skip-layer fusion) are incorporated. Because segmentation supervision on each decoder layer are not performed at the test stage and two added modules are light-weight, the proposed TripleNet can run at a real-time speed (16 fps). Experiments on the VOC 2007/2012 and COCO datasets show that TripleNet outperforms all the other one-stage methods on both two tasks (e.g., 81.9% mAP and 83.3% mIoU on VOC 2012, and 37.1% mAP and 59.6% mIoU on COCO) by a single network.
Introduction
Object detection and semantic segmentation are foundational tasks in computer vision, crucial for applications like autonomous driving and robotics. While detection focuses on identifying bounding boxes and object categories, segmentation aims for pixel-level classification. Historically, these tasks were treated independently or joined through "naive" shared-encoder architectures. However, such simple sharing fails to exploit the inherent synergy between the two: segmentation provides rich contextual features for detection, while detection offers an "objectness" prior that can refine segmentation boundaries.
The authors of TripleNet argue that deep integration across multiple scales is necessary to fully realize these mutual benefits. They propose a framework that applies supervision at every stage of the decoding process, ensuring that the network learns to handle objects of varying sizes while maintaining real-time performance.
Methodology
TripleNet is built upon an encoder-decoder architecture designed for deep multi-task integration. Its primary innovation lies in the use of Triple Supervision and specialized fusion modules.
Triple Supervision
Unlike standard models that supervise only the final output, TripleNet imposes three distinct loss functions on every layer of the decoder:
- Detection-oriented supervision: Standard bounding box regression and classification.
- Class-aware segmentation supervision: Pixel-level labels for specific object categories.
- Class-agnostic segmentation supervision (CAS): A binary mask distinguishing objects from the background. CAS acts as a powerful spatial prior, helping the network focus on relevant regions across both tasks.
Key Modules
To further refine features and facilitate task interaction, TripleNet introduces two light-weight modules:
- Inner-Connected Module (IC): This module allows the detection and segmentation branches within a single decoder layer to share features, refining the final predictions through cross-task communication.
- Attention Skip-Layer Fusion (ASF): When combining high-level decoder features with low-level encoder features, TripleNet uses a Squeeze-and-Excitation (SE) block. This attention mechanism emphasizes informative features while suppressing noise from the encoder.
Finally, the Multi-scale Fused Segmentation (MFS) component upsamples and concatenates features from different decoder layers to produce a high-resolution final segmentation map.
Experimental Results
TripleNet was evaluated on the PASCAL VOC 2007/2012 and MS COCO datasets. It achieved state-of-the-art results for one-stage joint networks, reaching 81.9% mAP and 83.3% mIoU on VOC 2012. On the more challenging COCO dataset, it achieved 37.1% mAP and 59.6% mIoU.
A key advantage of TripleNet is its efficiency. Because the segmentation supervision heads are only used during training and discarded during inference, the model achieves a real-time speed of 16 fps on an NVIDIA Titan X. Ablation studies confirmed the value of each component, with the Inner-Connected module and Class-Agnostic Supervision providing significant performance boosts (e.g., IC added 0.5% mAP and CAS added 0.2% mAP).
Conclusion
TripleNet demonstrates that deep, multi-scale integration and triple supervision can significantly enhance the performance of joint detection and segmentation networks. By leveraging segmentation as a "teacher" during training, the model gains accuracy without sacrificing real-time inference speed. Future research will continue to explore the balance between scale-specific and scale-unspecific features to further optimize multi-task learning.
Summary updated