Compact and Optimal Deep Learning with Recurrent Parameter Generators

Jiayun Wang, Yubei Chen, Stella X. Yu, Brian Cheung, Yann LeCun
7/15/2021
cs.CVcs.LG

Official code: samaonline/Recurrent-Parameter-Generators (2 stars, Python, BSD-3-Clause, last commit 2024-02-27).

Abstract

Deep learning has achieved tremendous success by training increasingly large models, which are then compressed for practical deployment. We propose a drastically different approach to compact and optimal deep learning: We decouple the Degrees of freedom (DoF) and the actual number of parameters of a model, optimize a small DoF with predefined random linear constraints for a large model of arbitrary architecture, in one-stage end-to-end learning.

Show full abstract

Specifically, we create a recurrent parameter generator (RPG), which repeatedly fetches parameters from a ring and unpacks them onto a large model with random permutation and sign flipping to promote parameter decorrelation. We show that gradient descent can automatically find the best model under constraints with faster convergence. Our extensive experimentation reveals a log-linear relationship between model DoF and accuracy. Our RPG demonstrates remarkable DoF reduction and can be further pruned and quantized for additional run-time performance gain. For example, in terms of top-1 accuracy on ImageNet, RPG achieves $96\%$ of ResNet18's performance with only $18\%$ DoF (the equivalent of one convolutional layer) and $52\%$ of ResNet34's performance with only $0.25\%$ DoF! Our work shows a significant potential of constrained neural optimization in compact and optimal deep learning.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause
20PythonSep 6, 20222 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{wang2021compact,
  title  = {Compact and Optimal Deep Learning with Recurrent Parameter Generators},
  author = {Jiayun Wang and Yubei Chen and Stella X. Yu and Brian Cheung and Yann LeCun},
  year   = {2021},
  eprint = {2107.07110},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.07110}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.07110.svg)](https://codeofpaper.com/paper/2107.07110)

Discussion