SemiCVT: Semi-Supervised Convolutional Vision Transformer for Semantic Segmentation

Huimin Huang, Shiao Xie, Lanfen Lin, Ruofeng Tong, Yen-Wei Chen, Yuexiang Li, Hong Wang, Yawen Huang, Yefeng Zheng

Abstract

SemiCVT is a novel semi-supervised learning (SSL) framework for semantic segmentation designed to bridge the gap between Convolutional Neural Networks (CNNs) and Vision Transformers. By combining the local feature extraction capabilities of CNNs with the global context of Transformers, SemiCVT addresses common pitfalls in SSL such as limited receptive fields and class confusion. The framework introduces an Intra-model Local-Global Interaction (LGI) module operating in the Fourier domain and a cross-teaching strategy based on class-level statistics. Experimental results on PASCAL VOC 2012 and Cityscapes demonstrate that SemiCVT achieves state-of-the-art performance, particularly when labeled data is scarce.

Introduction

Semantic segmentation—assigning a category label to every pixel in an image—is a fundamental task in computer vision but requires extensive pixel-level annotations. Semi-supervised learning (SSL) mitigates this by leveraging large amounts of unlabeled data. However, existing SSL methods often suffer from two major issues: the Receptive Field Gap and the Feature Gap. CNN-based models often miss global context, leading to fragmented object segmentation. Furthermore, focusing solely on pixel-to-pixel consistency ignores higher-level semantic relationships, resulting in "class confusion" where small objects are misidentified as part of larger ones.

Visualizing the limitations of standard Mean Teacher (MT) models: limited dependency and class confusion.

Methodology

SemiCVT employs a dual-branch architecture that runs a CNN and a Transformer in parallel within a Mean-Teacher framework. This design allows the model to benefit from both local inductive biases and global relational modeling.

Intra-model Local-Global Interaction (LGI)

To facilitate communication between the CNN and Transformer branches, SemiCVT utilizes the Fourier domain. By applying a Fast Fourier Transform (FFT), the model performs global updates efficiently. According to the spectral convolution theorem, point-wise operations in the Fourier domain correspond to circular convolutions in the spatial domain, allowing for global context exchange at a fraction of the computational cost of standard self-attention mechanisms.

Inter-model Class-wise Consistency and Cross-Teaching

Unlike traditional methods that enforce pixel-wise consistency, SemiCVT utilizes bi-level graphs to represent relationships between different classes and image patches. This promotes class-level logic (e.g., the likelihood of seeing a boat near water) rather than just local pixel similarity.

Architectural comparison between standard Mean Teacher and the proposed SemiCVT framework.

The framework also implements a cross-teaching strategy: the Teacher’s Transformer branch guides the Student’s CNN branch, and vice versa. This diversity in teaching forces the models to learn complementary features and prevents the "confirmation bias" common in SSL, where a model reinforces its own incorrect guesses.

Experimental Results

The authors evaluated SemiCVT on PASCAL VOC 2012 and Cityscapes. On PASCAL VOC, with only 366 labeled images (1/4 partition), SemiCVT achieved 74.99% mIoU, a 1.3% improvement over previous state-of-the-art methods like U2PL. On the complex Cityscapes dataset, it reached 75.41% mIoU on the 1/8 partition. Qualitative analysis confirms that SemiCVT produces cleaner segmentations with better structural integrity for large objects and higher accuracy for small, ambiguous objects.

Discussion and Conclusion

The primary strength of SemiCVT lies in its efficient use of the Fourier domain for global interaction and its robust cross-teaching mechanism. While the dual-backbone approach (ResNet-101 and Swin Transformer) increases computational overhead and memory footprint, the performance gains in low-data regimes are significant. Future work may involve optimizing graph computations for datasets with larger numbers of semantic categories and extending the Fourier-based interaction to multi-modal tasks, such as combining image and text data.

Summary updated

BibTeX
@inproceedings{huang2023semicvt,
  author = {Huimin Huang and Shiao Xie and Lanfen Lin and Ruofeng Tong and Yen-Wei Chen and Yuexiang Li and Hong Wang and Yawen Huang and Yefeng Zheng},
  title = {{SemiCVT: Semi-Supervised Convolutional Vision Transformer for Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.01091},
}
Figure