arXiv:2605.10845cs.CVcs.CL2026-05ACL

用中间表示实现高保真文档翻译,兼顾排版与语义

BabelDOC: Better Layout-Preserving PDF Translation via Intermediate Representation

论文配图:BabelDOC: Better Layout-Preserving PDF Translation via Intermediate Representation
图 1 · 摘自论文原文
  • 分离内容与布局,通过中间表示统一管理文档结构
  • 在200页基准上提升排版保真度、术语一致性与视觉美感
  • 适合需要精准排版的学术、法律、技术文档跨语言处理

随着全球跨语言交流加剧,包含丰富视觉信息的PDF文档仍面临语言障碍。现有翻译流程在语言处理与排版保持间存在矛盾:文本导向的CAT系统常丢失结构元数据,而文档解析器仅支持提取,无法忠实重渲染。我们提出BabelDOC,一种基于中间表示(IR)的布局保真型PDF翻译框架。BabelDOC将视觉布局元数据与语义内容解耦,支持文档级操作如术语提取、跨页上下文处理、术语表约束生成和公式占位。翻译后内容通过自适应排版引擎重新锚定至原始布局。在定制化的200页基准上,结合人工评估与多模态大模型评判,BabelDOC在排版保真度、视觉美观性和术语一致性上优于主流基线,同时保持竞争力的翻译精度。开源工具包及交互式下游应用已公开,撰写时获8.4K GitHub星标与17名贡献者。演示视频亦可获取。

原文摘要 · Abstract (English)

As global cross-lingual communication intensifies, language barriers in visually rich documents such as PDFs remain a practical bottleneck. Existing document translation pipelines face a tension between linguistic processing and layout preservation: text-oriented Computer-Assisted Translation (CAT) systems often discard structural metadata, while document parsers focus on extraction and do not support faithful re-rendering after translation. We introduce BabelDOC, an Intermediate Representation (IR)-based framework for layout-preserving PDF translation. BabelDOC decouples visual layout metadata from semantic content, enabling document-level translation operations such as terminology extraction, cross-page context handling, glossary-constrained generation, and formula placeholdering. The translated content is then re-anchored to the original layout through an adaptive typesetting engine. Experiments on a curated 200-page benchmark, together with human evaluation and multimodal LLM-as-a-judge evaluation, show that BabelDOC improves layout fidelity, visual aesthetics, and terminology consistency over representative baselines, while maintaining competitive translation precision. The open-source toolkit and its interactive downstream applications are publicly available and have attracted over 8.4K GitHub stars and 17 contributors at the time of writing. A demonstration video is also available.

文档翻译布局保真中间表示PDF处理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。