Self-supervised Learning with Fully Convolutional Networks

Zhengeng Yang, Hongshan Yu, Yong He, Zhi-Hong Mao, Ajmal MianarXiv 2020

Deep learning's success in semantic segmentation is often hampered by the high cost of pixel-level annotations. Self-supervised learning (SSL) offers a solution by pre-training models on unlabeled data using proxy tasks. However, traditional patch-based SSL methods, like solving jigsaw puzzles, suffer from computational inefficiency due to Siamese architectures and limited spatial context.

This paper introduces a novel SSL framework that re-imagines the jigsaw puzzle task through the lens of Fully Convolutional Networks (FCNs). By treating puzzle-solving as a patch-wise classification problem, the authors achieve significant performance gains while using substantially less unlabeled data than traditional methods.

Rethinking the Jigsaw Proxy Task

Traditional SSL methods for spatial reasoning typically rely on predicting relative locations or permutations of patches. These approaches often require multiple passes through a shared network (Siamese architecture), which scales poorly as the number of patches increases.

Comparison of SSL proxy tasks: (a) relative location prediction, (b) traditional jigsaw permutation matching, and (c) the proposed patch-wise index prediction using FCNs.

The proposed method shifts the perspective by viewing an FCN as a natural patch-wise classifier. Because the effective receptive field of a network is often smaller than its theoretical one, each output "pixel" in an FCN map effectively represents a specific patch of the input. This allows the model to process the entire shuffled image in one pass, significantly improving efficiency.

Methodology and Workflow

The workflow involves dividing an unlabeled image into a grid (e.g., 3x3 or 5x5), shuffling the patches, and stitching them back together into a single "jigsaw" image. The FCN then predicts the original absolute location of each patch simultaneously.

The proposed FCN-based jigsaw workflow: an image is shuffled, processed by an FCN, and mapped to original patch indices via adaptive pooling.

By fixing the central patch as a reference, the model learns complex spatial relationships across the entire image. This efficiency allows the model to scale from 9 to 25 patches, capturing richer contextual information and more spatial boundaries than previous methods.

Key Results and Insights

The FCN-based approach demonstrated impressive results across standard benchmarks:

  • Cityscapes Boost: The SSL-initialized model achieved a 5.8% mIoU improvement over random initialization on the Cityscapes dataset.
  • Efficiency on PASCAL VOC: The method reached 38.0% mIoU on PASCAL VOC 2012 using only 1.9 million training images, a fraction of the data required by competing ImageNet-based methods that use up to 192 million images.
  • Closing the Domain Gap: Pre-training on domain-specific data (e.g., urban scenes for Cityscapes) proved more effective than generic ImageNet pre-training, even with smaller datasets.

Ablation studies confirmed that the SSL task effectively captures fundamental low-level visual features, as freezing early layers while fine-tuning later ones yielded the best transfer results.

Conclusion

The FCN-based jigsaw framework provides a highly efficient and scalable alternative to traditional Siamese-based SSL. By leveraging the spatial preservation properties of FCNs, the model learns robust visual representations that bridge the gap between unlabeled data and high-performance semantic segmentation. Future work may explore applying this dense prediction logic to other tasks like depth estimation or optical flow.

Summary updated

BibTeX
@misc{yang2020self,
  author = {Zhengeng Yang and Hongshan Yu and Yong He and Zhi-Hong Mao and Ajmal Mian},
  title = {{Self-supervised Learning with Fully Convolutional Networks}},
  year = {2020},
  eprint = {2012.10017},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.10017},
}
Figure