Learning to Select Pre-Trained Deep Representations with Bayesian Evidence Framework

Yong-Deok Kim, Taewoong Jang, Bohyung Han, Seungjin Choi

Abstract

We propose a Bayesian evidence framework to facilitate transfer learning from pre-trained deep convolutional neural networks (CNNs). Our framework is formulated on top of a least squares SVM (LS-SVM) classifier, which is simple and fast in both training and testing, and achieves competitive performance in practice. The regularization parameters in LS-SVM are estimated automatically without grid search and cross-validation by maximizing evidence, which is a useful measure to select the best performing CNN out of multiple candidates for transfer learning. The evidence is optimized efficiently by employing Aitken's delta-squared process, which accelerates convergence of fixed point update. The proposed Bayesian evidence framework also provides a good solution to identify the best ensemble of heterogeneous CNNs through a greedy algorithm. Our Bayesian evidence framework for transfer learning is tested on 12 visual recognition datasets and illustrates the state-of-the-art performance consistently in terms of prediction accuracy and modeling efficiency.

Introduction

Transfer learning—taking a model trained on a massive dataset like ImageNet and applying it to a smaller, specific task—is a cornerstone of modern computer vision. However, practitioners face two major "trial-and-error" hurdles:

  1. Model Selection: With many architectures available (e.g., AlexNet, VGG, GoogLeNet), which one will perform best on a specific new dataset?
  2. Hyperparameter Tuning: When using these CNNs as feature extractors for a classifier (like an SVM), finding the right regularization parameter ($\lambda$) usually requires a time-consuming "grid search" across many possible values.

This paper introduces a mathematically grounded framework that identifies the best model and settings efficiently, replacing empirical "hacks" with a principled Bayesian approach.

The Bayesian Evidence Framework

The core of the solution is built upon the Least Squares SVM (LS-SVM). Unlike standard SVMs that use a "hinge loss," LS-SVM uses a squared loss, which allows for much faster computation via linear algebra (specifically, eigen-decomposition).

Overview of the proposed Bayesian evidence framework for selecting the best pre-trained CNN representation without cross-validation.

Key Components

  • Evidence Maximization: Instead of using a validation set to find the best $\lambda$, the framework treats model weights as random variables and maximizes the "evidence" (the marginal likelihood of the training data). This automatically determines the optimal balance between fitting the data and keeping the model simple (regularization).
  • Aitken’s Delta-Squared Process: To make the optimization even faster, the authors employ this numerical acceleration technique to speed up the convergence of their fixed-point update rules.
  • Greedy Ensemble Selection: The "evidence" score serves as a proxy for how well a model generalizes. The authors use a greedy algorithm to combine multiple CNNs into an ensemble, adding a new network only if it increases the total evidence.

By using LS-SVM, the most expensive part of the math (eigen-decomposition of the feature matrix) only needs to be done once. After that, testing different regularization values or different class labels is nearly instantaneous.

Experimental Evaluation

The framework was evaluated on 12 diverse visual recognition benchmarks, covering object recognition (PASCAL VOC, Caltech), scene classification (MIT Indoor, SUN 397), and attribute detection (CUB 200-2011, Oxford Flowers). Pre-trained models included GoogLeNet, VGG19, and AlexNet.

Key Results

  • Evidence as a Proxy for Accuracy: A crucial finding is that the "Bayesian evidence" calculated on the training set is highly correlated with actual test accuracy. This allows researchers to "predict" which model will be best without ever touching the test data.
  • Efficiency and Speed: The Bayesian LS-SVM achieves accuracy comparable to standard SVMs but does so significantly faster because it eliminates the need for cross-validation loops. On large datasets like SUN 397, the proposed method is much faster than traditional SVM training.
  • State-of-the-Art Ensembles: The greedy ensemble approach achieved the best performance on most of the 12 datasets, outperforming single-model transfer learning and other established baselines.

Discussion and Limitations

While the framework shows significant promise, the authors acknowledge that the least squares loss can sometimes penalize "well-classified" outliers. Additionally, this work focuses on using CNNs as fixed feature extractors rather than integrating the Bayesian framework into the fine-tuning process. Future research may also provide a formal mathematical proof of the concavity of the evidence function, which was observed empirically throughout this study.

Summary updated

BibTeX
@inproceedings{kim2016learning,
  author = {Yong-Deok Kim and Taewoong Jang and Bohyung Han and Seungjin Choi},
  title = {{Learning to Select Pre-Trained Deep Representations with Bayesian Evidence Framework}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  url = {https://openreview.net/forum?id=HkZcsJfu-r},
}
Figure