PDFTriage: Question Answering over Long, Structured Documents

Jon Saad-Falcon, Joe Barrow, Alexa Siu, Ani Nenkova, David Seunghyun Yoon +2 more
9/16/2023
cs.CLcs.AIcs.LG

No official code found. Best implementation: HAMNET-AI/PDFTriage (42 stars, MIT, last commit 2024-01-16).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Reproduction paper --- PDFTriage : Question Answering over Long, Structured Documents

426PythonOct 30, 20232 years agoMIT
aipdf

Similar Papers

Cite this paper

@article{saadfalcon2023pdftriage,
  title  = {PDFTriage: Question Answering over Long, Structured Documents},
  author = {Jon Saad-Falcon and Joe Barrow and Alexa Siu and Ani Nenkova and David Seunghyun Yoon and Ryan A. Rossi and Franck Dernoncourt},
  year   = {2023},
  eprint = {2309.08872},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.08872v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.08872.svg)](https://codeofpaper.com/paper/2309.08872)

Discussion