arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.01435cs.IRcs.CLcs.DCcs.LG
收藏

AdaParse:一种自适应并行PDF解析与资源扩展引擎

AdaParse: An Adaptive Parallel PDF Parsing and Resource Scaling Engine

Department of Computer Science, University of Chicago(芝加哥大学计算机系);Argonne National Laboratory(阿贡国家实验室)
Carlo Siebenschuh, Kyle Hippe, Ozan Gokdemir, Alexander Brace, Arham Khan, Khalid Hossain, Yadu Babuji, Nicholas Chia, Venkatram Vishwanath, Rick Stevens, Arvin… 展开作者

Carlo Siebenschuh, Kyle Hippe, Ozan Gokdemir, Alexander Brace, Arham Khan, Khalid Hossain, Yadu Babuji, Nicholas Chia, Venkatram Vishwanath, Rick Stevens, Arvind Ramanathan, Ian Foster, Robert Underwood

AI总结:

AdaParse通过直接偏好优化学习科学家对解析器输出的偏好,并结合硬件要求与预测准确性动态分配解析器,在保持准确性的同时将大规模PDF解析吞吐量提升17倍。

摘要:

用于科学任务的语言模型是在科学出版物的文本上进行训练的,而这些出版物大多以PDF形式分发,需要解析。PDF解析方法从廉价的启发式方法(适用于简单文档)到计算密集型的机器学习驱动系统(适用于复杂或退化文档)不等。对于特定文档选择“最佳”解析器取决于其计算成本及其输出的准确性。为了解决这些问题,我们引入了自适应并行PDF解析与资源扩展引擎(AdaParse),这是一种数据驱动策略,用于为每个文档分配合适的解析器。我们邀请科学家选择偏好的解析器输出,并通过直接偏好优化(DPO)将这些信息纳入AdaParse,从而使其选择过程与人类判断保持一致。然后,AdaParse结合硬件要求和每个解析器的预测准确性,为大规模解析任务高效地编排计算资源。我们证明,与最先进的解析器相比,AdaParse在1000份科学文档的基准集上将吞吐量提高了17倍,同时仍实现了可比的准确性(提高了0.2%)。AdaParse将高准确性与并行可扩展性相结合,使得解析大规模科学文档语料库以支持高质量、万亿token规模的文本数据集开发成为可行。实现代码可在https://github.com/7shoe/AdaParse/获取。

英文摘要:

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/

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑