Two-Stage Fine-Tuning for Translation Models: SFT and Reinforcement Learning

    Two-stage fine-tuning is a training approach for improving generative translation models by separating translation-pattern learning from quality-driven optimization. This article explains the overall workflow, supervised fine-tuning data practices, reinforcement learning with quality rewards, reward-model risks, evaluation methods, and deployment recommendations.

    Two-stage fine-tuning is a training approach for improving the quality of generative translation models. It separates “learning standard translations” and “continuous optimization based on quality feedback” into two connected stages. The first stage uses supervised data so the model learns basic translation patterns, language style, and task format. The second stage introduces quality evaluation signals and uses reinforcement learning to adjust the model’s generation strategy, further improving translation accuracy, fluency, contextual consistency, and naturalness.

    Compared with single supervised training, two-stage fine-tuning is better suited to machine translation in open scenarios. Supervised data can explicitly tell the model what the reference translation is, but it is difficult for such data to cover all acceptable expressions or directly describe which translation is more natural. Reinforcement learning can convert multiple quality dimensions into optimizable feedback signals, compensating for the limitations of relying only on reference answers.

    I. Overall Workflow and Core Idea

    Two-stage fine-tuning is usually built on a base model that already has general language understanding and text generation capabilities. The overall workflow can be summarized as follows:

    1. Prepare high-quality translation training data from multiple sources.
    2. Use supervised fine-tuning to let the model learn the mapping between input and target translations.
    3. Build a translation quality evaluation model or a rule-based reward function.
    4. Use reinforcement learning to optimize the model’s generation results.
    5. Validate the model from multiple dimensions through human review and automatic metrics.
    6. Iterate on data, reward models, and training strategies based on evaluation results.

    Supervised fine-tuning addresses whether the model can translate correctly. Reinforcement learning addresses whether the model can choose better results among multiple acceptable expressions. The two stages are not independent; the effectiveness of the second stage depends heavily on the basic capabilities and behavioral boundaries established in the first stage.

    II. Stage 1: Supervised Fine-Tuning

    1. Goal of Supervised Fine-Tuning

    Supervised fine-tuning, also known as SFT, is the foundation of the two-stage workflow. Its core practice is to provide the model with source-language text and corresponding target-language translations so that the model learns how to generate results under a specified task format.

    Training samples usually contain the following information:

    • Source text;
    • Target language or translation direction;
    • Optional domain, style, and format constraints;
    • Reference translation;
    • Context or glossary when necessary.

    During training, the model predicts the next token in the target translation based on the source text. A common objective is to minimize the autoregressive cross-entropy loss:

    [
    L{\text{SFT}}=-\sum{t=1}^{T}\log P(yt|y{<t},x)
    ]

    Here, (x) represents the input text and task conditions, and (y_t) represents the target translation token at position (t). Through training on a large number of samples, the model gradually builds capabilities in lexical correspondence, syntactic conversion, word-order adjustment, and contextual expression.

    2. Combining Human and Synthetic Data

    High-quality human translation data is accurate, standardized, and semantically reliable, but it is costly to obtain and annotate, and its domain coverage may be limited. Synthetic data can quickly expand language directions, topic types, and text lengths, so practical training often combines the two.

    Human data mainly serves as a “quality anchor” to ensure that the model learns reliable translation standards. Synthetic data serves as “coverage expansion” to add samples such as long texts, specialized domains, colloquial expressions, and complex structures. When mixing the two, it is not enough to focus only on quantity ratios. The following issues also need attention:

    • Whether synthetic data contains error propagation;
    • Whether text styles from different sources differ too greatly;
    • Whether near-duplicates appear in both training and validation sets;
    • Whether formal, colloquial, technical, legal, and other styles are covered;
    • Whether special content such as numbers, dates, units, code snippets, and proper terminology is included.

    A filtering mechanism should be established for synthetic samples. For example, check the length relationship between source and translation, language identification results, abnormal character ratio, repeated fragment ratio, and basic semantic consistency. Removing or downweighting low-confidence samples is usually more reliable than indiscriminately adding them to the training set.

    3. Data Quality Matters More Than Data Scale

    Translation models are sensitive to noisy data. Common problems include omissions, mistranslations, duplicated translations, paragraph misalignment, punctuation anomalies, and confusion in language direction. If such samples enter supervised training in large quantities, the model may learn incorrect patterns that subsequent reinforcement learning cannot fully correct.

    Therefore, data processing should include at least the following steps:

    1. Text cleaning: remove garbled text, meaningless control characters, and abnormal repeated content;
    2. Language identification: confirm that source and target text match the expected language direction;
    3. Alignment checking: ensure that source and target sentences correspond semantically and structurally;
    4. Sensitive information handling: delete or replace personal information that should not enter the training set;
    5. Length filtering: handle samples that are too short, too long, or have abnormal source-target ratios;
    6. Domain labeling: add controllable labels for different topics and styles;
    7. Deduplication and splitting: avoid similar texts appearing in both training and test sets.

    4. Engineering Priorities in the SFT Stage

    During training, focus on loss curves, validation-set performance, and per-domain results. A continuously decreasing training loss does not necessarily mean that translation quality is improving; the model may also overfit and rely excessively on fixed expressions in the training corpus.

    Also monitor whether the model follows task instructions. For example, the model may add explanations to a translation task, retain unnecessary prefixes, summarize content on its own, or change the original format. To address these issues, add explicit task templates to the training data and reinforce behaviors such as “output the translation only,” “preserve paragraph structure,” and “do not modify placeholders” through sample design.

    III. Stage 2: Reinforcement Learning from Quality Feedback

    1. Role of Reinforcement Learning

    Supervised training usually relies mainly on reference translations, but translation does not have a single correct answer. The same source sentence may correspond to multiple semantically equivalent expressions with different styles. If only a single reference translation is used, the model may tend toward mechanical imitation and may not necessarily generate the most natural result.

    The reinforcement learning stage evaluates model outputs through reward signals and increases the probability that the model generates high-quality results. Rewards can combine multiple dimensions, such as:

    • Semantic consistency with the source text;
    • Fluency in the target language;
    • Contextual coherence;
    • Consistency of terminology and entities;
    • Accuracy of numbers, time, units, and similar information;
    • Match with style and domain requirements;
    • Absence of additions, omissions, or unnecessary rewriting.

    The overall reward can be expressed as:

    [
    R=\alpha R{\text{semantic}}+\beta R{\text{fluency}}+\gamma R{\text{context}}+\delta R{\text{format}}
    ]

    The weight of each term needs to be adjusted according to the task objective. For technical documentation, terminology and format may carry higher weights; for conversational text, naturalness and contextual consistency may matter more.

    2. Building a Quality Evaluation Model

    A quality evaluation model can take source text, candidate translations, and optional context as input and output a quality score. Compared with only comparing candidate translations against reference translations, direct quality estimation is better suited to real applications because online scenarios often lack human reference translations.

    The evaluation model should cover different error types as much as possible, including:

    • Semantic omission: information in the source text is not fully conveyed;
    • Semantic addition: the translation introduces content that does not exist in the source;
    • Factual change: people, quantities, time, or relationships are changed;
    • Terminology error: domain terminology is used inconsistently;
    • Grammar problem: sentence structure is incomplete or collocations are unnatural;
    • Discourse problem: references, tense, and tone are inconsistent across context;
    • Format problem: tags, variables, lists, and line-break structure are broken.

    In practice, automatic quality evaluation can be combined with rule validation. Automatic models are good at judging overall semantics and naturalness, while rules are suitable for checking numbers, placeholders, tags, and special symbols. Combining the two can reduce bias caused by a single reward source.

    3. Basic Reinforcement Learning Training Process

    The reinforcement learning stage usually runs as follows:

    1. Sample source text from the training data;
    2. The current policy model generates one or more candidate translations;
    3. The quality evaluation model scores the candidate results;
    4. Update the policy model according to the reward;
    5. Use a reference policy or constraint terms to limit excessive deviation from the original capabilities;
    6. Check quality, stability, and safety on the validation set.

    To prevent the model from producing abnormal behavior in pursuit of high scores, policy constraints are usually needed. For example, limit the distribution difference between the new model and the supervised fine-tuned model to prevent excessive pursuit of a reward model’s preferences. A common idea is to combine the reward with a deviation penalty:

    [
    R^{\prime}=R-\lambda D{\mathrm{KL}}(\pi{\theta}|\pi_{\text{ref}})
    ]

    Here, (D_{\mathrm{KL}}) measures the difference between the current policy and the reference policy, and (\lambda) controls the constraint strength. If the constraint is too weak, the model may become uncontrolled; if it is too strong, reinforcement learning may struggle to produce substantive improvements.

    IV. Potential Problems with Reward Models

    The main risk of reinforcement learning is reward bias. The model may learn to please the evaluator rather than truly improve translation quality. For example, a translation may appear more fluent on the surface while omitting facts; or it may generate longer, more complex sentences to obtain a formally high score even though the result is not faithful.

    Therefore, training should include consistency analysis between rewards and human judgment. The following results can be sampled and compared:

    • Samples with high automatic reward but low human evaluation;
    • Samples with low automatic reward but acceptable human judgment;
    • Samples where different reward models disagree;
    • Score differences between long and short texts;
    • Score stability across domains, language directions, and styles.

    If the evaluator is found to be insensitive to a certain type of error, add corresponding training samples, adjust the evaluation objective, or add hard rule constraints.

    V. Evaluation System and Launch Validation

    A complete evaluation should not rely only on a single automatic metric. A more reliable approach is to build a multi-layer evaluation system.

    1. Automatic Metrics

    Automatic metrics are suitable for large-scale regression testing and focus on similarity to reference answers, semantic consistency, and quality estimation results. However, such metrics cannot fully reflect real language quality, especially creative expression and contextual fit.

    2. Human Review

    Human review should use clear criteria, such as accuracy, fluency, terminology consistency, style fit, and format preservation. Review samples should cover common scenarios and high-risk scenarios, and blind review should be used when possible to reduce subjective bias.

    3. Adversarial Testing

    Test sets should also be constructed for model weaknesses, including long nested sentences, polysemy, negation, number-dense text, mixed languages, colloquial abbreviations, table content, and contextual references. Targeted testing on these samples can help identify hidden problems earlier.

    In engineering implementation, the following principles can be followed:

    • Establish a high-quality supervised fine-tuning baseline before reinforcement learning;
    • Keep high-quality human data as a stable anchor;
    • Filter, stratify, and sample synthetic data;
    • Combine semantic, fluency, format, and terminology rewards;
    • Validate reward models independently to avoid self-referential evaluation;
    • Set reference-policy constraints to prevent the model from deviating from basic capabilities;
    • Use validation sets split by domain, length, and style;
    • Keep rollback versions and complete evaluation records for each training run;
    • Conduct human spot checks, anomaly monitoring, and a continuous feedback loop before launch.

    VII. Conclusion

    The core value of two-stage fine-tuning lies in splitting translation model training into two clearly targeted parts: capability building and quality optimization. Supervised fine-tuning enables the model to learn reliable translation mappings, task formats, and language patterns. Reinforcement learning then uses more detailed quality feedback to further improve contextual fit, naturalness, and multi-dimensional quality performance.

    However, this method is not simply about adding another training stage. It places high demands on data quality, reward design, policy constraints, and evaluation systems. Only by establishing reliable data governance processes, using evaluation mechanisms that cover real errors, and continuously calibrating through human and automatic evaluation can two-stage fine-tuning deliver stable and reproducible translation quality improvements.