TL;DR
This paper introduces DESK (Deep Semantic Kernel), a novel approach that uses a Siamese deep neural network to learn a kernel for Support Vector Machines (SVMs). DESK excels at image classification with very few training examples from target classes by leveraging transfer learning from non-target classes, significantly reducing training time and data requirements compared to traditional deep learning methods.
What Problem Does This Paper Address?
Deep learning models, particularly Convolutional Neural Networks (CNNs), have achieved state-of-the-art results in image classification. However, their practical application is often hindered by a massive requirement for labeled training data and substantial training time. This makes them unsuitable for scenarios with limited data, such as specialized domains or rare object recognition. While transfer learning with pre-trained CNN features has shown promise, this paper aims to further reduce the data and time burden by learning a kernel directly from a Siamese network, rather than just using pre-trained features. The goal is to achieve high classification accuracy with minimal target class data and training effort.
Methods
The core of the proposed method, DESK, is a Siamese deep neural network. Unlike standard CNNs that classify individual images, a Siamese network takes pairs of images as input and learns to estimate the probability that they belong to the same class. This learned similarity score is then transformed into a Gram matrix, which serves as a kernel for a Support Vector Machine (SVM).
Key aspects of their method include:
- Siamese Network Architecture: The network consists of paired convolutional layers (sharing weights) followed by fully connected layers. The output is a single scalar representing similarity.
- Transfer Learning: The convolutional layers are initialized with weights from pre-trained CNNs (trained on non-target classes) and are often frozen. The fully connected layers are then trained on target class image pairs. Two levels of transfer learning are explored:
- Conv-transfer: Only the fully connected layers are trained on target class data.
- Full-transfer: Both convolutional and fully connected layers are trained on non-target class data, and then only the SVM is trained on target classes.
- Kernel Construction (Post-processing): The raw similarity output from the Siamese network isn't guaranteed to be a valid Mercer kernel (positive semi-definite). The authors propose post-processing steps to ensure this, with the "co-incidence matrix" (STS) showing the most promising results.
- SVM Integration: The resulting kernel is used to train an SVM for the final classification task on target classes.
Datasets
The paper evaluates DESK on three benchmark datasets:
- Dogs vs. Cats: A binary classification task.
- MNIST: Handwritten digits (10 classes).
- CIFAR-10: Object recognition (10 classes).
For transfer learning, they utilize:
- ImageNet: Used as a source of non-target classes for pre-training convolutional layers.
- CIFAR-100: Used as a source of non-target classes for pre-training convolutional layers.
- NIST: Used as a source of non-target classes for pre-training convolutional layers.
Key Insights and Ideas
- Learning to Compare vs. Learning to Classify: The paper suggests that learning to compare image pairs (as done by Siamese networks) is inherently more data-efficient for classification than learning to classify individual images directly, especially when dealing with limited target data. This is because the task of similarity estimation might offload the burden of learning complex appearance representations to the SVM's support vectors.
- Effective Transfer Learning with Class Labels: Surprisingly, good transfer learning performance was achieved using only class labels from non-target datasets, without requiring richer semantic information. This highlights the power of unsupervised or weakly supervised pre-training for learning general visual features.
- Kernel-based Deep Learning: Moving beyond using CNNs solely for feature extraction, DESK demonstrates the effectiveness of learning a kernel directly from a deep network architecture. This kernel can then be plugged into a traditional SVM, offering a hybrid approach.
- Post-processing for Kernel Validity: The practical challenge of ensuring the learned kernel is positive semi-definite (PSD) is addressed with post-processing techniques, with the "co-incidence matrix" method proving particularly effective.
Key Results
- High Accuracy with Limited Data: DESK achieved classification accuracies competitive with state-of-the-art methods that use tens of thousands of training samples, even when trained with as few as 500-5,000 target class images.
- Significant Time and Data Reduction: Training DESK (specifically the fully connected layers and SVM) took only hours on a single workstation, compared to days for traditional CNNs. The data requirement was drastically reduced.
- Outperformance of Alternatives: DESK generally outperformed alternative transfer learning methods, including using pre-trained CNN features with static kernels (linear, RBF) or fine-tuning CNNs with new fully connected layers, especially in low-data regimes.
- Visualizations: Class separation visualizations (using t-SNE) showed that DESK effectively separates classes, often better than standard CNN features, even before fine-tuning. Fine-tuning further improved separation.
- Full-transfer Performance: Even when the entire Siamese network was trained on non-target classes, the resulting kernel, when used with an SVM trained on target classes, showed remarkably high performance for binary classification (e.g., 0.987 for Dogs vs. Cats).
Limitations and Future Work
- Testing Time: A noted disadvantage is the testing time, which involves computing a kernel matrix for all pairs of testing and training samples. The authors suggest optimizations like using only support vectors.
- Kernel Symmetry and PSD: While post-processing methods were used, the authors suggest future work could focus on network architectures that inherently produce symmetric and PSD outputs.
- Semantic Information: The paper hints that using richer semantic information beyond class labels for pre-training might lead to even better kernels.
- Multi-class Extension: The "pick-out kernel" method, while explored, did not extend well to multi-class problems, suggesting further research is needed for more general multi-class DESK.
- Deeply Supervised Networks: The authors suggest exploring deeply supervised networks for potential performance improvements.
Summary updated