Introduction
Real-world scientific document Question Answering (QA) is notoriously difficult. Unlike standard benchmarks that use clean text snippets, researchers must navigate complex PDF layouts containing multi-column text, tables, and headers. Standard PDF-to-text tools often produce "noisy" output that disrupts context and degrades model performance. The "Detect, Retrieve, Comprehend" (DRC) framework addresses these challenges by treating text extraction and evidence retrieval as first-class citizens in a modular pipeline.
The DRC Framework
The DRC framework introduces a three-stage process designed to handle raw PDFs directly, ensuring that the semantic structure of the document is preserved throughout the QA process.
- Detect (Text Extraction): Instead of using standard OCR, DRC employs a Document Image Transformer (DiT) to identify semantic regions like paragraphs and tables. By extracting text only from these specific bounding boxes using
pdfminer.six, the system effectively filters out "garbage" text like headers, footers, and page numbers. - Retrieve (Evidence Retrieval): Given the length of scientific papers, DRC uses an ELECTRA-based Cross-Encoder (ELECTRA_CE) to rank extracted paragraphs. Unlike dual encoders that process questions and text separately, the Cross-Encoder analyzes them simultaneously, capturing deeper semantic relevance.
- Comprehend (Question Answering): The top-ranked paragraphs are passed to UnifiedQA, a model pretrained to handle multiple answer formats, including extractive spans, abstractive summaries, and Boolean (Yes/No) responses.
A key innovation in this framework is the use of weak supervision. By using the retriever’s confidence scores to "teach" the QA model which passages are likely to contain answers, the system can adapt to new scientific domains without requiring expensive human-annotated data.
Evaluation and Results
The framework was evaluated using the QASPER dataset, which comprises 1,585 NLP papers and over 5,000 questions. DRC demonstrated significant improvements over existing baselines, particularly in zero-shot settings where the model had not seen QASPER training data.
Key performance metrics include:
- Overall Accuracy: The full DRC system achieved an Answer-$F_1$ of 40.16, a +7.19 improvement over the Longformer-Encoder-Decoder (LED) baseline.
- Retrieval Efficacy: The ELECTRA_CE retriever significantly outperformed BM25 and DPR. In zero-shot settings, it achieved a recall of 22.82% at K=1%, compared to 15.97% for BM25.
- Extraction Quality: The layout-aware DiT approach reached a paragraph extraction $F_1$ of 75.34, far exceeding the 62.73 achieved by standard tools like TesseractOCR.
Key Insights
The success of DRC highlights that layout is a signal. Knowing where text resides on a page is as critical as the text itself for reducing noise. Furthermore, while Cross-Encoders are computationally more expensive than Dual Encoders, they are the superior choice for document-level QA where the search space is limited to a single paper. Finally, the framework proves that zero-shot performance is viable; DRC outperformed the LED baseline by +2.31 $F_1$ points without any domain-specific training.
Limitations and Future Work
Currently, DRC is optimized for textual content. However, scientific papers are rich in non-textual data such as charts, plots, and complex equations. Future iterations will need to incorporate Visual Question Answering (VQA) to fully "read" these elements. Additionally, while the Cross-Encoder works well for individual papers, scaling the framework to massive libraries or extremely long textbooks will require more efficient hierarchical retrieval strategies.
Summary updated