Skip to main content
QUICK REVIEW

[Paper Review] Coordinating Filters for Faster Deep Neural Networks

Wei Wen, Cong Xu|arXiv (Cornell University)|Mar 28, 2017
Advanced Neural Network ApplicationsComputer Science25 references12 citations
TL;DR

This paper proposes Force Regularization, a training-time technique that coordinates convolutional filters in deep neural networks to enhance their correlation, enabling more efficient low-rank approximation (LRA) for faster inference. By applying attractive forces during backpropagation, the method reduces the rank required for LRA, achieving up to 4.05× speedup on CPU with minimal accuracy loss in AlexNet, and enabling further compression when combined with sparsity methods.

ABSTRACT

Very large-scale Deep Neural Networks (DNNs) have achieved remarkable successes in a large variety of computer vision tasks. However, the high computation intensity of DNNs makes it challenging to deploy these models on resource-limited systems. Some studies used low-rank approaches that approximate the filters by low-rank basis to accelerate the testing. Those works directly decomposed the pre-trained DNNs by Low-Rank Approximations (LRA). How to train DNNs toward lower-rank space for more efficient DNNs, however, remains as an open area. To solve the issue, in this work, we propose Force Regularization, which uses attractive forces to enforce filters so as to coordinate more weight information into lower-rank space. We mathematically and empirically verify that after applying our technique, standard LRA methods can reconstruct filters using much lower basis and thus result in faster DNNs. The effectiveness of our approach is comprehensively evaluated in ResNets, AlexNet, and GoogLeNet. In AlexNet, for example, Force Regularization gains 2x speedup on modern GPU without accuracy loss and 4.05x speedup on CPU by paying small accuracy degradation. Moreover, Force Regularization better initializes the low-rank DNNs such that the fine-tuning can converge faster toward higher accuracy. The obtained lower-rank DNNs can be further sparsified, proving that Force Regularization can be integrated with state-of-the-art sparsity-based acceleration methods. Source code is available in https://github.com/wenwei202/caffe

Motivation & Objective

  • To address the challenge of deploying large-scale DNNs on resource-limited devices due to high computational demands.
  • To improve the efficiency of low-rank approximation (LRA) methods by training DNNs toward a lower-rank weight space from the start.
  • To enable faster inference by reducing the rank required for accurate filter reconstruction via LRA.
  • To create DNNs that are more amenable to subsequent sparsification and hardware acceleration.
  • To generalize the method to improve filter discrimination for better accuracy.

Proposed method

  • Force Regularization introduces an additional gradient term during backpropagation that acts as an attractive force to align filters in weight space, enhancing their correlation.
  • The method uses a regularization loss based on the cosine similarity between filters, encouraging them to align more closely and reduce the angle between their vector representations.
  • The regularization is applied during training with a hyperparameter λ to control the strength of the attractive force, and it is differentiable, enabling end-to-end training.
  • After training with Force Regularization, the network’s filters are more amenable to low-rank decomposition via techniques like cross-filter PCA, requiring fewer basis filters for the same reconstruction error.
  • The method is compatible with existing LRA and sparsity-based acceleration techniques, allowing for joint compression and speedup.
  • The approach can be generalized to Discrimination Regularization by reversing the force direction (using negative λ) to enhance filter orthogonality and improve classification accuracy.

Experimental results

Research questions

  • RQ1Can training DNNs with an additional regularization force improve the correlation among filters to enable more efficient low-rank approximation?
  • RQ2Does Force Regularization reduce the rank required for accurate filter reconstruction using LRA, leading to faster inference?
  • RQ3Can DNNs trained with Force Regularization be more effectively fine-tuned after LRA decomposition, resulting in faster convergence to higher accuracy?
  • RQ4Can the resulting lower-rank models be further compressed using sparsity-based methods like SSL or connection pruning?
  • RQ5Can the same regularization be adapted to improve filter discriminativeness and thus boost classification accuracy?

Key findings

  • Force Regularization reduces the required rank for LRA by up to 55% (from 11 to 5) in AlexNet’s first convolutional layer while maintaining ≤20% reconstruction error.
  • In AlexNet, the method achieves a 2× speedup on modern GPU and 4.05× speedup on CPU with only a small accuracy degradation of 0.8%.
  • The method enables faster fine-tuning of LRA-decomposed models, as the initialization from Force Regularization leads to quicker convergence to higher accuracy.
  • The lightweight DNNs produced by Force Regularization can be further sparsified using structured (SSL) and non-structured sparsity methods, achieving higher compression and speedup than baseline models.
  • When combined with deep-compression, the method achieves 2.69× faster inference than the baseline, with comparable compression rates but better performance on convolutional layers.
  • Discrimination Regularization, a variant of the method, improves top-1 accuracy by 0.92% on AlexNet and 0.85% on ResNet-20, demonstrating improved feature learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.