Reducing Storage of Pretrained Neural Networks by Rate-Constrained Quantization and Entropy Coding

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Conzelmann, Alexander, Bamler, Robert
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918033940807680
author Conzelmann, Alexander
Bamler, Robert
author_facet Conzelmann, Alexander
Bamler, Robert
contents The ever-growing size of neural networks poses serious challenges on resource-constrained devices, such as embedded sensors. Compression algorithms that reduce their size can mitigate these problems, provided that model performance stays close to the original. We propose a novel post-training compression framework that combines rate-aware quantization with entropy coding by (1) extending the well-known layer-wise loss by a quadratic rate estimation, and (2) providing locally exact solutions to this modified objective following the Optimal Brain Surgeon (OBS) method. Our method allows for very fast decoding and is compatible with arbitrary quantization grids. We verify our results empirically by testing on various computer-vision networks, achieving a 20-40\% decrease in bit rate at the same performance as the popular compression algorithm NNCodec. Our code is available at https://github.com/Conzel/cerwu.
format Preprint
id arxiv_https___arxiv_org_abs_2505_18758
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Reducing Storage of Pretrained Neural Networks by Rate-Constrained Quantization and Entropy Coding
Conzelmann, Alexander
Bamler, Robert
Machine Learning
The ever-growing size of neural networks poses serious challenges on resource-constrained devices, such as embedded sensors. Compression algorithms that reduce their size can mitigate these problems, provided that model performance stays close to the original. We propose a novel post-training compression framework that combines rate-aware quantization with entropy coding by (1) extending the well-known layer-wise loss by a quadratic rate estimation, and (2) providing locally exact solutions to this modified objective following the Optimal Brain Surgeon (OBS) method. Our method allows for very fast decoding and is compatible with arbitrary quantization grids. We verify our results empirically by testing on various computer-vision networks, achieving a 20-40\% decrease in bit rate at the same performance as the popular compression algorithm NNCodec. Our code is available at https://github.com/Conzel/cerwu.
title Reducing Storage of Pretrained Neural Networks by Rate-Constrained Quantization and Entropy Coding
topic Machine Learning
url https://arxiv.org/abs/2505.18758