TL;DR
This paper introduces NFT-K, a novel deep neural network architecture that leverages multiple Neural Tangent Kernels (NTKs), one for each layer, to enhance interpretability. By modeling each layer's contribution to classification, NFT-K offers insights into which layers are crucial for specific classes, a significant improvement over existing methods that struggle with this granular understanding.
What Problem Does This Paper Address?
Deep neural networks (DNNs) achieve remarkable performance across various domains like computer vision and reinforcement learning. However, their "black box" nature makes them difficult to interpret, which is a major hurdle in safety-critical applications such as medical imaging. While the Neural Tangent Kernel (NTK) offers some interpretability by connecting DNNs to kernel machines, existing NTK approaches typically represent the entire network with a single kernel. This limits our ability to understand the specific roles of individual layers in the decision-making process for different classes. The paper aims to bridge this gap by providing a method to disentangle and interpret the contribution of each layer within a DNN.
Methods
The core innovation of this paper is the Non-Fungible Tangent Kernel (NFT-K) MLP architecture. Unlike traditional MLPs that rely solely on the final layer for output, NFT-K treats each layer's hidden state as a potential contributor. The network's output is a weighted sum of the outputs from each layer, where the weights are learned.
Mathematically, the NFT-K architecture modifies the standard MLP output to be: $f(x) = \sum_{l=1}^{L} \omega_l \odot f^{(l)}(x)$ where $f^{(l)}(x)$ is the output of the $l$-th layer, $\omega_l$ are learned weights, and $\odot$ denotes element-wise multiplication.
The paper then formulates an optimization problem that, in the infinite-width limit, converges to a multiple-kernel learning problem. This means the network learns to assign importance weights ($\omega_l$) to the NTK of each layer. The optimization is performed using alternating minimization: first, optimizing the network parameters for fixed layer weights ($\Omega$), and then optimizing the layer weights ($\Omega$) for fixed network parameters. This process effectively learns which layers are "non-fungible" or crucial for classification.
Datasets
The paper evaluates its proposed NFT-K MLP architecture on two standard datasets:
- MNIST: A dataset of handwritten digits (0-9) for image classification.
- Large Movie Review Dataset: A dataset consisting of movie reviews used for sentiment analysis (positive/negative classification). For this dataset, the authors use word token embeddings extracted from a pre-trained GPT-2 model.
Key Insights and Ideas
- Layer-wise Interpretability: The most significant insight is the ability to attribute classification decisions to specific layers. This moves beyond understanding the overall network's behavior to understanding the granular contributions of its components.
- Non-Fungible Layers: The learned weights ($\omega_l$) highlight that certain layers are more critical than others for specific classes, meaning these layers are "non-fungible" and cannot be easily replaced or removed without impacting performance.
- Sparsity as a Feature: The learned weights often exhibit sparsity, meaning many $\omega_l$ values are close to zero. This sparsity directly indicates that certain layers are not contributing to the classification of particular classes, simplifying the model's interpretation.
- Connection to Multiple Kernel Learning: The NFT-K framework naturally connects to multiple kernel learning in the infinite-width limit, providing a theoretical grounding for the learned layer importance.
Key Results
- Comparable Performance: NFT-K MLPs achieve test accuracies comparable to standard MLPs on both MNIST and the Large Movie Review dataset. For instance, on MNIST, a 10-layer NFT-K MLP achieved 97.25% accuracy, outperforming a standard 10-layer MLP (96.89%). On the movie review dataset, NFT-K MLPs varied by at most 0.42% from standard MLPs.
- Identified Crucial Layers: The experiments revealed that for certain classes (e.g., digit '2' on MNIST), only a single layer contributed significantly to the classification. Heatmaps visualizing class-layer importance clearly showed this sparsity.
- Reduced Complexity: The sparsity in learned weights suggests that NFT-K can achieve similar performance to standard MLPs while effectively ignoring or down-weighting less important layers, potentially leading to more efficient models.
Limitations and Future Work
- Infinite-Width Assumption: The theoretical underpinnings of NFT-K rely on the infinite-width limit of neural networks. While this provides a strong theoretical foundation, real-world networks have finite widths, and the exact behavior might differ.
- Future Work: The authors suggest exploring how increasing network depth or the number of classes affects layer prioritization. They also propose investigating other sparsity constraints to find even sparser solutions with fewer contributing layers. The code for their model is made publicly available.
Summary updated