Unsupervised Visual Representation Learning with Increasing Object Shape Bias

Zhibo Wang, Yan Shen, Xiaoyu Zhang, Niels da Vitoria LoboarXiv 2019 · DOI

Abstract

Traditional supervised learning continues to push Convolutional Neural Networks (CNNs) toward state-of-the-art performance. However, the scarcity of large-scale annotated data remains a significant bottleneck due to high labeling costs; even benchmarks like ImageNet are increasingly over-fitted by complex models. Inspired by the success of unsupervised methods like BERT in Natural Language Processing (NLP), we propose a novel unsupervised learning framework based on Contrastive Predictive Coding (CPC). Our method enables training on unlabeled images to achieve performance levels comparable to supervised models of similar complexity. By leveraging unlimited training samples, this approach paves the way for universal, large-scale pre-trained computer vision models.

Introduction: The Texture Bias Problem

In deep learning, high-quality human-annotated data is a precious resource. Beyond the cost of acquisition, standard CNNs suffer from a fundamental "texture bias." While humans identify objects primarily by shape, CNNs often rely on superficial textures (e.g., fur patterns to identify a cat). This reliance makes models fragile under varying lighting or background conditions. We address this by introducing an unsupervised method that forces models to prioritize underlying geometry (shape) over superficial patterns.

Methodology

Our framework utilizes a three-pronged approach to learn robust visual representations without human labels.

1. Contrastive Predictive Coding (CPC)

The model uses the image itself as a supervisory signal. An image is decomposed into a 7x7 grid of overlapping patches. The objective is to predict the feature vectors of "missing" patches based on the surrounding "context" patches.

Figure 4: The process of converting an image patch grid into a feature vector matrix using a computer vision encoder.

2. Transformer-based Autoregression

Unlike previous CPC implementations that used RNNs or LSTMs, we employ Transformers to model spatial dependencies. This architecture facilitates better parallelization and allows the model to capture long-range relationships across the image grid.

3. Increasing Shape Bias via Neural Style Transfer

To prevent the model from "cheating" by using local textures to predict neighbors, we apply Neural Style Transfer. By generating five versions of each training image—each with a distinct artistic style—the model is forced to identify the common denominator: the object's shape. This process treats texture as "negative information" that must be filtered out to reach high-level latent representations.

Key Insights: Spatial Context and Self-Supervision

A critical component of our approach is the use of spatial context. By employing a 7x7 grid with 50% overlap, the model learns the inherent redundancy and spatial correlation in visual data. This forces an understanding of how components (e.g., a wheel) relate to the global structure (e.g., a car).

Figure 6: Visualizing the autoregressive prediction task where the model predicts missing patches by moving in multiple directions (right, down, left, up).

This "self-supervision" creates a supervised learning environment from unlabeled data, allowing for virtually unlimited training scales.

Experimental Results and Datasets

We evaluated our framework on two major benchmarks:

  • ImageNet: Used to verify the transferability of unsupervised pre-training to standard classification tasks.
  • Webvision: A massive, "noisy" dataset of web-crawled images, serving as an ideal environment for testing unsupervised robustness.

Preliminary results indicate that our method achieves state-of-the-art performance levels comparable to supervised models of equivalent complexity, effectively bridging the gap between supervised and unsupervised vision tasks.

Limitations and Future Outlook

While promising, the current approach involves significant computational overhead due to the generation of multiple style-transferred image versions. Future research will explore more diverse or learned augmentations to further decouple shape from texture. The ultimate goal remains the development of a "universal" large-scale pre-trained vision model capable of scaling to billions of images.

Summary updated

Abstract

(Very early draft)Traditional supervised learning keeps pushing convolution neural network(CNN) achieving state-of-art performance. However, lack of large-scale annotation data is always a big problem due to the high cost of it, even ImageNet dataset is over-fitted by complex models now. The success of unsupervised learning method represented by the Bert model in natural language processing(NLP) field shows its great potential. And it makes that unlimited training samples becomes possible and the great universal generalization ability changes NLP research direction directly. In this article, we purpose a novel unsupervised learning method based on contrastive predictive coding. Under that, we are able to train model with any non-annotation images and improve model's performance to reach state-of-art performance at the same level of model complexity. Beside that, since the number of training images could be unlimited amplification, an universal large-scale pre-trained computer vision model is possible in the future.
BibTeX
@misc{wang2019unsupervised,
  author = {Zhibo Wang and Yan Shen and Xiaoyu Zhang and Niels da Vitoria Lobo},
  title = {{Unsupervised Visual Representation Learning with Increasing Object Shape Bias}},
  year = {2019},
  eprint = {1911.07272},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.07272},
}
Figure