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

LLM$\ imes$MapReduce:使用大语言模型简化长序列处理

LLM$\times$MapReduce: Simplified Long-Sequence Processing using Large Language Models

Nankai University(南开大学);Dept. of Comp. Sci. & Tech., Tsinghua University(清华大学计算机科学与技术系);BUPT(北京邮电大学);Institute for AI, Tsinghua University(清华大学人工智能研究院);Xiamen University(厦门大学);Peking University(北京大学)

Zihan Zhou, Chong Li, Xinyi Chen, Shuo Wang, Yu Chao, Zhili Li, Haoyu Wang, Rongqiao An, Qi Shi, Zhixing Tan, Xu Han, Xiaodong Shi, Zhiyuan Liu, Maosong Sun

AI总结:

提出无训练的LLM$\ imes$MapReduce框架,通过分而治之策略处理长文本,并设计结构化信息协议和上下文置信度校准机制解决块间依赖与冲突,在实验中优于代表性长上下文LLMs。

摘要:

扩大大语言模型(LLMs)的上下文窗口已成为一个关键的研究领域,特别是对于涉及超长文本的应用。在这项工作中,我们提出了一个新颖的无训练框架来处理长文本,利用分而治之策略实现全面的文档理解。所提出的LLM$\ imes$MapReduce框架将整个文档分割成若干块供LLMs阅读,然后聚合中间答案以产生最终输出。分而治之长文本处理框架的主要挑战在于,在分割文档时存在丢失关键长程信息的风险,这可能导致模型基于分割后的文本产生不完整或不正确的答案。被破坏的长程信息可分为两类:块间依赖和块间冲突。我们设计了结构化信息协议以更好地应对块间依赖,以及上下文置信度校准机制来解决块间冲突。实验结果表明,LLM$\ imes$MapReduce能够优于代表性的开源和商业长上下文LLMs,并且适用于几种不同的模型。

英文摘要:

Enlarging the context window of large language models (LLMs) has become a crucial research area, particularly for applications involving extremely long texts. In this work, we propose a novel training-free framework for processing long texts, utilizing a divide-and-conquer strategy to achieve comprehensive document understanding. The proposed LLM$\times$MapReduce framework splits the entire document into several chunks for LLMs to read and then aggregates the intermediate answers to produce the final output. The main challenge for divide-and-conquer long text processing frameworks lies in the risk of losing essential long-range information when splitting the document, which can lead the model to produce incomplete or incorrect answers based on the segmented texts. Disrupted long-range information can be classified into two categories: inter-chunk dependency and inter-chunk conflict. We design a structured information protocol to better cope with inter-chunk dependency and an in-context confidence calibration mechanism to resolve inter-chunk conflicts. Experimental results demonstrate that LLM$\times$MapReduce can outperform representative open-source and commercial long-context LLMs, and is applicable to several different models.

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

↑