TL;DR
This paper introduces a "translate-then-refine" framework designed to ensure machine translation systems respect specific terminology constraints. By combining terminology-aware training with post-processing via Large Language Models (LLMs) and constrained decoding, the authors achieve high terminology recall across multiple language pairs without requiring manually curated domain-specific training data.
What Problem Does This Paper Address?
Neural Machine Translation (NMT) systems often struggle with specialized vocabulary and polysemantic words—words that have different meanings depending on the context. For example, the word "transformer" might refer to an electrical device, a fictional robot, or a specific neural network architecture.
Standard NMT models typically default to the most common translation found in their training data, which leads to errors in technical or domain-specific translations. While "hard constraints" (forcing a word to appear) exist, they often result in grammatically awkward or disfluent sentences. The authors seek a way to inject these constraints effectively while maintaining high translation quality and fluency, ideally in a way that doesn't require expensive, hand-labeled domain data.
Methods
The authors propose a multi-stage approach:
- Terminology-Aware Training (TAT): Instead of relying on specialized dictionaries, they use word alignment tools (
fast_align) on general training data to identify source-target word pairs. They then "tag" the source text with these target words inline (e.g.,source_word __target__ target_word __done__). This teaches the model a "copying" behavior: when it sees a target hint in the source, it learns to use it in the output. - Negatively Constrained Decoding (NCD): This is a post-processing step. If the initial translation misses a required term, they use a neural aligner to identify which word was generated instead of the correct one. They then re-decode the sentence, but explicitly forbid the decoder from generating that "wrong" word.
- LLM Refinement: They leverage GPT-3.5 to refine translations. The LLM is provided with the source sentence, the initial (potentially flawed) translation, and a list of "should be translated as" rules. The prompt templates used for this are shown below:
Datasets
The study uses the WMT 2023 terminology task datasets, which include:
- German-to-English (de-en): ~228M lines (parallel + back-translated).
- Chinese-to-English (zh-en): ~37M lines.
- Czech-to-English (cs-en): ~118M lines.
Evaluation was performed on a "blind" test set featuring three modes: real terminology constraints, random (pseudo) constraints, and no constraints.
Key Insights and Ideas
- Pseudo-Terminology Works: You don't need a gold-standard technical dictionary to train a terminology-aware model. Using automated word alignments to create "synthetic" constraints during training is enough to teach the model the underlying mechanism of following hints.
- LLMs as Fluent Editors: While dedicated NMT models are faster, LLMs are exceptionally good at re-writing a sentence to include a specific word while maintaining (or even improving) overall fluency.
- Negative Constraints are Tricky: The NCD approach—telling the model "don't use word X"—was less successful than hoped. The authors hypothesize that alignment errors propagate through this process, and blocking one word might just lead the model to choose a different, equally incorrect synonym.
Key Results
The main results, measured by terminology recall (how often the required term appeared) and COMET_QE (a reference-free quality metric), are summarized in the table below:
- High Recall: The TAT model achieved over 82% recall for German-English.
- LLM Boost: For Chinese-English, where the base TAT model struggled (likely due to domain mismatch), the LLM refinement process boosted terminology recall from ~50% to over 83%.
- Quality Trade-offs: Generally, forcing specific terminology leads to a slight drop in overall translation quality scores, though LLM refinement helped mitigate this by maintaining better fluency than traditional constrained decoding.
Limitations and Future Work
- Domain Mismatch: The authors noted poor performance on the Chinese-English task, which they attributed to the test set containing "web novels and literal writing" that were under-represented in their general-purpose training data.
- Computational Cost: Using an LLM like GPT-3.5 for every translation is significantly more expensive and slower than using a dedicated NMT model.
- Alignment Errors: The failure of the NCD approach highlights the difficulty of relying on automated word alignment for fine-grained decoding control.
- Future Direction: The authors suggest that instead of "negative" constraints, they might explore "positive" enforcement—explicitly manipulating the probability distribution of the model at each step to ensure the terminology token is chosen.
Summary updated