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

通过监督的链式思维推理促进长上下文理解

Facilitating Long Context Understanding via Supervised Chain-of-Thought Reasoning

University of Rochester(罗切斯特大学);PAII Inc.(PAII公司);University of California, Merced(加州梅尔德大学)

Jingyang Lin, Andy Wong, Tian Xia, Shenghua He, Hui Wei, Mei Han, Jiebo Luo

AI总结:

本文提出基于属性的代理推理框架PAI,通过生成包含中间推理步骤的合成数据集LongFinanceQA,提升LLMs在金融领域的长上下文理解能力。

摘要:

近年来,大型语言模型(LLMs)的进步使它们能够处理越来越长的序列,从2K到2M个标记甚至更多。然而,仅仅延长输入序列长度并不一定导致有效的长上下文理解。在本研究中,我们通过监督的方式将链式思维(CoT)推理整合到LLMs中,以促进有效的长上下文理解。为此,我们引入了LongFinanceQA,一个在金融领域设计的合成数据集,旨在提高长上下文推理能力。与现有长上下文合成数据不同,LongFinanceQA在最终结论前包含中间的CoT推理,这鼓励LLMs进行显式的推理,提高长上下文理解的准确性和可解释性。为了生成合成的CoT推理,我们提出了基于属性的代理推理(PAI),一种模拟人类推理步骤的框架,包括属性提取、检索和摘要。我们通过在Loong基准上评估GPT-4o-mini w/ PAI来检验PAI的推理能力,结果比标准的GPT-4o-mini高出20.0%。此外,我们在LongFinanceQA上微调LLaMA-3.1-8B-Instruct,在Loong的金融子集上实现了28.0%的提升。

英文摘要:

Recent advances in Large Language Models (LLMs) have enabled them to process increasingly longer sequences, ranging from 2K to 2M tokens and even beyond. However, simply extending the input sequence length does not necessarily lead to effective long-context understanding. In this study, we integrate Chain-of-Thought (CoT) reasoning into LLMs in a supervised manner to facilitate effective long-context understanding. To achieve this, we introduce LongFinanceQA, a synthetic dataset in the financial domain designed to improve long-context reasoning. Unlike existing long-context synthetic data, LongFinanceQA includes intermediate CoT reasoning before the final conclusion, which encourages LLMs to perform explicit reasoning, improving accuracy and interpretability in long-context understanding. To generate synthetic CoT reasoning, we propose Property-based Agentic Inference (PAI), an agentic framework that simulates human-like reasoning steps, including property extraction, retrieval, and summarization. We evaluate PAI's reasoning capabilities by assessing GPT-4o-mini w/ PAI on the Loong benchmark, outperforming standard GPT-4o-mini by 20.0%. Furthermore, we fine-tune LLaMA-3.1-8B-Instruct on LongFinanceQA, achieving a 28.0% gain on Loong's financial subset.

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

↑