DRNet: Dissect and Reconstruct the Convolutional Neural Network via Interpretable Manners

Xiaolong Hu, Zhulin An, Chuanguang Yang, Hui Zhu, Kaiqiang Xu, Yongjun Xu

Abstract

DRNet (Dissect and Reconstruct Network) is a novel framework that identifies and activates only the most critical convolutional channels for specific sub-tasks. By "dissecting" a pre-trained model into class-specific importance vectors and "reconstructing" them dynamically, the framework achieves significant parameter reductions on small datasets and notable accuracy improvements on large-scale datasets like ImageNet. This approach addresses the redundancy in standard ConvNets and mitigates contextual interference from irrelevant classes during inference.

Introduction

Most Convolutional Neural Networks (ConvNets) are pre-trained on large, fixed datasets such as ImageNet, which contains 1,000 classes. In practical applications, however, models are often deployed to distinguish between only a small subset of these classes. Standard models are inherently redundant for these specific "sub-tasks." While static pruning can reduce model size, it sacrifices the model's general-purpose capabilities. DRNet bridges this gap by dynamically silencing irrelevant channels based on the target class set, effectively tailoring the network to the task at hand.

Methods

The DRNet framework operates in two distinct stages: Dissection and Reconstruction.

Dissection Stage: Identifying Channel Importance

The primary goal of the dissection stage is to determine the importance of each channel for every individual class in the dataset. To achieve this, the authors insert float-valued "control gates" ($\lambda$) after the ReLU activation of every channel. During this stage, the original model weights are frozen, and only these gates are trained.

The training process employs Knowledge Distillation to ensure the sub-network maintains the performance of the original model, combined with an L1 penalty to encourage sparsity. This process results in a Channel Importance Vector (CIV) for each class, where each entry represents a specific channel's contribution to that category.

Figure 3: Generation of the Channel Importance Vector (CIV) by training control gates for each convolutional layer.

Reconstruction Stage: Task-Specific Sub-networks

When a sub-task is defined (e.g., classifying "cats vs. dogs"), the individual CIVs for the target classes are combined into a Combined Channel Importance Vector (CCIV). The most effective approach, the Union Set Strategy, involves taking the maximum importance value across the target classes and applying a threshold. Channels that are deemed important for any class in the sub-task remain active, while others are silenced.

Figure 2: The Union Set Strategy combines class-specific CIVs into a CCIV using a maximum operation and a threshold.

Key Insights and Results

Mitigating Contextual Interference

A significant finding of this research is that using fewer channels can actually improve accuracy. The authors posit that a full ImageNet model contains "contextual information" from all 1,000 classes, which can act as noise during a specific sub-task. By silencing irrelevant channels, the model focuses on the most discriminative features for the target classes. On ImageNet, DRNet achieved an average accuracy boost of 14.29% for two-class sub-tasks, with some improvements reaching 27%.

Layer-wise Dynamics and Semantic Mapping

Dissection reveals that early layers, which capture fundamental features like edges, are shared across most classes. In contrast, deeper layers exhibit high specialization. DRNet silences significantly more channels in these later layers. Furthermore, by analyzing the Intersection over Union (IoU) of CIVs, the authors found that visually similar classes (e.g., digits '6' and '9') naturally share similar channel importance, providing a degree of interpretability to the ConvNet's internal representations.

Efficiency and Versatility

DRNet is highly efficient as the CCIV is a simple binary mask applied during inference, introducing negligible overhead. The method proved effective across various architectures, including VGG16, ResNet18, and MobileNetV2. For VGG16 on CIFAR-10, DRNet reduced parameters to just 11% on average for two-class tasks with minimal accuracy loss.

Limitations and Future Work

While successful, DRNet faces challenges with architectures using skip connections, like ResNet18, which can make it harder to fully silence network paths. Additionally, while accuracy improved on ImageNet, channel reduction was more modest (around 10%). Future research may focus on designing "dissectible" architectures from the ground up and further exploring the semantic meaning of individual channels.

Summary updated

BibTeX
@inproceedings{hu2019drnet,
  author = {Xiaolong Hu and Zhulin An and Chuanguang Yang and Hui Zhu and Kaiqiang Xu and Yongjun Xu},
  title = {{DRNet: Dissect and Reconstruct the Convolutional Neural Network via Interpretable Manners}},
  booktitle = {ECAI},
  year = {2019},
  doi = {10.3233/faia200410},
}
Figure