多智能体协作翻译复杂LaTeX文档,保持格式与结构完整
LaTeXTrans: Structured LaTeX Translation with Multi-Agent Coordination
- 六智能体分工:解析、翻译、校验、总结、术语提取、重构建
- 相比主流翻译系统,准确率和结构保留率显著提升
- 适合学术写作、技术文档跨语言转换的科研与工程人员
尽管现代机器翻译系统在通用文本上取得显著进展,但翻译结构化LaTeX文档仍面临重大挑战。这类文档通常混合自然语言与领域特定语法,如数学公式、表格、图表和交叉引用,需精准保留以确保语义完整性和可编译性。本文提出LaTeXTrans,一个协同多智能体系统来解决此问题。该系统通过六个专用智能体实现格式保真、结构一致与术语统一:1)解析器通过占位符替换与语法过滤将LaTeX分解为可翻译单元;2)翻译、验证、摘要、术语提取智能体协同工作,实现上下文感知、自我纠错与术语一致性;3)生成器将翻译内容重构为结构良好的LaTeX文档。实验结果表明,LaTeXTrans在翻译准确率与结构保留方面均优于主流机器翻译系统。源代码、在线演示平台及演示视频已公开。
原文摘要 · Abstract (English)
Despite the remarkable progress of modern machine translation (MT) systems on general-domain texts, translating structured LaTeX-formatted documents remains a significant challenge. These documents typically interleave natural language with domain-specific syntax, such as mathematical equations, tables, figures, and cross-references, all of which must be accurately preserved to maintain semantic integrity and compilability. In this paper, we introduce LaTeXTrans, a collaborative multi-agent system designed to address this challenge. LaTeXTrans ensures format preservation, structural fidelity, and terminology consistency through six specialized agents: 1) a Parser that decomposes LaTeX into translation-friendly units via placeholder substitution and syntax filtering; 2) a Translator, Validator, Summarizer, and Terminology Extractor that work collaboratively to ensure context-aware, self-correcting, and terminology-consistent translations; 3) a Generator that reconstructs the translated content into well-structured LaTeX documents. Experimental results show that LaTeXTrans outperforms mainstream MT systems in both translation accuracy and structural preservation. The source code, the online demonstration platform, and a demo video are publicly available.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。