arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.13266cs.DBcs.PF
收藏

LoPace:一种无损优化提示准确压缩引擎,用于大语言模型应用

LoPace: A Lossless Optimized Prompt Accurate Compression Engine for Large Language Model Applications

Aman Ulla

AI总结:

LoPace通过三种压缩方法实现提示存储的高效无损压缩,平均节省72.2%空间,适用于大语言模型应用。

摘要:

大语言模型(LLMs)已经改变了自然语言处理的方式,但在生产环境中仍然难以高效存储和管理提示。本文提出了LoPace(无损优化提示准确压缩引擎),一种专门针对LLM应用提示存储的新型压缩框架。LoPace使用三种不同的压缩方法:基于Zstandard的压缩、带二进制打包的字对编码(BPE)分词,以及一种结合这两种方法的混合方法。我们通过在386个不同提示上测试,证明LoPace在平均节省72.2%空间的同时仍能实现100%无损重建。混合方法在各方面都优于单独使用每种技术。其平均压缩比为4.89x(范围:1.22-19.09x),速度为3.3-10.7 MB/s。我们的发现表明,LoPace已准备好投入生产,具有小的内存足迹(平均0.35 MB)和大数据库和实时LLM应用的良好扩展性。

英文摘要:

Large Language Models (LLMs) have changed the way natural language processing works, but it is still hard to store and manage prompts efficiently in production environments. This paper presents LoPace (Lossless Optimized Prompt Accurate Compression Engine), a novel compression framework designed specifically for prompt storage in LLM applications. LoPace uses three different ways to compress data: Zstandard-based compression, Byte-Pair Encoding (BPE) tokenization with binary packing, and a hybrid method that combines the two. We show that LoPace saves an average of 72.2\% of space while still allowing for 100\% lossless reconstruction by testing it on 386 different prompts, such as code snippets, markdown documentation, and structured content. The hybrid method always works better than each technique on its own. It gets mean compression ratios of 4.89x (range: 1.22--19.09x) and speeds of 3.3--10.7 MB/s. Our findings show that LoPace is ready for production, with a small memory footprint (0.35 MB on average) and great scalability for big databases and real-time LLM apps.

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

↑