Model Preserving Compression for Neural Networks

Jerry Chee, Megan Renz, Anil Damle, Christopher De Sa
7/30/2021
cs.LG

Official code: jerry-chee/ModelPreserveCompressionNN (2 stars, Jupyter Notebook, last commit 2022-12-01).

Abstract

After training complex deep learning models, a common task is to compress the model to reduce compute and storage demands. When compressing, it is desirable to preserve the original model's per-example decisions (e.g., to go beyond top-1 accuracy or preserve robustness), maintain the network's structure, automatically determine per-layer compression levels, and eliminate the need for fine tuning.

Show full abstract

No existing compression methods simultaneously satisfy these criteria $\unicode{x2014}$ we introduce a principled approach that does by leveraging interpolative decompositions. Our approach simultaneously selects and eliminates channels (analogously, neurons), then constructs an interpolation matrix that propagates a correction into the next layer, preserving the network's structure. Consequently, our method achieves good performance even without fine tuning and admits theoretical analysis. Our theoretical generalization bound for a one layer network lends itself naturally to a heuristic that allows our method to automatically choose per-layer sizes for deep networks. We demonstrate the efficacy of our approach with strong empirical performance on a variety of tasks, models, and datasets $\unicode{x2014}$ from simple one-hidden-layer networks to deep networks on ImageNet.

View on arXivView PDF

Code Implementations(1)

20Jupyter Notebook, PythonSep 23, 20224 years ago

Similar Papers

Cite this paper

@article{chee2021model,
  title  = {Model Preserving Compression for Neural Networks},
  author = {Jerry Chee and Megan Renz and Anil Damle and Christopher De Sa},
  year   = {2021},
  eprint = {2108.00065},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.00065}
}

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/2108.00065.svg)](https://codeofpaper.com/paper/2108.00065)

Discussion