Parameter-Efficient Deep Neural Networks With Bilinear Projections

Yongsheng Gao, Litao Yu, Yongsheng Gao 0001, Jun Zhou, Jian Zhang

Abstract

Deep neural networks are notoriously memory-intensive, complicating deployment on resource-constrained edge devices. This paper introduces "bilinear projections" as a structural replacement for standard linear layers, reducing space complexity from $O(D^2)$ to $O(2D)$. By scaling the number of output channels with a hyperparameter $\alpha$, the authors achieve significant parameter reductions—up to 99% in specific layers—while maintaining or improving model accuracy across various architectures and tasks.

Introduction

The evolution of deep learning has been characterized by increasing model depth and width, leading to extreme parameter redundancy and high memory overhead. In architectures like VGG19, fully-connected layers can account for nearly 90% of total parameters. While post-training techniques such as pruning, quantization, and low-rank approximation offer compression, they often incur significant accuracy degradation. This research proposes a "parameter-efficient" design from the ground up by rethinking the fundamental linear projection building block.

Bilinear Projections

The core innovation is the Bilinear Projection (BP). In a standard layer, an input vector $x$ is mapped to an output via a large weight matrix $W$. The authors propose reshaping the input into a matrix $\mathbf{x}$ and applying two smaller weight matrices, $w_1$ and $w_2$:

$$h(\mathbf{x}) = \phi(w_1 \mathbf{x} w_2 + b)$$

This is mathematically equivalent to a standard projection where the weight matrix $W$ is the Kronecker product of two smaller matrices ($W = w_1^T \otimes w_2$). To compensate for the reduced degrees of freedom, a scaling factor $\alpha$ increases output channels. Even with $\alpha > 1$, the total parameter count remains sub-linear relative to layer size, offering massive efficiency gains.

Comparison of parameter counts between full models and bilinear projection (BP) variants.

Experimental Evaluation

The approach was evaluated across multiple domains:

  • Image Classification: Benchmarked on ILSVRC ImageNet 2012, CIFAR-10, and SVHN.
  • Image Captioning: Tested on Flickr8k to evaluate BP in LSTMs and word embeddings.

The BP microstructure was integrated into diverse architectures, including VGG, ResNet, MobileNet, and SqueezeNet.

Key Results and Insights

The bilinear projection acts as a form of structural regularization. On datasets like CIFAR-10, BP models often outperformed full-parameter baselines, suggesting the constrained structure helps prevent overfitting.

Accuracy comparison of BP models against baselines and other compression methods.

Performance Highlights:

  • VGG19 on ImageNet: Replacing fully-connected layers with BP ($\alpha=3$) reduced parameters by 99.8% (from ~16.7M to just ~28K) while maintaining a Top-1 error within 0.4% of the original.
  • CIFAR-10/SVHN: An S-VGG model with BP ($\alpha=3$) achieved 83.1% accuracy, surpassing the 82.9% baseline while using 29x fewer parameters.
  • LSTMs: For image captioning, BP was 108.8x more parameter-efficient in recurrent and dense layers than standard LSTMs, with minimal impact on BLEU scores.
  • Comparison to Compression: BP consistently outperformed traditional channel pruning (CP) and low-rank (LR) expansion, which typically suffered a ~1% accuracy drop for similar compression levels.

Limitations

Despite the storage benefits, scaling feature maps ($\alpha > 1$) increases Floating Point Operations (FLOPs) and GPU memory usage during training. Furthermore, optimizing very deep networks like ResNet-56 with BP can be more challenging, potentially requiring specialized hyperparameter tuning. Finally, realizing inference speedups on commodity hardware would require custom kernels optimized for bilinear operations, as current libraries are tailored for standard matrix multiplications.

Summary updated

BibTeX
@article{gao2021parameter,
  author = {Yongsheng Gao and Litao Yu and Yongsheng Gao and Jun Zhou and Jian Zhang},
  title = {{Parameter-Efficient Deep Neural Networks With Bilinear Projections}},
  journal = {IEEE TNNLS},
  year = {2021},
  doi = {10.1109/tnnls.2020.3016688},
}
Figure