CUNet: A Compact Unsupervised Network For Image Classification

Le Dong, Ling He, Mengdie Mao, Gaipeng Kong, Xi Wu, Qianni Zhang, Xiaochun Cao, Ebroul Izquierdo

TL;DR

This paper introduces CUNet, a compact unsupervised convolutional neural network for image classification. CUNet learns filters using K-means on image patches, bypassing the need for large labeled datasets and computationally expensive gradient descent. It also proposes a novel weighted pooling method to improve robustness to image distortions.

What Problem Does This Paper Address?

Image classification is a fundamental but challenging task in computer vision, especially as datasets grow and intra-class variability increases. Traditional Convolutional Neural Networks (CNNs) achieve state-of-the-art performance but rely heavily on large amounts of labeled data and computationally intensive training via stochastic gradient descent (SGD). This poses a significant bottleneck, as obtaining labeled data is often scarce and expensive. Furthermore, the supervised nature of traditional CNNs limits their applicability in scenarios with limited labels. Existing unsupervised methods, like those based on bag-of-features (BoF) or spatial pyramid matching (SPM), struggle with larger datasets. While some methods like wavelet scattering networks (ScatNet) offer unsupervised filter banks, they lack the generalized ability of CNNs. CUNet aims to bridge this gap by offering an unsupervised, compact, and efficient network that learns discriminative features without extensive labeled data.

Methods

CUNet is a two-layer convolutional network with several novel components:

  • Unsupervised Filter Bank Learning: Instead of using SGD to learn filters, CUNet employs the K-means algorithm on randomly extracted image patches. This significantly reduces the reliance on labeled data and computational cost.
  • Pre-processing: Input images are first processed by extracting random patches. These patches are then normalized (mean subtraction, standard deviation division) and whitened to improve their configuration for K-means.
  • Convolution and Activation: Standard convolution operations are applied using the learned filters. Rectified Linear Units (ReLUs) are used for non-linear activation, chosen for their speed compared to tanh or sigmoid functions.
  • Weighted Pooling: A novel pooling method is introduced that considers the different "usefulness" of adjacent neurons within a pooling region. The weight of each neuron is determined by its proportion of the total response in the pooling region. This aims to improve robustness to small image distortions.
  • Histogram-based Output Layer: In the output layer, feature maps are first binary-mapped. Then, these binary maps are integrated into integer-valued images using learned coefficients. Histograms are computed in non-overlapped blocks of these images.
  • Max-Pooling on Histograms: To reduce feature redundancy and select competitive features, a max-pooling operation is applied to adjacent histogram blocks. This results in a more compact and discriminative feature representation.
  • Classifier: A linear SVM is used as the final classifier.

Datasets

CUNet was evaluated on the following benchmark datasets:

  • CIFAR-10: A dataset of 10 classes of natural images (32x32 pixels).
  • STL-10: A dataset of 10 classes of color images (96x96 pixels, downsampled to 32x32). It's noted for having fewer training examples than CIFAR-10.
  • Caltech101: A dataset with 101 classes of objects and a background class. Images were converted to grayscale and resized to 32x32.
  • MNIST: A dataset of handwritten digits (0-9), resized to 32x32.

Key Insights and Ideas

  • K-means for Filter Learning is Viable: The paper demonstrates that K-means, a simple and efficient clustering algorithm, can effectively learn discriminative filter banks for image classification, rivaling traditional CNNs that use complex optimization. This significantly lowers the barrier to entry for unsupervised feature learning.
  • Weighted Pooling Enhances Robustness: The proposed weighted pooling method shows a measurable improvement in classification accuracy compared to standard max and average pooling. This suggests that considering the relative importance of activations within a pooling region is beneficial for handling minor image variations.
  • Histogram-based Features Capture Spatial Information: By computing histograms in blocks and then applying max-pooling, CUNet effectively captures some spatial information without the explicit spatial layout modeling of methods like SPM, while also reducing feature redundancy.
  • Compactness and Efficiency: CUNet's design prioritizes compactness and efficiency, avoiding the need for millions of parameters and complex optimization, making it suitable for scenarios with limited computational resources or labeled data.

Key Results

CUNet achieved competitive classification accuracies across the tested datasets:

  • CIFAR-10: Achieved 80.31% accuracy with weighted pooling, outperforming max pooling by 0.38% and average pooling by 0.85%.
  • STL-10: Achieved 63.00% accuracy with weighted pooling, outperforming max pooling by 0.6% and average pooling by 0.4%.
  • Caltech101: Showed desirable performance, with weighted pooling outperforming max and average pooling. For example, with 30 training images per class, CUNet+Weighted pooling achieved 66.72% accuracy.
  • MNIST: Achieved an error rate of 1.80% with weighted pooling, demonstrating strong performance on this simpler dataset.

The paper also showed that increasing the number of filters generally improves accuracy up to a saturation point, and that smaller block sizes for histogram computation lead to higher accuracy but also larger feature dimensions.

Limitations and Future Work

  • Performance on Complex Classes: The authors acknowledge that CUNet shows less competitiveness on classes with complex backgrounds, high intra-class variability, and dynamic objects (e.g., certain animals).
  • Further Simplification: The authors express a desire to further simplify CUNet and make it feasible for more challenging large-scale datasets, particularly those with significant intra-class variance.
  • Block Size Trade-off: The choice of block size for histogram computation involves a trade-off between classification accuracy and feature dimension (computational release). The optimal choice depends on the specific application and available resources.

Summary updated

BibTeX
@article{dong2018cunet,
  author = {Le Dong and Ling He and Mengdie Mao and Gaipeng Kong and Xi Wu and Qianni Zhang and Xiaochun Cao and Ebroul Izquierdo},
  title = {{CUNet: A Compact Unsupervised Network For Image Classification}},
  journal = {IEEE Trans. Multimedia},
  year = {2018},
  doi = {10.1109/tmm.2017.2788205},
}
Figure