Skip to main content
QUICK REVIEW

[Paper Review] SCTNet: Single-Branch CNN with Transformer Semantic Information for Real-Time Segmentation

Zhengze Xu, Dongyue Wu|arXiv (Cornell University)|Dec 28, 2023
Advanced Neural Network ApplicationsComputer Science6 citations
TL;DR

SCTNet proposes a single-branch CNN for real-time semantic segmentation that leverages a training-only transformer branch to inject long-range contextual semantics into a lightweight CNN, using a novel CFBlock and semantic alignment module. The method achieves state-of-the-art accuracy-speed trade-off on Cityscapes, ADE20K, and COCO-Stuff-10K without inference overhead from additional branches.

ABSTRACT

Recent real-time semantic segmentation methods usually adopt an additional semantic branch to pursue rich long-range context. However, the additional branch incurs undesirable computational overhead and slows inference speed. To eliminate this dilemma, we propose SCTNet, a single branch CNN with transformer semantic information for real-time segmentation. SCTNet enjoys the rich semantic representations of an inference-free semantic branch while retaining the high efficiency of lightweight single branch CNN. SCTNet utilizes a transformer as the training-only semantic branch considering its superb ability to extract long-range context. With the help of the proposed transformer-like CNN block CFBlock and the semantic information alignment module, SCTNet could capture the rich semantic information from the transformer branch in training. During the inference, only the single branch CNN needs to be deployed. We conduct extensive experiments on Cityscapes, ADE20K, and COCO-Stuff-10K, and the results show that our method achieves the new state-of-the-art performance. The code and model is available at https://github.com/xzz777/SCTNet

Motivation & Objective

  • To address the speed-accuracy trade-off in real-time semantic segmentation by eliminating the computational cost of dual-branch architectures.
  • To enable a lightweight single-branch CNN to learn rich long-range context without sacrificing inference speed.
  • To bridge the semantic gap between CNN and transformer features during training for effective knowledge distillation.
  • To achieve state-of-the-art performance on benchmark datasets while maintaining real-time inference.

Proposed method

  • Introduces a training-only transformer branch to extract long-range contextual features, which are not used during inference.
  • Proposes CFBlock (Conv-Former Block), a CNN-based module that mimics self-attention mechanisms using only depthwise and pointwise convolutions to capture long-range dependencies.
  • Designs the Semantic Information Alignment Module (SIAM) to align features between the transformer and CNN branches via shared decoder heads and feature refinement.
  • Trains the single-branch CNN using knowledge distillation from the transformer branch, enabling it to learn high-level semantics without additional inference cost.
  • Deploys only the single-branch CNN at inference, ensuring high efficiency and real-time performance.
  • Employs feature-sharing and multi-scale fusion in the decoder to preserve spatial details while integrating global context.

Experimental results

Research questions

  • RQ1Can a single-branch CNN achieve state-of-the-art accuracy in real-time semantic segmentation without relying on a dual-branch architecture?
  • RQ2How effectively can a transformer-based semantic branch improve a lightweight CNN’s long-range context modeling during training?
  • RQ3What mechanisms are most effective for aligning features between CNN and transformer branches to minimize semantic gap?
  • RQ4Can the proposed method maintain real-time inference speed while outperforming existing dual-branch real-time models?

Key findings

  • SCTNet achieves new state-of-the-art performance on the Cityscapes validation set, establishing a new speed-accuracy frontier.
  • On ADE20K, SCTNet-B produces finer-grained masks and more accurate large-area predictions than SegFormer-B0, RTFormer-B, TopFormer-B, and SeaFormer-B.
  • On Cityscapes, SCTNet-B achieves superior boundary accuracy for thin and small objects like poles, traffic lights, and signs compared to SeaFormer-B and STDC2.
  • The model achieves 32.8 FPS on Cityscapes, exceeding the real-time threshold of 30 FPS, indicating strong inference efficiency.
  • Visualizations confirm that SCTNet generates more consistent and detailed segmentation masks, especially in complex scenes with fine structures.
  • The ablation study validates that both CFBlock and SIAM are essential for performance, with SIAM significantly reducing the semantic gap between branches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.