arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.12512cs.AI
收藏

使用大型语言模型进行语义压缩

Semantic Compression With Large Language Models

Vanderbilt University(范德堡大学)

Henry Gilbert, Michael Sandborn, Douglas C. Schmidt, Jesse Spencer-Smith, Jules White

AI总结:

本文研究利用 GPT-3.5/GPT-4 进行文本与代码的近似语义压缩,提出 ERE 和 SRE 指标评估意图保持,实验表明 GPT-4 可支持约 5 倍 token 扩展。

摘要:

大型语言模型(LLM)的兴起正在彻底改变信息检索、问答、摘要和代码生成任务。然而,除了有时会自信地呈现事实不准确的信息(称为“幻觉”)之外,LLM 还受到一次可处理的输入和输出 token 数量的内在限制,这使其在需要处理大量信息集合或连续信息流的任务上可能效果较差。减小数据规模的常见方法是无损或有损压缩。但在某些情况下,只要传达了必要水平的语义精确性或意图,可能并不严格需要从原始数据中完美恢复每个细节。\n 本文对 LLM 研究作出三项贡献。首先,我们呈现了探索利用 LLM 进行近似压缩可行性的实验结果,重点通过 ChatGPT 接口研究 GPT-3.5 和 GPT-4。其次,我们研究并量化了 LLM 压缩文本和代码,以及回忆和操作提示的压缩表示的能力。第三,我们提出两个新指标——精确重建有效性(ERE)和语义重建有效性(SRE)——用于量化在我们研究的 LLM 压缩并解压缩的文本之间所保留意图的程度。我们的初步结果表明,GPT-4 能够有效压缩和重建文本,同时保留原始文本的语义本质,为利用比当前限制所允许的多约 5 倍的 token 提供了一条路径。

英文摘要:

The rise of large language models (LLMs) is revolutionizing information retrieval, question answering, summarization, and code generation tasks. However, in addition to confidently presenting factually inaccurate information at times (known as "hallucinations"), LLMs are also inherently limited by the number of input and output tokens that can be processed at once, making them potentially less effective on tasks that require processing a large set or continuous stream of information. A common approach to reducing the size of data is through lossless or lossy compression. Yet, in some cases it may not be strictly necessary to perfectly recover every detail from the original data, as long as a requisite level of semantic precision or intent is conveyed. This paper presents three contributions to research on LLMs. First, we present the results from experiments exploring the viability of approximate compression using LLMs, focusing specifically on GPT-3.5 and GPT-4 via ChatGPT interfaces. Second, we investigate and quantify the capability of LLMs to compress text and code, as well as to recall and manipulate compressed representations of prompts. Third, we present two novel metrics -- Exact Reconstructive Effectiveness (ERE) and Semantic Reconstruction Effectiveness (SRE) -- that quantify the level of preserved intent between text compressed and decompressed by the LLMs we studied. Our initial results indicate that GPT-4 can effectively compress and reconstruct text while preserving the semantic essence of the original text, providing a path to leverage $\sim$5$\times$ more tokens than present limits allow.

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

↑