MCPNet (Multi-Level Concept Prototype Classifier)
A ResNet-based image classifier that explains its decisions with concept prototypes from several layers.
Image classification · 172 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
- 23.5M
- Operations
- 172
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2024
- Cited by
- 16 (as of 28 October 2026)
- Authors
- Bor-Shiun Wang, Chien-Yi Wang, Wei-Chen Chiu
- Source
- GitHub: NVlabs/MCPNet
- 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
- m18061
- Graph hash
- c08be8baa031f33850a94461e971a9a9ac881169ac95cb5893b0a5e6e9a7ff54
- Skeleton hash
- e47de96b6b70ed597e5fdcebcd7183d3355f228b8d0fe47b24dc3d8663a1ddce
- Architecture hash
- 122a61deeec337ca16f912fdd30dca1a5853f1b8e57379f2f4dbaf170b963c4f
- Diagram SHA-256
- 26ff2ace0a555897a969d2aafbfdfd5cc5d1e144f4e8749bc6ad2bbb3cfee312
- 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
MCPNet, the Multi-Level Concept Prototypes Classifier, is an image classifier built to be interpretable by design. The paper argues that earlier explanation methods mostly report high-level semantics from the last feature map, which leaves the low- and mid-level stages of a decision unexplained. MCPNet instead learns concept prototypes at several feature-map levels, without any predefined concept labels.
Each layer's feature map is split along the channels into segments, and a Centered Kernel Alignment (CKA) loss trains each segment to hold its own concept. A concept prototype is then the principal direction of a segment's feature vectors, found by a PCA that weights each vector by its L2-norm. There is no fully connected classification layer: an image is assigned to the class whose average distribution of prototype responses is closest to its own.
The authors state that the scheme can be added to several convolution-based architectures without additional modules or trainable parameters. The repository's example training command uses a ResNet backbone, resnet50_relu, on the AWA2 dataset. The paper reports that classification by concept distribution shows improved generalization in few-shot classification.
Key idea. MCPNet learns concept prototypes at multiple feature-map levels without concept labels and classifies images by matching their concept-prototype distributions instead of using a fully connected layer.
- MCPNet
- Multi-Level Concept Prototypes Classifier
- concept prototypes
- interpretable classifier
- explainable AI
- image classification
- CKA loss
- MCP distribution
- few-shot classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2024mcpnetinterpretableclassifiermultilevel,
title={MCPNet: An Interpretable Classifier via Multi-Level Concept Prototypes},
author={Bor-Shiun Wang and Chien-Yi Wang and Wei-Chen Chiu},
year={2024},
eprint={2404.08968},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2404.08968},
}