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

LongCite:使 LLM 能够在长上下文问答中生成细粒度引用

LongCite: Enabling LLMs to Generate Fine-grained Citations in Long-context QA

Zhipu AI(智谱AI);Tsinghua University(清华大学)

Jiajie Zhang, Yushi Bai, Xin Lv, Wanjun Gu, Danqing Liu, Minhao Zou, Shulin Cao, Lei Hou, Yuxiao Dong, Ling Feng, Juanzi Li

AI总结:

针对长上下文问答缺少句子级引用的问题,本文提出 CoF 数据构建流程与 LongCite-45k,并训练 LongCite-8B/9B,在 LongBench-Cite 上实现超过 GPT-4o 的引用质量。

摘要:

尽管当前的长上下文大语言模型(LLM)已经展示出基于大量文本回答用户问题的出色能力,但其回答中缺少引用,使用户难以进行验证,并因潜在幻觉而引发对其可信度的担忧。在本研究中,我们致力于使长上下文 LLM 能够生成带有细粒度句子级引用的回答,从而提升其忠实性和可验证性。我们首先介绍 LongBench-Cite,这是一个自动化基准,用于评估当前 LLM 在带引用的长上下文问答(LQAC)中的表现,并揭示出仍有相当大的改进空间。为此,我们提出 CoF(Coarse to Fine,由粗到细)这一新型流程,它利用现成的 LLM 自动生成带有精确句子级引用的长上下文问答实例,并借助该流程构建 LongCite-45k,这是一个面向 LQAC 的大规模 SFT 数据集。最后,我们使用 LongCite-45k 数据集训练 LongCite-8B 和 LongCite-9B,成功使其能够在单次输出中生成准确回答和细粒度句子级引用。在 LongBench-Cite 上的评估结果表明,我们训练的模型取得了最先进的引用质量,超过了包括 GPT-4o 在内的先进专有模型。

英文摘要:

Though current long-context large language models (LLMs) have demonstrated impressive capacities in answering user questions based on extensive text, the lack of citations in their responses makes user verification difficult, leading to concerns about their trustworthiness due to their potential hallucinations. In this work, we aim to enable long-context LLMs to generate responses with fine-grained sentence-level citations, improving their faithfulness and verifiability. We first introduce LongBench-Cite, an automated benchmark for assessing current LLMs' performance in Long-Context Question Answering with Citations (LQAC), revealing considerable room for improvement. To this end, we propose CoF (Coarse to Fine), a novel pipeline that utilizes off-the-shelf LLMs to automatically generate long-context QA instances with precise sentence-level citations, and leverage this pipeline to construct LongCite-45k, a large-scale SFT dataset for LQAC. Finally, we train LongCite-8B and LongCite-9B using the LongCite-45k dataset, successfully enabling their generation of accurate responses and fine-grained sentence-level citations in a single output. The evaluation results on LongBench-Cite show that our trained models achieve state-of-the-art citation quality, surpassing advanced proprietary models including GPT-4o.

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

↑