Paper commentary
Return of the Devil in the Details: Delving Deep into Convolutional Nets
Shallow encoders with CNN-style augmentation close much of the gap to deep networks
- Problem Deep CNN and shallow image representations were rarely compared under the same protocol. Strong CNN results also came with large data, GPUs and augmentation, so the gap was hard to attribute.
- Method The authors keep one linear SVM protocol and vary only the image representation. They then apply CNN-style crop and flip augmentation to the Improved Fisher Vector.
- Results Crop and flip augmentation raised the IFV's VOC-2007 mAP from 64.36 to 67.17. The CNN-M model still reached 79.89 with augmentation.
Why shallow and deep features were hard to compare
Hand-designed encoders such as the Improved Fisher Vector led image representation for years. Deep convolutional networks then performed very well on ILSVRC and PASCAL VOC, clearly ahead of standard shallow encodings. The trouble is that deep and shallow methods were rarely tested side by side on the same footing. That matters because the authors' earlier comparison of shallow encoders showed that results depend heavily on implementation details.
Strong CNN results also came bundled with very large training sets, GPU computation and data augmentation. Those extras could help shallow features too, which would explain part of the gap between the two families. So the study asks two things: how the representations compare under one protocol, and which practices carry over from one family to the other.
One pipeline for three kinds of representation
The key move is to keep the classifier and the evaluation fixed and vary only the image representation. Each representation is an encoding function \(\varphi\) that maps an image \(I\) to a vector \(\varphi(I)\in\mathbb{R}^d\), which a linear classifier then reads. The three scenarios are a shallow IFV, a CNN pre-trained on ILSVRC-2012 and applied as is to another dataset, and the same kind of CNN fine-tuned on the target data.
For the CNN, the feature is the vector of activities in the penultimate layer of a network trained on a large dataset. Fine-tuning changes the network itself, so the resulting features become specific to the target dataset. Each class gets a linear SVM trained with a quadratic regularizer and hinge loss, and its trade-off parameter C is set on a held-out validation subset.
SVMs tend to benefit from l2 normalisation of their inputs, so the features are normalised before classification.
Augmentation creates extra samples by transforming an image in ways that keep its class, such as cropping and flipping. VOC-2007 holds about 10,000 images across twenty object classes and is scored with mean Average Precision. The Caltech benchmarks use mean class accuracy, and ILSVRC-2012 is scored by top-5 error.
How the IFV and CNN encoders are built
After PCA reduces the 128D SIFT features to 80D, a GMM with K = 256 components gives a Fisher vector of dimension 40, 960. Stacking the 1×1, 3×1 and 2×2 spatial subdivisions brings the IFV to 327, 680 elements.
Intra-normalisation applies l2 normalisation to each block of the Fisher vector, which the authors motivate by the burstiness of local features. Spatially-extended descriptors instead append normalised coordinates before quantisation, so the GMM captures location directly. This gives 82-dimensional descriptors and a 41, 984-dimensional IFV.
Colour enters through Local Colour Statistics, a 96-dimensional descriptor built from a 4×4 grid of Lab channel means and variances.
CNN-F has 8 learnable layers, five convolutional and three fully connected, with a 4-pixel stride in its first layer and 224×224 inputs. CNN-M shortens the first-layer stride and receptive field, uses stride 2 in conv2, and has 512 filters in conv4 where the reference network has 1024. CNN-S keeps 7×7 first-layer filters with stride 2, uses a stride-1 conv2 and 3×3 pooling in conv1 and conv5, and adds an LRN layer after conv1.
Training crops are sampled at random at 224×224 from the whole training image, rather than from its 256×256 centre.
Does augmentation help both families?
The authors compare three settings: no augmentation, flips only, and C+F, which combines crops and flips. For CNNs the image is first scaled so its shorter side is 256 pixels, then 224×224 crops are taken from the four corners and the centre and flipped, giving 10 samples per image. For the IFV the same crops are taken at the original resolution.
C+F augmentation improves both families by roughly 3%. The IFV rose from 64.36 without augmentation to 67.17 with it, and CNN-M rose from 76.97 to 79.89. For CNN-M, using the extra samples in training and summing their descriptors at test time worked best.
The authors conclude that augmentation is a practice that shallow and deep methods can share.
What changes the IFV's accuracy and size
With intra-normalisation, the spatial pyramid scored 64.18 and the spatially-extended version scored 64.36 on VOC-2007. The spatially-extended version uses 42K dimensions instead of 327K, more than 10 times smaller. So location can be encoded inside the quantisation at little cost to accuracy.
Raising K from 256 to 512 pushes the representation further, though it makes the codes larger. With augmentation, the 512-component IFV with spatially-extended descriptors reaches 68.02 mAP. That is still well below the CNN results, which the next sections cover.
How small the CNN output can get
The baseline CNNs keep a 4096-dimensional full7 layer, already compact next to the IFV. The authors call this a marginal boost, and the 1024-dimensional model scores 79.91.
The 128-dimensional model scores 78.60 on VOC-2007. The authors describe the cost of this reduction as about 2% mAP, for codes 32 times smaller than the 4096-dimensional ones. Those codes are also about 650 times smaller than the best IFV, which the authors single out as the surprising part. They also note that l2 normalising the features accounts for up to about 5% of performance on VOC 2007.
What fine-tuning adds on VOC
The authors fine-tune CNN-S on VOC and replace the softmax loss with a ranking hinge loss. The ranking loss asks the score of a positive image for a class to exceed the score of a negative image by a margin. Training and validation subsets are merged, and lower learning rates for the hidden layers guard against overfitting. VOC-2007 offers only 5,011 training images for this step.
Fine-tuning lifts VOC-2007 mAP from 79.74 for CNN-S to 82.42, a gain of 2.7%. The authors read this as evidence that fine-tuning adapts the representation even with little VOC data.
On VOC-2012, the ranking loss scored 83.2, compared to 83.0 for the classification loss. The authors tie that small lead to the ranking-based VOC evaluation criterion. Fine-tuning on Caltech-101 gives a small gain, but no gain is observed on Caltech-256.
Does colour add signal
For the IFV, colour is added as an extra LCS descriptor stacked with SIFT, while for CNN-M the test is retraining on grayscale images. Colour descriptors alone score 52.18, far below the 65.36 of SIFT in the same encoding.
Retraining CNN-M on grayscale images lowers mAP by about 3%, from 79.89 to 77.00 with augmentation. Without augmentation the grayscale model falls from 76.97 to 73.59. So colour carries real signal for the CNN, while it adds little to an augmented IFV.
Size and speed of the features
CNN-M-2048 uses 2K dimensions, compared to 84K for the best IFV, about 42 times more compact. The paper times CNN-M features at about 2.4s per image with augmentation on a single CPU core, versus about 120s for the IFV, roughly 50 times faster. Without augmentation, CNN-M takes about 0.3s per image, CNN-S about 0.4s and CNN-F about 0.13s.
Position against published results
On VOC-2007, the CNN-based representations sit about 10% mAP above the best IFV, which the authors state as a large margin. On ILSVRC-2012, CNN-S reaches a top-5 error of 13.1, compared to 16.1 for Zeiler and Fergus. Oquab et al. and Wei et al. reach 86.3% and 90.3% on VOC, but they trained on extended ILSVRC datasets, so the numbers aren't directly comparable.
Wei et al.'s best VOC-2012 score relied on late fusion with a hand-crafted method, and without fusion they get 84.2%.
Limitations
Fine-tuning was run only on CNN-S. The strongest VOC numbers from other work rely on extended ILSVRC classes or a more complex pipeline, so they measure a different setup. Fine-tuning gives no gain on Caltech-256, and the Caltech-101 fine-tuning uses the softmax loss rather than the ranking loss.
Paper info
- Authors
- Ken Chatfield, Karen Simonyan, Andrea Vedaldi, Andrew Zisserman
- Venue
- arXiv · Preprint
- First published
- 2014-5-14
- Added
- 2026-11-12
- Updated
- 2014-11-5
- Version
- v4
- arXiv
- 1405.3531
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Ken Chatfield, Karen Simonyan, Andrea Vedaldi, Andrew Zisserman (2014). Return of the Devil in the Details: Delving Deep into Convolutional Nets. arXiv:1405.3531v4. https://arxiv.org/abs/1405.3531v4
BibTeX
@misc{chatfield2014return,
title = {{Return of the Devil in the Details: Delving Deep into Convolutional Nets}},
author = {Ken Chatfield and Karen Simonyan and Andrea Vedaldi and Andrew Zisserman},
year = {2014},
eprint = {1405.3531},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1405.3531v4}
}