Two-Stage Fine-Tuning for High-Quality Translation Models

    This article explains why single-stage fine-tuning often plateaus when adapting general-purpose LLMs for translation, and how a two-stage recipe addresses the mismatch between token-level training objectives and sentence-level human quality judgment. It covers the division of labor between supervised fine-tuning (SFT) and reinforcement learning (RL), mixed synthetic and human data composition with stratified quotas, quality filtering for synthetic parallel data, reward model design with a weighted reward example, training stability techniques such as KL constraints and reward clipping, and an evaluation loop kept separate from the training signal. It also lists common pitfalls and practical deployment advice.

    1. Why Single-Stage Fine-Tuning Gets Stuck

    Adapting a general-purpose base model for translation is one of the most common engineering needs in multilingual applications. Many teams start by preparing a batch of parallel corpora, running a single round of supervised fine-tuning, and shipping the result. In practice, this route quickly produces something that looks usable, but it hits a ceiling fast: the output is grammatically correct and the terminology is right, yet it does not read like a human wrote it. Long sentences feel stiff, coreference across context is handled poorly, and domain style drifts.

    The root cause is a mismatch between the training objective and the evaluation criteria. Supervised fine-tuning optimizes token-level likelihood against a reference translation, while human judgment of translation quality is a holistic, sentence-level and context-level preference. When only one reference rendering exists, the model tends to converge toward an averaged expression: it lacks diversity and never learns comparative knowledge about which rendering is better. The two-stage fine-tuning recipe targets exactly this mismatch: stage one solves whether the model can translate at all, stage two solves how good the translation is.

    2. Overall Structure of the Two-Stage Recipe

    The recipe splits training into two sequential stages with different objectives.

    Stage one is supervised fine-tuning (SFT). Starting from a general generative base model, training uses a mix of synthetic data and human-translated data. The goal is a stable instruction-following ability and basic translation competence across language directions, domains, and text types.

    Stage two is reinforcement learning (RL). A quality-assessment reward model provides the preference signal, and policy optimization pushes the model toward translations that fit the context better and read more naturally. The goal is to move from acceptable to preferred.

    The two stages are not a simple concatenation; they have a clear division of labor. SFT sets the capability floor and the output format, while RL sets the capability ceiling and the style preference. Skipping stage one and going straight to RL leaves the model without a stable output distribution, makes the exploration space too large, and makes training prone to collapse. Doing only stage one leaves the model unable to break through the ceiling of averaged expression.

    3. Stage One: Supervised Fine-Tuning on Mixed Data

    3.1 Data Composition and Ratio

    Synthetic data provides breadth: a high-capability generative model is used to build parallel samples across many language directions in bulk, quickly filling gaps in low-resource languages, vertical domains, and long-tail text types. Human data provides the anchor: it does not need to be the largest portion, but it must be accurate and stylistically reliable, constraining the model from drifting away from real translation habits.

    A common engineering practice is to keep human data as a fixed-proportion high-quality anchor, give the remaining quota to synthetic data, and set layered quotas by language direction, domain, and sentence-length bucket so that high-resource languages do not drown out low-resource ones. A schematic version of the mixing logic:

    1. def build_mix(human_samples, synthetic_samples, anchor_ratio=0.2):
    2. # Human data acts as the style anchor, retained with stratified sampling per direction
    3. anchor = stratified_sample(human_samples, ratio=anchor_ratio)
    4. synth = stratified_sample(synthetic_samples, exclude=anchor.keys())
    5. return dedup(anchor + synth) # Deduplication is a hard requirement

    3.2 Quality Control for Synthetic Data

    The biggest risk with synthetic data is teaching the model with errors. A filtering pipeline is mandatory: back-translation consistency checks, length-ratio anomaly detection, language identification checks, removal of exact and near duplicates, and terminology consistency checks. For low-resource directions, watch especially for pseudo-parallel pairs, where source and target are not semantically aligned but are learned as positive samples because they make up a large share of the training set.

    3.3 Training Configuration Notes

    Multilingual mixed training requires attention to sampling temperature and curriculum order. A safer strategy is to first use broad synthetic data to establish coverage, then gradually increase the weight of human data and hard samples. Learning rate, batch size, and training steps should scale with corpus size, to avoid overfitting on a small dataset and producing templated translations.

    4. Stage Two: Reward-Model-Driven Reinforcement Learning

    4.1 Where the Reward Comes From

    The key component in this stage is a set of quality-assessment reward models. One type performs reference-free quality estimation, scoring based only on source and translation, which suits production scenarios with no reference translation available. The other performs reference-based automatic error annotation and scoring, outputting errors structured by category and severity. Used together, they balance coverage and discriminative power.

    The reward signal does not have to be a single scalar; a weighted combination works, with explicit format and length penalties added:

    1. reward = (
    2. 0.5 * reference_free_quality_score
    3. + 0.3 * reference_based_error_annotation_score
    4. + 0.2 * terminology_consistency_score
    5. - 0.1 * length_anomaly_penalty
    6. - 0.1 * repetition_penalty
    7. )

    4.2 Training Stability

    A common failure in the RL stage is reward hacking: the model discovers that a certain sentence pattern earns a high score and starts producing highly homogeneous output. Mitigations include keeping a KL constraint to stay close to the SFT policy, normalizing and clipping rewards, periodically calibrating the reward model against a human evaluation set, and retaining a portion of SFT data for mixed training.

    4.3 Closing the Evaluation Loop

    An evaluation set decoupled from the training objective is required: human blind evaluation plus automatic metrics plus domain-specific sets. The reward model can only serve as a training signal, not as the sole judge; otherwise the only thing improving is the fit to the reward model.

    5. Common Pitfalls and Deployment Advice

    • Treating synthetic data as a free lunch: unfiltered synthetic data reliably lowers the model’s ceiling.
    • Ignoring language imbalance: overall metric gains may come entirely from high-resource languages.
    • Fully isolating the data of the two stages: mixing a small amount of high-quality SFT samples into stage two is usually more stable.
    • A single reward dimension: optimizing fluency alone degrades faithfulness, so semantic fidelity must be constrained explicitly.
    • No regression baseline: every iteration should be compared against a fixed evaluation set and the previous model version.

    On the engineering side, data cleaning and synthesis can rely on general-purpose large-batch data processing capabilities, training and evaluation can run on a container platform, metrics and curves can be captured through logging and monitoring with alerting, and model versions and data versions should be brought under traceable management together. In this kind of training pipeline, Baidu AI Cloud is typically used to carry general capability layers such as data processing, training scheduling, and monitoring.

    Overall, the value of the two-stage fine-tuning recipe is not any single technique, but the decoupling of capability acquisition from preference alignment: first make the capability solid with mixed data, then fine-tune style and context adaptation with a reward model. Understanding this division of labor matters more than memorizing any specific parameter.