TexOCR: 提升可编译页面到LaTeX重建的文档OCR模型
TexOCR: Advancing Document OCR Models for Compilable Page-to-LaTeX Reconstruction
AI总结:
本文提出TexOCR-Bench和TexOCR-Train,通过监督微调和强化学习训练出2B参数模型,提升科学PDF到可编译LaTeX的重建能力,验证了可验证奖励在结构和编译指标上的改进。
摘要:
现有文档OCR主要针对纯文本或Markdown,忽视了使LaTeX成为科学出版必要工具的结构和可执行属性。我们研究将科学PDF在页面级别重建为可编译LaTeX,并引入TexOCR-Bench基准和TexOCR-Train大规模训练语料。TexOCR-Bench包含多维评估套件,联合评估转录保真度、结构忠实度和端到端可编译性。利用TexOCR-Train,我们训练了一个2B参数模型TexOCR,使用监督微调(SFT)和强化学习(RL)进行训练,采用可验证奖励,源自LaTeX单元测试,直接强制可编译性和参考完整性。在21个前沿模型上进行的实验表明,现有系统经常违反关键文档不变量,包括一致的章节结构、正确的浮动位置和有效的标签-引用链接,这影响了编译可靠性和下游应用。我们的分析进一步表明,使用可验证奖励的强化学习在结构和编译指标上比单独使用SFT有持续改进。
英文摘要:
Existing document OCR largely targets plain text or Markdown, discarding the structural and executable properties that make LaTeX essential for scientific publishing. We study page-level reconstruction of scientific PDFs into compilable LaTeX and introduce TexOCR-Bench, a benchmark, and TexOCR-Train, a large-scale training corpus, for this task. TexOCR-Bench features a multi-dimensional evaluation suite that jointly assesses transcription fidelity, structural faithfulness, and end-to-end compilability. Leveraging TexOCR-Train, we train a 2B-parameter model, TexOCR, using supervised fine-tuning (SFT) and reinforcement learning (RL) with verifiable rewards derived from LaTeX unit tests that directly enforce compilability and referential integrity. Experiments across 21 frontier models on TexOCR-Bench show that existing systems frequently violate key document invariants, including consistent section structure, correct float placement, and valid label-reference links, which undermines compilation reliability and downstream usability. Our analysis further reveals that RL with verifiable rewards yields consistent improvements over SFT alone, particularly on structural and compilation metrics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。