[Paper Review] The SVD of Convolutional Weights: A CNN Interpretability Framework
This paper proposes a novel singular value decomposition (SVD) framework for convolutional neural network (CNN) weight tensors by unfolding 4D convolutional filters into 2D matrices, enabling interpretation of filter correlations and identifying key input features driving classification. The method reveals discriminative features through dominant singular vectors and enables hypergraph-based semantic hierarchies, validated via random matrix theory and demonstrated in VGG-16 models on CIFAR-10 and ImageNet using the DeepDataProfiler library.
Deep neural networks used for image classification often use convolutional filters to extract distinguishing features before passing them to a linear classifier. Most interpretability literature focuses on providing semantic meaning to convolutional filters to explain a model's reasoning process and confirm its use of relevant information from the input domain. Fully connected layers can be studied by decomposing their weight matrices using a singular value decomposition, in effect studying the correlations between the rows in each matrix to discover the dynamics of the map. In this work we define a singular value decomposition for the weight tensor of a convolutional layer, which provides an analogous understanding of the correlations between filters, exposing the dynamics of the convolutional map. We validate our definition using recent results in random matrix theory. By applying the decomposition across the linear layers of an image classification network we suggest a framework against which interpretability methods might be applied using hypergraphs to model class separation. Rather than looking to the activations to explain the network, we use the singular vectors with the greatest corresponding singular values for each linear layer to identify those features most important to the network. We illustrate our approach with examples and introduce the DeepDataProfiler library, the analysis tool used for this study.
Motivation & Objective
- To address the lack of interpretability in CNNs by analyzing the linear dynamics of convolutional layers beyond activation-based methods.
- To define a mathematically sound SVD for 4D convolutional weight tensors using tensor unfolding, preserving shared weight semantics.
- To identify the most significant input features correlated with dominant singular vectors, linking model behavior to input domain semantics.
- To model class separation and feature relevance using hypergraphs derived from singular vectors and values.
- To develop and validate the DeepDataProfiler library as a tool for SVD-based CNN interpretability.
Proposed method
- Unfolding the 4D convolutional weight tensor into a 2D matrix via isomorphic embedding, preserving spatial and filter relationships.
- Applying standard SVD (M = USV^T) to the unfolded matrix to extract singular vectors and values representing input feature correlations.
- Using the top singular vectors (with largest singular values) as indicators of the most influential features in the input domain.
- Constructing hypergraphs to model relationships between singular vectors and target classes, with parameters controlling feature significance thresholds.
- Validating the unfolding method via theoretical consistency with Gram matrix analysis and empirical alignment with random matrix theory on fully connected layers.
- Implementing the framework in the DeepDataProfiler (DDP) library, including Jupyter notebooks and a Streamlit app for visualization and analysis.
Experimental results
Research questions
- RQ1How can the singular value decomposition be meaningfully extended to 4D convolutional weight tensors to reveal underlying linear dynamics?
- RQ2What is the relationship between the dominant singular vectors of convolutional layers and the input features that most influence classification?
- RQ3How do the spectral properties of unfolded convolutional weight matrices align with known results from random matrix theory?
- RQ4Can hypergraphs built from singular vectors effectively model class separation and reveal a semantic hierarchy of features in CNNs?
- RQ5To what extent can this SVD-based framework improve interpretability compared to activation-based attribution methods?
Key findings
- The proposed unfolding method for 4D convolutional weight tensors preserves the structural and shared-weight semantics of convolutions while enabling SVD application.
- Dominant singular vectors of the unfolded weight matrices correspond to input features that the network most strongly correlates with, either increasing or suppressing them.
- The framework produces interpretable feature visualizations—especially for ImageNet-trained VGG-16—showing clear semantic distinctions, such as softer edges for biological objects versus sharper features for man-made objects.
- Hypergraphs constructed from significant singular vectors reveal a hierarchical structure of features, with higher layers capturing more abstract, class-specific patterns.
- The method is empirically validated through alignment with random matrix theory, particularly in the spectral distribution of covariance matrices of fully connected layers.
- The DeepDataProfiler library successfully enables end-to-end analysis of SVD-based interpretability, including hypergraph construction and feature visualization, for VGG-16 on both CIFAR-10 and ImageNet.
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.