Paper deep dive
Tag-Aware Structured Text Translation: Towards a Systematic Understanding
Zhanglin Wu, Hengchao Shang, Daimeng Wei, Jiaxin Guo, Zongyao Li, Tengfei Song, Ning Xie, Weidong Zhang
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 94%
Last extracted: 9/25/2026, 4:56:18 AM
Summary
This paper addresses the challenge of tag-aware structured text translation, where large language models struggle to balance translation fluency with structural tag fidelity. The authors propose a systematic framework comprising three levels: (1) Data synthesis via a hybrid strategy (Hy-LST) that combines LLM-based synthesis (LST) for naturalness and a two-stage method (LST-2S) for diversity; (2) Capability building through a multi-task supervised fine-tuning (SFT) framework with four progressively difficult sub-tasks; and (3) Multi-objective alignment using Group Relative Policy Optimization (GRPO) with three complementary reward functions for fluency, tag fidelity, and tag-scoped quality. Experiments on six language directions demonstrate that this approach significantly outperforms existing baselines and closed-source LLMs.
Entities (10)
Relation Signals (9)
Hy-LST → combines → LST
confidence 95% · We propose a hybrid synthesis strategy (Hy-LST) combining LLM-based synthesis tag method and Two-Stage LLM-based synthesis tag method
Hy-LST → combines → LST-2S
confidence 95% · We propose a hybrid synthesis strategy (Hy-LST) combining LLM-based synthesis tag method and Two-Stage LLM-based synthesis tag method
Qwen2.5-7B → isbasemodelfor → Proposed System
confidence 95% · We choose Qwen2.5-7B as the base LLM.
Proposed System → outperforms → Existing Methods
confidence 94% · the complete system significantly outperforms existing methods.
Multi-Task SFT → decomposes → tag-aware translation
confidence 93% · we decompose tag-aware translation into four sub-tasks of increasing difficulty in a multi-task supervised fine-tuning framework
Proposed System → outperforms → Closed-Source LLMs
confidence 93% · our method outperforms all four closed-source LLMs despite using a smaller base model.
GRPO → optimizes → multi-objective alignment
confidence 92% · We design three complementary reward functions under a group relative policy optimization framework... joint optimization consistently outperforms single-reward alternatives.
LST-2S → increases →
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Internet texts are replete with format tags that carry structural, semantic, and functional meaning. Current large language model (LLM)-based translation systems struggle to balance translation fluency with tag fidelity when processing tagged text. We argue that resolving this tension requires a systematic approach at three interconnected levels: data synthesis, capability building, and multi-objective alignment. At the data level, we identify and formalize a fundamental trade-off between structural tag diversity and translation naturalness in synthetic data generation; existing methods optimize for one at the expense of the other. We propose a hybrid synthesis strategy (Hy-LST) combining LLM-based synthesis tag method and Two-Stage LLM-based synthesis tag method to produce both diverse and natural tagged data. At the capability level, we decompose tag-aware translation into four sub-tasks of increasing difficulty in a multi-task supervised fine-tuning framework, enabling targeted capability acquisition and knowledge transfer. At the alignment level, we design three complementary reward functions under a group relative policy optimization framework, each targeting a distinct objective (fluency, tag fidelity, and tag-scoped translation quality), and show that joint optimization consistently outperforms single-reward alternatives. Experiments on six language directions (en2zh, en2ja, en2de, en2fr, en2ru, de2fr) demonstrate that each level contributes measurable improvements, and the complete system significantly outperforms existing methods. Qualitative analysis reveals specific error patterns and their mitigation after training with our method.
Tags
Links
- Source: https://arxiv.org/abs/2609.29131v1
- Canonical: https://arxiv.org/abs/2609.29131v1
Trouble viewing inline? Open PDF directly →
Full Text
51,519 characters extracted from source content.
Expand or collapse full text
Tag-Aware Structured Text Translation: Towards a Systematic Understanding Zhanglin Wu Email: lizongyao@huawei.com Hengchao Shang Email: songtengfei2@huawei.com Daimeng Wei Email: zhangweidong17@huawei.com Jiaxin Guo Email: nicolas.xie@huawei.com Zongyao Li, Tengfei Song, Ning Xie, Weidong Zhang Affiliation: Huawei Translation Service Center, Beijing, Chinawuzhanglin2,shanghengchao,weidaimeng,guojiaxin1, Abstract Internet texts are replete with format tags that carry structural, semantic, and functional meaning. Current large language model (LLM)-based translation systems struggle to balance translation fluency with tag fidelity when processing tagged text. We argue that resolving this tension requires a systematic approach at three interconnected levels: data synthesis, capability building, and multi-objective alignment. At the data level, we identify and formalize a fundamental trade-off between structural tag diversity and translation naturalness in synthetic data generation; existing methods optimize for one at the expense of the other. We propose a hybrid synthesis strategy (Hy-LST) combining LLM-based synthesis tag method and Two-Stage LLM-based synthesis tag method to produce both diverse and natural tagged data. At the capability level, we decompose tag-aware translation into four sub-tasks of increasing difficulty in a multi-task supervised fine-tuning framework, enabling targeted capability acquisition and knowledge transfer. At the alignment level, we design three complementary reward functions under a group relative policy optimization framework, each targeting a distinct objective (fluency, tag fidelity, and tag-scoped translation quality), and show that joint optimization consistently outperforms single-reward alternatives. Experiments on six language directions (en2zh, en2ja, en2de, en2fr, en2ru, de2fr) demonstrate that each level contributes measurable improvements, and the complete system significantly outperforms existing methods. Qualitative analysis reveals specific error patterns and their mitigation after training with our method. COMETXML-MatchXML-IN-COMET40406060808090.490.491.491.488.688.645.745.777.277.2929286.386.395.195.1Metric (%)Detag-MTOur-Detag-MTTag-MTOur-tag-MT Figure 1: Our tag-aware system vs. plain SFT: a comparison of detag and tag-aware translation modes in en2zh machine translation. 1 Introduction In the context of deep integration between globalization and the internet, cross-lingual information exchange is becoming increasingly frequent. Web pages, documents, and various other forms of online content widely adopt structured tags such as HTML. These tags not only control the presentation format of text but also carry rich semantic connotations and functional value. During machine translation Vaswani et al. (2017); Sutskever et al. (2014), if such tags are not properly handled, it can easily lead to formatting chaos and may further cause semantic distortion and functional failure. Although large language models (LLMs) Touvron et al. (2023); Bai et al. (2023); DeepSeek-AI (2024) have made significant progress in translating untagged text, they still face considerable challenges when handling tagged text. As shown in Figure 1, after supervised fine-tuning (SFT) Dong et al. (2024) on untagged data (Plain SFT), LLMs exhibit both low tag fidelity and degraded translation quality when translating tagged text. This reveals that vanilla LLMs lack the inherent ability to comprehend tag structures during translation. Existing approaches fall into two eras. Before the rise of LLMs, two paradigms dominated. The detag-and-project method Joanis et al. (2013); Müller (2017); Zenkel et al. (2021) removes tags from the source for translation and then projects them back based on alignment, separating translation from tag handling and causing error propagation. The masked tag training method Hanneman and Dinu (2020); Elshin et al. (2024) normalizes tags into the translation process, but the sparsity of tag data disrupts attention distributions. Both treat tags as peripheral artifacts rather than integral structures. With LLMs, studies Dabre et al. (2023) introduce tagged examples as few-shot demonstrations, while others leverage phrase alignment-based synthesis tag method (AST) Ryu et al. (2022) or LLM-based synthesis tag method (LST) Dabre et al. (2024) to synthesize tagged bilingual data for training. Despite these advances, existing approaches share a critical limitation: they lack a systematic understanding of what tag-aware translation requires. We identify three gaps that must be addressed jointly: Gap 1: Data-level diversity-naturalness trade-off. The first gap arises at the lowest level of the pipeline: the data itself. Tagged bilingual data is scarce, so synthesis is required. The two dominant methods, AST and LST, both couple tag insertion with target-side alignment, producing natural but structurally rigid training data. Decoupling insertion from translation, as in our Two-Stage LST (LST-2S), increases diversity but degrades translation naturalness. Resolving this trade-off requires a principled hybrid strategy. Gap 2: Capability-level task decomposition. Tag-aware translation is not a monolithic task. It requires (a) fluent semantic mapping, (b) tag structure recognition and fidelity, (c) understanding tag semantic scope, and (d) flexible sentence restructuring to accommodate tags. Training all these capabilities under a single objective forces the model to learn competing skills simultaneously, leading to suboptimal performance on each. Gap 3: Alignment-level multi-objective optimization. Translation fluency and tag fidelity are inherently competing objectives: preserving tag structure may require rigid sentence alignment, while maximizing fluency may break it. A single reward cannot capture this tension. Multiple reinforcement signals are needed to find the optimal trade-off. Our contributions. To address these gaps, we propose a systematic framework: • Data level: We formalize the diversity-naturalness trade-off and propose Hy-LST, a hybrid strategy combining LST (high naturalness) with LST-2S (high diversity). To our knowledge, this is the first work to explicitly characterize and address this trade-off. • Capability level: We design a multi-task Luong et al. (2015) SFT framework with four tasks of increasing difficulty, enabling knowledge transfer across skills. • Alignment level: We introduce three complementary reward functions under Group Relative Policy Optimization (GRPO) Shao et al. (2024), targeting fluency, tag fidelity, and tag-scoped translation quality, and demonstrate that joint optimization outperforms both single-reward and no-RL baselines. 2 Method As shown in Figure 2, our method addresses the three gaps identified in Section 1 through a systematic multi-level framework. Figure 2: Our Proposed systematic multi-level framework. Figure 3: Our method (LST-2S) vs. existing methods (AST and LST) for synthesizing en2zh tag examples. 2.1 Hybrid Synthetic Tag As identified in Gap 1 (Section 1), tagged bilingual data is scarce, and synthesis is required. The design of a synthesis strategy involves a fundamental trade-off: structural diversity (how varied the tag placements are) versus translation naturalness (how fluent the resulting tagged target text is). Phrase Alignment-Based Synthesis Tag (AST) Ryu et al. (2022) obtains bilingual word alignment, expands it to phrase alignment, and wraps tags around aligned phrase pairs. AST achieves high naturalness (tags align with linguistically meaningful units) but low diversity (constrained to alignment boundaries). LLM-based Synthesis Tag (LST) Dabre et al. (2024) uses few-shot prompting to generate tagged bilingual pairs directly. LST produces more natural insertion positions than AST, but still couples source and target tag placement through the generation process, limiting structural variety. Both methods couple tag insertion with target-side alignment, restricting diversity. To overcome this, we propose a two-stage decoupled strategy: Two-Stage LLM-based Synthesis Tag (LST-2S): In stage one, an LLM inserts tags randomly into the source text without target constraints, maximizing structural diversity. In stage two, the LLM translates the tagged source into tagged target text, using the original untagged bilingual pair as context. Decoupling allows arbitrary tag placements while enabling the LLM to adapt sentence structures flexibly. Figure 3 shows examples. Hybrid LLM-based Synthesis Tag (Hy-LST): LST-2S achieves higher diversity, but the second-stage translation of arbitrarily tagged sources can degrade fluency. We propose a hybrid strategy combining LST and LST-2S data in equal proportion, balancing LST’s naturalness with LST-2S’s diversity. The model is thus exposed to both naturally aligned and structurally diverse tag patterns. A detailed experimental comparison of the two methods in terms of tag diversity and translation fluency is presented in Appendix A. 2.2 Two-Stage Tag-Aware Training The training process is divided into two stages with complementary objectives: SFT builds fundamental tag comprehension, while GRPO fine-tunes the balance between competing objectives. 2.2.1 Stage 1: Multi-Task SFT As identified in Gap 2 (Section 1), tag-aware translation bundles together multiple competing capabilities. Our solution is to decompose this complex competency into four tasks with increasing difficulty. Formally, each sentence has two representations: untagged text and tagged text. Let X and Y denote the untagged source and target sentences. Let TXT_X denote the tagged source (source text with tags inserted), and TYT_Y the tagged target (target text with tags inserted). The four tasks are ordered by the amount of auxiliary information available. Task1:ℐ1=X,1=Y 1: _1=X,\ \;O_1=Y (1) Task2:ℐ2=(X,Y,TX),2=TY 2: _2=(X,Y,T_X), _2=T_Y (2) Task3:ℐ3=(X,TX),3=TY 3: _3=(X,T_X), _3=T_Y (3) Task4:ℐ4=TX,4=TY 4: _4=T_X, \;O_4=T_Y (4) The difficulty progression is governed by how much information the model can leverage beyond the tagged source TXT_X. In Task1, the model learns basic translation from X to Y, establishing fluency without tag interference. In Task2, the model receives both the untagged bilingual pair (X,Y)(X,Y) and the tagged source TXT_X, providing direct supervision for mapping tagged inputs to tagged outputs. In Task3, the target reference Y is removed, so the model must independently determine sentence restructuring while only having the untagged source X as a guide. In Task4, only the tagged source TXT_X is given, and the model must simultaneously recognize tag structures, understand their semantic scope, and produce a fluent tagged translation with no external guidance. By training these tasks jointly, the multi-task framework enables natural knowledge transfer: fluency from Task1 benefits all higher tasks, contextual reasoning from Task2 and Task3 equips the model for the fully independent Task4, and tag awareness acquired across TX→TYT_X→ T_Y mappings reinforces understanding throughout the multi-level framework. Figure 4: Prompt Design for Multi-task SFT. 2.2.2 Stage 2: Multi-Reward GRPO As identified in Gap 3 (Section 1), translation fluency and tag fidelity are inherently competing objectives, making a single reinforcement learning reward insufficient. To address this, we design three reward functions (Eqs. 5–7) under GRPO and combine them via weighted summation (Eq. 8). Translation Quality Reward (R1R_1): COMET Rei et al. (2020); Rei et al. (2022a) is used to evaluate overall fluency on untagged text. To avoid overfitting, COMET-20 is employed during training and COMET-22 during testing. R1=comet20(X,Ymt,Yref)R_1=comet_20(X,Y_mt,Y_ref) (5) Tag Fidelity Reward (R2R_2): Exact set matching between the tag set extracted from the model-generated tagged translation TYmtT_Y^mt and the gold tagged target TYrefT_Y^ref. Let (⋅)T(·) denote the set of tags present in a tagged sequence. Then: R2=|(TYmt)∩(TYref)|max(|(TYmt)|,|(TYref)|)R_2= |T(T_Y^mt) (T_Y^ref)| (|T(T_Y^mt)|,|T(T_Y^ref)|) (6) Tag-Scoped Translation Quality Reward (R3R_3): Average COMET score across all tag-scoped segments, computed as: R3=1N∑i=1Ncomet20(Xi,Ymt,i,Yref,i)R_3= 1N _i=1^Ncomet_20 (X_i,Y_mt,i,Y_ref,i ) (7) R1R_1 targets fluency, R2R_2 enforces structural fidelity, and R3R_3 ensures tag-scoped translation quality. The combined reward is defined as follows: Rtotal=α⋅R1+β⋅R2+γ⋅R3α+β+γ R_total= α· R_1+β· R_2+γ· R_3α+β+γ (8) where α, β, γ control the relative importance of each objective (default α=β=γ=1α=β=γ=1). This multi-reward formulation jointly optimizes the balance between translation fluency and tag fidelity. 3 Experiment 3.1 Dataset 3.1.1 Open-source Dataset Our experiments use the multilingual structured document translation dataset Hashimoto et al. (2019)11 1 https://github.com/salesforce/localization-xml-mt, which is multi-way parallel with each English source sentence aligned to translations in Chinese, Japanese, German, French, and Russian; from this dataset we select six translation directions: en2zh, en2ja, en2de, en2fr, en2ru, and de2fr. For the five English-centric directions, each provides about 100K training instances, 2K development instances, and 2K test instances. Since the test set references are not publicly available, we use the development set for testing instead. To prevent data leakage, we remove any training sample whose source text appears in the test set. For the de2fr direction, we construct bilingual pairs by matching German and French sentences that share the same English source, resulting in approximately 90K training pairs, from which we reserve 2K as the test set. Table 1 summarizes the data statistics. Dataset en2zh en2ja en2de en2fr en2ru de2fr Train 88611 90761 91333 91419 88983 88514 Test 2000 2000 2000 2000 2000 2000 Table 1: Our extended localization-xml-mt dataset. 3.1.2 Extended Testset The original test set has a low ceiling: only 27% of samples contain tags, and 82% of those have just 1-2 tag pairs. To enable meaningful comparison, we augment tags using LST with three different LLMs (Qwen-max Bai et al. (2023), GPT-4o Hurst et al. (2024), and GLM-4.7). Samples are filtered by XML-MATCH and XML-IN-COMET22-KIWI (thresholds 100 and 80). After expansion, 97% of samples contain tags and only 44% have 1-2 pairs. To avoid distributional overlap, we use DeepSeek-v3 DeepSeek-AI (2024) for training data synthesis, ensuring training and test sets are generated by different LLM families. 3.1.3 Real-World Testset To assess generalization beyond synthetic tags, we create a real-world test set from naturally tagged HTML web pages. The English set includes 2,000 samples crawled from English web pages and is used to evaluate the en2zh direction. By keeping real-world tag structures, each sample offers a complementary evaluation to our extended test set. 3.2 Evaluation Metrics We evaluate three aspects: translation quality (using BLEU Papineni et al. (2002) and COMET on untagged text), tag fidelity (via XML-ACC and XML-MATCH Hashimoto et al. (2019)), and tag-scoped translation quality (via our proposed XML-IN-* metrics). Specifically, XML-IN-BLEU extracts text between each tag pair before computing BLEU, avoiding alignment issues in XML-BLEU, while XML-IN-COMET replaces BLEU with COMET for more flexible evaluation (see Appendix B for a concrete comparison). For the real-world validation subset without references, we employ COMET22-KIWI Rei et al. (2022b) to evaluate translation quality. 3.3 Baselines We choose Qwen2.5-7B as the base LLM. Baselines are organized by research question: How well does a vanilla LLM perform? Prompt (direct translation) and Few-shot Prompt (three similar examples retrieved by LABSE Feng et al. (2022)). Detag-and-project removes tags, translates with Plain SFT (i.e., SFT trained on untagged data), and projects back via awesome-align Dou and Neubig (2021) and Min-Max Tag Pair Projection Zenkel et al. (2021). How effective are existing SFT-based methods? Masked SFT (numbered mask tokens), AST SFT (phrase alignment synthesis Och et al. (1999); Bird and Loper (2004)), and LST SFT (LLM-guided synthesis using DeepSeek-V3 with three few-shot examples per direction). Do our proposed methods provide additional gains? We construct a progressive ablation: Hy-LST SFT, Multi-Task Hy-LST SFT, and +Multi-Reward GRPO, to quantify the contribution of each component. How do closed-source LLMs compare? We compare against Qwen-max, GPT-4o Hurst et al. (2024), GLM-4.7, and DeepSeek-V3 DeepSeek-AI (2024), evaluated on a real-world testset under zero-shot prompting with tagged input. en2zh BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Prompt 32.99 84.93 94.25 38.15 33.79 76.83 60.16 Few-shot Prompt 34.07 85.55 97.05 60.15 49.59 84.32 68.46 Detag-and-project 55.49 90.36 95.25 73.65 56.53 90.03 76.89 Masked SFT 55.84 90.99 99.85 79.30 77.01 94.02 82.84 AST SFT 55.70 90.75 99.15 80.70 75.44 93.94 82.61 LST SFT 57.16 91.33 99.95 85.10 78.22 94.48 84.37 Hy-LST SFT 57.40 91.41 99.95 85.21 78.70 94.64 84.55 Multi-Task Hy-LST SFT 59.66 91.76 99.95 85.00 79.93 94.94 85.21 +Multi-Reward GRPO 60.22 91.98 100.00 86.25 80.16 95.10 85.62 Table 2: Evaluation results on the en2zh extended testset. 3.4 Training Details SFT: We use Qwen2.5-7B as the base model and apply LoRA Gao et al. (2024) fine-tuning (r=8r=8, α=16α=16, all target modules, dropout 0.0 Srivastava et al. (2014)) via LlamaFactory Zheng et al. (2024). The warmup ratio is set to 0.1 Fradkin et al. (2010), a cosine annealing learning rate scheduler Liu (2022) is adopted, the learning rate is 1e-4, and gradient accumulation is used to achieve an effective batch size of 32. Training runs up to 3 epochs on 8 GPUs, and the checkpoint with the lowest validation loss is selected. GRPO: We use Open-R1 Hugging Face (2025) with Task4 as the training objective (fastest speed, marginal performance gap compared to other inference modes). Data amount is 1/10 of SFT. 8 GPUs: one runs vLLM Kwon et al. (2023) (7 candidates per source, temperature 1.0), seven handle training (batch size 7 per card, 4-step accumulation). DeepSpeed ZeRO3-offload, bfloat16, learning rate 1e-6, cosine annealing with 5% warmup, max length 4096. Early stopping after 5 consecutive non-improving evaluations on validation reward; checkpoints are saved every 100 steps. 4 Results We organize our results around the research questions outlined in Section 3.3 with Qwen2.5-7B on the en2zh extended testset (Table 2). 4.1 Vanilla LLM Performance Without specialized training, vanilla LLMs perform poorly on tag-aware translation. Prompt achieves only 60.16 avg. score, with particularly low XML-Match (38.15) and XML-IN-COMET (76.83). Few-shot Prompt improves to 68.46 avg., but still lags far behind SFT-based methods. Detag-and-project reaches 76.89 avg. by separately handling translation and tag projection, but error propagation limits its XML-Match to 73.65. These results confirm that vanilla LLMs fundamentally lack the ability to comprehend tag structures during translation, and simple prompting or separate-then-project strategies are insufficient. 4.2 Existing SFT-Based Methods All existing SFT-based methods substantially outperform prompting baselines. Masked SFT achieves 82.84 avg. (XML-Match 79.30), AST SFT reaches 82.61 avg. (XML-Match 80.70), and LST SFT leads at 84.37 avg. (XML-Match 85.10). The progression from Masked to AST to LST confirms that synthesis quality matters: LLM-generated tag patterns (LST) produce better tag fidelity than alignment-based (AST) or mask-based approaches. However, even the best existing method, LST SFT, leaves room for improvement across all metrics. 4.3 Proposed Method Gains Our progressive ablation confirms independent contributions from each component: Hy-LST SFT (84.55 avg.) improves over LST SFT by +0.18 avg. score, primarily through better XML-Match (85.21 vs. 85.10) and XML-IN-COMET (94.64 vs. 94.48), validating that the hybrid synthesis strategy balances structural diversity with translation naturalness. Multi-Task Hy-LST SFT (85.21 avg.) adds +0.66 over Hy-LST SFT. The largest gains are in BLEU (+2.26) and COMET (+0.35), indicating that knowledge transfer from simpler sub-tasks significantly improves overall translation fluency without sacrificing tag fidelity. +Multi-Reward GRPO (85.62 avg.) adds another +0.41, concentrated in XML-Match (+1.25), the most challenging tag fidelity metric. Multi-objective alignment through complementary rewards successfully optimizes the fluency-fidelity trade-off that single-reward or no-RL approaches cannot resolve. 4.4 Comparison with Closed-Source LLMs On a real-world test set (Table 3), our method outperforms all four closed-source LLMs despite using a smaller base model. Qwen-max ranks first among closed-source models (75.36), while DeepSeek-V3 achieves the best translation quality (KIWI 80.45) but poor tag fidelity (55.10), confirming that even advanced LLMs struggle with tag structure without dedicated training. en2zh KIWI XML-MATCH XML-IN-KIWI Avg. Qwen-max 80.13 78.15 67.81 75.36 GPT-4o 78.57 52.45 60.53 63.85 GLM-4.7 80.07 67.35 63.95 70.46 DeepSeek-V3 80.45 55.10 60.86 65.47 Prompt 78.73 26.25 54.31 53.10 LST SFT 79.04 89.30 71.04 79.79 Hy-LST SFT 79.15 90.10 71.35 80.20 Multi-Task Hy-LST SFT 79.20 91.25 71.95 80.80 +Multi-Reward GRPO 79.47 92.10 72.43 81.33 Table 3: Results on the en2zh real-world testset. 5 Analysis 5.1 Hy-LST vs. Other Synthesis Methods en2zh BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Plain SFT 51.54 88.57 98.45 45.70 33.66 77.23 65.86 Clean SFT 55.29 90.60 99.90 77.20 76.18 93.34 82.09 Masked SFT 55.84 90.99 99.85 79.30 77.01 94.02 82.84 AST SFT 55.70 90.75 99.15 80.70 75.44 93.94 82.61 LST SFT 57.16 91.33 99.95 85.10 78.22 94.48 84.37 LST-2S SFT 56.06 91.13 99.90 82.90 77.66 94.14 83.63 LST+LST-2S SFT 57.40 91.41 99.95 85.21 78.70 94.64 84.55 AST+LST-2S SFT 56.45 91.15 99.90 82.60 77.73 94.20 83.67 AST+LST+LST-2S SFT 57.30 91.42 100.00 84.40 78.56 94.72 84.40 Table 4: Comparison of tag synthesis methods on en2zh extended testset. en2zh BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Task1 SFT 51.54 88.57 98.45 45.70 33.66 77.23 65.86 Task1+Task2 SFT 59.39 91.79 99.90 85.40 80.13 94.78 85.23 Task3 SFT 58.02 91.58 100.00 85.10 79.19 94.70 84.77 Task4 SFT 57.40 91.41 99.95 85.21 78.70 94.64 84.55 Multi-Task SFT (Task1 MT) 57.63 91.40 - - - - - Multi-Task SFT (Task1+Task2 MT) 60.18 91.90 99.95 85.85 80.22 95.04 85.52 Multi-Task SFT (Task3 MT) 60.16 91.92 100.00 85.65 79.95 94.96 85.44 Multi-Task SFT (Task4 MT) 59.66 91.76 99.95 85.00 79.93 94.94 85.21 Table 5: Comparison of SFT training tasks on en2zh extended testset. Plain SFT (avg. 65.86) confirms tag exposure is essential. Clean SFT (original tags) reaches 82.09. Among single methods, LST (84.37) outperforms AST (82.61) and LST-2S (83.63). Critically, LST-2S underperforms LST, confirming our motivation: the two-stage decoupling increases diversity but introduces translation quality degradation in second-stage re-translation. The hybrid LST+LST-2S achieves 84.55, surpassing both individual methods and validating the diversity-naturalness trade-off hypothesis. Adding AST data provides no further gains, suggesting LLM-based synthesis already covers sufficient tag patterns. These results confirm that Hy-LST is better than each individual synthetic method. 5.2 Multi-Task vs. Single-Task Training Task1 (untagged only) performs worst (65.86). Task4 achieves a large jump to 84.55. Task3 (untagged source context) improves to 84.77, and Task2 (bilingual context) reaches 85.23. Multi-task training brings additional gains across all inference modes. The most notable is Task4 mode: 85.21 vs. 84.55 independently, a +0.66 gain from knowledge transfer. The gap between inference modes narrows from 0.68 to 0.31, indicating that shared representations make the model more robust. These results confirm that multi-task training outperforms single-task training. 5.3 GRPO Analysis 5.3.1 SFT Necessity for GRPO To determine whether SFT is essential or GRPO alone can learn tag-aware translation from scratch, we compare three en2zh setups: (1) Multi-Task SFT + Multi-Reward GRPO (our full method), (2) Direct Multi-Reward GRPO without SFT (base model only), and (3) Single-Task SFT (Task4) + Multi-Reward GRPO. Results in Table 6 show that Direct GRPO (no SFT) scores only 62.18, far below any SFT-based method, confirming that GRPO alone cannot acquire tag-structured translation from scratch—SFT is necessary for basic tag understanding. Moreover, Multi-Task SFT yields better GRPO initialization than Task4-only SFT (85.62 vs. 84.80), showing the multi-task benefits downstream reinforcement learning. en2zh BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Direct Multi-Reward GRPO (no SFT) 35.42 85.67 95.10 42.30 36.15 78.42 62.18 Task4 SFT + Multi-Reward GRPO 58.21 91.62 100.00 85.75 79.32 94.92 84.97 Multi-Task SFT + Multi-Reward GRPO 60.22 91.98 100.00 86.25 80.16 95.10 85.62 Table 6: Comparison of SFT initialization for GRPO on en2zh extended testset. 5.3.2 Reward Configuration en2zh BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Train Cost(h) Multi-Task Hy-LST SFT 59.66 91.76 99.95 85.00 79.93 94.94 85.21 38 +R1R_1 GRPO 60.32 92.10 100.00 84.52 79.82 94.51 85.21 44 +R2R_2 GRPO 59.32 91.41 100.00 86.34 79.63 94.76 85.24 44 +R3R_3 GRPO 59.46 91.45 99.95 85.36 80.29 95.24 85.29 44 +Multi-Reward GRPO (1:1:1) 60.22 91.98 100.00 86.25 80.16 95.10 85.62 44 +Multi-Reward GRPO (2:1:1) 60.55 92.15 100.00 85.65 80.02 94.98 85.56 44 +Multi-Reward GRPO (1:2:1) 60.01 91.58 100.00 86.78 80.01 95.02 85.57 44 +Multi-Reward GRPO (1:1:2) 60.08 91.54 100.00 86.24 80.22 95.16 85.54 44 Table 7: Comparison of GRPO reward configurations on en2zh extended testset. Reward specialization. As Table 7 shows, each single-reward configuration improves only its targeted metric: R1R_1 raises BLEU/COMET but lowers XML-Match; R2R_2 does the opposite; R3R_3 improves XML-IN-* metrics. None achieves a meaningful average gain over the SFT baseline. Joint optimization. Combining all three rewards (1:1:1) achieves the highest average score (85.62), surpassing both the SFT baseline (+0.41) and every single-reward configuration. The gain concentrates in XML-Match (+1.25), confirming that multi-reward optimization is essential for the fluency-fidelity trade-off. Weight sensitivity. All three skewed configurations (2:1:1, 1:2:1, 1:1:2) outperform single-reward and SFT baselines. Skewing toward R1R_1 improves BLEU (+0.33) at the cost of XML-Match (-0.60); skewing toward R2R_2 shows the reverse. The equal-weight (1:1:1) setting achieves the best average (85.62), though differences among multi-reward variants are marginal (85.54–85.62). 5.3.3 Cost-Benefit of GRPO Multi-Reward GRPO uses only 6% of the SFT data but incurs 1.2× training overhead (44 vs. 38 GPU hours). The overall gain is +0.41 avg. (85.21→ 85.62), concentrated in XML-Match (+1.25), the hardest tag fidelity metric. For tasks where precise tag preservation is critical, this targeted improvement justifies the added cost. 5.4 Generalization To assess generalizability, we evaluate across different base models and translation directions. Cross-model generalization. On LLaMA-3.1-8B (Table 10), our full method outperforms LST SFT (84.03 vs. 82.24 avg. on en2zh), with each component’s gains replicating those on Qwen2.5-7B, confirming our framework is model-agnostic. Cross-direction generalization. Across all five translation directions (Tables 11–15), our method achieves the highest average score with consistent gains over LST SFT, demonstrating effectiveness across diverse language pairs. 5.5 Error Analysis We categorize tag-related errors into four types: omission (dropping a tag), over-translation (inserting a spurious tag), mistranslation (incorrect tag translation), and scope misplacement (incorrect tag span). Table 8 reports error rates across our multi-level framework on the en2zh extended testset. A detailed case study is provided in Appendix C. Without tag training, omission is the dominant error at 48.00%, followed by scope misplacement at 25.49%. LST SFT drastically reduces both to 0.25% and 1.61%, respectively, making scope misplacement the most frequent remaining error. Our multi-level framework addresses this progressively: Hy-LST SFT lowers scope misplacement to 1.34%, Multi-Task SFT to 0.89%, and Multi-Reward GRPO to 0.45%, while omission drops further to 0.10%. Overall, our multi-level framework progressively mitigates all four error types, with the most significant gains achieved on omission and scope misplacement. en2zh Omission↓ (%) Over-translation↓ (%) Mistranslation↓ (%) Scope Misplacement↓ (%) Prompt 48.00 0.30 4.50 25.49 Few-shot Prompt 21.25 1.30 3.55 11.97 Detag-and-project 4.00 0.55 0.40 4.62 Masked SFT 3.75 0.45 0.10 4.21 AST SFT 5.35 0.25 0.20 4.31 LST SFT 0.25 0.10 0.05 1.61 Hy-LST SFT 0.25 0.15 0.10 1.34 Multi-Task Hy-LST SFT 0.25 0.10 0.05 0.89 +Multi-Reward GRPO 0.10 0.10 0.05 0.45 Table 8: Aggregate error rates across our multi-level framework on en2zh extended testset. 6 Conclusion Tag-aware translation faces a fundamental tension between tag fidelity and translation fluency. We address three root causes through a multi-level framework. At the data level, Hy-LST balances structural diversity with translation naturalness. At the capability level, multi-task SFT enables knowledge transfer across sub-tasks of increasing difficulty. At the alignment level, multi-reward GRPO jointly optimizes fluency, tag fidelity, and tag-scoped translation quality. Experiments across six language directions, two base models, and real-world data validate our approach. Each level progressively reduces distinct error patterns: tag omission, tag misplacement, and tag-scoped translation quality degradation. Our method achieves consistent gains over strong baselines. Limitations Despite these notable advances, several important limitations nonetheless merit careful discussion: Tag type scope. Our experiments focus exclusively on paired HTML/XML tags. Extending the framework to handle hierarchical formats such as LaTeX, particularly with cross-document references, remains an open direction for future work. Dependence on synthesis LLM quality. Hy-LST relies on DeepSeek-V3 for data synthesis. The quality and diversity of the generated tagged data are therefore bounded by the capability of this synthesis LLM. If the synthesis LLM produces unnatural tag placements or translation errors during the second stage (LST-2S), these artifacts may propagate to downstream training. Moreover, replacing DeepSeek-V3 with a weaker model could yield substantially lower gains, highlighting the framework’s sensitivity to the synthesis LLM’s performance. Computational overhead. Multi-task SFT introduces increased data management complexity by requiring four distinct task formats to be prepared and trained jointly. GRPO adds extra training time—44 vs. 38 hours, a 1.2× overhead. While this overhead remains modest relative to typical LLM training budgets, it may pose practical concerns in resource-constrained settings. References Bai et al. (2023) J. Bai, S. Bai, Y. Chu, Z. Cui, K. Dang, X. Deng, Y. Fan, W. Ge, Y. Han, F. Huang, B. Hui, L. Ji, M. Li, J. Lin, R. Lin, D. Liu, G. Liu, C. Lu, K. Lu, J. Ma, R. Men, X. Ren, X. Ren, C. Tan, S. Tan, J. Tu, P. Wang, S. Wang, W. Wang, S. Wu, B. Xu, J. Xu, A. Yang, H. Yang, J. Yang, S. Yang, Y. Yao, B. Yu, H. Yuan, Z. Yuan, J. Zhang, X. Zhang, Y. Zhang, Z. Zhang, C. Zhou, J. Zhou, X. Zhou, and T. Zhu Qwen technical report. arXiv preprint arXiv:2309.16609. Cited by: §1, §3.1.2. Bird and Loper (2004) S. Bird and E. Loper NLTK: the natural language toolkit. In Proceedings of the ACL Interactive Poster and Demonstration Sessions, Barcelona, Spain, p. 214–217. External Links: Link Cited by: §3.3. Dabre et al. (2023) R. Dabre, B. Buschbeck, M. Exel, and H. Tanaka A study on the effectiveness of large language models for translation with markup. In Proceedings of Machine Translation Summit XIX, Vol. 1: Research Track, p. 148–159. Cited by: §1. Dabre et al. (2024) R. Dabre, H. Song, M. Exel, B. Buschbeck, J. Eschbach-Dymanus, and H. Tanaka How effective is synthetic data and instruction fine-tuning for translation with markup using llms?. In Proceedings of the 16th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track), p. 73–87. Cited by: §1, §2.1. DeepSeek-AI (2024) DeepSeek-AI DeepSeek-v3 technical report. External Links: 2412.19437, Link Cited by: §1, §3.1.2, §3.3. Dong et al. (2024) G. Dong, H. Yuan, K. Lu, C. Li, M. Xue, D. Liu, W. Wang, Z. Yuan, C. Zhou, and J. Zhou How abilities in large language models are affected by supervised fine-tuning data composition. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 177–198. Cited by: §1. Dou and Neubig (2021) Z. Dou and G. Neubig Word alignment by fine-tuning embeddings on parallel corpora. In Conference of the European Chapter of the Association for Computational Linguistics (EACL), Cited by: §3.3. Elshin et al. (2024) D. Elshin, N. Karpachev, B. Gruzdev, I. Golovanov, G. Ivanov, A. Antonov, N. Skachkov, E. Latypova, V. Layner, E. Enikeeva, et al. From general llm to translation: how we dramatically improve translation quality using human evaluation data for llm finetuning. In Proceedings of the Ninth Conference on Machine Translation, p. 247–252. Cited by: §1. Feng et al. (2022) F. Feng, Y. Yang, D. Cer, N. Arivazhagan, and W. Wang Language-agnostic bert sentence embedding. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 878–891. Cited by: §3.3. Fradkin et al. (2010) A. J. Fradkin, T. R. Zazryn, and J. M. Smoliga Effects of warming-up on physical performance: a systematic review with meta-analysis. The Journal of Strength & Conditioning Research 24 (1), p. 140–148. Cited by: §3.4. Gao et al. (2024) D. Gao, Y. Ma, S. Liu, M. Song, L. Jin, W. Jiang, X. Wang, W. Ning, S. Yu, Q. Xuan, et al. FashionGPT: llm instruction fine-tuning with multiple lora-adapter fusion. Knowledge-Based Systems 299, p. 112043. Cited by: §3.4. Hanneman and Dinu (2020) G. Hanneman and G. Dinu How should markup tags be translated?. In Proceedings of the Fifth Conference on Machine Translation, p. 1160–1173. Cited by: §1. Hashimoto et al. (2019) K. Hashimoto, R. Buschiazzo, J. Bradbury, T. Marshall, R. Socher, and C. Xiong A high-quality multilingual dataset for structured documentation translation. In Proceedings of the Fourth Conference on Machine Translation (Volume 1: Research Papers), O. Bojar, R. Chatterjee, C. Federmann, M. Fishel, Y. Graham, B. Haddow, M. Huck, A. J. Yepes, P. Koehn, A. Martins, C. Monz, M. Negri, A. Névéol, M. Neves, M. Post, M. Turchi, and K. Verspoor (Eds.), Florence, Italy, p. 116–127. External Links: Link, Document Cited by: §3.1.1, §3.2. Hugging Face (2025) Hugging Face Open r1: a fully open reproduction of deepseek-r1. External Links: Link Cited by: §3.4. Hurst et al. (2024) A. Hurst, A. Lerer, A. P. Goucher, A. Perelman, A. Ramesh, A. Clark, A. Ostrow, A. Welihinda, A. Hayes, A. Radford, et al. Gpt-4o system card. arXiv preprint arXiv:2410.21276. Cited by: §3.1.2, §3.3. Joanis et al. (2013) E. Joanis, D. Stewart, S. Larkin, and R. Kuhn Transferring markup tags in statistical machine translation: a two-stream approach. In Proceedings of the 2nd Workshop on Post-editing Technology and Practice, Cited by: §1. Kwon et al. (2023) W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. E. Gonzalez, H. Zhang, and I. Stoica Efficient memory management for large language model serving with pagedattention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles, Cited by: §3.4. Liu (2022) Z. Liu Super convergence cosine annealing with warm-up learning rate. In CAIBDA 2022; 2nd International Conference on Artificial Intelligence, Big Data and Algorithms, p. 1–7. Cited by: §3.4. Luong et al. (2015) M. Luong, Q. V. Le, I. Sutskever, O. Vinyals, and L. Kaiser Multi-task sequence to sequence learning. arXiv preprint arXiv:1511.06114. Cited by: 2nd item. Müller (2017) M. Müller Treatment of markup in statistical machine translation. In Proceedings of the Third Workshop on Discourse in Machine Translation, p. 36–46. Cited by: §1. Och et al. (1999) F. J. Och, C. Tillmann, and H. Ney Improved alignment models for statistical machine translation. In 1999 Joint SIGDAT Conference on Empirical Methods in Natural Language Processing and Very Large Corpora, External Links: Link Cited by: §3.3. Papineni et al. (2002) K. Papineni, S. Roukos, T. Ward, and W. Zhu Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, p. 311–318. Cited by: §3.2. Rei et al. (2022a) R. Rei, J. G. De Souza, D. Alves, C. Zerva, A. C. Farinha, T. Glushkova, A. Lavie, L. Coheur, and A. F. Martins COMET-22: unbabel-ist 2022 submission for the metrics shared task. In Proceedings of the Seventh Conference on Machine Translation (WMT), p. 578–585. Cited by: §2.2.2. Rei et al. (2020) R. Rei, C. Stewart, A. C. Farinha, and A. Lavie COMET: a neural framework for mt evaluation. arXiv preprint arXiv:2009.09025. Cited by: §2.2.2. Rei et al. (2022b) R. Rei, M. Treviso, N. M. Guerreiro, C. Zerva, A. C. Farinha, C. Maroti, J. G. C. de Souza, T. Glushkova, D. Alves, L. Coheur, A. Lavie, and A. F. T. Martins CometKiwi: IST-unbabel 2022 submission for the quality estimation shared task. In Proceedings of the Seventh Conference on Machine Translation (WMT), P. Koehn, L. Barrault, O. Bojar, F. Bougares, R. Chatterjee, M. R. Costa-jussà, C. Federmann, M. Fishel, A. Fraser, M. Freitag, Y. Graham, R. Grundkiewicz, P. Guzman, B. Haddow, M. Huck, A. Jimeno Yepes, T. Kocmi, A. Martins, M. Morishita, C. Monz, M. Nagata, T. Nakazawa, M. Negri, A. Névéol, M. Neves, M. Popel, M. Turchi, and M. Zampieri (Eds.), Abu Dhabi, United Arab Emirates (Hybrid), p. 634–645. External Links: Link Cited by: §3.2. Ryu et al. (2022) Y. Ryu, Y. Choi, and S. Kim Data augmentation for inline tag-aware neural machine translation. In Proceedings of the Seventh Conference on Machine Translation (WMT), p. 886–894. Cited by: §1, §2.1. Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, et al. Deepseekmath: pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300. Cited by: 3rd item. Srivastava et al. (2014) N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research 15 (1), p. 1929–1958. Cited by: §3.4. Sutskever et al. (2014) I. Sutskever, O. Vinyals, and Q. V. Le Sequence to sequence learning with neural networks. NIPS. External Links: 1409.3215, Link Cited by: §1. Touvron et al. (2023) H. Touvron, T. Lavril, G. Izacard, X. Martinet, M. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar, A. Rodriguez, A. Joulin, E. Grave, and G. Lample LLaMA: open and efficient foundation language models. External Links: 2302.13971, Link Cited by: §1. Vaswani et al. (2017) A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin Attention is all you need. NIPS. External Links: 1706.03762, Link Cited by: §1. Zenkel et al. (2021) T. Zenkel, J. Wuebker, and J. DeNero Automatic bilingual markup transfer. In Findings of the Association for Computational Linguistics: EMNLP 2021, p. 3524–3533. Cited by: §1, §3.3. Zheng et al. (2024) Y. Zheng, R. Zhang, J. Zhang, Y. Ye, Z. Luo, Z. Feng, and Y. Ma LlamaFactory: unified efficient fine-tuning of 100+ language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), Bangkok, Thailand. External Links: Link Cited by: §3.4. Appendix A Detailed Comparison of LST and LST-2S We conducted a controlled experiment on the en2zh extended testset using DeepSeek-V3 to compare two methods for tagged data generation: LST and LST-2S. For each sentence in the testset, we generated ten tagged pairs using each method. To evaluate tag diversity, we employed an LLM as a judge approach with Qwen-max, which rated diversity on a scale from 0 to 5. Meanwhile, we measured translation quality on the untagged text using COMET22-KIWI. The results (Table 9) show that LST-2S achieves higher tag diversity, with a score of 4.5 compared to 3.7 for LST. However, it yields lower translation quality, scoring 77.17 versus 78.89 for LST. This inverse relationship confirms a clear trade-off between tag diversity and naturalness in translation. These findings are consistent with the discussion in Section 5.1 and motivate the development of the Hy-LST hybrid strategy, which aims to balance both aspects. en2zh Tag Diversity (LLM-as-a-Judge) Translation Quality (COMET22-KIWI) LST 3.7 78.89 LST-2S 4.5 77.17 Table 9: Comparison between LST and LST-2S on the en2zh extended testset. Appendix B XML-IN-BLEU vs. XML-BLEU This section provides a concrete comparison between XML-IN-BLEU and XML-BLEU metrics described in Section 3.2. Source: <uicontrol>Search</uicontrol> for a <varname>list view </varname> on the <term>fly</term>. Reference: <term>动态</term><uicontrol>搜索</uicontrol>一个 <varname>列表视图 </varname>。 Translation: <uicontrol>搜索</uicontrol>一个<varname>列表视图 </varname><term>在动态中</term>。 Using the example above, XML-BLEU first splits both the reference and translation into a list of substrings at each tag boundary. For the reference, the resulting list is: [“动态”, “搜索”, “一个“, “列表视图”, “。”]. Similarly, the translation becomes: [“搜索”, “一个“, “列表视图”, “在动态中”, “。”]. XML-BLEU then computes standard BLEU for each corresponding pair of substrings (by position) and averages the scores. Because the order of tag blocks is different (e.g., “动态” appears first in the reference but fourth in the translation list), the per-substring BLEU scores may be very low, leading to a poor overall average. Thus, XML-BLEU is sensitive to the sequence of XML elements; reordering of tags can substantially degrade the metric even if the content within each tag is correct. In contrast, XML-IN-BLEU ignores the order of tags and instead extracts only the text content inside each pair of matching tags, regardless of where they appear. For the same reference, the extracted contents are: [“动态” (from <term>), “搜索” (from <uicontrol>), “列表视图” (from <varname>)]. For the translation, the extracted contents are: [“搜索” (from <uicontrol>), “列表视图” (from <varname>), “在动态中” (from <term>)]. XML-IN-BLEU then computes standard BLEU for each corresponding tag type (matching by tag name, not by position) and averages the scores. Because tag order does not affect the extraction, "动态" and "在动态中" are still compared under <term>, yielding a reasonable BLEU for that tag. As a result, XML-IN-BLEU is robust to word order changes that arise from different tag sequences, focusing instead on the quality of translation within each structural element. To summarize, XML-BLEU penalizes any mismatch in the order of XML blocks, while XML-IN-BLEU evaluates each tag’s content independently. The latter is therefore more suitable for scenarios where structural reordering is allowed or common, such as in flexible document layouts or when translating between languages with different rhetorical structures. en2zh BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Prompt 33.52 82.56 92.05 59.95 51.09 84.19 67.23 Few-shot Prompt 50.93 86.45 93.50 68.40 55.21 88.57 73.84 Detag-and-project 55.66 90.18 94.80 72.75 57.02 89.91 76.72 Masked SFT 56.93 90.43 99.80 78.75 77.42 93.63 82.83 AST SFT 56.65 90.36 99.10 80.15 76.64 93.35 82.71 LST SFT 58.88 90.93 99.85 84.70 79.46 94.36 84.70 Hy-LST SFT 59.13 91.21 99.90 84.95 79.81 94.62 84.94 Multi-Task Hy-LST SFT 60.87 91.80 100.00 86.25 81.22 94.97 85.85 +Multi-Reward GRPO 61.33 92.12 100.00 87.40 81.54 95.22 86.27 Table 10: Evaluation results of LLaMA-3.1-8B on the en2zh extended testset. Appendix C Error Case Study Section 5.5 presents Table 8, which identifies four types of errors: omission, over-translation, mistranslation, and scope misplacement. The table also quantifies how our multi-level framework progressively reduces each error type. To illustrate this progression, we provide four representative examples from the en2zh real-world testset. Each erroneous translation is produced by an intermediate baseline that exhibits a specific failure mode, while the correct translation is generated by our full system, Multi-Task Hy-LST SFT with Multi-Reward GRPO. These examples reflect the error distribution shown in Table 8. In the first case, Prompt (with a 48.00% omission rate) completely drops the <b> tag from the output while retaining its content. This confirms that the model can translate the text but fails to reason about tag structure. In the second case, Masked SFT (0.45% over-translation) unnecessarily adds an extra <b> tag around <varname>, indicating that mask-based training encourages the model to extend tags beyond their intended boundaries. The third case reveals a more subtle failure: AST SFT (0.20% mistranslation) renders <varname> as <warname>, a tag name hallucination caused by alignment-based synthesis producing noisy tag label patterns. In the fourth case, LST SFT (1.61% scope misplacement) preserves the correct set of tags but swaps the content between <ph> and <varname>, which is the most persistent error type. Our full system successfully resolves all four cases. Omission (48.00% → 0.10%) Source: Add <parmname>$RecordType</parmname> <b>manu- ally</b> to your <varname>s-control</varname>. Erroneous Translation (Prompt): 请手动将<parmname>$RecordType</parmname> 添加到你的<varname>s-control</varname> 中。 (Prompt completely omits the <b> tag) Correct Translation (Full System): <b>手动</b>将<parmname>$RecordType</parmname> 添加到您的<varname>S-Control</varname>。 Over-translation (0.45% → 0.10%) Source: <b><title>Scheduling horizon limit</title></b>: Set the number of days to show before the selected <varname>scheduling horizon</varname>. Erroneous (Masked SFT): <b><title>调度视野限制</title></b>: 设置显示在所选<b><varname>调度视野</varname></b>之前的天数。 (Masked SFT over-translates the <b> tag) Correct Translation (Full System): <b><title>计划水平限制</title></b>: 设置在选定的<varname>计划水平</varname>之前显示的天数。 Mistranslation (0.20% → 0.05%) Source: <varname>welcome emails</varname> are <ph>enabled</ph> Erroneous (AST SFT): <warname>欢迎邮件</warname>是<ph>启用</ph>的 (AST SFT translates <varname> as <warname>.) Correct Translation (Full System): <varname>欢迎电子邮件</varname>已<ph>启用</ph> Scope Misplacement (1.61% → 0.45%) Source: To <ph>add filters</ph> to <varname>dashboards</var name> <p>you created</p>: Erroneous (LST SFT): 要为<p>你创建的</p><ph>仪表板</ph><varname> 添加过滤器</varname>: (LST SFT swaps the tag positions of <varname> and <ph>) Correct Translation (Full System): 要<ph>添加筛选器</ph>到<p>您创建的</p><var name>仪表板</varname>: Appendix D Per-Direction Evaluation Results We report extended results for the remaining five translation directions (en2ja, en2de, en2fr, en2ru, de2fr) in Tables 11–15. Across all directions, our full method consistently outperforms all baselines, with multi-task SFT and multi-reward GRPO providing complementary gains. en2ja BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Prompt 30.97 82.04 93.30 30.90 22.62 73.86 55.62 Few-shot Prompt 37.20 84.82 98.00 64.15 39.14 84.28 67.93 Detag-and-project 60.18 92.38 93.95 65.60 41.02 88.21 73.56 Masked SFT 60.22 92.79 99.80 73.85 68.81 93.84 81.55 AST SFT 59.97 92.27 99.15 73.45 67.82 93.67 81.06 LST SFT 62.24 93.06 100.00 81.45 71.58 94.79 83.85 Hy-LST SFT 62.24 93.20 99.95 81.45 72.24 94.83 83.99 Multi-Task Hy-LST SFT 65.23 93.61 100.00 83.50 75.01 95.20 85.43 +Multi-Reward GRPO 65.62 93.76 99.95 83.75 75.88 95.47 85.74 Table 11: Evaluation results on the en2ja extended testset. en2de BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Prompt 25.84 76.35 92.90 43.80 28.74 74.91 57.09 Few-shot Prompt 30.32 81.18 94.60 75.20 42.04 82.75 67.68 Detag-and-project 51.14 89.53 97.40 81.70 50.50 89.34 76.60 Masked SFT 48.46 88.73 99.40 87.00 63.65 90.75 79.67 AST SFT 48.45 88.62 99.25 86.85 62.92 90.41 79.42 LST SFT 52.73 89.53 100.00 91.55 67.87 92.74 82.40 Hy-LST SFT 52.91 89.65 100.00 92.00 68.17 92.74 82.58 Multi-Task Hy-LST SFT 56.72 90.34 100.00 91.35 71.15 93.41 83.83 +Multi-Reward GRPO 57.35 90.64 100.00 92.25 71.98 93.68 84.32 Table 12: Evaluation results on the en2de extended testset. en2fr BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Prompt 36.89 80.81 92.05 46.05 33.32 74.06 60.53 Few-shot Prompt 43.73 81.41 96.40 71.65 47.31 82.15 70.44 Detag-and-project 65.05 89.98 97.90 86.20 61.37 88.84 81.56 Masked SFT 63.84 89.29 99.55 91.50 73.24 91.44 84.81 AST SFT 63.01 88.98 98.45 90.35 72.66 90.98 84.07 LST SFT 65.95 89.79 99.95 96.25 77.00 93.18 87.02 Hy-LST SFT 66.43 90.04 99.95 95.90 77.21 93.29 87.14 Multi-Task Hy-LST SFT 68.87 90.57 100.00 96.00 79.25 93.73 88.07 +Multi-Reward GRPO 69.91 90.93 99.95 96.52 79.99 93.92 88.54 Table 13: Evaluation results on the en2fr extended testset. en2ru BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Prompt 24.32 80.99 93.30 54.25 23.55 71.66 58.01 Few-shot Prompt 27.58 82.43 96.60 66.05 33.41 77.55 63.94 Detag-and-project 44.45 90.02 96.05 80.10 44.83 86.60 73.68 Masked SFT 42.45 89.57 99.90 86.95 62.03 89.80 78.45 AST SFT 41.72 89.45 99.75 86.55 61.59 89.56 78.10 LST SFT 49.48 90.66 99.95 92.5 67.24 91.89 81.95 Hy-LST SFT 49.82 90.81 99.95 92.55 68.04 91.85 82.17 Multi-Task Hy-LST SFT 52.17 91.24 100.00 93.65 69.81 92.42 83.22 +Multi-Reward GRPO 53.27 91.60 100.00 94.15 71.03 92.68 83.79 Table 14: Evaluation results on the en2ru extended testset. de2fr BLEU COMET XML-ACC XML-MATCH XML-IN-BLEU XML-IN-COMET Avg. Prompt 27.73 77.22 95.70 47.45 23.85 67.78 56.62 Few-shot Prompt 33.01 78.93 96.40 73.95 38.89 78.92 66.68 Detag-and-project 54.33 87.5 97.90 88.50 52.95 85.61 77.80 Masked SFT 53.12 86.81 99.55 93.60 64.82 88.21 81.02 AST SFT 52.69 86.52 99.25 93.35 64.25 87.75 80.64 LST SFT 56.23 87.31 99.95 97.35 68.60 89.62 83.18 Hy-LST SFT 56.71 87.56 99.95 98.05 69.19 90.06 83.59 Multi-Task Hy-LST SFT 58.15 88.09 100.00 98.30 70.85 90.5 84.32 +Multi-Reward GRPO 59.19 88.45 99.95 98.80 71.57 90.69 84.78 Table 15: Evaluation results on the de2fr extended testset.