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

InfiniPot:内存受限大语言模型上的无限上下文处理

InfiniPot: Infinite Context Processing on Memory-Constrained LLMs

Hanyang University(汉阳大学);Qualcomm AI Research(高通人工智能研究部门)

Minsoo Kim, Kyuhong Shim, Jungwook Choi, Simyung Chang

AI总结:

本文提出InfiniPot框架,通过持续上下文蒸馏和重要性度量在固定内存约束下实现LLMs对无限长上下文的高效处理,无需额外训练,并在多种NLP任务中优于长上下文训练模型。

摘要:

处理长输入上下文仍然是大语言模型(LLMs)面临的一项重大挑战,尤其是在移动设备等资源受限环境中。我们的工作旨在通过引入InfiniPot来解决这一局限,InfiniPot是一种新颖的KV缓存控制框架,旨在使预训练LLMs能够在固定内存约束下高效管理超长序列,而无需额外训练。InfiniPot利用持续上下文蒸馏(CCD),这是一个迭代过程,通过新颖的重要性度量来压缩和保留关键信息,即使无法访问未来上下文也能有效维护关键数据。我们的综合评估表明,InfiniPot在各种自然语言处理任务中显著优于为长上下文训练的模型,确立了其有效性和通用性。这项工作代表着在使LLMs适用于更广泛的现实世界场景方面取得了实质性进展。

英文摘要:

Handling long input contexts remains a significant challenge for Large Language Models (LLMs), particularly in resource-constrained environments such as mobile devices. Our work aims to address this limitation by introducing InfiniPot, a novel KV cache control framework designed to enable pre-trained LLMs to manage extensive sequences within fixed memory constraints efficiently, without requiring additional training. InfiniPot leverages Continual Context Distillation (CCD), an iterative process that compresses and retains essential information through novel importance metrics, effectively maintaining critical data even without access to future context. Our comprehensive evaluations indicate that InfiniPot significantly outperforms models trained for long contexts in various NLP tasks, establishing its efficacy and versatility. This work represents a substantial advancement toward making LLMs applicable to a broader range of real-world scenarios.

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

↑