PaperFit:科学文档中的视觉闭环排版优化
PaperFit: Vision-in-the-Loop Typesetting Optimization for Scientific Documents
AI总结:
PaperFit通过视觉闭环优化将可编译的LaTeX文档转化为高质量PDF,解决排版问题并提升文档自动化流程的完整性。
摘要:
一篇能够成功编译的LaTeX手稿并不一定准备好发表。生成的PDF经常出现位置错误的浮动图像、溢出的方程、不一致的表格缩放、孤行和孤行以及糟糕的页面平衡,迫使作者进入重复的编译-检查-编辑循环。基于规则的工具无法看到渲染的视觉效果,仅在源代码和日志文件上操作。纯文本LLM只能进行开环文本编辑,无法预测或验证其更改对二维布局的影响。因此,可靠的排版优化需要一个具有视觉闭环的验证,每次编辑后都要进行验证。我们正式将此问题定义为视觉排版优化(VTO),即通过迭代视觉验证和源级修订,将可编译的LaTeX论文转化为视觉上精细且符合页面预算的PDF。我们引入了五类排版缺陷分类法来指导诊断。我们提出了PaperFit,一个具有视觉闭环的代理,能够迭代渲染页面、诊断缺陷并应用受约束的修复。为了基准测试VTO,我们构建了PaperFit-Bench,包含200篇跨10个会议模板和13种缺陷类型的论文,并在不同难度级别上进行测试。广泛的实验表明,PaperFit在所有基线中表现显著优于,证明了从可编译源到可发表PDF之间的差距需要视觉闭环优化,并且VTO构成了文档自动化流程中的关键缺失阶段。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。