[Paper Review] Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNet
BagNets classify images using linear bag-of-local-features from small patches, achieving strong ImageNet accuracy and enabling straightforward interpretability via patch-level heatmaps that show each image region’s evidence for a class.
Deep Neural Networks (DNNs) excel on many complex perceptual tasks but it has proven notoriously difficult to understand how they reach their decisions. We here introduce a high-performance DNN architecture on ImageNet whose decisions are considerably easier to explain. Our model, a simple variant of the ResNet-50 architecture called BagNet, classifies an image based on the occurrences of small local image features without taking into account their spatial ordering. This strategy is closely related to the bag-of-feature (BoF) models popular before the onset of deep learning and reaches a surprisingly high accuracy on ImageNet (87.6% top-5 for 33 x 33 px features and Alexnet performance for 17 x 17 px features). The constraint on local features makes it straight-forward to analyse how exactly each part of the image influences the classification. Furthermore, the BagNets behave similar to state-of-the art deep neural networks such as VGG-16, ResNet-152 or DenseNet-169 in terms of feature sensitivity, error distribution and interactions between image parts. This suggests that the improvements of DNNs over previous bag-of-feature classifiers in the last few years is mostly achieved by better fine-tuning rather than by qualitatively different decision strategies.
Motivation & Objective
- Motivate the need for interpretable DNNs in ImageNet by reducing reliance on complex spatial hierarchies.
- Introduce BagNet as a linear bag-of-local-features model built on small image patches.
- Demonstrate that high accuracy can be achieved with small patches and linear aggregation.
- Provide interpretable evidence maps showing how local patches influence decisions.
Proposed method
- Construct BagNet-q by replacing most 3x3 convolutions with 1x1 convolutions to limit top-layer receptive field to q x q pixels.
- Extract patch features of size q x q and apply a linear classifier to obtain class evidence per patch (logits).
- Average the patch-level evidences across space to produce image-level logits.
- Train BagNets on ImageNet for q in {9, 17, 33} and compare to standard CNNs.
- Analyze heatmaps and patch-level evidence to interpret decisions and compare to DNNs’ behavior.
Experimental results
Research questions
- RQ1Can a linear bag-of-local-features model achieve competitive ImageNet accuracy using small patches?
- RQ2How interpretable are the decisions of such a model via patch-level evidence heatmaps?
- RQ3To what extent do standard DNNs rely on local features versus spatial relationships compared to BagNets?
- RQ4Are the decision processes of BagNets and modern DNNs similar in terms of feature sensitivity and interaction between image parts?
Key findings
- BagNets with 17x17 patches reach 80.5% top-5 accuracy; 33x33 patches reach 87.6% top-5 on ImageNet.
- BagNets process images at ~155 images/s (q in {9,17,33}) versus ~570 images/s for ResNet-50.
- Heatmaps show which small patches drive a given class, with informative regions often corresponding to object shapes or distinctive features.
- BagNets exhibit weak interactions between image parts and invariance to spatial arrangements for patches separated by more than q pixels.
- BagNets’ patch-level evidence correlates with attribution signals in other DNNs; deeper nets show stronger non-linear interactions and reduced sensitivity to small local masks.
- Guides to interpretability and failure analysis in computer vision pipelines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.