Source-linked AI summary

DOCBENCH: A Benchmark for Evaluating LLM-based Document Reading Systems

Anni Zou, Wenhao Yu, Hongming Zhang, Kaixin Ma, Deng Cai, Zhuosheng Zhang, Hai Zhao, Dong Yu

arXiv:2407.10701v1cs.CL

TL;DR

Document-reading systems must process complex user-provided files, but no standardized benchmark existed to assess them in real-world document-and-question scenarios. This paper introduces DocBench, a human- and synthetic-question-based benchmark, and evaluates proprietary systems alongside an open-source pipeline. The evaluations find noticeable gaps between existing systems and human performance.

  • Problem

    No standardized benchmark existed to objectively evaluate document-reading systems that must handle document structure, metadata, images, and long contexts.

    Source: §1 · p. 2
  • Method

    DocBench pairs real-world documents with questions and golden answers, using human annotation and synthetic generation across five domains and four question types.

    Source: §1 · p. 2, §2 · p. 3, §2.1.2 · p. 4
  • Results

    Evaluations reveal noticeable gaps between existing document-reading systems and human performance.

    Source: §1 · p. 2
  • Takeaways & Limitations

    DocBench provides a standardized real-world setting for comparing document-reading systems across diverse domains and question types.

    Source: §1 · pp. 2–3

Abstract

from arXiv · show

Recently, there has been a growing interest among large language model (LLM) developers in LLM-based document reading systems, which enable users to upload their own documents and pose questions related to the document contents, going beyond simple reading comprehension tasks. Consequently, these systems have been carefully designed to tackle challenges such as file parsing, metadata extraction, multi-modal information understanding and long-context reading. However, no current benchmark exists to evaluate their performance in such scenarios, where a raw file and questions are provided as input, and a corresponding response is expected as output. In this paper, we introduce DocBench, a new benchmark designed to evaluate LLM-based document reading systems. Our benchmark involves a meticulously crafted process, including the recruitment of human annotators and the generation of synthetic questions. It includes 229 real documents and 1,102 questions, spanning across five different domains and four major types of questions. We evaluate both proprietary LLM-based systems accessible via web interfaces or APIs, and a parse-then-read pipeline employing open-source LLMs. Our evaluations reveal noticeable gaps between existing LLM-based document reading systems and human performance, underscoring the challenges of developing proficient systems. To summarize, DocBench aims to establish a standardized benchmark for evaluating LLM-based document reading systems under diverse real-world scenarios, thereby guiding future advancements in this research area.

1 Introduction

Document-based queries require systems to handle complex files and varied content beyond standalone LLM text interactions, yet no standardized benchmark existed to compare document-reading systems. DocBench addresses this gap with a real-world benchmark, evaluates proprietary systems and an open-source pipeline, and finds a noticeable gap from human performance.

1 Introduction

  • Document-reading systems must parse documents and layouts, extract metadata, handle embedded images, and manage long textual contexts.These demands make document queries more complex than standalone LLM text interactions.Source: §1 · pp. 1–2
  • The absence of a standardized benchmark makes objective, fine-grained evaluation and comparison of document-reading systems difficult.The paper presents DocBench as a benchmark for real-world inputs consisting of a document and related questions.Source: §1 · p. 2
  • DocBench contains 229 real-world documents and 1,102 questions across five domains and four question categories.Questions cover text-only, multimodal, metadata, and unanswerable cases.Source: §1 · p. 2
  • DocBench combines human annotation and synthetic question generation to support fair comparisons across document-reading systems.The benchmark is intended to highlight current limitations and guide future advancements.Source: §1 · pp. 2–3
  • Evaluations of proprietary systems and an open-source parse-then-read pipeline reveal noticeable gaps between existing systems and human performance.Proprietary systems are accessible via web interfaces or APIs, but their operational strategies are not fully disclosed.Source: §1 · p. 2

2 The DOCBENCH

DOCBENCH is a PDF question-answering benchmark built through document collection, question generation, and quality review. Its statistics and evaluation setup describe a varied dataset and a GPT-4-based accuracy evaluator.

2.1.1 Document Collection

  • Documents are gathered from five domains, yielding 229 PDFs: 49 academia, 40 finance, 44 government, 46 laws, and 50 news.Sources include arXiv, corporate annual reports, U.S. government reports, Library of Congress publications, and scanned New York Times front pages.Source: §2.1.1 · p. 3

2.1.2 QA-pair Generation

  • QA generation uses parsed PDF text for GPT-4 text-only questions, GPT-4V for multimodal questions, and annotators for 350 additional pairs.Annotators focus on metadata and unanswerable questions, which were less covered in the preceding generation stage.Source: §2.1.2 · p. 4

2.1.3 Quality Check

  • GPT-4 filters questions before manual review, and seven domain practitioners review and refine data in their areas of expertise.Source: §2.1.3 · p. 4

2.2 Dataset Statistics

  • 229 PDF documents and 1,102 questions span five domains; each document has 1–16 QA pairs, within a stated maximum of 20.Question and document token counts range from 6 to 40 and from 1,300 to 598,302, respectively.Source: §2.2 · p. 4

2.3 Dataset Analysis

  • Text-only questions make up 37.4% of QA pairs, multimodal 27.9%, metadata 23.4%, and unanswerable 11.3%.Source: §2.3 · p. 5
  • Questions are categorized as what/who/where/when/which (58.6%), yes/no (22.1%), how (18.8%), and why (0.5%).Source: §2.3 · p. 5
  • Answers are numerical (37.4%), textual (35.7%), boolean (17.3%), or other (9.6%); 69% of numerical answers come from academia and finance.Source: §2.3 · p. 5

2.4 Evaluation Setup

  • GPT-4’s automatic evaluator agrees with human annotators on 98% of evaluated examples.The evaluation uses binary accuracy scores and reports results overall and by domain and QA-pair type.Source: §2.4 · p. 6, Table 3 · p. 6

3 Experiments and Analysis

DOCBENCH evaluations expose substantial variation across document-reading systems and recurring challenges in multimodal interpretation, long-document handling, and fidelity to the supplied files. The study evaluates 22 systems, including proprietary upload tools and parse-then-read pipelines.

3.1 Experimental Setup

  • 22 systems were evaluated, including proprietary document-upload systems and parse-then-read pipelines using fitz to extract PDF text and image blocks.The open-source base models ranged from 7B to 70B and were selected for instruct/chat availability, vLLM support, and context length/version.Source: §3.1 · p. 6

3.2 Results and Discussion

  • DOCBENCH results vary substantially across systems, with differences associated with foundational models, context limits, and design and implementation approaches.Table 4 reports results across question types and domains.Source: §3.2 · p. 7, Table 4 · p. 7

3.2.1 Interpreting Multi-modal and Metadata Information

  • Multimodal questions can fail at locating the relevant figure, extracting its data, or calculating from the extracted values.In the case study, KimiChat missed the chart, Claude-3 reported 288 and 348 instead of 326 and 390, and GPT-4 miscalculated the percentage change despite locating and extracting correctly.Source: §3.2.1 · p. 7, Figure 5 · p. 8
  • Metadata-question performance is generally below 55%, which the authors attribute to limited attention to global information.Source: §3.2.1 · p. 8

3.2.2 Handling Lengthy Documents

  • Both methods perform poorly on finance documents but better on news, while 8k Llama-3 models that excel on news are outperformed by all 128k models on finance.The authors link the domain difference to finance files being longer and richer in information than single-front-page news files.Source: §3.2.2 · pp. 8–9, Figure 6 · p. 8

3.2.3 Faithfulness to User-provided Documents

  • Most systems struggle with unanswerable questions; GPT-4 scores 37.1% as a document-reading system versus 70.2% in the parse-then-read pipeline.Gemma and KimiChat perform better in these scenarios; the authors identify fidelity to the supplied documents as a key challenge.Source: §3.2.3 · p. 9

4 Related Works

Prior LLM systems extend standalone models with components and system designs for complex, multi-step tasks. Existing document-reading datasets do not fully represent intact files and their varied content, a gap DOCBENCH addresses.

4.1 Recent Advances of LLMs and LLM-based Systems

  • LLM-based systems combine language models with architectures and components to handle tasks involving external resources and multiple reasoning, execution, and reflection steps.Source: §4.1 · p. 9

4.2 Document reading: Datasets and Methods

  • Existing text-focused document and long-context datasets omit multimodal document structure, while multimodal datasets often cover only parts such as tables or figures.DOCBENCH instead evaluates systems on full documents as intact files and varied question types.Source: §4.2 · pp. 9–10

5 Conclusion

DOCBENCH evaluates LLM-based document-reading systems with documents and questions spanning multiple domains and question types. Its evaluation includes proprietary systems and open-source parse-then-read pipelines, and finds disparities in their capabilities.

5 Conclusion

  • DOCBENCH contains 229 documents and 1,102 questions across 5 domains and 4 question types, developed with human annotators and synthetic questions.Source: §5 · p. 10
  • The evaluation covers proprietary LLM systems and open-source parse-then-read approaches, and finds significant disparities in document-reading capabilities.Source: §5 · p. 10

A Instruction Prompts

The appendix points to response-evaluation prompts and describes observations from generating question-answer pairs, including the effects of diagram input and difficulty settings.

A.1 Response Evaluation

A.2 QA-pair Generation

  • Passing diagrams to GPT-4V alone produces subpar question quality.Source: §A.2 · p. 13
  • The authors suggest diagrams without accompanying text descriptions may lack enough information, causing generated QA pairs to deviate from their intended meanings.Source: §A.2 · p. 13
  • Adding Easy, Medium, and Hard difficulty settings to QA-generation prompts can result in higher-quality pairs.Source: §A.2 · p. 13
  • The authors suggest difficulty settings may let the model favor higher generation quality in potential comparisons.Source: §A.2 · p. 13
  • Instruction prompts for generating QA pairs are provided in Table 6.Source: §A.2 · p. 13

B Performance Comparison

DOCBENCH comparisons show different strengths across LLM-based systems and parse-then-read pipelines, with performance varying by question category.

  • GPT-4 performs consistently high and balanced across aspects in the parse-then-read pipeline.Source: B Performance Comparison · p. 14
  • KimiChat scores consistently high across metrics among LLM-based systems, demonstrating balanced performance.Source: B Performance Comparison · p. 14
  • GPT-4 performs poorly on unanswerable questions among LLM-based systems, while Claude-3 excels on metadata questions.The passage associates GPT-4's result with potential overfitting in optimized GPT-4 file systems and decreased fidelity to documents.Source: B Performance Comparison · p. 14
  • For parse-then-read pipelines, GPT-4 and Gemma differ clearly from the remaining methods on multimodal and unanswerable questions.Source: B Performance Comparison · p. 14

C Analysis of Input Sources

The input-source analysis tests GPT-4 and GPT-4o with and without attached files. Without files, both answer some questions correctly, particularly textual questions from government, law, and news domains.

C Analysis of Input Sources

Loading 2407.10701v1…