Reasoning Before Translation: Enhancing Legal Machine Translation with Structured Reasoning


Abstract

Neural machine translation (NMT) in the legal domain is a linguistically and conceptually demanding task, primarily due to the complexity of legal language and the high level of precision it requires. The recent emergence of reasoning-capable language models opens new possibilities for tackling such challenges. They add to a set of other previously proposed techniques to enhance the translation quality, which includes supervised fine-tuning and reinforcement learning.

In this work, we perform a comparison between these various approaches. More particularly, we evaluate small language models such as Qwen3.5 4B, Qwen3.5 9B, and Gemma 3 12B enhanced with various re-training paradigms and compare their performances against frontier reasoning models. We focus on the Swiss legal system, which—with its unique multilingual statutes—offers a particularly challenging testbed for reasoning-augmented models. Our results show that the quality of small “base” models can be greatly enhanced, and that reinforcement learning with verifiable rewards can be applied to NMT in the legal domain and surpasses the translation quality of supervised fine-tuning. The performance of enhanced small models is close to the one of state-of-the-art reasoning models yet remains inferior. We also note that re-training paradigms yield diminishing returns as model size increase. The code and models are publicly available at https://github.com/aixiuxiuxiu/Legal-MT-SFT-RL.

1 Introduction↩︎

Neural Machine Translation (NMT) has progressed rapidly alongside the development of large language models (LLMs), achieving substantial improvements in translation quality across many domains and language pairs [1], [2]. These advancements are particularly relevant in the context of multilingual legal translation, where precision, consistency, and preservation of legal meaning are critical. In Switzerland, the coexistence of German, French, Italian and Romansh as official languages, together with the multilingual nature of the Swiss legal system, creates a particularly challenging environment for NMT systems [3][5].

Beyond multilingualism, legal texts themselves introduce additional challenges. They are characterized by specialized terminology, complex syntactic structures, and the formal register of legalese—a style of legal writing often marked by highly technical vocabulary, long and syntactically complex sentences, and precise but rigid formulations [6][8]. These linguistic features—combined with the need to preserve legal accuracy, nuance, and internal consistency—pose significant difficulties not only for human translators, but also for machine translation systems [9], [10], and continue to push the limits of even the most advanced NMT models.

Recent work has demonstrated that LLMs, such as GPT, exhibit strong general-purpose translation capabilities with zero- and few-shot prompting [11], [12]. Building on these capabilities, some approaches have attempted to adapt small language models (SLMs) to the legal domain by fine-tuning them on domain-specific corpora [5]. Such approaches are particularly relevant in legal and institutional contexts, where computational efficiency, deployment cost, data privacy, and on-premise inference constraints may limit the practical use of large proprietary models. While these methods yield improved performance over non-fine-tuned models, they often fall short of state-of-the-art LLMs in capturing the full linguistic complexity and precision required for high-quality legal translation.

More recently, advances in NMT have been significantly influenced by the emergence of Large Reasoning Models (LRMs), such as the GPT-O series and DeepSeek-R1 [13], which have opened new opportunities for addressing complex translation tasks [14]. These models have demonstrated impressive performance on reasoning-intensive tasks such as mathematics [15], [16] and programming [17], [18], highlighting their capacity to reflect, reason, and iteratively refine their outputs. In the context of translation, LRMs extend their reasoning capabilities by treating translation as a dynamic inference process—enabling more accurate handling of context, cultural nuances, and syntactic complexity. For instance, their self-reflective mechanisms can be leveraged for error detection and correction during inference, allowing them to better handle ambiguous and linguistically demanding translation scenarios [19][21].

In light of these developments, this paper explores how reasoning can be leveraged to improve translation quality, with a particular focus on Swiss legal translation. We investigate both the impact of different training paradigms and the role of model scale in reasoning-based legal translation. In particular, we compare supervised fine-tuning (SFT) and reinforcement learning (RL) approaches across models of different sizes, ranging from 4B to 12B parameters, to better understand how reasoning capabilities interact with model capacity.

In the SFT setting, we investigate two variants: Reasoning SFT, where models are fine-tuned on translation pairs accompanied by intermediate reasoning steps; and Simple SFT, where models are trained solely on direct sentence-level translation pairs. We then compare these approaches with an RL setup based on Group Relative Policy Optimization (GRPO) [22] to evaluate the effectiveness of reasoning-augmented training strategies for legal translation across different model scales.

Specifically, we make the following three contributions:

  1. We conduct a systematic and detailed comparison of three approaches for integrating reasoning into translation across different model families: (1) prompting large reasoning models, (2) Fine-tuning of small language models using intermediate reasoning steps, and (3) applying RL techniques to optimize model’s translation.

  2. We release a new dataset of 40 000 legal translation pairs enriched with automatically generated intermediate reasoning steps, produced using the DeepSeek-R1 model. This dataset aims to support future research on reasoning-augmented translation in legal domains.

  3. We propose a GRPO training recipe, accompanied by a simple yet effective reward formulation tailored to legal translation tasks, which can serve as a blueprint for future work on domain-specific reinforcement learning in NMT.

Our main findings are as follows: (a) While both SFT and RL improve translation quality, these effects are particularly pronounced for smaller models; (b) RL yields more substantial performance gains than SFT; (c) Reasoning-augmented SFT does not consistently outperform simple SFT; (d) Model size plays an important role, and among the evaluated smaller-scale models, GRPO-trained Gemma 3 12B achieves the best performance for Swiss legal translation. 1

2 Related Work: Reasoning in Neural Machine Translation↩︎

Recent studies have begun to leverage reasoning capabilities of language models to enhance NMT, with approaches ranging from multi-agent systems to reinforcement learning. For example, [19] propose a multi-agent framework for translating figurative language, where a translator agent iteratively improves translations based on feedback from advisor and evaluator agents. Similarly, [21] investigate reasoning-based prompting for MT and find that simple self-refinement strategies, such as asking the model to “translate again,” can outperform explicit chain-of-thought decomposition.

Reinforcement learning for deep reasoning in MT is a relatively new area, but emerging studies reflect growing interest in its potential. A notable example is R1-T1 [23], which uses COMET scores [24] as reward signals and trains models via a modified REINFORCE++ algorithm [25]. Building on this work, [26] enhance reasoning-capable LLMs using RL, adopting the Group Relative Policy Optimization (GRPO) [22] as the training foundation. Rather than relying on predefined heuristic metrics, they employ an advanced LLM as a reward model, which evaluates both the translation output and the reasoning process using carefully designed prompt-based scoring criteria. More recently, [2] introduced the TranslateGemma model, which combines supervised fine-tuning with reinforcement learning, where the latter stage optimizes translation quality using an ensemble of reward models, including MetricX-QE [27] and AutoMQM [28].

3 Experiments Setup↩︎

3.1 Datasets↩︎

Our experiments build upon the SwiLTra-Bench dataset [5], which is currently the largest publicly available dataset for legal translation in Switzerland. The dataset spans five languages: the four official Swiss languages (German, French, Italian, and Romansh) as well as English. For this study, we focus on the SwissLawTranslations (CH-Law-Trans) subset, which includes approximately 631k aligned translation pairs for training and 22.7k sentence pairs for evaluation.

3.1.0.1 Training Dataset

To construct a training dataset suitable for Reasoning SFT, we use the DeepSeek-R1 model to generate intermediate reasoning steps for each translation example. Specifically, we select the first 40 000 sentence pairs from the training split of SwissLegalTranslations and prompt DeepSeek-R1 to produce both the reasoning steps and the final translation using prompt format:

Translate the following sentence to target language while respecting Swiss legal parlance.
Give the final translation starting with “Final translation:”
Here’s the sentence to translate:
Source sentence: source sentence

To ensure that the reasoning steps meaningfully contribute to correct translations, we evaluate the final outputs using the ChrF [29] score, a character n-gram overlap metric commonly used for machine translation evaluation 2. We retain only samples with a ChrF score above the median value (64.19), thereby filtering out lower-quality translations while preserving approximately half of the generated data. This filtering step helps isolate reasoning sequences that are more likely to support high-quality translation. The resulting dataset contains 19 979 sentence pairs, which are split into 90% for training and 10% for validation. The distribution of language pairs in this filtered dataset is illustrated in 2.

3.1.0.2 Evaluation Dataset

For the evaluation across the three experiments described in the following section, we use the 22.7k sentence pairs from the test split of SwissLegalTranslations. To ensure comparability, we exclude Romansh from the dataset, as it is not supported by the translation models under consideration. After filtering, the final evaluation dataset consists of 18.1k sentence pairs.

3.2 Evaluation Metrics↩︎

For evaluation, we use a combination of commonly used machine translation evaluation metrics, including both lexical and model-based approaches: ChrF [29], METEOR [30], COMET [24], and MetricX [27]. In contrast to ChrF, which measures character n-gram similarity between the generated translation and the reference, METEOR extends lexical matching by incorporating stemming and synonymy, allowing for a more flexible comparison between translations and references. COMET is a neural evaluation metric that leverages pretrained multilingual language models to assess semantic adequacy and fluency by comparing the source, hypothesis, and reference translation. MetricX is a large language model-based evaluation metric designed to provide fine-grained assessments of translation quality, with a stronger focus on semantic correctness and factual consistency.

While GEMBA-MQM [1] has demonstrated strong correlation with human judgments, we did not prioritize it because it relies on GPT-based evaluation and would incur a high estimated evaluation cost exceeding $3 000. In addition to automatic metrics, we also perform human evaluation on a representative sample of translations to further assess translation quality and validate the automatic evaluation results.

4 Experiments↩︎

4.1 Experiment I: Reasoning via Prompting↩︎

To assess the capabilities of current state-of-the-art large reasoning models in legal translation, we evaluate a diverse set of model families, including DeepSeek-R1, OpenAI’s o4-mini, o4, o3, and o3-mini. For comparison, we also include a smaller model: Mistral-Small. All experiments are conducted on the Azure AI Foundry platform3.

We do not aim to benchmark all existing frontier models—for instance, we do not test the Claude family despite its strong reported performance in [5]. Instead, this experiment is intended to establish a representative baseline for large reasoning models, which serves as a point of comparison for the SFT and RL experiments using small language models 4 presented in later sections.

All models are evaluated using the same prompt described in 3.1, which directly instructs the model to produce the final translation. This prompt format has been shown to be effective in eliciting accurate outputs in the Swiss legal context.

4.2 Experiment II: Reasoning via SFT↩︎

Experiment II investigates whether supervised fine-tuning of small language models with intermediate reasoning steps can enhance legal translation quality. To this end, we explore two SFT approaches. The first, Simple SFT, involves fine-tuning the SLMs solely on the correct translations. The second, Reasoning SFT, fine-tunes the SLMs using both the final translations and the intermediate reasoning steps that lead to them. The goal is to encourage the SLMs to think more like a large reasoning model, potentially enabling it to produce more accurate and contextually grounded translations.

4.2.0.1 Training Setup

We fine-tune three SLMs on our dataset: Qwen3.5 4B, Qwen3.5 9B, and Gemma 3 12B. These models were selected for their comparable parameter scales and for representing two distinct model families.

Fine-tuning is performed using the Hugging Face transformers5 and unsloth6 libraries, with 4-bit quantization and 8-bit AdamW optimization [31], [32]. Training is conducted on two NVIDIA A40 48GB GPUs. We employ Low-Rank Adaptation (LoRA) [33], [34] with a rank of 16 and an alpha value of 32.

4.2.0.2 Instruction Format

We adopt the Alpaca-style instruction tuning format, which has been shown to improve generalization to new tasks [35]. The instruction template is presented in 9.

The key distinction in the Reasoning SFT setting lies in incorporating intermediate reasoning steps generated by DeepSeek-R1 into the model’s training responses. Specifically, we extract the content enclosed between the <think> and </think> tags and pair it with the corresponding ground truth target sentence as the final translation. This setup aims to expose the model to structured reasoning patterns that precede accurate translations.

We train the models using a maximum sequence length of 512 tokens for Simple SFT, which covers approximately 99% of the sentences, and 1024 tokens for Reasoning SFT, which captures over 95% of the training set (with the remainder truncated). We deliberately avoid using the maximum allowable sequence length—particularly for Reasoning SFT—as we observed that very long inputs can cause models such as those in the Qwen family to produce repetitive outputs. Limiting the input length also encourages the models to generate more concise and focused reasoning steps.

We adopt a training setup similar to that of [5]. All models are trained on the full training set to maximize data coverage. We apply sequence packing, use a weight decay of 0.01, and set the batch size between 40 and 64 depending on model capacity. Training is conducted for 10 epochs with early stopping based on validation performance (patience set to 3 epochs). We use a cosine learning rate schedule [36] with a warmup ratio of 0.1 and a base learning rate of \(1\mathrm{e}{-4}\), which we manually tune within the range of [\(2\mathrm{e}{-5}\), \(1\mathrm{e}{-4}\)].

4.2.0.3 Generation

We use vLLM7 [37] for sentence generation during evaluation. After experimenting with temperature values in the range \([0, 0.7]\), we found that a temperature of 0 consistently produced the most reliable and coherent outputs across all settings. All generations were performed on an NVIDIA A40 48GB GPU. Generation over the full evaluation dataset typically takes around 30 minutes for the Simple SFT models, while the Reasoning SFT models require 3–6 hours due to longer output sequences.

Performance of frontier models for legal translation using prompting (Experiment I).
Model Output Pricing ChrF \(\uparrow\) COMET \(\uparrow\) METEOR \(\uparrow\) MetricX \(\downarrow\)
per 1M tokens
OpenAI o3 $8.00 64.87 \(\pm\) 0.10 85.92 \(\pm\) 0.05 64.82 \(\pm\) 0.12 2.54 \(\pm\) 0.01
OpenAI 4o $8.00 62.40 \(\pm\) 0.10 85.35 \(\pm\) 0.05 61.57 \(\pm\) 0.13 2.87 \(\pm\) 0.01
DeepSeek-R1 $5.40 61.04 \(\pm\) 0.10 84.35 \(\pm\) 0.05 59.27 \(\pm\) 0.12 3.13 \(\pm\) 0.01
OpenAI o4-mini $4.40 60.53 \(\pm\) 0.10 84.35 \(\pm\) 0.05 58.91 \(\pm\) 0.12 2.84 \(\pm\) 0.01
OpenAI o3-mini $4.40 58.88 \(\pm\) 0.10 84.21 \(\pm\) 0.05 56.88 \(\pm\) 0.12 3.09 \(\pm\) 0.01
Mistral-Small-2503 $0.15 61.22 \(\pm\) 0.10 84.41 \(\pm\) 0.05 60.19 \(\pm\) 0.12 3.12 \(\pm\) 0.01
Figure 1: Comparison of translation quality (mean of COMET score) across language pairs for different frontier models evaluated on the test dataset.

4.3 Experiment III: Reasoning via Reinforcement Learning↩︎

We use the same training and validation datasets as in Experiment II.

The reinforcement learning employs GRPO with simple verifiable rewards in order to promote the reasoning alongside a high quality translation. Similar to DeepSeek-R1, two rule-based rewards have been used:

  • Format: To make the translation easily extractable while also enforcing the presence of the reasoning, the model must put its thinking process inside the <think></think> tag and its final translation inside the <translation></translation> tag. The presence of each tag gives a reward of 0.5, with an additional 0.5 if they occur in the correct order. This is to ensure that the thinking is done before given the final translation, such that it can potentially improve the translation rather than given an explanation after the fact.

  • Translation quality: A reward for the quality of the translation is paramount to guide the model to produce better responses. The final translation is extracted from the response, which is then compared to the ground truth. We chose the ChrF score to assess the quality of the translation and used it directly as a reward, since the values are in the range \([0, 1]\). This results in a continuous scale for the reward, which gives extra nuance to the differences in responses, allowing a more fine-grained adaptation.

A group size of \(G = 4\) is used, meaning that for each input sentence four different responses are sampled which are then compared to each other based on the rewards. Due to the increased computational demands for these generations, only a single epoch was performed compared to the 10 epochs for the SFT. The training parameters remain unchanged, with the exception of the learning rate, which needed to be reduced to \(2\mathrm{e}{-5}\) as the higher learning rate led to training instabilities.

5 Results↩︎

5.0.0.1 Performance of State-of-the-Art Reasoning Models

We report the performance of large reasoning models in ¿tbl:tab:results-commercial?. As the exact model sizes are not publicly disclosed, we use the output cost per million tokens as a proxy measure8. Among the evaluated models, the o3 model achieves the highest performance across all metrics but is also the most expensive. In contrast, the Mistral-Small-2503 model is approximately ten times cheaper while delivering comparable results, making it the most cost-effective option.

When examining performance across language pairs (1), we find that the relative ranking of models remains largely consistent across pairs. All models achieve their best results on the \(fr \rightarrow it\) pairs, likely due to the close linguistic relationship between these two Romance languages. The o4-mini model shows particularly strong performance when translating into English, whereas the mistral-small-2503 model performs better on translations into French or Italian.

Comparison of performance of SFT and RL in legal translation (Experiments II and III).
Model Method ChrF \(\uparrow\) COMET \(\uparrow\) METEOR \(\uparrow\) MetricX \(\downarrow\)
Qwen3.5 4B Base Model 50.53 \(\pm\) 0.18 77.05 \(\pm\) 0.15 47.21 \(\pm\) 0.19 5.13 \(\pm\) 0.04
Simple SFT 50.03 \(\pm\) 0.12 76.47 \(\pm\) 0.09 47.96 \(\pm\) 0.13 6.07 \(\pm\) 0.03
Reasoning SFT 42.84 \(\pm\) 0.16 69.88 \(\pm\) 0.14 39.99 \(\pm\) 0.16 7.56 \(\pm\) 0.03
RL 54.64 \(\pm\) 0.10 79.47 \(\pm\) 0.07 50.98 \(\pm\) 0.12 4.95 \(\pm\) 0.02
Qwen3.5 9B Base Model 51.76 \(\pm\) 0.19 77.99 \(\pm\) 0.16 49.08 \(\pm\) 0.20 4.66 \(\pm\) 0.04
Simple SFT 51.38 \(\pm\) 0.12 77.25 \(\pm\) 0.10 49.36 \(\pm\) 0.14 5.61 \(\pm\) 0.03
Reasoning SFT 49.42 \(\pm\) 0.12 76.88 \(\pm\) 0.10 47.59 \(\pm\) 0.14 5.69 \(\pm\) 0.03
RL 56.02 \(\pm\) 0.10 81.52 \(\pm\) 0.06 53.66 \(\pm\) 0.12 4.07 \(\pm\) 0.02
Gemma 3 12B Base Model 56.73 \(\pm\) 0.10 82.49 \(\pm\) 0.05 53.20 \(\pm\) 0.12 3.70 \(\pm\) 0.02
Simple SFT 55.86 \(\pm\) 0.11 82.45 \(\pm\) 0.06 54.29 \(\pm\) 0.12 3.71 \(\pm\) 0.02
Reasoning SFT 53.29 \(\pm\) 0.14 79.02 \(\pm\) 0.12 51.74 \(\pm\) 0.16 4.53 \(\pm\) 0.03
RL 57.32 \(\pm\) 0.10 83.08 \(\pm\) 0.05 54.92 \(\pm\) 0.12 3.32 \(\pm\) 0.01
Figure 2: Comparison of translation quality (mean of COMET score) for Qwen3.5 9B (left) and Gemma 3 12B (right) across different language pairs and training procedures.

5.0.0.2 Performance of SFT vs. RL

¿tbl:tab:results-finetune? reports the overall results for SFT and RL using four evaluation metrics: ChrF, COMET, METEOR and MetricX. We find that RL consistently improves translation quality across all models and achieves the best overall performance. In particular, RL with Gemma 3 12B delivers the strongest results among the smaller models, performing just below the frontier model o4-mini. This demonstrates that reasoning-augmented training can substantially narrow the performance gap between small models and state-of-the-art LLMs.

When comparing RL to SFT, we observe that RL consistently outperforms both SFT variants across all models. Examining the two SFT approaches more closely, we find that Reasoning SFT degrades the quality of the translation in comparison to Simple SFT. This is especially noticeable on the smallest model Qwen3.5 4B, where the gap of every metric is much larger than in the larger models. Although Simple SFT outperforms the Reasoning SFT, it performs marginally worse than the base model. This means that it is more beneficial to use the pretrained models unaltered than training them with SFT.

In terms of performance differences across language pairs, as illustrated in 2 for Qwen3.5 9B and Gemma 3 12B, we observe that RL performs on par with or slightly better than the baselines for most language pairs. For Qwen3.5 9B, all language pairs exhibit a consistent pattern: RL achieves the best performance, followed by Simple SFT and the base model which outperform each other in different categories, and lastly Reasoning SFT. For Gemma 3 12B, the base model is much closer to RL, and technically surpasses it for \(it \rightarrow en\) by the tiniest margin, although that would be considered to be on par. The strongest overall results for Qwen3.5 9B and Gemma 3 12B can be observed in the language pairs \(de \rightarrow en\), whereas the \(fr \rightarrow it\) pairs exhibit the largest difference compared to the frontier models, which are their best performing language pairs.

5.0.0.3 Comparison Across Metrics

Comparing the different evaluation metrics, we observe that while each captures a different aspect of translation quality—lexical overlap (ChrF), semantic similarity (COMET / MetricX), and linguistic fluency (METEOR)—the overall ranking of methods remains consistent across all metrics. Although absolute scores vary, RL consistently outperforms other approaches. This trend aligns with the results from Experiment I, where the strongest models also achieve top performance across all evaluation criteria.

5.0.0.4 Human Evaluation

Table 1: Pearson correlation between human evaluation scores and automatic evaluation metrics. COMET shows the strongest correlation with expert judgments on the legal translation dataset.
Metric Pearson Correlation (\(r\)) p-value
ChrF 0.05 0.54
METEOR 0.07 0.40
COMET 0.24 0.00
MetricX -0.13 0.11

We sampled 240 translation pairs covering all language combinations present in the dataset. A legal expert manually assessed the translation quality on a scale from 1 to 10, considering factors such as accuracy, fluency, and preservation of legal meaning. We then computed the Pearson correlation between the human annotation scores and the automatic evaluation metrics to assess their alignment with expert judgments. As shown in 1, COMET achieves the highest correlation with human evaluations, indicating a stronger alignment with expert judgments on the legal translation dataset.

6 Discussions↩︎

Figure 3: Performance comparison of RL enhanced small models with frontier models, using the COMET score as a benchmark.

6.1 Leveraging Reasoning in Translation↩︎

Translation often requires careful refinement and review to ensure alignment with normative language [38], [39]. This is particularly important in technical domains such as the legal field, where precision in terminology and strict adherence to legal conventions are essential. These requirements extend beyond surface-level semantic equivalence. This motivates the integration of reasoning into the translation process, as prior studies have shown that adding self-reaffine improve translation [19], [40].

In our training dataset for the Reasoning SFT setup, we examined the reasoning steps generated by DeepSeek. We found that the model produces coherent, multi-step reasoning sequences that often resemble the workflow of a human translator. These typically include decomposing the sentence, translating individual components, recomposing the full output, and conducting a final review and refinement.

While the objective of Reasoning SFT is to encourage a more structured and deliberate translation process, our results indicate that fine-tuning with explicit reasoning steps degrades the performance rather than improving it. These models may already possess strong intrinsic reasoning abilities that were obtained during their pre-training, therefore, the addition of shallow or formulaic reasoning steps offers little added value.

Another concern is that current reasoning models, while demonstrating emergent reasoning abilities [41], [42], often fail to provide genuine explanatory depth. In particular, these capacities are often considered superficial, and models are unlikely to generate “how-actually” explanations that reflect true causal or conceptual understanding [43]. Providing explicit reasoning steps during training or prompting does not necessarily incentivize models to engage in authentic reasoning. Instead, they may simply learn to reproduce reasoning-like patterns without acquiring the underlying cognitive mechanisms such steps are meant to encourage.

6.2 Reinforcement Learning vs. Supervised Fine-Tuning↩︎

We observe that reinforcement learning consistently outperforms supervised fine-tuning in our experiments. This suggests that RL may provide a more effective mechanism for enabling models to internalize reasoning strategies through the reward optimization process.

In the broader literature, the differences between SFT and RL have been explored across a range of tasks, with RL predominantly showing improved generalization capabilities. [44] compared them in an arithmetic reasoning card game and a real-world navigation scenario, which require text-based and visual reasoning, and came to the conclusion that SFT tends to memorize the training data and therefore struggles to generalize to out-of-distribution data, while RL exhibits more generalized reasoning capabilities. Similarly, [45] showed that RL generalizes better to previously unseen classes and out-of-distribution samples on the task of document classification. In the medical domain, Med-RLVR [46] observed a similar trend for medical multiple-choice questions where RL improves the accuracy on out-of-distribution data by 8 points compared to SFT, indicating that it also applies to domain specific language. For general machine translation, MT-R1-Zero [47] successfully applied RL with competitive performance to other models trained with SFT, while observing stronger generalization to out-of-distribution tasks, including languages the model was not trained on.

6.3 Global Quality and Cost-Quality Comparisons↩︎

6.3.0.1 Pure Quality

Figure 3 shows that commercial frontier models reach COMET scores in the 84.21 to 85.94 range, whereas small models enhanced with the reinforcement learning method fall in the 79.47 to 83.08 range. There is nearly an overlap, as the gap keeps narrowing.

Considering quality exclusively (that is, not considering cost of model for the moment), performance of small enhanced models could potentially be raised by fine-tuning parameters such as the value of the reward, the group size, etc. Hence, enhanced small models might be competitive for NMT.

It might be tempting to try to fill the performance gap by using slightly larger RL-enhanced models. However, referring to Table ¿tbl:tab:results-finetune?, one can remark that the relative enhancement provided by RL shows diminishing returns as the language model gets larger. The quality of Qwen3.5 4B evolves from 77.05 to 79.47 (+2.47) in terms of COMET score, while Gemma3 12B only improves by +0.59 (from 82.49 to 83.08). We plan to investigate this further.

6.3.0.2 Cost-Quality Trade-off

In contrast to commercial models, whose usage costs are known (see Table ¿tbl:tab:results-commercial?), the costs associated with the enhanced models evaluated in this study remain unknown. Nevertheless, assuming that reinforcement learning (RL) enhancement has only a marginal impact on computational complexity, these costs are expected to represent only a fraction of those incurred by frontier models comprising several hundred billion parameters. Therefore, once the focus shifts from a quality-at-any-cost perspective to a cost–quality trade-off, our results indicate that RL-enhanced models emerge as a compelling and viable design option.

7 Conclusion↩︎

In this work, we investigate multiple strategies of leveraging reasoning to enhance translation quality, with a specific focus on the Swiss legal domain—a high-stakes, linguistically complex setting for NMT systems. We design and evaluate three complementary approaches to reasoning integration: prompting frontier models, SFT with intermediate reasoning steps, and RL using reward-based feedback.

Our results show that although frontier models still achieve the strongest overall translation quality, reasoning-augmented training methods—especially RL—substantially narrow the performance gap. Across all evaluated model architectures, RL consistently surpasses SFT, demonstrating that reinforcement learning with verifiable rewards is a highly effective approach for improving legal translation quality and enabling smaller open-source models to acquire stronger reasoning capabilities. Notably, our best-performing open-source models use more than 100× fewer parameters than frontier models while achieving competitive translation quality. These findings provide strong empirical evidence that explicit reasoning and RL-based optimization can significantly advance domain-specific neural machine translation.

Future work will focus on improving reinforcement learning methods for legal machine translation, as well as optimizing the trade-off between training and inference costs and translation quality. This includes investigating more effective reward designs, more efficient training strategies, and approaches that improve translation quality while reducing computational requirements.

Limitations↩︎

We rely on four cost-efficient evaluation metrics to assess translation quality: ChrF, METEOR, COMET, and MetricX. Although more fine-grained evaluation methods—such as using LLMs as judges—may provide deeper insights, they are resource-intensive and less scalable. Additionally, we fine-tune only a handful of commonly used models. Future work could explore models of varying sizes and architectures to gain a broader understanding of performance trends. Finally, our RL experiments use simple, rule-based rewards; more complex or adaptive reward functions may offer additional gains and warrant further investigation.

Impact Statement↩︎

This work advances legal machine translation by demonstrating that reinforcement learning with verifiable rewards can improve translation quality beyond supervised fine-tuning. By focusing on open-source models, our approach contributes to making high-quality legal translation systems more accessible, transparent, and reproducible for researchers, institutions, and practitioners who rely on open technologies.

Acknowledgements↩︎

The authors would like to thank the Hasler Foundation and the Mercator Foundation Switzerland for their generous financial support.

8 Training Set Language Pair Distribution Statistics↩︎

Table 2: Statistics of language pair distribution in the training set used for the experiments.
Language Pair Count
fr \(\rightarrow\) it 8 152
de \(\rightarrow\) fr 5 384
de \(\rightarrow\) it 4 252
de \(\rightarrow\) en 65
fr \(\rightarrow\) en 65
it \(\rightarrow\) en 63
Total 18 981

9 Prompt↩︎

### Instruction
Translate the following sentence from {lang_source} to {lang_target} while respecting Swiss legal parlance. Respond in the following format:
<think>
...
</think>
<translation>...</translation>

Explain your reasoning inside the <think> tag and give your final translation in the <translation> tag.

### Input
{source}

References↩︎

[1]
T. Kocmi and C. Federmann, “GEMBA-MQM: Detecting translation quality error spans with GPT-4,” arXiv preprint arXiv:2310.13988, 2023.
[2]
M. Finkelstein et al., “Translategemma technical report,” arXiv preprint arXiv:2601.09012, 2026.
[3]
R. Martı́nez-Domı́nguez, M. Rikters, A. Vasiļevskis, M. Pinnis, and P. Reichenberg, “Customized neural machine translation systems for the Swiss legal domain,” in Proceedings of the 14th conference of the association for machine translation in the americas (volume 2: User track), 2020, pp. 217–223.
[4]
P. Canavese and P. Cadwell, “Translators’ perspectives on machine translation uses and impacts in the Swiss Confederation: Navigating technological change in an institutional setting,” in Proceedings of the 25th annual conference of the european association for machine translation (volume 1), 2024, pp. 347–359.
[5]
J. Niklaus et al., “Swiltra-bench: The swiss legal translation benchmark,” arXiv preprint arXiv:2503.01372, 2025.
[6]
H. E. Mattila, Comparative legal linguistics: Language of law, latin and modern lingua francas. Routledge, 2016.
[7]
P. Tiersma, “The nature of legal language,” in Dimensions of forensic linguistics, John Benjamins Publishing Company, 2008, pp. 7–25.
[8]
E. Martı́nez, F. Mollica, and E. Gibson, “Even lawyers do not like legalese,” Proceedings of the national academy of sciences, vol. 120, no. 23, p. e2302672120, 2023.
[9]
P. Koehn and R. Knowles, “Six challenges for neural machine translation,” arXiv preprint arXiv:1706.03872, 2017.
[10]
E. Wiesmann, “Machine translation in the field of law: A study of the translation of italian legal texts into german,” Comparative Legilinguistics, vol. 37, no. 1, pp. 117–153, 2019.
[11]
A. Hendy et al., “How good are gpt models at machine translation? A comprehensive evaluation,” arXiv preprint arXiv:2302.09210, 2023.
[12]
W. Jiao, W. Wang, J. Huang, X. Wang, S. Shi, and Z. Tu, “Is ChatGPT a good translator? Yes with GPT-4 as the engine,” arXiv preprint arXiv:2301.08745, 2023.
[13]
D. Guo et al., “Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning,” arXiv preprint arXiv:2501.12948, 2025.
[14]
S. Liu et al., “New trends for modern machine translation with large reasoning models,” arXiv preprint arXiv:2503.10351, 2025.
[15]
J. Ahn, R. Verma, R. Lou, D. Liu, R. Zhang, and W. Yin, “Large language models for mathematical reasoning: Progresses and challenges,” in Proceedings of the 18th conference of the european chapter of the association for computational linguistics: Student research workshop, Mar. 2024, pp. 225–237, doi: 10.18653/v1/2024.eacl-srw.17.
[16]
S. Xia, X. Li, Y. Liu, T. Wu, and P. Liu, “Evaluating mathematical reasoning beyond accuracy,” in Proceedings of the AAAI conference on artificial intelligence, 2025, vol. 39, pp. 27723–27730.
[17]
A. El-Kishky et al., “Competitive programming with large reasoning models,” arXiv preprint arXiv:2502.06807, 2025.
[18]
Y. Zhao et al., “Unveiling the magic of code reasoning through hypothesis decomposition and amendment,” in The thirteenth international conference on learning representations, 2025, [Online]. Available: https://openreview.net/forum?id=kN25ggeq1J.
[19]
J. Wang, F. Meng, Y. Liang, and J. Zhou, “Drt-o1: Optimized deep reasoning translation via long chain-of-thought,” arXiv e-prints, pp. arXiv–2412, 2024.
[20]
A. Chen et al., “Evaluating o1-like llms: Unlocking reasoning for translation through comprehensive analysis,” arXiv preprint arXiv:2502.11544, 2025.
[21]
D. Wu, S. Aycock, and C. Monz, “Please translate again: Two simple experiments on whether human-like reasoning helps translation,” in Proceedings of the 2025 conference on empirical methods in natural language processing, Nov. 2025, pp. 20424–20440, doi: 10.18653/v1/2025.emnlp-main.1031.
[22]
Z. Shao et al., “Deepseekmath: Pushing the limits of mathematical reasoning in open language models,” arXiv preprint arXiv:2402.03300, 2024.
[23]
M. He et al., “R1-t1: Fully incentivizing translation capability in llms via reasoning learning,” arXiv preprint arXiv:2502.19735, 2025.
[24]
R. Rei, C. Stewart, A. C. Farinha, and A. Lavie, “COMET: A neural framework for MT evaluation,” arXiv preprint arXiv:2009.09025, 2020.
[25]
J. Hu, J. K. Liu, and W. Shen, “Reinforce++: An efficient rlhf algorithm with robustness to both prompt and reward models,” arXiv preprint arXiv:2501.03262, 2025.
[26]
J. Wang, F. Meng, and J. Zhou, “Deep reasoning translation via reinforcement learning,” arXiv preprint arXiv:2504.10187, 2025.
[27]
J. Juraska, D. Deutsch, M. Finkelstein, and M. Freitag, MetricX-24: The Google submission to the WMT 2024 metrics shared task,” in Proceedings of the ninth conference on machine translation, Nov. 2024, pp. 492–504, [Online]. Available: https://aclanthology.org/2024.wmt-1.35.
[28]
P. Fernandes et al., “The devil is in the errors: Leveraging large language models for fine-grained machine translation evaluation,” in Proceedings of the eighth conference on machine translation, 2023, pp. 1066–1083.
[29]
M. Popović, “chrF: Character n-gram f-score for automatic MT evaluation,” in Proceedings of the tenth workshop on statistical machine translation, 2015, pp. 392–395.
[30]
S. Banerjee and A. Lavie, “METEOR: An automatic metric for MT evaluation with improved correlation with human judgments,” in Proceedings of the acl workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, 2005, pp. 65–72.
[31]
I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” arXiv preprint arXiv:1711.05101, 2017.
[32]
T. Dettmers, M. Lewis, S. Shleifer, and L. Zettlemoyer, “8-bit optimizers via block-wise quantization,” arXiv preprint arXiv:2110.02861, 2021.
[33]
E. J. Hu et al., “Lora: Low-rank adaptation of large language models.” ICLR, vol. 1, no. 2, p. 3, 2022.
[34]
D. Kalajdzievski, “A rank stabilization scaling factor for fine-tuning with lora,” arXiv preprint arXiv:2312.03732, 2023.
[35]
R. Taori et al., “Stanford alpaca: An instruction-following LLaMA model,” GitHub repository. https://github.com/tatsu-lab/stanford_alpaca; GitHub, 2023.
[36]
I. Loshchilov and F. Hutter, “SGDR: Stochastic gradient descent with warm restarts,” in International conference on learning representations, 2017.
[37]
W. Kwon et al., “Efficient memory management for large language model serving with PagedAttention,” in Proceedings of the 29th symposium on operating systems principles, 2023, pp. 611–626, doi: 10.1145/3600006.3613165.
[38]
M. Ordudari, “Translation procedures, strategies and methods,” Translation journal, vol. 11, no. 3, p. 8, 2007.
[39]
E. A. Nida, Toward a science of translating: With special reference to principles and procedures involved in bible translating. Brill Archive, 1964.
[40]
P. Chen, Z. Guo, B. Haddow, and K. Heafield, “Iterative translation refinement with large language models,” arXiv preprint arXiv:2306.03856, 2023.
[41]
J. Wei et al., “Emergent abilities of large language models,” arXiv preprint arXiv:2206.07682, 2022.
[42]
T. Webb, K. J. Holyoak, and H. Lu, “Emergent analogical reasoning in large language models,” Nature Human Behaviour, vol. 7, no. 9, pp. 1526–1541, 2023.
[43]
S. Musker, A. Duchnowski, R. Millière, and E. Pavlick, “LLMs as models for analogical reasoning,” arXiv preprint arXiv:2406.13803, 2024.
[44]
T. Chu et al., SFT memorizes, RL generalizes: A comparative study of foundation model post-training,” in The second conference on parsimony and learning (recent spotlight track), 2025, [Online]. Available: https://openreview.net/forum?id=d3E3LWmTar.
[45]
M. Jungo and A. Fischer, “Rule-based reinforcement learning for document image classification with vision language models,” in International conference on document analysis and recognition, 2025, pp. 292–309.
[46]
S. Zhang, Q. Liu, G. Qin, T. Naumann, and H. Poon, “Med-rlvr: Emerging medical reasoning from a 3b base model via reinforcement learning,” arXiv preprint arXiv:2502.19655, 2025.
[47]
Z. Feng et al., “Mt-r1-zero: Advancing llm-based machine translation via r1-zero-like reinforcement learning,” arXiv preprint arXiv:2504.10160, 2025.

  1. The code is available in the GitHub repository https://github.com/aixiuxiuxiu/Legal-MT-SFT-RL↩︎

  2. We use the ChrF score here because of its effectiveness in capturing lexical and terminological accuracy, which is particularly important in the legal domain.↩︎

  3. https://azure.microsoft.com/en-us/products/ai-foundry↩︎

  4. We define small language models as models with between 1 billion and 12 billion parameters.↩︎

  5. https://github.com/huggingface/transformers↩︎

  6. https://github.com/unslothai/unsloth↩︎

  7. https://github.com/vllm-project/vllm↩︎

  8. Experiments and pricing estimates correspond to July 2025.↩︎