arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.08872cs.CLcs.AIcs.LG
收藏

PDFTriage: 面向长结构化文档的问答

PDFTriage: Question Answering over Long, Structured Documents

Stanford University(斯坦福大学);Adobe Research(Adobe研究院)

Jon Saad-Falcon, Joe Barrow, Alexa Siu, Ani Nenkova, David Seunghyun Yoon, Ryan A. Rossi, Franck Dernoncourt

AI总结:

针对现有检索增强大语言模型处理长结构化文档时,纯文本表示与用户结构认知不匹配导致问答失效的问题,提出PDFTriage方法支持按结构或内容检索上下文,验证有效性并发布含900+问题的基准数据集。

摘要:

大语言模型(LLM)在文档问答(QA)场景中存在局限——当文档长度超出LLM的有限上下文窗口时,无法完成处理。为解决这一问题,现有大多数工作聚焦于从文档中检索相关上下文,并将其表示为纯文本。但PDF、网页、演示文稿这类文档天然具备结构化属性,包含不同的页面、表格、章节等元素。将这类结构化文档表示为纯文本,与用户对这类富结构文档的认知模型并不匹配。当系统需要查询文档以获取上下文时,这种不匹配会凸显出来,看似简单的问题也可能难住问答系统。为填补结构化文档处理中的这一根本缺口,我们提出名为PDFTriage的方法,使模型能够基于结构或内容检索上下文。我们的实验证明,经PDFTriage增强的模型在多类问题上均表现出有效性,而现有检索增强型LLM在这些问题上会失效。为推动对这一基础问题的进一步研究,我们发布了基准数据集,该数据集涵盖80份结构化文档上的900多个人工生成问题,涉及文档问答的10种不同问题类型。我们的代码和数据集将很快在Github上发布。

英文摘要:

Large Language Models (LLMs) have issues with document question answering (QA) in situations where the document is unable to fit in the small context length of an LLM. To overcome this issue, most existing works focus on retrieving the relevant context from the document, representing them as plain text. However, documents such as PDFs, web pages, and presentations are naturally structured with different pages, tables, sections, and so on. Representing such structured documents as plain text is incongruous with the user's mental model of these documents with rich structure. When a system has to query the document for context, this incongruity is brought to the fore, and seemingly trivial questions can trip up the QA system. To bridge this fundamental gap in handling structured documents, we propose an approach called PDFTriage that enables models to retrieve the context based on either structure or content. Our experiments demonstrate the effectiveness of the proposed PDFTriage-augmented models across several classes of questions where existing retrieval-augmented LLMs fail. To facilitate further research on this fundamental problem, we release our benchmark dataset consisting of 900+ human-generated questions over 80 structured documents from 10 different categories of question types for document QA. Our code and datasets will be released soon on Github.

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

↑