DYCP:基于LLMs的长格式对话动态上下文修剪
DYCP: Dynamic Context Pruning for Long-Form Dialogue with LLMs
AI总结:
DYCP通过动态识别和检索对话段落,提升长格式对话中LLM的上下文管理效率,实现更精确的上下文选择和推理效率提升。
摘要:
大型语言模型(LLMs)越来越多地用于长格式对话,其中话题频繁变化。尽管最近的LLMs支持扩展的上下文窗口,但在实践中仍需有效管理对话历史,以应对推理成本和延迟限制。我们提出了DyCP,一种轻量级的上下文管理方法,该方法在LLM外部实现,能够根据当前轮次动态识别和检索相关对话段落,无需离线内存构建。DyCP在不预设话题边界的情况下管理对话上下文,保持对话的顺序性,实现自适应和高效的上下文选择。在三个长格式对话基准(LoCoMo、MT-Bench+和SCM4LLMs)和多个LLM后端上,DyCP在下游生成任务中实现了具有竞争力的答案质量,具有更选择性的上下文使用和改进的推理效率。
英文摘要:
Large Language Models (LLMs) increasingly operate over long-form dialogues with frequent topic shifts. While recent LLMs support extended context windows, efficient management of dialogue history in practice is needed due to inference cost and latency constraints. We present DyCP, a lightweight context management method implemented outside the LLM that dynamically identifies and retrieves relevant dialogue segments conditioned on the current turn, without offline memory construction. DyCP manages dialogue context while preserving the sequential nature of dialogue without predefined topic boundaries, enabling adaptive and efficient context selection. Across three long-form dialogue benchmarks-LoCoMo, MT-Bench+, and SCM4LLMs-and multiple LLM backends, DyCP achieves competitive answer quality in downstream generation, with more selective context usage and improved inference efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。