Structured Document Translation via Format Reinforcement Learning
Haiyue Song, Johannes Eschbach-Dymanus, Hour Kaing, Sumire Honda, Hideki Tanaka, Bianka Buschbeck, Masao Utiyama
TL;DR
<FormatRL> reframes structured document translation as a format-aware RL problem, introducing TreeSim and Node-chrF rewards and optimizing via Group Relative Policy Optimization to improve structural fidelity while preserving translation quality. It also proposes StrucAUC, a fine-grained document-level metric that blends node-level translation with structural alignment under controlled edit tolerances. Empirical results on the SAP software documentation dataset show meaningful gains in XML-Match and StrucAUC, with competitive translation quality, and analyses illuminate reward-metric alignment and synthetic data effects. The work demonstrates the practical viability of end-to-end, structure-aware document translation and provides a rigorous evaluation framework for future research in this area.
Abstract
Recent works on structured text translation remain limited to the sentence level, as they struggle to effectively handle the complex document-level XML or HTML structures. To address this, we propose \textbf{Format Reinforcement Learning (FormatRL)}, which employs Group Relative Policy Optimization on top of a supervised fine-tuning model to directly optimize novel structure-aware rewards: 1) TreeSim, which measures structural similarity between predicted and reference XML trees and 2) Node-chrF, which measures translation quality at the level of XML nodes. Additionally, we apply StrucAUC, a fine-grained metric distinguishing between minor errors and major structural failures. Experiments on the SAP software-documentation benchmark demonstrate improvements across six metrics and an analysis further shows how different reward functions contribute to improvements in both structural and translation quality.
