arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.18115cs.MMcs.CLcs.CVcs.DL
收藏

面向布局的文本编辑:用于高效转换学术PDF到Markdown

Layout-Aware Text Editing for Efficient Transformation of Academic PDFs to Markdown

Technische Universität Darmstadt(德累斯顿技术大学)

Changxu Duan

AI总结:

本文提出EditTrans,一种混合编辑生成模型,用于高效转换学术PDF到Markdown,通过预识别待编辑文本队列,减少转换延迟达44.5%。

摘要:

学术文档以PDF格式存储可以转换为纯文本结构化标记语言以增强可访问性和实现可扩展的数字图书馆工作流程。标记语言允许更轻松的更新和定制,使学术内容更具适应性和可访问性,适用于语言语料库编纂等用途。此类文档通常以PDF格式提供,包含复杂的元素,包括数学公式、图表、标题、表格以及密集布局的文本。现有的端到端解码器Transformer模型可以将文档截图转换为标记语言。然而,这些模型存在显著的低效性;从头开始逐个标记解码会浪费大量推理步骤,因为密集文本可以被直接从PDF文件中复制。为了解决这个问题,我们引入了EditTrans,一种混合编辑生成模型,其特性允许在开始生成标记语言之前从PDF中识别待编辑的文本队列。EditTrans包含一个轻量级分类器,该分类器是从Document Layout Analysis模型在arXiv上的162,127页文档上微调得到的。在我们的评估中,与端到端解码器Transformer模型相比,EditTrans将转换延迟减少了高达44.5%,同时保持了转换质量。我们的代码和可重复数据集生成脚本已开源。

英文摘要:

Academic documents stored in PDF format can be transformed into plain text structured markup languages to enhance accessibility and enable scalable digital library workflows. Markup languages allow for easier updates and customization, making academic content more adaptable and accessible to diverse usage, such as linguistic corpus compilation. Such documents, typically delivered in PDF format, contain complex elements including mathematical formulas, figures, headers, and tables, as well as densely layouted text. Existing end-to-end decoder transformer models can transform screenshots of documents into markup language. However, these models exhibit significant inefficiencies; their token-by-token decoding from scratch wastes a lot of inference steps in regenerating dense text that could be directly copied from PDF files. To solve this problem, we introduce EditTrans, a hybrid editing-generation model whose features allow identifying a queue of to-be-edited text from a PDF before starting to generate markup language. EditTrans contains a lightweight classifier fine-tuned from a Document Layout Analysis model on 162,127 pages of documents from arXiv. In our evaluations, EditTrans reduced the transformation latency up to 44.5% compared to end-to-end decoder transformer models, while maintaining transformation quality. Our code and reproducible dataset production scripts are open-sourced.

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

↑