Paper commentary
How transferable are features in deep neural networks?
Study finds how general each layer of a deep network's features is
- Problem Transfer learning relies on copying early layers, but how general each layer's features are had not been measured layer by layer. Features shift from general to specific somewhere in the network, and that shift was not studied extensively.
- Method The authors copy the first n layers of a network trained on one half of ImageNet into a new network. They then retrain the remaining layers on the other half and compare against a control.
- Results Fine-tuned transferred networks gained 1.6% over the baseB control on average across layers 1 to 7. Transfer performance drops as the distance between base and target tasks grows.
Why the general-to-specific shift matters
Deep networks trained on natural images tend to learn first-layer filters that look like Gabor filters or color blobs, whatever the exact dataset or objective. The last layer is different, because a softmax output unit is tied to one class of the chosen task. Somewhere between these two ends the features must shift from general to specific, yet that shift had not been studied extensively.
This matters because transfer learning relies on it. A base network is trained, its first layers are copied into a target network, and the remaining layers are trained on the target task. Recent results from transferring higher layers suggest those features are fairly general, but how far that generality extends was unclear.
The authors therefore ask three questions: how general a single layer is, whether the change happens at one layer or over several, and where in the network it sits.
Copying layers and building the control networks
The key idea is to measure generality through transfer performance: a layer is general if its features still work when reused on a different task. Because the measure depends on how similar the two tasks are, the authors build task pairs from disjoint halves of ImageNet. They randomly split the 1000 classes into two groups of 500, each with about 645,000 examples, and train one eight-layer convolutional network on each half.
The two base networks are called baseA and baseB. For a chosen layer n, a selffer network copies the first n layers from a base network trained on the same data, randomly initializes the upper layers, and trains the whole network on that data. A transfer network does the same, except the copied layers come from the base network trained on the other half, so a drop below the selffer control points to features specific to the original task.
Copied layers can be frozen, as in the B3B and A3B variants, or fine-tuned, as in B3B+ and A3B+. Training uses the Caffe reference implementation, because the aim is to study transfer on a well-known architecture rather than to maximize accuracy.
Random splits: co-adaptation, then specificity
The baseB control reaches a top-1 accuracy of 0.625 on its 500-class task, compared to a top-1 error of 42.5% on the 1000-class network. The authors attribute the lower error to the smaller task, which halves the number of ways to make mistakes.
The BnB selffer networks behave as expected at layers 1 and 2, but they drop at layers 3 to 6, most at layers 4 and 5. The authors read this as fragile co-adaptation: layers trained jointly can't be split apart and relearned by the upper layers alone. Performance returns close to the base level at layer 6 and 7, which they link to less to relearn near the softmax output.
Fine-tuning removes the drop, because the BnB+ networks perform close to the base case when the copied layers keep learning. So the co-adaptation loss is an optimization problem that fine-tuning can repair, not a loss of information in the copied layers.
The authors separate the two causes using the BnB results: co-adaptation dominates at layers 3 to 5, and specificity of the representation dominates at layers 6 and 7.
Fine-tuned transfer networks, AnB+, outperform the baseB control, with a mean boost of 1.6% across layers 1 to 7 and 2.1% when at least five layers are kept. The authors note the gain is not just longer training, because BnB+ ran for the same total length without the improvement. They offer a plausible explanation that the effect of the base dataset lingers through extensive fine-tuning, but this was not tested mechanistically.
Man-made versus natural splits
The authors place man-made classes in dataset A and natural classes in dataset B, using the ImageNet parent hierarchy to make the two tasks as different as possible. The split is uneven, with 551 man-made classes and 449 natural classes.
At the final layer the transferability gap is 25% for the dissimilar split, compared to 8% for similar random A/B splits. The gap grows faster as n increases for dissimilar tasks, so the loss of transfer does track task distance in this setup. The natural target task scores higher than the man-made one, which the authors partly attribute to having 449 classes instead of 551.
Random filters against transferred filters
Their networks had two or three learned layers and were trained on the smaller Caltech-101 dataset, so the authors ask whether this holds for a deeper network on ImageNet.
With random filters in the first n layers, accuracy falls off quickly at layers 1 and 2, then drops to near-chance levels at layers 3 and above. The comparison isn't direct, because the nonlinearity is relu rather than abs(tanh), and the layer sizes and number of layers differ.
Transferring from even a distant task beats random filters in these experiments. The authors suggest that Jarrett et al.'s fully trained networks may have overfit the smaller Caltech-101 data more, which makes their random filters look better by comparison.
Limits of the evidence
The main experiments use one eight-layer convolutional network, trained on ImageNet with the Caffe reference setup. The main figure rests on four separate random A/B splits, which gives eight points per treatment. Each point cost about 9.5 days on a GPU, so there are few data points per layer and some results are aggregated over layers.
The random-filter comparison with prior work differs in architecture, nonlinearity and layer sizes, so it isn't a controlled test of that result. Whether better tuning of layer sizes and random initialization can make random weights work much better was not tested. The man-made/natural comparison uses one split of the classes.
Paper info
- Authors
- Jason Yosinski, Jeff Clune, Yoshua Bengio, Hod Lipson
- Venue
- arXiv · Preprint
- First published
- 2014-11-6
- Added
- 2026-11-11
- Updated
- 2014-11-6
- Version
- v1
- arXiv
- 1411.1792
- Category
- cs.LG · cs.NE
- 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
Jason Yosinski, Jeff Clune, Yoshua Bengio, Hod Lipson (2014). How transferable are features in deep neural networks?. arXiv:1411.1792v1. https://arxiv.org/abs/1411.1792v1
BibTeX
@misc{yosinski2014transferable,
title = {{How transferable are features in deep neural networks?}},
author = {Jason Yosinski and Jeff Clune and Yoshua Bengio and Hod Lipson},
year = {2014},
eprint = {1411.1792},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1411.1792v1}
}