Search papers, labs, and topics across Lattice.
This paper introduces a Dual-Track Framework that enhances the conversion of structured Markdown drafts into LaTeX by separating template formatting from document processing. The framework employs an offline track to extract template constraints into a reusable manifest and an online track that utilizes a hybrid execution pipeline, leveraging rule-based engines for deterministic tasks while reserving LLMs for reasoning-intensive components. Empirical evaluations show that this approach significantly improves structural fidelity and compilation success rates across various LaTeX templates compared to existing methods.
A novel dual-track approach achieves superior LaTeX conversion fidelity while minimizing hallucinations by strategically combining rule-based and LLM techniques.
With the increasing demands for advanced document conversion, mapping structured Markdown drafts into template-compliant formats like LaTeX remains a challenge. Existing approaches largely depend on either deterministic rule-based converters or pure end-to-end Large Language Model (LLM) generation. The former fails to correctly handle asset insertions and template-specific constraints, while the latter tends to induce semantic drift, leading to hallucinations that are difficult to debug. To address these limitations, we introduce a robust Dual-Track Framework that systematically decouples template formatting from document processing: an offline track extracts template constraints into a reusable manifest, while an online track implements a hybrid execution pipeline. This pipeline confines LLM usage exclusively to reasoning-intensive components (e.g., semantic metadata, bibliographic references, and complex visual/tabular layouts) while delegating rule-based engines for deterministic processing. Empirical evaluation across 7 LaTeX templates and 56 published research papers demonstrates that our method preserves better structural fidelity, satisfies diverse layout constraints, and achieves a higher compilation success rate compared to the previous baselines.