Solved – Using SVM at the end of Convolutional Neural Network

Presently the method used is, you train a CNN completely and final layer features maps are taken and an SVM is used to classify. Is it possible to train an end to end hybrid CNN-SVM network? Since both have a different loss function, it can be complicated, but is there any paper on the same?

If I understand your question correctly, you're saying that typically after training a CNN with a softmax classifier layer, people then do additional training using an SVM or GBM on the last feature layer, to squeeze out even more accuracy. Typically the network is pretrained using a standard set of neural layers, and then you pass all your images to get the feature layer embedding, after which you train an SVM or GBM from scratch on a now fixed input. However, you would like to train both at the same time.

The answer is yes, it's theoretically possible. The loss function is exactly the same as for your classifier, it's just that you're using an SVM instead of a neural network layer to do the final classification part. However, this can be quite slow. Typical feature layers are on the order of 1000 dimensions. Also, your CNN feature layer changes over time since the network is learning. So that's why people

Similar Posts:

Rate this post

Leave a Comment