[Paper Review] A Taxonomy and Library for Visualizing Learned Features in Convolutional Neural Networks
This paper proposes a three-class taxonomy for visualizing features in convolutional neural networks (CNNs): Input Modification, Deconvolutional, and Input Reconstruction methods. It introduces FeatureVis, an open-source MATLAB library for MatConvNet that implements state-of-the-art visualization techniques, enabling researchers to interpret learned features, analyze network behavior, and compare architectures with improved clarity and reproducibility.
Over the last decade, Convolutional Neural Networks (CNN) saw a tremendous surge in performance. However, understanding what a network has learned still proves to be a challenging task. To remedy this unsatisfactory situation, a number of groups have recently proposed different methods to visualize the learned models. In this work we suggest a general taxonomy to classify and compare these methods, subdividing the literature into three main categories and providing researchers with a terminology to base their works on. Furthermore, we introduce the FeatureVis library for MatConvNet: an extendable, easy to use open source library for visualizing CNNs. It contains implementations from each of the three main classes of visualization methods and serves as a useful tool for an enhanced understanding of the features learned by intermediate layers, as well as for the analysis of why a network might fail for certain examples.
Motivation & Objective
- To address the challenge of interpreting what CNNs learn by organizing existing visualization methods into a coherent framework.
- To provide a standardized terminology and classification system for feature visualization techniques to improve communication and comparison in the research community.
- To develop an accessible, open-source library (FeatureVis) that integrates multiple visualization methods for use with MatConvNet-based CNNs.
- To enable researchers to analyze intermediate layer features, diagnose model failures, and compare network architectures visually.
- To support diverse deep learning tasks beyond classification, including regression and segmentation, by making visualization techniques agnostic to the loss layer.
Proposed method
- Proposes a three-class taxonomy: Input Modification (e.g., occlusion), Deconvolutional (e.g., guided backpropagation), and Input Reconstruction (e.g., gradient-based optimization).
- Implements the FeatureVis library as an extension to MatConvNet, supporting multiple CNN architectures and layer types without additional configuration.
- Supports multiple deconvolutional techniques: Deconvnet, Backpropagation, and Guided Backpropagation for ReLU activation propagation.
- Incorporates two convolutional layer propagation methods: Backpropagation and Relevance Propagation for feature attribution.
- Enables customizable occlusion via user-defined colors or random pixel patches to reduce artifacts from uniform occlusion.
- Supports gradient-based input reconstruction with configurable Lp norm and total variation regularization to control image quality and smoothness.
Experimental results
Research questions
- RQ1How can existing feature visualization methods in CNNs be systematically classified and compared?
- RQ2What are the defining characteristics and functional differences between Input Modification, Deconvolutional, and Input Reconstruction visualization methods?
- RQ3To what extent can a unified, open-source library improve reproducibility and accessibility of feature visualization in deep learning research?
- RQ4How do different visualization techniques reveal the contribution of features to network predictions across varying network architectures?
- RQ5Can visualization techniques be effectively applied beyond image classification, such as in regression-based tasks like depth prediction or pose estimation?
Key findings
- The proposed taxonomy successfully categorizes existing feature visualization methods into three distinct, meaningful classes based on their underlying mechanisms and goals.
- FeatureVis enables direct comparison of visualization outputs across different networks, revealing that lower top-1 error rates (e.g., ResNet-101 at 23.4%) correlate with sharper, more focused feature maps.
- Guided Backpropagation produces the sharpest visualizations of input features relevant to classification, outperforming standard deconvolution and occlusion methods.
- Occlusion with random pixel patches reduces artifacts caused by uniform gray patches, improving the reliability of saliency maps.
- The library supports diverse tasks beyond classification, including semantic segmentation and depth prediction, due to its loss-agnostic design.
- Input reconstruction via gradient descent with Lp norm and total variation regularization produces high-quality, interpretable reconstructions of input features.
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.