TensorX
返回文献探索

Paper · arXiv 2410.09342

LLMtimesMapReduce: Simplified Long-Sequence Processing using Large Language Models

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

37 upvotesOctober 12, 2024arXiv 预印本
AI 摘要

A divide-and-conquer framework addresses long-range information loss in large language models by splittingdocuments into chunks and using structured protocols and calibration mechanisms to improve accuracy and performance.

large language modelsLLMsdivide-and-conquerdocument understandingchunksinter-chunk dependencyinter-chunk conflictstructured information protocolin-context confidence calibrationlong-context LLMs

Abstract

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 LLMtimesMapReduce 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 LLMtimesMapReduce can outperform representative open-source and commercial long-context LLMs, and is applicable to several different models.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
LLMtimesMapReduce: Simplified Long-Sequence Processing using Large Language Models | TensorX