PaperFit:面向科学文档的视觉在环排版优化
研究团队提出了视觉排版优化任务,旨在通过迭代的视觉验证与源码修订,将可编译的LaTeX论文转化为视觉精良且符合页面预算的PDF。为此,他们构建了PaperFit-Bench基准,涵盖10种会议模板和13种缺陷类型。论文提出的PaperFit系统是一个视觉在环的智能体,能够迭代渲染页面、诊断排版缺陷并执行约束修复。实验表明,PaperFit大幅优于所有基线方法,证实了从可编译源码到可出版PDF的转化需要视觉在环的优化,且该任务是文档自动化流程中一个关键缺失环节。
A LaTeX manuscript that compiles without error is not necessarily publication-ready. The resulting PDFs frequently suffer from misplaced floats, overflowing equations, inconsistent table scaling, widow and orphan lines, and poor page balance, forcing authors into repetitive compile-inspect-edit cycles. Rule-based tools are blind to rendered visuals, operating only on source code and log files. Text-only LLMs perform open-loop text editing, unable to predict or verify the two-dimensional layout consequences of their changes. Reliable typesetting optimization therefore requires a visual closed loop with verification after every edit. We formalize this problem as Visual Typesetting Optimization (VTO), the task of transforming a compilable LaTeX paper into a visually polished, page-budget-compliant PDF through iterative visual verification and source-level revision, and introduce a five-category taxonomy of typesetting defects to guide diagnosis. We present PaperFit, a vision-in-the-loop agent that iteratively renders pages, diagnoses defects, and applies constrained repairs. To benchmark VTO, we construct PaperFit-Bench with 200 papers across 10 venue templates and 13 defect types at different difficulty. Extensive experiments show that PaperFit outperforms all baselines by a large margin, establishing that bridging the gap from compilable source to publication-ready PDF requires vision-in-the-loop optimization and that VTO constitutes a critical missing stage in the document automation pipeline.