A New Measure of Model Redundancy for Compressed Convolutional Neural Networks

Feiqing Huang, Yuefeng Si, Yao Zheng, Guodong LiarXiv 2021

Abstract

While recently many designs have been proposed to improve the model efficiency of convolutional neural networks (CNNs) on a fixed resource budget, theoretical understanding of these designs is still conspicuously lacking. This paper aims to provide a new framework for answering the question: Is there still any remaining model redundancy in a compressed CNN? We begin by developing a general statistical formulation of CNNs and compressed CNNs via the tensor decomposition, such that the weights across layers can be summarized into a single tensor. Then, through a rigorous sample complexity analysis, we reveal an important discrepancy between the derived sample complexity and the naive parameter counting, which serves as a direct indicator of the model redundancy. Motivated by this finding, we introduce a new model redundancy measure for compressed CNNs, called the $K/R$ ratio, which further allows for nonlinear activations. The usefulness of this new measure is supported by ablation studies on popular block designs and datasets.

Introduction

Modern Convolutional Neural Networks (CNNs) are notoriously over-parametrized, leading to significant computational and memory costs. To mitigate this, researchers have developed various "model compression" techniques, such as the bottleneck blocks in ResNet or depthwise separable convolutions in MobileNet. However, these designs are largely driven by heuristics—counting FLOPs or parameters and observing empirical performance.

There has been a notable lack of theoretical understanding regarding whether these compressed models are truly efficient. This research addresses a fundamental question: Is there still remaining redundancy in a model that has already undergone compression?

Theoretical Framework and the $K/R$ Ratio

The authors bridge the gap between deep learning and high-dimensional statistics by representing the weights of a multi-layer CNN as a single "composite weight tensor" using Tucker and CP tensor decompositions. This allows the entire network to be treated as a unified mathematical object for analysis.

Flowchart of the proposed redundancy measure derivation.

By applying non-asymptotic statistics, the researchers derived the theoretical "sample complexity"—the minimum number of parameters required to represent the network's function. They discovered a significant discrepancy between this theoretical requirement and the "naive parameter count" (the actual number of weights in the implementation). This discrepancy is captured by the $K/R$ ratio, where $K$ represents the number of channels in the output layer and $R$ represents the number of channels in the "bottleneck" or compressed layer.

Structural Redundancy in CNN Blocks

The $K/R$ ratio serves as a compass for architectural efficiency. The paper proves that if a model's output layer ($K$) is significantly larger than its bottleneck ($R$), it contains redundant parameters that do not improve its fundamental learning capacity.

Comparison of popular CNN block designs and their channel parameters.

Key insights from this structural analysis include:

  • Redundancy Levels: A high ratio ($K/R \gg 1$) indicates heavy redundancy, while a ratio close to 1 suggests a highly efficient model.
  • The "Elbow" Point: Empirical tests show a clear point of diminishing returns. Adding parameters to increase the $K/R$ ratio provides minimal accuracy gains once the ratio exceeds 4.
  • Nonlinear Generalization: Although the mathematical proofs rely on linear activations, extensive experiments demonstrate that the $K/R$ ratio remains an accurate predictor of efficiency in real-world networks using nonlinear activations like ReLU.

Experimental Results

The framework was validated using standard benchmarks including Fashion-MNIST, SVHN, CIFAR-10, and CIFAR-100 across architectures like ResNet-50, ResNeXt-50, and ShuffleNetV2-50.

Ablation studies measuring the change in test accuracy per million parameters added revealed that as the $K/R$ ratio increases from 2 to 12, the efficiency gain drops sharply toward zero. For most datasets, the optimal trade-off occurs when the $K/R$ ratio is between 1 and 4. In extreme cases, such as ResNeXt on the SVHN dataset, increasing the ratio beyond 1 actually decreased performance while simultaneously increasing model size.

Conclusion and Future Work

This research provides a rigorous foundation for quantifying redundancy in compressed CNNs. While the current mathematical proofs are restricted to linear activations, empirical evidence strongly supports the theory's applicability to nonlinear networks.

Future work aims to extend this methodology to other architectures, such as Recurrent Neural Networks (RNNs) and Graph Neural Networks (GNNs), and to explore how this redundancy measure interacts with various learning algorithms and regularization techniques.

Summary updated

BibTeX
@misc{huang2021new,
  author = {Feiqing Huang and Yuefeng Si and Yao Zheng and Guodong Li},
  title = {{A New Measure of Model Redundancy for Compressed Convolutional Neural Networks}},
  year = {2021},
  eprint = {2112.04857},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.04857},
}
Figure