
bagnet9_brainscore
Image classification177 ops15.7M params
A ResNet-50 variant that classifies images from small local patches without using their spatial ordering.
Image classification · 178 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.
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.
This model is BagNet-17, limited to local patches of at most 17 × 17 pixels, a size the paper reports as reaching AlexNet performance on ImageNet (80.5% top-5).
About this model's family
BagNet is an image classifier that decides from small local image features alone, without taking into account their spatial ordering. The paper introduces it as an architecture for ImageNet whose decisions are considerably easier to explain, and describes it as a simple variant of ResNet-50.
The structure differs from other ResNets only in the replacement of many 3 × 3 convolutions by 1 × 1 convolutions, which limits the receptive field of the topmost convolutional layer to q × q pixels. A linear classifier turns the features of each patch into class evidence, and that evidence is averaged across all patches to give the image-level logits. Because the evidence is inferred patch by patch, the result is a heatmap that shows which parts of the image contribute most to a decision. The name carries the patch size: the last number is the maximum local patch size the network can integrate over.
The paper reports that patches of 17 × 17 pixels reach AlexNet performance on ImageNet (80.5% top-5), and that 33 × 33 pixel patches reach close to 87.6%. In its runtime comparison, BagNets reach around 155 images/s against 570 images/s for ResNet-50.
Key idea. The paper shows that BagNet, a ResNet-50 variant restricted to small local patches without their spatial ordering, reaches 87.6% top-5 on ImageNet with 33 x 33 px features.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{brendel2019approximatingcnnsbagoflocalfeaturesmodels,
title={Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNet},
author={Wieland Brendel and Matthias Bethge},
year={2019},
eprint={1904.00760},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1904.00760},
}