CUNet: A Compact Unsupervised Network for Image Classification

Le Dong, Ling He, Gaipeng Kong, Qianni Zhang, Xiaochun Cao, Ebroul Izquierdo

TL;DR

CUNet (Compact Unsupervised Network) replaces the computationally expensive backpropagation of traditional CNNs with simple K-means clustering to learn image filters. By introducing a novel "weighted pooling" method and a histogram-based output layer, it achieves competitive classification accuracy on standard benchmarks without requiring massive labeled datasets or specialized GPU hardware.

What Problem Does This Paper Address?

Modern deep learning success is largely built on Convolutional Neural Networks (CNNs) trained via Stochastic Gradient Descent (SGD). While powerful, this approach has significant drawbacks: it requires millions of labeled images (which are often scarce), demands massive computational resources (GPUs), and involves a "black box" optimization process that can be prone to getting stuck in local optima.

Existing alternatives, like ScatNet, use predefined wavelet filters to avoid training, but these fixed filters often fail to capture the diverse features present in natural images. The authors of CUNet sought a "middle ground": a network that learns its filters unsupervised from the data itself, making it both efficient and adaptable.

Methods

CUNet is a two-layer architecture designed for simplicity and efficiency. Its core components include:

  • Unsupervised Filter Learning: Instead of SGD, CUNet uses the classical K-means algorithm. It extracts random patches from images, normalizes and whitens them, and then runs K-means to find the most representative "centroids." These centroids become the convolution filters for the network.
  • Weighted Pooling: Traditional networks use max or average pooling. CUNet introduces weighted pooling, where each neuron's contribution to the pooled value is proportional to its relative activation strength within the pooling window. This is designed to be more robust to small image distortions.
  • Histogram-based Output Layer: In the final stage, feature maps are converted into binary "B-maps" (1 if positive, 0 otherwise). These are integrated and processed into block-wise histograms. To keep the feature vector manageable, a max-pooling operation is applied across adjacent histogram blocks before passing the final representation to a standard linear SVM for classification.
Fig. 1: CUNet structure.
Fig. 2: Details of CUNet output layer.

Datasets

The authors evaluated CUNet on four widely used image classification benchmarks:

  • CIFAR-10: 60,000 small natural images across 10 classes.
  • STL-10: Designed for unsupervised learning, providing fewer labeled examples and larger images.
  • MNIST: The classic dataset of handwritten digits.
  • Caltech101: A diverse dataset containing 101 object categories.

Key Insights and Ideas

  • K-means as a Feature Learner: The paper demonstrates that even without labels, K-means can discover highly discriminative filters that rival those learned through supervised SGD in certain contexts.
  • The Power of Weighted Pooling: By not throwing away smaller activations (like max pooling) or diluting strong ones (like average pooling), weighted pooling provides a more nuanced local representation. Experiments showed it consistently outperformed standard pooling methods by roughly 0.4% to 0.8%.
  • Efficiency vs. Accuracy Trade-offs: The authors found that while increasing the number of filters improves accuracy, it eventually hits a saturation point where adding more filters only introduces redundancy. Similarly, smaller histogram block sizes yield better accuracy but significantly increase the dimensionality of the final feature vector.

Key Results

CUNet achieved impressive results considering its unsupervised nature and lack of data augmentation:

  • CIFAR-10: Reached 80.31% accuracy, outperforming several other unsupervised methods like Tiled CNN and K-means (Triangle).
  • STL-10: Achieved 63.00% accuracy. The authors noted that CUNet performs exceptionally well on static objects like airplanes (81.38%) and ships (81.00%) but struggles with dynamic animals like dogs (31.00%).
  • MNIST: Achieved a low error rate of 1.80%.
  • Caltech101: With 30 training images per class, it reached 66.72% accuracy, showing competitiveness with more complex models like DeconvNet.
Fig. 3: Classification accuracy of each class in STL-10.

Limitations and Future Work

While CUNet is efficient, it currently struggles with high intra-class variability and complex backgrounds. As seen in the STL-10 and MNIST results, objects that appear in many different poses or environments (like dogs or certain handwritten digits) are much harder for the network to classify accurately than rigid, centered objects.

Fig. 5: Classification error rate of each class in basic MNIST.

The authors suggest that future work should focus on scaling CUNet to even more challenging, large-scale datasets and finding ways to better handle significant intra-class variance.

Summary updated

BibTeX
@article{dong2018cunet,
  author = {Le Dong and Ling He and Gaipeng Kong 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