Stable Low-Rank Tensor Decomposition for Compression of Convolutional Neural Network

Anh Huy Phan, Konstantin Sobolev, Konstantin Sozykin, Dmitry Ermilov, Julia Gusak, Petr Tichavský, Valeriy Glukhov, Ivan V. Oseledets, Andrzej Cichocki

TL;DR

This paper introduces a stable method for compressing Convolutional Neural Networks (CNNs) using tensor decomposition. By addressing the "degeneracy" problem—where numerical optimizations produce massive, self-canceling components—the authors enable deeper compression with significantly less accuracy loss and better numerical stability during fine-tuning.

What Problem Does This Paper Address?

Modern CNNs are notoriously overparameterized, making them difficult to deploy on edge devices like smartphones. A popular solution is Low-Rank Tensor Decomposition, specifically the Canonical Polyadic Decomposition (CPD), which represents a complex convolutional kernel as a sum of simpler, rank-one tensors.

However, standard CPD has a "dark side": Degeneracy. When trying to fit a high-rank tensor with a low-rank model, optimization algorithms often produce components with extremely high intensities that cancel each other out. This results in numerical instability. If you try to fine-tune a network with these "exploding" components, the gradients become erratic, and the model's accuracy often collapses. This paper is the first to formally study and solve this degeneracy issue specifically for CNN kernel compression.

Methods

The authors propose a two-pronged approach to stabilize tensor-based compression:

  1. Sensitivity Minimization (EPC-CPD): Instead of just minimizing the approximation error, the authors introduce a variant of the Error Preserving Correction (EPC) method. This approach minimizes the "sensitivity" of the decomposition—essentially ensuring that small perturbations in the factor matrices don't lead to massive changes in the reconstructed kernel. They solve this as a constrained optimization problem: minimize sensitivity while keeping the approximation error within a specific bound.
  2. Hybrid TKD-CPD: The authors suggest that for some layers, a hybrid approach works best. They first apply a Tucker-2 Decomposition (TKD) to reduce the kernel's dimensions, followed by a stable CPD on the resulting core tensor.
  3. New Layer Formats: They provide a blueprint for replacing standard convolutional layers with sequences of 1×1 and depthwise convolutions that represent the factorized CP and TKD formats, making the compressed model compatible with standard deep learning frameworks.

Datasets

The researchers evaluated their methods on two industry-standard benchmarks:

  • ILSVRC-12 (ImageNet): A large-scale dataset for image classification.
  • CIFAR-100: A smaller dataset used for more granular layer-wise studies.

They tested these against popular architectures including VGG-16, ResNet-18, and ResNet-50.

Key Insights and Ideas

  • The "Aha!" Moment on Stability: The authors realized that a "good" mathematical approximation of a kernel isn't necessarily a "trainable" one. Standard CPD might have low error but high sensitivity, making it a nightmare for backpropagation.
  • Degeneracy is Pervasive: The paper confirms that diverging components occur in almost all standard CPD approximations of CNN layers.
  • The Power of Hybridization: The TKD-CPD hybrid often outperforms pure CPD because it provides a more flexible interaction between factor matrices, leading to better accuracy recovery at lower FLOP counts.
  • Fine-tuning Recovery: Stable decompositions allow the network to recover its original accuracy much faster during the fine-tuning phase compared to unstable, standard decompositions.

Key Results

The proposed method achieves impressive compression ratios with minimal impact on accuracy:

  • VGG-16: Achieved a 5.26x reduction in FLOPs with only a 0.92% drop in top-1 accuracy on ImageNet, outperforming previous state-of-the-art methods like TKD+VBMF.
  • ResNet-18: Delivered a 3.09x FLOP reduction with a tiny 0.69% accuracy loss.
  • ResNet-50: Achieved a 2.64x FLOP reduction with a 1.47% accuracy loss.
  • Hardware Acceleration: On a Qualcomm Snapdragon 845 (mobile CPU), the compressed ResNet-50 saw an inference time improvement from 221ms down to 171ms.

Limitations and Future Work

  • Rank Selection: Determining the optimal "rank" (the number of components) for each layer remains an NP-hard problem. The authors currently use a heuristic binary search, which is effective but computationally expensive.
  • 1×1 Convolutions: The method focuses on 3×3 and larger kernels. For 1×1 convolutions, which are common in modern architectures like ResNet, they rely on standard SVD, as degeneracy is less of an issue there.
  • Future Directions: The authors suggest that controlling sensitivity could be crucial for other tasks, such as incremental learning (where models learn new tasks over time) or multi-modal fusion, where shared weight factors need to remain stable across different data types.

Summary updated

BibTeX
@inproceedings{phan2020stable,
  author = {Anh Huy Phan and Konstantin Sobolev and Konstantin Sozykin and Dmitry Ermilov and Julia Gusak and Petr Tichavský and Valeriy Glukhov and Ivan V. Oseledets and Andrzej Cichocki},
  title = {{Stable Low-Rank Tensor Decomposition for Compression of Convolutional Neural Network}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=S5yzs4vCPX},
}
Figure