TexOCR: Advancing Document OCR Models for Compilable Page-to-LaTeX Reconstruction

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Chengye, Fu, Lin, Kuang, Zexi, Zhao, Yilun
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910163819036672
author Wang, Chengye
Fu, Lin
Kuang, Zexi
Zhao, Yilun
author_facet Wang, Chengye
Fu, Lin
Kuang, Zexi
Zhao, Yilun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_22880
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle TexOCR: Advancing Document OCR Models for Compilable Page-to-LaTeX Reconstruction
Wang, Chengye
Fu, Lin
Kuang, Zexi
Zhao, Yilun
Computation and Language
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.
title TexOCR: Advancing Document OCR Models for Compilable Page-to-LaTeX Reconstruction
topic Computation and Language
url https://arxiv.org/abs/2604.22880