Efficient architecture for deep neural networks with heterogeneous sensitivity

Hyunjoong Cho, Jinhyeok Jang, Chanhyeok Lee, Seungjoon YangNeural Networks 2021

TL;DR

This paper introduces a novel approach to designing efficient deep neural networks by assigning "heterogeneous sensitivity" to individual nodes. By training networks to prioritize learning in a subset of highly sensitive nodes while allowing others to become insensitive (effectively zero sensitivity), the authors achieve significant reductions in network size and computational cost without sacrificing performance. This method offers a more direct path to efficient architectures compared to traditional post-training pruning techniques.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have achieved remarkable success across various domains, but their complexity often leads to high computational demands, making them challenging to deploy on resource-constrained devices. Traditional methods for creating efficient networks involve training a large network and then "pruning" away less important nodes or connections. However, this pruning process can be complex, often requires retraining, and can still lead to performance degradation because nodes in a trained network typically share the workload. The paper addresses the need for a more integrated approach to designing inherently efficient DNN architectures that are computationally lighter from the outset.

Methods

The core innovation is the introduction of "heterogeneous sensitivity" to network nodes. Each node is assigned a sensitivity variable that dictates its learning contribution. This is implemented via a new "sensitivity layer" that can be integrated into standard dense or convolutional layers. The training process is framed as a constrained optimization problem: minimize the L1 norm of the sensitivity variables (promoting sparsity) while ensuring the network's performance stays within an acceptable error threshold.

A key aspect of their method is the simultaneous determination of the regularization parameter (λ) that balances the sparsity and performance objectives. Instead of relying on manual tuning or separate L-curve analysis, they propose an algorithm that iteratively adjusts λ during training, effectively finding the optimal balance point. This algorithm aims to identify the largest λ that still allows the network to meet the performance constraint, thereby maximizing node insensitivity.

Datasets

The proposed method was evaluated on a variety of standard datasets:

  • Gaussian Data: Used for initial analysis of autoencoders.
  • MNIST: A widely used dataset for handwritten digit recognition, employed for autoencoder and LeNet-5 experiments.
  • CIFAR-10: A dataset of small color images in 10 classes, used for evaluating a deep CNN and transferred VGG/ResNet models.
  • CK+ Dataset: Used for facial expression recognition experiments with transferred VGG and ResNet models.
  • VOC Dataset: Used for object detection experiments with YOLO.
  • ImageNet Dataset: Used for evaluating a transferred ResNet-50 model.

Key Insights and Ideas

  • Nodes Don't Need to Learn Everything: The fundamental insight is that not all nodes in a DNN need to be equally sensitive or contribute equally to learning. By allowing some nodes to become "insensitive" (zero sensitivity), the network can achieve its task using a sparser set of active components.
  • Sensitivity as a Direct Path to Efficiency: Unlike post-hoc pruning, which removes nodes from an already trained network, this method builds efficiency into the training process by learning which nodes are essential. This avoids the need for retraining after pruning.
  • Simultaneous Optimization is Key: The ability to jointly optimize for network performance and node sensitivity, including the regularization parameter, is crucial. This integrated approach ensures that the network learns to be efficient while still meeting performance targets.
  • L-curve for Parameter Selection: The paper leverages the concept of the L-curve, traditionally used for inverse problems, to guide the selection of the regularization parameter that balances deviation (performance) and sparsity (efficiency).
  • Zero Sensitivity = Disconnected Node: Nodes with zero sensitivity are effectively disconnected from the network, allowing them to be removed without impacting performance. This makes the resulting efficient architecture directly derivable from the trained model.

Key Results

The proposed method consistently demonstrated significant reductions in network complexity without compromising performance:

  • Autoencoder (MNIST): Achieved an efficient architecture with 75 hidden nodes, comparable to PCA in reconstruction quality.
  • Deep CNN (CIFAR-10): Reduced node count by 60.7%, weights by 62.29%, and FLOPs by 66.79% while maintaining accuracy (83.20% vs. 83.12%).
  • VGG-16 (CK+ Dataset): Achieved a 12.41% node count, 1.11% weight count, and 3.07% FLOPs reduction with virtually identical accuracy (97.89% vs. 97.85%).
  • ResNet-56 (CK+ Dataset): Achieved a 12.64% node count, 1.94% weight count, and 17.53% FLOPs reduction with comparable accuracy (96.77% vs. 96.03%).
  • YOLO (VOC Dataset): Reduced node count by 43.31%, weights by 73.82%, and FLOPs by 56.88% with a slight mAP reduction (70.9 vs. 69.2).
  • LeNet-5 (MNIST Dataset): Showed superior performance with significantly less computational complexity compared to various pruning methods reported in literature.
  • ResNet-50 (ImageNet Dataset): Achieved comparable or better performance with reduced complexity compared to existing pruning methods.

Limitations and Future Work

  • Computational Cost of Simultaneous Training: While the method aims for efficiency, the simultaneous training and parameter selection algorithm can require more epochs than training with a fixed regularization parameter. However, the authors argue this is a trade-off for finding the optimal parameter.
  • Sensitivity Layer Implementation: The sensitivity layer is presented as a special type of dense or convolutional layer, implying it can be implemented using existing deep learning frameworks. However, the exact overhead and integration details might vary.
  • Future Work: The paper suggests that this approach can be used to determine efficient network architectures for various tasks and datasets, implying further exploration across a wider range of applications and network types. The authors also note that the regularization parameter selection algorithm requires more epochs for each updated λ value, hinting at potential optimizations for this process.

Summary updated

BibTeX
@inproceedings{cho2021efficient,
  author = {Hyunjoong Cho and Jinhyeok Jang and Chanhyeok Lee and Seungjoon Yang},
  title = {{Efficient architecture for deep neural networks with heterogeneous sensitivity}},
  booktitle = {Neural Networks},
  year = {2021},
  url = {https://openreview.net/forum?id=4pRaThMQQPD},
}
Figure