CrAM: A Compression-Aware Minimizer

Alexandra Peste, Adrian Vladu, Eldar Kurtic, Christoph H. Lampert, Dan Alistarh
7/28/2022
11 citations
cs.LG

Official code: IST-DASLab/CrAM (10 stars, Python, Apache-2.0, last commit 2023-03-01).

Abstract

Deep neural networks (DNNs) often have to be compressed, via pruning and/or quantization, before they can be deployed in practical settings. In this work we propose a new compression-aware minimizer dubbed CrAM that modifies the optimization step in a principled way, in order to produce models whose local loss behavior is stable under compression operations such as pruning.

Show full abstract

Thus, dense models trained via CrAM should be compressible post-training, in a single step, without significant accuracy loss. Experimental results on standard benchmarks, such as residual networks for ImageNet classification and BERT models for language modelling, show that CrAM produces dense models that can be more accurate than the standard SGD/Adam-based baselines, but which are stable under weight pruning: specifically, we can prune models in one-shot to 70-80% sparsity with almost no accuracy loss, and to 90% with reasonable ($\sim 1\%$) accuracy loss, which is competitive with gradual compression methods. Additionally, CrAM can produce sparse models which perform well for transfer learning, and it also works for semi-structured 2:4 pruning patterns supported by GPU hardware. The code for reproducing the results is available at https://github.com/IST-DASLab/CrAM .

View on arXivView PDF

Code Implementations(1)

IST-DASLab/CrAMOfficial100%
Apache-2.0

Code for reproducing the results from "CrAM: A Compression-Aware Minimizer" accepted at ICLR 2023

101Python, ShellFeb 27, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{peste2022cram,
  title  = {CrAM: A Compression-Aware Minimizer},
  author = {Alexandra Peste and Adrian Vladu and Eldar Kurtic and Christoph H. Lampert and Dan Alistarh},
  year   = {2022},
  eprint = {2207.14200},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.14200v4}
}

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

Discussion