arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.17141cs.CLcs.AIcs.LG
收藏

FineZip:突破大语言模型在实用无损文本压缩中的极限

FineZip : Pushing the Limits of Large Language Models for Practical Lossless Text Compression

UC Berkeley(加州大学伯克利分校);NYU(纽约大学)

Fazal Mittu, Yihuan Bu, Akshat Gupta, Ashok Devireddy, Alp Eren Ozdarendeli, Anant Singh, Gopala Anumanchipalli

AI总结:

本文提出基于LLM的FineZip文本压缩系统,结合在线记忆与动态上下文,将压缩时间较LLMZip缩短54倍,同时压缩率提升约50%,推动无损文本压缩实用化。

摘要:

尽管语言建模目标已被证明与压缩存在深刻联系,但令人惊讶的是,现代LLM并未被应用于实际的文本压缩系统中。在本文中,我们对神经网络和基于transformer的压缩技术进行了深入分析,以回答这一问题。我们将传统文本压缩系统与基于神经网络和LLM的文本压缩方法进行了比较。尽管基于LLM的系统显著优于传统压缩方法,但它们在实际应用中极不切实际。具体而言,LLMZip是一个近期使用Llama3-8B的文本压缩系统,压缩仅10 MB文本就需要9.5天,尽管在压缩率方面有巨大提升。为克服这一问题,我们提出了FineZip——一种新型基于LLM的文本压缩系统,它结合了在线记忆和动态上下文的思想,以大幅减少压缩时间。与9.5天相比,FineZip能在约4小时内压缩上述语料库,比LLMZip快54倍,且性能相当。FineZip以巨大优势优于传统算法压缩方法,将压缩率提高了约50%。通过这项工作,我们迈出了利用LLM实现无损文本压缩现实化的第一步。尽管FineZip在此方向上迈出了重要一步,但LLM仍不是大规模文本压缩的可行解决方案。我们希望本研究能为解决该问题的未来研究与创新铺平道路。

英文摘要:

While the language modeling objective has been shown to be deeply connected with compression, it is surprising that modern LLMs are not employed in practical text compression systems. In this paper, we provide an in-depth analysis of neural network and transformer-based compression techniques to answer this question. We compare traditional text compression systems with neural network and LLM-based text compression methods. Although LLM-based systems significantly outperform conventional compression methods, they are highly impractical. Specifically, LLMZip, a recent text compression system using Llama3-8B requires 9.5 days to compress just 10 MB of text, although with huge improvements in compression ratios. To overcome this, we present FineZip - a novel LLM-based text compression system that combines ideas of online memorization and dynamic context to reduce the compression time immensely. FineZip can compress the above corpus in approximately 4 hours compared to 9.5 days, a 54 times improvement over LLMZip and comparable performance. FineZip outperforms traditional algorithmic compression methods with a large margin, improving compression ratios by approximately 50\%. With this work, we take the first step towards making lossless text compression with LLMs a reality. While FineZip presents a significant step in that direction, LLMs are still not a viable solution for large-scale text compression. We hope our work paves the way for future research and innovation to solve this problem.

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

↑