NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Empirical Evaluation of PDF Parsing and Chunking for Financial Question Answering with RAG

Omar El Bachyr, Yewei Song, Saad Ezzini, Jacques Klein, Tegawendé F. Bissyandé, Anas Zilali, Ulrick Ble, Anne GoujonarXiv 2026 · DOI

TL;DR

This paper presents the first comprehensive, systematic evaluation of how PDF parsing and text chunking strategies interact to impact Retrieval-Augmented Generation (RAG) performance in the financial domain. By benchmarking multiple open-source tools and introducing a new table-focused dataset called TableQuest, the authors provide actionable guidelines for optimizing data ingestion pipelines to achieve highly accurate financial question answering.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) has become the standard architecture for question answering (QA) over enterprise documents. However, RAG performance is heavily bottlenecked by the very first steps of the pipeline: PDF parsing and text chunking.

PDFs are designed for human viewing, not machine reading. They lack semantic markup, meaning tables, multi-column layouts, and text flows must be computationally inferred. If a parser misaligns a financial table, or if a chunking strategy splits a critical metric away from its context, the downstream retrieval model will fail, leading to LLM hallucinations. While many studies evaluate embedding models or LLM generation, few have holistically analyzed how parsing and chunking choices interact, especially when dealing with complex financial data where minor extraction errors can lead to massive financial losses.

Methods

The authors designed an end-to-end PDF-QA benchmarking pipeline to isolate the effects of each pre-processing stage:

Figure 3: End-to-end PDF-QA pipeline.

They systematically evaluated combinations of the following components:

  • 6 PDF Parsers: PyPDF2, PyMuPDF, pdfminer.six, pdfplumber, pypdfium2, and Unstructured.
  • 6 Chunking Strategies: Token, sentence, semantic, recursive, Semantic Double-Pass Merging (SDPM), and neural chunking (using a transformer model to detect semantic shifts).
  • 4 Retrievers: BM25 (lexical), E5-large (dense single-vector), ColBERT (late-interaction multi-vector), and SPLADE (sparse-hybrid).
  • LLMs: A mix of small (1.5B–4B), medium (12B–27B) open-source models, and proprietary models (GPT-4.1/5 variants) acting as generators.

Datasets

The evaluation relied on two complementary financial QA benchmarks:

  1. FinanceBench: An existing benchmark consisting of 150 narrative text-based QA pairs over 84 public financial filings (10-Ks, 10-Qs, etc.).
  2. TableQuest (Newly Introduced): A new, publicly available benchmark created by the authors to target table-focused QA. It consists of 116 rigorously verified QA pairs categorized by difficulty (Easy, Medium, Hard) based on table size and the reasoning steps required.
The four-stage pipeline used to construct and validate the TableQuest dataset.

Key Insights and Ideas

  • Match the Retriever to the Data Type: Single-vector dense bi-encoders (E5) excel at global semantics for narrative text queries. However, token-level late-interaction models (ColBERT) are vastly superior at matching specific cells and structural elements within tables.
  • Parser-Chunker Synergy is Critical: Simple chunking strategies (like sentence or recursive splitting) yield the highest retrieval accuracy when paired with layout-aware parsers like pdfplumber. Conversely, complex structure-aware chunkers add computational overhead without consistent accuracy gains.
  • The Cost of Granularity: Neural chunking delivers top-tier retrieval precision but explodes the index size, generating up to four times as many chunks as recursive chunking. Sentence chunking serves as a highly effective, low-cost alternative.
  • Parser Stability Varies: pdfminer and Unstructured demonstrate the highest stability across different chunking strategies, meaning their extraction quality doesn't fluctuate wildly based on where chunk boundaries are drawn.
Figure 4: Parser stability in page-level MRR (Mean ±1 StdDev, y-axis 0.55–0.85).

Key Results

  • Retrieval Performance: On the text-centric FinanceBench, E5 achieved the highest Precision@1 (0.568). On the table-centric TableQuest, ColBERT dominated with a Precision@1 of 0.760 and a Recall@3 of 0.919.
  • Parser Rankings: pdfplumber ranked first overall across both datasets for table-heavy contexts due to its native cell-grouping capabilities.
  • Runtime Trade-offs: pypdfium2 and PyMuPDF were the fastest parsers, processing a page in under 5 milliseconds. Unstructured (which uses a vision-based YOLOX model) was roughly two orders of magnitude slower, taking nearly 1.9 seconds per page.
  • Downstream QA Accuracy: Small open-source LLMs (<4B parameters) performed poorly on financial QA (rarely exceeding 20% accuracy). Medium open-source models (e.g., Gemma-3 27B, Phi-4 14B) bridged the gap significantly, scoring between 30-56%. Proprietary models still held the crown, with GPT-5 achieving the highest overall score of 73.28% on TableQuest.

Limitations and Future Work

The authors noted several constraints in their study:

  • The evaluation was restricted to a fixed chunk context window of 512 tokens.
  • Experiments were bound to a single indexing/inference seed due to GPU memory limitations.
  • The pipeline relied on an LLM-as-judge (gpt-4o-mini), which may introduce architectural biases.

Future work includes extending this holistic evaluation to other high-stakes, document-heavy domains such as legal and healthcare workflows, as well as testing frontier long-context LLMs that bypass traditional chunking.

Summary updated

BibTeX
@misc{bachyr2026empirical,
  author = {Omar El Bachyr and Yewei Song and Saad Ezzini and Jacques Klein and Tegawendé F. Bissyandé and Anas Zilali and Ulrick Ble and Anne Goujon},
  title = {{Empirical Evaluation of PDF Parsing and Chunking for Financial Question Answering with RAG}},
  year = {2026},
  eprint = {2604.12047},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.12047},
}
Figure