VGG-CNN-M
The 'Medium' network from Return of the Devil in the Details: 7×7 stride-2 front end, 512-filter conv4.
Image classification · 37 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
- 102.9M
- Operations
- 37
- Framework
- PyTorch
- Recurrent
- No
- Published
- BMVC 2014
- Cited by
- 3,515 (as of 18 October 2026)
- Authors
- Ken Chatfield, Karen Simonyan, Andrea Vedaldi, Andrew Zisserman
- License
- BSD-3-Clause
- 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
- m3286
- Graph hash
- 7b6a0d46643980784ff872b3b48085b3c42a35cb2fea2ebc1cec2177d0304c35
- Skeleton hash
- 469e4f17078dee0a56b7b6575de5a19d0415dc8c0b28e7729404f4f44e93688b
- Architecture hash
- 589e675129006bf557121d4f200fddd573dfeebcc9938226ea1a29b0121daf06
- Diagram SHA-256
- 8c7b07227068c44953195c22472e1b204775cd2e4a28061bc0a8adeefd12a2fd
- 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
VGG-CNN-M is one of three CNN architectures that the paper 'Return of the Devil in the Details' built to span different accuracy and speed trade-offs. All three were trained with the same protocol and the same implementation, developed on the Caffe framework. CNN-M, the paper's 'Medium' architecture, is modelled on the network of Zeiler and Fergus. What characterises it is a smaller stride and receptive field in the first convolutional layer, a change shown to help on ILSVRC. To keep compute reasonable, conv2 uses a larger stride of 2 instead of 1. The main departure from Zeiler and Fergus is fewer filters in conv4, 512 rather than 1024.
Its first convolution has 96 filters of 7 × 7 at stride 2, followed by local response normalisation and 2× max pooling. The fully connected layers full6 and full7 are regularised with dropout, and the last layer acts as a multi-way softmax classifier. Like its siblings it keeps a 4096-dimensional last hidden layer. The authors also retrained CNN-M with narrower full7 layers of 2048, 1024 and 128 dimensions. Shrinking to 1024 or even 128 dimensions cost only about 2% for codes 32× smaller.
CNN-M and the slower CNN-S were nearly tied in accuracy, so the authors focused on CNN-M as simpler and about 25% faster. CNN-M-2048 features are around 42× more compact than the best Fisher vector and about 50× faster to compute. Retraining CNN-M on grayscale images cost about 3%, a sign that colour matters for these features. The reference code saved alongside the paper is MatConvNet, a MATLAB toolbox implementing convolutional networks for computer vision. Source code and models to reproduce the paper's experiments were made publicly available.
Key idea. Within the paper's controlled comparison, CNN-M is the network the authors focus on, since it nearly matches the slow CNN-S while being simpler and about 25% faster. It is also the architecture used to show that the CNN output layer can be shrunk substantially without hurting performance.
- VGG-CNN-M
- CNN-M
- VGG-M
- VGGM
- Return of the Devil in the Details
- medium CNN
- ImageNet classifier
- MatConvNet
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chatfield2014returndevildetailsdelving,
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},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1405.3531},
}