AdaParse: An Adaptive Parallel PDF Parsing and Resource Scaling Engine

Carlo Siebenschuh, Kyle Hippe, Ozan Gokdemir, Alexander Brace, Arham Khan +8 more
4/23/2025
cs.IRcs.CLcs.DC

Official code: 7shoe/AdaParse (67 stars, MIT, last commit 2025-12-17).

Abstract

Language models for scientific tasks are trained on text from scientific publications, most distributed as PDFs that require parsing. PDF parsing approaches range from inexpensive heuristics (for simple documents) to computationally intensive ML-driven systems (for complex or degraded ones). The choice of the "best" parser for a particular document depends on its computational cost and the accuracy of its output. To address these issues, we introduce an Adaptive Parallel PDF Parsing and Resource Scaling Engine (AdaParse), a data-driven strategy for assigning an appropriate parser to each document. We enlist scientists to select preferred parser outputs and incorporate this information through direct preference optimization (DPO) into AdaParse, thereby aligning its selection process with human judgment. AdaParse then incorporates hardware requirements and predicted accuracy of each parser to orchestrate computational resources efficiently for large-scale parsing campaigns. We demonstrate that AdaParse, when compared to state-of-the-art parsers, improves throughput by $17\times$ while still achieving comparable accuracy (0.2 percent better) on a benchmark set of 1000 scientific documents. AdaParse's combination of high accuracy and parallel scalability makes it feasible to parse large-scale scientific document corpora to support the development of high-quality, trillion-token-scale text datasets. The implementation is available at https://github.com/7shoe/AdaParse/

View on arXivView PDF

Code Implementations(1)

7shoe/AdaParseOfficial100%
MIT

Adaptive Parallel PDF Parsing and Resource Scaling Engine

6716Shell, PythonDec 4, 202410 months agoMIT

Similar Papers

Cite this paper

@article{siebenschuh2025adaparse,
  title  = {AdaParse: An Adaptive Parallel PDF Parsing and Resource Scaling Engine},
  author = {Carlo Siebenschuh and Kyle Hippe and Ozan Gokdemir and Alexander Brace and Arham Khan and Khalid Hossain and Yadu Babuji and Nicholas Chia and Venkatram Vishwanath and Rick Stevens and Arvind Ramanathan and Ian Foster and Robert Underwood},
  year   = {2025},
  eprint = {2505.01435},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.01435v1}
}

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/2505.01435.svg)](https://codeofpaper.com/paper/2505.01435)

Discussion