arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.05239cs.LGcs.ITmath.IT
收藏

ZipNN:面向AI模型的无损压缩

ZipNN: Lossless Compression for AI Models

IBM Research(IBM研究院);IBM;Tel Aviv University(特拉维夫大学);Boston University(波士顿大学);MIT(麻省理工学院);Dartmouth College(达特茅斯学院)

Moshik Hershcovitch, Andrew Wood, Leshem Choshen, Guy Girmonsky, Roy Leibovitz, Ilias Ennmouri, Michal Malka, Peter Chin, Swaminathan Sundararaman, Danny Harnik

AI总结:

本文提出ZipNN,一种专为神经网络设计的无损压缩方法,在Llama 3等流行模型上相比普通压缩可额外节省17%以上空间,并将压缩与解压缩速度提升62%,有望大幅减少模型下载的网络流量。

摘要:

随着模型规模及其部署范围的不断增长,其庞大的体积给基础设施带来了沉重负担,需要更多的网络和存储资源来容纳这些模型。尽管已有大量模型压缩文献通过删除部分模型权重来加快推理速度,但我们研究一种更传统的压缩类型——即以紧凑形式表示模型,并配合一个能将其恢复为原始形式和尺寸的解压缩算法——即无损压缩。我们提出了ZipNN,一种专为神经网络定制的无损压缩方法。有些出乎意料的是,我们表明特定的无损压缩能够在流行模型上获得显著的网络和存储缩减,通常节省33%,有时可将模型体积减少超过50%。我们研究了模型可压缩性的来源,并引入了针对模型定制的专用压缩变体,进一步提高了压缩效果。在流行模型(例如Llama 3)上,ZipNN展现出的空间节省比普通压缩高出17%以上,同时将压缩和解压缩速度提高了62%。我们估计,这些方法每月可为从Hugging Face这样的大型模型中心下载的网络流量节省超过一个ExaByte。

英文摘要:

With the growth of model sizes and the scale of their deployment, their sheer size burdens the infrastructure requiring more network and more storage to accommodate these. While there is a vast model compression literature deleting parts of the model weights for faster inference, we investigate a more traditional type of compression - one that represents the model in a compact form and is coupled with a decompression algorithm that returns it to its original form and size - namely lossless compression. We present ZipNN a lossless compression tailored to neural networks. Somewhat surprisingly, we show that specific lossless compression can gain significant network and storage reduction on popular models, often saving 33% and at times reducing over 50% of the model size. We investigate the source of model compressibility and introduce specialized compression variants tailored for models that further increase the effectiveness of compression. On popular models (e.g. Llama 3) ZipNN shows space savings that are over 17% better than vanilla compression while also improving compression and decompression speeds by 62%. We estimate that these methods could save over an ExaByte per month of network traffic downloaded from a large model hub like Hugging Face.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑