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

通过辅助生成加速端到端PDF到Markdown转换

Accelerating End-to-End PDF to Markdown Conversion Through Assisted Generation

Technische Universität Darmstadt(达姆施塔特工业大学)

Changxu Duan

AI总结:

本文提出Copy Lookup Decoding方法,通过直接从PDF提取候选序列提升端到端PDF到Markdown转换效率

摘要:

将机器无法读取的数据格式如PDF转换为Markdown有潜力提高科学研究的可访问性。现有的端到端解码器Transformer模型可以将PDF的截图转换为Markdown,比基于流水线的方法更具灵活性。然而,从头开始逐个解码文本令牌效率低下,尤其是当密集文本可以直接从PDF中复制时。为了解决这一挑战,本文修改了提示查找解码(PLD),直接从PDF文件中提取候选序列,利用PDF与其Markdown等效物之间的高n-gram重叠。本文引入了一种新方法,复制查找解码(CLD),以增强PLD的候选生成机制。实验表明,CLD可以在保持原始质量的情况下将转换过程加速高达1.70倍。本文的代码库已在GitHub上开源(https://github.com/Fireblossom/CopyLookup)。

英文摘要:

Converting data from machine-unreadable formats like PDFs into Markdown has the potential to enhance the accessibility of scientific research. Existing end-to-end decoder transformer models can transform screenshots of PDFs into Markdown, offering more flexibility than pipeline-based methods. Yet, decoding text token by token from scratch is inefficient, especially when dense text can be directly copied from the PDF. To address this challenge, this paper modifies Prompt Lookup Decoding (PLD) to extract candidate sequences directly from PDF files, leveraging the high n-gram overlap between PDFs and their Markdown equivalents. A new method, Copy Lookup Decoding (CLD), is introduced here to enhance PLD's candidate generation mechanism. Experiments demonstrate that CLD can accelerate the conversion process by up to 1.70$\times$ at original quality. The codebase for this paper is open-source on GitHub (https://github.com/Fireblossom/CopyLookup).

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

↑