Elamur Research

Visualizing and Understanding Convolutional Networks

Paper · 2013 · Matthew D Zeiler and Rob Fergus

Summary

Large convnets had just set records on ImageNet, but nobody could explain why they worked or how to improve them except by trial and error. Zeiler and Fergus built a diagnostic toolkit to address this. Its core is a deconvnet attached to a trained classifier. It takes one chosen activation and maps it back to pixel space by running the network's operations in reverse: unpooling with recorded max locations, rectifying, and filtering with flipped filters.

They added an occlusion test that hides image regions and watches the classifier's output, and an ablation study over layers. Using what the visualizations showed, they changed a Krizhevsky-style architecture, trained on the 1.3 million ImageNet 2012 images, and beat the earlier ImageNet result.

They then kept the ImageNet features fixed and retrained only the softmax. This beat the best published numbers on Caltech-101 and Caltech-256, and came close on PASCAL 2012.

The work matters for two reasons. It made the internals of deep models inspectable and debuggable. It also showed early that supervised pre-training transfers well to small datasets.

Key points

  • The baseline is Krizhevsky et al.'s ImageNet 2012 convnet, with 16.4% error against 26.1% for second place. The authors' model trained for 70 epochs, about 12 days on a single GTX580 GPU.
  • Visualizing first-layer filters showed that a few filters dominated. The fix was to rescale any convolutional filter whose RMS exceeded a fixed radius of 10^-1 back to that radius.
  • On Caltech-101 at 30 images/class, the ImageNet-pretrained convnet reached 86.5%, above the prior best of Bo et al. (81.4%). The same network trained from scratch reached only 46.5%.
  • On Caltech-256 at 60 images/class, the pretrained model scored 74.2% against 55.2% for Bo et al. With only 6 training images per class it beat the leading method, which used 10 times as many.
  • Linear SVM probes on successive layers rose steadily, from 44.8% (layer 1) to 86.2% (layer 5) on Caltech-101. On PASCAL 2012 the model's mean was 3.2% below the leader (79.0 vs 82.2), though it won on 5 classes.

Interesting ideas

  • I1. To explain one internal unit, zero out every other activation in its layer and push that single signal back down to the input, reusing the routing choices (max "switches") recorded on the forward pass. The result shows the exact input structure that unit responded to, not just the crop it came from.
  • I2. For each feature, show its top 9 strongest examples twice: as raw input and as back-projected structure. A feature whose raw examples look unrelated may turn out to fire on one consistent detail, such as background grass.
  • I3. Occlusion sensitivity slides a mask over parts of the input and records how the correct-class score drops. This shows whether the model relies on the object itself or on surrounding context.
  • I4. The visualizations were used diagnostically during training, not only afterwards. Spotting a few filters that dominated led to a simple norm-clipping fix.
  • I5. Training simple linear classifiers on frozen features from each depth measures how much task-relevant information each layer holds.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (tree): gparse could trace one arc or label decision back to the specific tokens and subword features that drove it, giving a per-decision explanation instead of a global attention heatmap.
  • I2 (learn): gather the highest-scoring silver sentences for a parser feature or a self-induced repair rule and display what actually triggered it, to expose rules that fire for the wrong reason.
  • I3 (answer): blank out individual sentences or entities in a fable and see which removals change the reader's answer, as a check that answers rest on the right facts rather than on surface cues.
  • I4 (learn): routinely plot weight norms and per-feature usage of the perceptron and gparse while training, and cap runaway features before they distort the model.
  • I5 (tree): probe each gparse layer for POS, UD relation and head distance to see where syntax emerges, which can guide which layers to keep, distill or feed into frames.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

Cite

Cite as Matthew D Zeiler and Rob Fergus. 2013. Visualizing and Understanding Convolutional Networks. arXiv:1311.2901.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1311.2901 · arXiv 1311.2901

@misc{zeiler2013visualizing,
  title = {{Visualizing and Understanding Convolutional Networks}},
  author = {Matthew D Zeiler and Rob Fergus},
  year = {2013},
  doi = {10.48550/arxiv.1311.2901},
  eprint = {1311.2901},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1311.2901}
}

References

23 references, from the paper's own bibliography.

  1. Bengio, Y., Lamblin, P., Popovici, D., and Larochelle, H. Greedy layer-wise training of deep networks. In NIPS, pp. 153–160, 2007. OpenAlex ↗ · Scholar ↗
  2. Berkes, P. and Wiskott, L. On the analysis and interpretation of inhomogeneous quadratic forms as receptive fields. Neural Computation, 2006. OpenAlex ↗ · Scholar ↗
  3. Bo, L., Ren, X., and Fox, D. Multipath sparse coding using hierarchical matching pursuit. In CVPR, 2013. OpenAlex ↗ · Scholar ↗
  4. Ciresan, D. C., Meier, J., and Schmidhuber, J. Multi-column deep neural networks for image classification. In CVPR, 2012. our card
  5. Dalal, N. and Triggs, B. Histograms of oriented gradients for pedestrian detection. In CVPR, 2005. OpenAlex ↗ · Scholar ↗
  6. Donahue, J., Jia, Y., Vinyals, O., Hoffman, J., Zhang, N., Tzeng, E., and Darrell, T. DeCAF: A deep convolutional activation feature for generic visual recognition. In arXiv:1310.1531, 2013. our card
  7. Erhan, D., Bengio, Y., Courville, A., and Vincent, P. Visualizing higher-layer features of a deep network. In Technical report, University of Montreal, 2009. OpenAlex ↗ · Scholar ↗
  8. Fei-fei, L., Fergus, R., and Perona, P. One-shot learning of object categories. IEEE Trans. PAMI, 2006. OpenAlex ↗ · Scholar ↗
  9. Griffin, G., Holub, A., and Perona, P. The caltech 256. In Caltech Technical Report, 2006. OpenAlex ↗ · Scholar ↗
  10. Gunji, N., Higuchi, T., Yasumoto, K., Muraoka, H., Ushiku, Y., Harada, T., and Kuniyoshi, Y. Classification entry. In Imagenet Competition, 2012. OpenAlex ↗ · Scholar ↗
  11. Hinton, G. E., Osindero, S., and The, Y. A fast learning algorithm for deep belief nets. Neural Computation, 18:0 1527–1554, 2006. OpenAlex ↗ · Scholar ↗
  12. Hinton, G.E., Srivastave, N., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. R. Improving neural networks by preventing co-adaptation of feature detectors. arXiv:1207.0580, 2012. our card
  13. Jarrett, K., Kavukcuoglu, K., Ranzato, M., and LeCun, Y. What is the best multi-stage architecture for object recognition? In ICCV, 2009. OpenAlex ↗ · Scholar ↗
  14. Jianchao, Y., Kai, Y., Yihong, G., and Thomas, H. Linear spatial pyramid matching using sparse coding for image classification. In CVPR, 2009. OpenAlex ↗ · Scholar ↗
  15. Krizhevsky, A., Sutskever, I., and Hinton, G.E. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. our card
  16. Le, Q. V., Ngiam, J., Chen, Z., Chia, D., Koh, P., and Ng, A. Y. Tiled convolutional neural networks. In NIPS, 2010. OpenAlex ↗ · Scholar ↗
  17. LeCun, Y., Boser, B., Denker, J. S., Henderson, D., Howard, R. E., Hubbard, W., and Jackel, L. D. Backpropagation applied to handwritten zip code recognition. Neural Comput., 10 (4):0 541–551, 1989. OpenAlex ↗ · Scholar ↗
  18. Sande, K., Uijlings, J., Snoek, C., and Smeulders, A. Hybrid coding for selective search. In PASCAL VOC Classification Challenge 2012, 2012. OpenAlex ↗ · Scholar ↗
  19. Sohn, K., Jung, D., Lee, H., and Hero III, A. Efficient learning of sparse, distributed, convolutional feature representations for object recognition. In ICCV, 2011. OpenAlex ↗ · Scholar ↗
  20. Torralba, A. and Efros, A. A. Unbiased look at dataset bias. In CVPR, 2011. OpenAlex ↗ · Scholar ↗
  21. Vincent, P., Larochelle, H., Bengio, Y., and Manzagol, P. A. Extracting and composing robust features with denoising autoencoders. In ICML, pp. 1096–1103, 2008. OpenAlex ↗ · Scholar ↗
  22. Yan, S., Dong, J., Chen, Q., Song, Z., Pan, Y., Xia, W., Huang, Z., Hua, Y., and Shen, S. Generalized hierarchical matching for sub-category aware object classification. In PASCAL VOC Classification Challenge 2012, 2012. OpenAlex ↗ · Scholar ↗
  23. Zeiler, M., Taylor, G., and Fergus, R. Adaptive deconvolutional networks for mid and high level feature learning. In ICCV, 2011. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/zeiler-2013-visualizing-understanding-convolutional-networks/