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

长文本生成中的“中间丢失”:合成数据集、评估框架与缓解方法

Lost-in-the-Middle in Long-Text Generation: Synthetic Dataset, Evaluation Framework, and Mitigation

Beihang University(北京航空航天大学)

Junhao Zhang, Richong Zhang, Fanshuang Kong, Ziyang Miao, Yanhan Ye, Yaowei Zheng

AI总结:

针对长输入到长输出生成中LLM忽略中间信息的问题,提出无需训练的RAL-Writer框架,通过规划器与写作者联合建模语义和位置偏差,动态检索并重述关键片段,构建基准数据集和三个评估指标,实验证明其有效性。

摘要:

现有的长文本生成方法从短输入生成冗长输出,而长输入到长输出的生成仍未被充分探索。随着输入长度的增加,大语言模型越来越容易忽略上下文中间部分的信息——这一局限被称为“中间丢失”现象——导致输出不一致且不连贯。为解决这一问题,我们提出了检索增强长文本写作者(RAL-Writer),一个无需训练的框架,由生成写作步骤的规划器(Planner)和根据这些步骤生成内容的写作者(Writer)组成。写作者联合建模语义相关性和位置偏差来计算重要性分数,动态检索关键输入片段,并策略性地重述它们。我们还构建了一个用于长输入到长输出生成的基准数据集,并引入了涵盖长度、一致性和质量三个评估指标。我们在该数据集上将RAL-Writer与可比较的基线方法进行了评估。结果表明了我们方法的有效性。代码可在该HTTPS URL获取。

英文摘要:

Existing long-text generation methods produce lengthy outputs from short inputs, leaving long-input-to-long-output generation underexplored. As input length increases, LLMs increasingly overlook information in the middle of the context--a limitation known as the "lost-in-the-middle" phenomenon--leading to inconsistent and incoherent outputs. To address this problem, we propose Retrieval-Augmented Long-Text Writer (RAL-Writer), a training-free framework consisting of a Planner that generates writing steps and a Writer that produces content according to these steps. The Writer jointly models semantic relevance and positional bias to compute importance scores, dynamically retrieve critical input segments, and strategically restate them. We also construct a benchmark dataset for long-input-to-long-output generation and introduce three evaluation metrics covering length, consistency, and quality. We evaluate RAL-Writer against comparable baselines on this dataset. The results demonstrate the effectiveness of our approach. Code is available at https://github.com/OnlyAR/RAL-Writer.

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

↑