Skip to main content
QUICK REVIEW

[Paper Review] Transformer-CNN Cohort: Semi-supervised Semantic Segmentation by the Best of Both Students

Zheng Xu, Yunhao Luo|arXiv (Cornell University)|Sep 6, 2022
Advanced Neural Network ApplicationsComputer Science8 citations
TL;DR

This paper proposes Transformer-CNN Cohort (TCC), a novel semi-supervised semantic segmentation framework that leverages a vision transformer (ViT) and a convolutional neural network (CNN) as dual students. By introducing class-aware feature consistency distillation (CFCD) and consistency-aware cross distillation (CCD), TCC enforces multi-level consistency on both feature and prediction spaces via pseudo-labeling, achieving state-of-the-art performance on Cityscapes and Pascal VOC 2012 with significant accuracy gains over prior methods.

ABSTRACT

The popular methods for semi-supervised semantic segmentation mostly adopt a unitary network model using convolutional neural networks (CNNs) and enforce consistency of the model's predictions over perturbations applied to the inputs or model. However, such a learning paradigm suffers from two critical limitations: a) learning the discriminative features for the unlabeled data; b) learning both global and local information from the whole image. In this paper, we propose a novel Semi-supervised Learning (SSL) approach, called Transformer-CNN Cohort (TCC), that consists of two students with one based on the vision transformer (ViT) and the other based on the CNN. Our method subtly incorporates the multi-level consistency regularization on the predictions and the heterogeneous feature spaces via pseudo-labeling for the unlabeled data. First, as the inputs of the ViT student are image patches, the feature maps extracted encode crucial class-wise statistics. To this end, we propose class-aware feature consistency distillation (CFCD) that first leverages the outputs of each student as the pseudo labels and generates class-aware feature (CF) maps for knowledge transfer between the two students. Second, as the ViT student has more uniform representations for all layers, we propose consistency-aware cross distillation (CCD) to transfer knowledge between the pixel-wise predictions from the cohort. We validate the TCC framework on Cityscapes and Pascal VOC 2012 datasets, which outperforms existing SSL methods by a large margin.

Motivation & Objective

  • To address the limitations of existing semi-supervised learning (SSL) methods in semantic segmentation, particularly their inability to effectively learn global and local features and to leverage complementary knowledge from heterogeneous models.
  • To overcome the constraints of single-architecture SSL models that rely on consistency regularization alone, which often leads to feature and prediction redundancy.
  • To explore how vision transformers (ViT) and CNNs can collaboratively improve semi-supervised segmentation by transferring knowledge across heterogeneous feature spaces and prediction heads.
  • To enable effective pseudo-labeling not only at the prediction level but also at the feature level, using class-aware feature maps for improved feature-level consistency.
  • To demonstrate that heterogeneous model cohorts (ViT + CNN) can outperform homogeneous counterparts in SSL, even without ImageNet pre-training.

Proposed method

  • The TCC framework employs two distinct student models: one based on Vision Transformer (ViT) and another on Convolutional Neural Network (CNN), forming a heterogeneous cohort.
  • Class-aware feature consistency distillation (CFCD) is proposed to transfer knowledge between the two students by generating class-aware feature (CF) maps from pseudo-labeled predictions, enabling feature-level consistency regularization.
  • Consistency-aware cross distillation (CCD) enforces pixel-wise prediction consistency between the ViT and CNN students by distilling predictions across the cohort, improving prediction-level robustness.
  • Pseudo-labeling is applied to unlabeled data to generate both prediction and feature-level supervision, with CF maps computed by averaging features of pixels sharing the same pseudo-label.
  • The framework uses multi-level consistency regularization: CFCD operates on intermediate feature maps, while CCD operates on final segmentation predictions, ensuring complementary knowledge transfer.
  • The method is trained end-to-end with a combination of supervised loss on labeled data and consistency losses (CFCD and CCD) on unlabeled data, without requiring pre-training on ImageNet.

Experimental results

Research questions

  • RQ1Can a heterogeneous dual-student framework combining ViT and CNN improve semi-supervised semantic segmentation beyond single-architecture models?
  • RQ2How can knowledge be effectively transferred between models with fundamentally different architectures (e.g., MSA vs. Conv) in the context of SSL?
  • RQ3Does pseudo-labeling at the feature level—via class-aware feature maps—improve model generalization and feature discriminability compared to prediction-only pseudo-labeling?
  • RQ4Can consistency regularization be effectively applied across heterogeneous feature spaces and prediction heads to enhance robustness and performance?
  • RQ5To what extent can a dual-student framework outperform state-of-the-art methods even when trained from scratch, without ImageNet pre-training?

Key findings

  • TCC achieves state-of-the-art performance on both Cityscapes and Pascal VOC 2012, outperforming previous SSL methods by a large margin, including the prior SoTA method CPS.
  • On Pascal VOC 2012 with 1/8 label rate, TCC-S achieves 82.32% mIoU, a 5.49% improvement over fully supervised training using only labeled data.
  • Even without ImageNet pre-training, TCC-S surpasses the previous SoTA method that relies on pre-trained models, demonstrating strong generalization from unlabeled data.
  • Ablation studies show that both CFCD and CCD losses contribute positively to mIoU across all label rates, with CFCD showing diminishing returns as unlabeled data decreases.
  • TSNE visualization confirms that CFCD improves class-wise feature separability, making features more discriminative and reducing intra-class variance.
  • The ViT-based student consistently outperforms the CNN-based student in inference, validating the superior feature learning capability of MSA-based representations in the cohort.

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.