ZFNet-2013
An 8-layer ImageNet convnet with a 7x7 stride-2 first layer, redesigned by visualizing what each layer learns.
Image classification · 38 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 45.6M
- Operations
- 38
- Framework
- PyTorch
- Recurrent
- No
- Published
- ECCV 2014
- Cited by
- 522 (as of 17 October 2026)
- Authors
- Matthew D Zeiler, Rob Fergus
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m3453
- Graph hash
- 2bb9d87d8a422085b19ae309bc95acd458a110b6d14c3d0168e215bb3be579a8
- Skeleton hash
- 1a7dac284530edf4993f46935f1e5eb7168f84df44fd5210e83c56e2c4ae6710
- Architecture hash
- 6935ffcb6524d51fb36500659ad7af826e84eb48b473f2da02b94c37ee9d7e43
- Diagram SHA-256
- 153f579451d39a49f9960e4668f49c8da4028e38b5286385d2bcfbe3c7c07b61
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
ZFNet is an eight-layer convolutional network, and the member traced here follows the paper's Figure 3 layout, which takes a 224 by 224 crop of an image as input. It comes out of a paper whose real subject is seeing inside such networks: the authors introduce a visualization technique that gives insight into the function of intermediate feature layers and the operation of the classifier. Used in a diagnostic role, those visualizations let them find model architectures that outperform Krizhevsky et al. on the ImageNet classification benchmark.
The visualization tool is a deconvolutional network, or deconvnet, which can be thought of as a convnet that uses the same components, filtering and pooling, but in reverse. Looking at the first two layers of the Krizhevsky et al. network this way, they saw first-layer filters that were a mix of extremely high and low frequency information, with little coverage of the mid frequencies. The second-layer visualization also showed aliasing artifacts caused by the large stride 4 used in the first-layer convolutions. The remedy, and the thing that makes ZFNet ZFNet, was to reduce the first-layer filter size from 11x11 to 7x7 and make the stride of the convolution 2 rather than 4.
In the traced graph you can follow that first layer: the input is convolved with 96 filters, each of size 7 by 7, using a stride of 2 in both x and y. The resulting maps are passed through a rectified linear function, max pooled within 3x3 regions at stride 2 and contrast normalized across feature maps, giving 96 feature maps of 55 by 55. Another departure from the original is that the sparse connections Krizhevsky used in layers 3, 4 and 5, a consequence of splitting the model across two GPUs, are replaced with dense connections. The last two layers are fully connected, taking the top convolutional features as a 9216-dimensional vector, and the final layer is a C-way softmax.
A single network of this design beat the Krizhevsky et al. single-model result by 1.7% in test top-5 error. The ablation study behind it suggests that overall depth, rather than any single section, is what matters: removing both the middle convolution layers and the fully connected layers yields a model with only 4 layers whose performance is dramatically worse. Training was stopped after 70 epochs, which took around 12 days on a single GTX580 GPU.
Key idea. Deconvnet visualizations, used in a diagnostic role, let the authors find model architectures that outperform Krizhevsky et al. on the ImageNet classification benchmark. The concrete change was a smaller 7x7 first-layer filter at stride 2 instead of 11x11 at stride 4.
- ZFNet
- ZF Net
- Zeiler-Fergus net
- Zeiler Fergus
- Visualizing and Understanding Convolutional Networks
- deconvnet
- deconvolutional network visualization
- ImageNet classifier
- image classification
- convnet
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zeiler2013visualizingunderstandingconvolutionalnetworks,
title={Visualizing and Understanding Convolutional Networks},
author={Matthew D Zeiler and Rob Fergus},
year={2013},
eprint={1311.2901},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1311.2901},
}