arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.04997cs.LGcs.AIcs.CL
收藏

通过软提示压缩适配大型语言模型以实现高效上下文处理

Adapting LLMs for Efficient Context Processing through Soft Prompt Compression

Boston University(波士顿大学);University of California, Davis(加州大学戴维斯分校);Washington University in St. Louis(圣路易斯华盛顿大学);Carnegie Mellon University(卡内基梅隆大学)

Cangqing Wang, Yutian Yang, Ruisi Li, Dan Sun, Ruicong Cai, Yuzhu Zhang, Chengqian Fu, Lillian Floyd

AI总结:

本研究提出SoftPromptComp框架,结合自然语言摘要与软提示压缩,并采用加权机制优化信息保留,以降低计算开销并提升LLMs在长上下文处理中的效率与质量。

摘要:

大型语言模型(LLMs)的快速发展开启了自然语言处理领域的变革性时代,促进了文本生成、理解和上下文审视方面前所未有的熟练度。然而,有效处理广泛上下文(对众多应用至关重要)由于模型上下文窗口大小的固有约束及其操作所带来的计算负担,构成了巨大障碍。本研究提出了一种创新框架,通过利用自然语言摘要、软提示压缩和增强效用保留机制之间的协同作用,策略性地定制LLMs以实现精简的上下文处理。我们的方法,称为SoftPromptComp,融合了从摘要方法中提取的自然语言提示与动态生成的软提示,以构建对冗长上下文的简洁而语义稳健的描绘。该描绘通过一种加权机制进一步细化,该机制优化了信息保留和后续任务的效用。我们证实,我们的框架显著降低了计算开销,并提升了LLMs在各种基准上的效能,同时保持甚至提高了所生成内容的质量。通过将软提示压缩与先进的摘要相结合,SoftPromptComp应对了管理长上下文和确保模型可扩展性的双重挑战。我们的研究结果指向了一个有前景的轨迹,以增强LLMs的适用性和效率,使其在实际应用中更加通用和实用。这项研究丰富了关于优化语言模型的持续讨论,为软提示和摘要技术作为下一代NLP解决方案的关键工具提供了见解。

英文摘要:

The rapid advancement of Large Language Models (LLMs) has inaugurated a transformative epoch in natural language processing, fostering unprecedented proficiency in text generation, comprehension, and contextual scrutiny. Nevertheless, effectively handling extensive contexts, crucial for myriad applications, poses a formidable obstacle owing to the intrinsic constraints of the models' context window sizes and the computational burdens entailed by their operations. This investigation presents an innovative framework that strategically tailors LLMs for streamlined context processing by harnessing the synergies among natural language summarization, soft prompt compression, and augmented utility preservation mechanisms. Our methodology, dubbed SoftPromptComp, amalgamates natural language prompts extracted from summarization methodologies with dynamically generated soft prompts to forge a concise yet semantically robust depiction of protracted contexts. This depiction undergoes further refinement via a weighting mechanism optimizing information retention and utility for subsequent tasks. We substantiate that our framework markedly diminishes computational overhead and enhances LLMs' efficacy across various benchmarks, while upholding or even augmenting the caliber of the produced content. By amalgamating soft prompt compression with sophisticated summarization, SoftPromptComp confronts the dual challenges of managing lengthy contexts and ensuring model scalability. Our findings point towards a propitious trajectory for augmenting LLMs' applicability and efficiency, rendering them more versatile and pragmatic for real-world applications. This research enriches the ongoing discourse on optimizing language models, providing insights into the potency of soft prompts and summarization techniques as pivotal instruments for the forthcoming generation of NLP solutions.

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

↑