Towards Accurate Translation via Semantically Appropriate Application of Lexical Constraints
Paper · 2023 · Yujin Baek, Koanho Lee, Dayeon Ki et al.
Summary
A bilingual glossary can tell a machine translation system which wording a user wants. The sentence still has to tell the system whether that wording belongs there. In an example from Baek and colleagues, the same Korean spelling can refer to COVID-19 or to Corona beer. A glossary entry for the disease helps in a sentence about economic recovery. Applying it to the beer changes what the sentence is about. The paper examines that ambiguity alongside a separate problem. Even when the glossary entry fits, a translator may fail to use it if the requested term pair was absent from its translation training.
The authors introduce HOLLY, a Korean-to-English benchmark with 600 test examples covering 150 glossary constraints. Each entry is tested in contexts where it applies and contexts where the same Korean spelling has a different meaning. The entry also comes with Korean example sentences that demonstrate its intended sense. A classifier compares the use of the word in a new sentence with its use in those examples. If the classifier accepts the entry, the translator receives the requested English wording alongside the original Korean sentence. The classifier using klue/roberta-large reached 92.3% accuracy on HOLLY.
The authors’ translation system, PLUMCOT, draws on contextual representations from a frozen Korean encoder and learns explicitly when to copy a requested term. To make the test of unfamiliar terms more informative, the authors excluded translation training pairs in which a HOLLY source term and its prescribed target term appeared together. On the HOLLY examples where the glossary entry applied, PLUMCOT scored 20.91 on the BLEU score and fulfilled 98.06% of constraints under soft matching, which accepts specified variations of the requested form. When given the exact English term from the reference translation, it scored 22.07 BLEU and fulfilled 98.71% of constraints. It led the reported baselines on both measures in both settings.
On HOLLY examples where the glossary entry had the wrong sense, filtering candidate entries before translation reduced use of the inappropriate wording and improved BLEU for every system tested. Filtering also discarded some valid entries and reduced compliance on the positive examples. The experiments expose a tradeoff that a test of copying alone would miss. A system that is better at using supplied terminology has more to gain from identifying which entries belong in the sentence, and more opportunity to introduce a mistranslation when that decision goes wrong.
Deep dive: Towards Accurate Translation via Semantically Appropriate Application of Lexical Constraints
Baek and colleagues test how Korean-to-English translation can use glossary terms for the right meaning and copy terms unseen in training. · about 35 minutes to read
The problem and its context
When a glossary lookup produces the wrong instruction
A lexical constraint is a prescribed wording for part of a translation. In the setup studied here, it pairs a source term with a target term. The source side specifies what to look for in the original sentence, and the target side supplies the wording the user wants in the translation. A glossary can therefore communicate a preference that an ordinary translator would have little reason to infer from the sentence alone. For instance, several English phrases may convey a similar idea, while a user wants a particular term used consistently in a domain.
The first difficulty occurs before the translator generates any English. Earlier work described in the paper often retrieved constraints by searching for glossary strings in the source sentence. This is a practical way to generate candidates from a list of entries. It establishes that a sequence of characters occurs in the input. Its evidence about the meaning of that occurrence is limited to the spelling. If several senses share that spelling, finding the characters leaves open whether the English term in the entry applies.
The paper’s example involving Corona makes the consequence concrete. In a sentence about economic recovery following the disease, the glossary wording identifies the intended event. In a sentence about the beer, the same match would supply a disease name where a brand should appear. Both cases start with a successful string search. The error comes from treating the search result as authorization to use the English term. Homographs, words with the same written form and different meanings, make this problem especially visible. Choosing between those meanings is a form of word sense disambiguation.
Earlier research had already recognized the issue. Michon and colleagues identified homographs in an analysis of translation errors. As Baek and colleagues describe it, Öz and Sukhareva treated the most frequent alignment for a source homograph as the correct constraint and used alternative alignments as terms to avoid. That approach assigns a preference at the level of the word. Baek and colleagues are interested in cases where a user needs wording for a less frequent sense. For that purpose, the important evidence is which sense occurs in the particular sentence and how it relates to the sense covered by the glossary.
There is also a distinction between rejecting an entry and supplying a replacement. A term list might specify an English expression for one sense and say nothing about the others. Once the entry is rejected, the translator still has to translate the ambiguous word. In the Corona example, discarding the disease wording lets the translator render the brand in context. The glossary decision has removed a misleading instruction. The ordinary translation process still has to do the work of recovering an appropriate expression.
What earlier systems did with a supplied term
The paper groups much of the earlier work into approaches that enforce terms during decoding and approaches that teach the translator to use terms through changes to its input. Decoding is the search for an output sequence. A constrained search can require a particular sequence to appear in the final output. This offers high compliance when the entry is valid. The authors also describe a speed cost for earlier versions of this approach and cite efforts to make the search more efficient, including dynamic beam allocation. Alignment-based approaches use information about which parts of the source and target correspond to guide the constraint’s placement. Grid Beam Search · Dynamic Beam Allocation
Input-based approaches have a different point of intervention. They give the desired English wording to the translator before decoding and train it on examples of how such wording is used. An input can replace the relevant source expression with the English term, or keep the full source and attach the term after it. This permits generation to proceed while the system has the supplied text available. Its success depends on what the system learns about using that text. The paper describes these approaches as having a smaller computational cost, with compliance left to the learned translation procedure. Work on terminology training also considered inflection, because the useful form of a term may depend on its grammatical role in the output. Training Neural Machine Translation to Apply Terminology Constraints
A pointer gives an input-based system a direct route for reusing material from the input. It can attend to an input position and place probability on copying the token there. For terminology translation, that position can contain English wording supplied by a glossary. The presence of a pointer leaves a further question about when to use it. A translator generating the rest of an English sentence needs ordinary vocabulary generation as well. The paper takes the balance between those routes as a quantity worth teaching explicitly. Pointer Networks · Incorporating Copying Mechanism in Sequence-to-Sequence Learning
Why seeing the pair during training changes the test
A second difficulty arises from how a terminology benchmark is assembled. Suppose a translator has repeatedly encountered a Korean expression paired with a particular English term in parallel sentences. It may produce that English term when it sees the Korean expression again, independent of any instruction attached at test time. The output satisfies the constraint. The test then has limited power to distinguish learned source-to-target correspondence from a learned ability to follow a newly supplied instruction.
The paper cites earlier work reporting overlap between evaluated constraints and training examples, and work that drew attention to the frequency of such repetition. The concern applies even when a benchmark is genuinely held out at the sentence level. The exact sentence can be new while the relevant bilingual term pair is familiar. Holding out the sentence and holding out the pair test different kinds of generalization. The latter is central if the use case involves technical vocabulary or wording that a user supplies after the translator has been trained.
Baek and colleagues likewise distinguish knowledge of a source expression from experience translating it into the prescribed English wording. A system can benefit from prior exposure to the Korean word and its contexts while still facing an unfamiliar pairing in the translation task. This distinction motivates the use of contextual representations from earlier pretraining together with a filter on the parallel translation data. It also explains why the paper has separate training and evaluation procedures for the classifier and translator. The classifier must compare meanings for held-out homographs. The translator must use bilingual instructions whose paired occurrence is withheld under the HOLLY protocol.
The architectural precedent for using pretrained representations came from work that gave a translation encoder and decoder access to BERT through attention. Baek and colleagues adapt that idea to translation with terminology constraints. In their setup, contextual information about the source and access to the requested wording come from distinct inputs. This gives the translator evidence about what the Korean sentence means and a separate place to find the English tokens it has been asked to use. BERT
The method, step by step
Build examples around a meaning, then test the other meanings
HOLLY starts from Korean homographs collected using examples from a Korean dictionary. The researchers group sentences according to the sense of the shared source term. They select the group representing the least frequent meaning for the benchmark entry. The prescribed English wording expresses that meaning. This choice gives the benchmark cases where a valid user preference concerns a less frequent sense, while uses of the same spelling in other senses make plausible but incorrect matches.
The paper describes collecting six Korean sentences per homograph. Four illustrate the sense chosen for the constraint. Two illustrate other senses. The researchers reserve two of the same-sense sentences as positive references. These are Korean examples for the classifier, and their role is to show how the word is used. The remaining same-sense sentences become positive test examples. The other-sense sentences become negative test examples. Each test example has its own English reference translation.
The distinction between a positive reference and a reference translation matters. A positive reference is an input for deciding whether the glossary entry applies. It can be reused when evaluating a new occurrence of the same spelling. The English reference translation is used to judge the translator’s output. On positive examples, the professional translators were asked to use the prescribed English wording. On negative examples, they were asked to preserve the sense actually present in the Korean sentence. The authors report sending the work to a professional translation company and manually reviewing the translations.
The paper illustrates this organization with the Korean form pronounced yang-soo. Its glossary entry calls for amniotic fluid. The auxiliary Korean examples describe uses related to pregnancy and prenatal testing. Test sentences about childbirth or a clinical test are positive. Another test sentence concerns the sign for a positive number, and another concerns transfers involving company shares. Both contain the same Korean spelling and are negative for this entry. The examples demonstrate a property of the design that would disappear if every negative used a different spelling. The classifier has to compare uses of a shared form.
From a glossary match to a Korean-to-English translation
The steps in order.
Compare the ambiguous spans in context
The classifier receives the new Korean sentence and the positive references for the candidate entry. In the main setup, two references and the new sentence form a triplet. Each sentence is processed independently by a frozen Korean RoBERTa encoder. Frozen means that the parameters of this encoder stay fixed while the classifier is trained. Its role is to produce representations of the tokens in context. The same written form can yield different representations because the surrounding tokens differ.
For each sentence, the authors summarize the hidden representations of the ambiguous span. They draw on the last 16 layers of klue/roberta-large in the implementation described for the classifier. They average the selected layer representations and pool over the tokens making up the homograph. Pooling gives the classifier a single vector per occurrence even if the tokenizer represents the term with several pieces. The surrounding sentence affects this vector through the encoder’s contextual computation. The classifier’s comparison focuses on the resulting span representation.
The feature design is related to Sentence-BERT. The authors concatenate the representations themselves, absolute differences between representations, and pairwise cosine scores. The raw vectors give the classifier access to their coordinates. Absolute differences show how far apart corresponding coordinates are, and cosine measures how closely the directions of two vectors agree. These features allow the classifier to consider the relation between the two reference occurrences as well as how each compares with the new occurrence. The cosine scores provide one explicit measure of semantic similarity alongside the learned decision.
z = concat(u, v, w, |u − v|, |v − w|, |u − w|, sim(u, v), sim(v, w), sim(u, w))
Here, u, v and w are the contextual vectors for the two references and the new occurrence in input order. Each is in ℝᵐ, the space of real vectors with m coordinates. The subtraction sign compares corresponding coordinates and the vertical bars take their absolute values. sim is cosine similarity and gives a real-valued score for the pair inside its parentheses. concat joins the vectors and scores in order. The resulting feature vector z belongs to ℝ⁶ᵐ⁺³.
o = σ(max(0, zWᵣ + bᵣ)W + b)
Here, o is the output score in [0, 1]. z is the combined input vector, Wᵣ is the intermediate weight matrix of shape (6m+3)×m, and bᵣ is its bias vector. Juxtaposition denotes matrix multiplication, and addition of a bias shifts the corresponding coordinates. max(0, …) replaces negative intermediate values with zero. W is the final weight matrix of shape m×1 and b supplies the final bias. The sigmoid σ maps the final scalar into the prediction range.
The classifier is trained on dictionary examples assembled into triplets and manually inspected for sentence quality. A triplet has label 1 when all occurrences use the shared word in the same sense, and label 0 when one sentence uses it differently. At test time, the two auxiliary references already illustrate the entry’s intended meaning, so the decision concerns whether the new occurrence belongs with them. The authors keep homographs disjoint across training, validation and test. As a result, a lookup assigning each word in the training set a fixed decision would fail to cover the test words.
Give the translator an ordinary source and an annotated source
The translation stage begins with the original sequence and the set of applicable glossary entries. Each entry has a Korean side and an English side. The conceptual translation task conditions on the source and this set of instructions. Translation proceeds token by token, with each next token conditioned on the English prefix generated so far.
p(Y ∣ X, C; θ) = ∏ₜ₌₁^|Y| p(yₜ ∣ y₍<t₎, X, C; θ)
Here, X is the original source sequence and Y is the target sequence. C is the collection of n constraints, indexed by i, with Cᵢ pairing the source term Cᵢ,ₛ and the target term Cᵢ,ₜ. θ denotes the translation system’s parameters. p denotes probability, the vertical conditioning bar marks the information available to the prediction, and the semicolon inside the formula separates that information from the parameter notation. yₜ is the token at target position t, and y₍<t₎ includes the tokens at earlier positions. |Y| is the length of the target sequence. The product ∏ combines the conditional probabilities from the initial position through the last one.
PLUMCOT uses the input format of LeCA. It keeps the Korean sentence intact and appends the English target terms of the approved entries. A special token marks the beginning of each appended term. Retaining the Korean expression in its original position preserves the source context available to the translation encoder. Keeping the English terms in a separate part of the same sequence gives the copy mechanism explicit positions from which it can retrieve them. When no candidate is approved, the translation input is simply the original source sentence.
X̂ = (X, ⟨sep⟩, C₁,ₜ, …, ⟨sep⟩, Cₙ,ₜ)
Here, X̂ is the augmented input sequence and X is the original source sequence at its beginning. ⟨sep⟩ denotes the separator token, written as <sep> in the paper. C₁,ₜ through Cₙ,ₜ are the English sides of the accepted constraints. n is the number of those constraints and the ellipsis stands for the intervening separator-and-term pairs. Each term may contribute a sequence of tokens. If there are no accepted terms, X̂ equals X.
p(Y ∣ X, C; θ) = ∏ₜ₌₁^|Y| p(yₜ ∣ y₍<t₎, X̂; θ)
Here, p(Y ∣ X, C; θ) is still the probability of the whole translation Y given the original source X, the constraints C, and parameters θ. The product follows target positions t through length |Y|. Each factor predicts yₜ from the previous target tokens y₍<t₎ and the augmented sequence X̂, which is where the translation network receives the English parts of C. The conditioning and parameter separators play the same roles as in the preceding probability expression.
The training data simulate that input format. The authors select target terms from the existing English side of a parallel sentence and attach them to the Korean side. This ensures that the selected terms occur in the translation reference and gives the system examples in which a supplied term should be reproduced. The authors exclude the top 1,500 frequent words from the 32K joint dictionary when selecting constraints. They sample from 0 to 3 terms per sentence, with probabilities [0.3, 0.2, 0.25, 0.25] in that order. The training distribution thus includes ordinary translation inputs as well as inputs with one or more requested terms.
The parallel data come from IWSLT 17 and AI Hub. The authors preprocess Korean with Mecab and learn a shared Korean-English vocabulary using byte pair encoding with 32K merge operations, implemented with SentencePiece. The idea behind this subword tokenization is to represent a term by a sequence of known pieces when needed. A term can be unfamiliar as a bilingual constraint while its component tokens remain representable in the system. The paper uses fairseq for the translation implementations and matches the embedding widths, layer counts and attention-head counts for the compared translation architectures. SentencePiece · Neural Machine Translation of Rare Words with Subword Units · fairseq
Add contextual evidence at each translation layer
The translation network is a Transformer. It receives information through two routes. The translation encoder reads X̂, which contains the Korean source and any English terms attached to it. A frozen klue/roberta-large encoder reads X, the original Korean sentence. The last layer of the frozen encoder provides a contextual representation called B. Unlike the classifier’s pooled representation, B is a sequence of contextual states accessible through attention. The translation network can draw on them for the source sentence as a whole.
Attention organizes access to information as a comparison between a query and keys. The resulting weights are applied to values. In the translation encoder, ordinary self-attention reads earlier representations of the augmented input. An additional attention operation uses the same position’s state to query B. The layer averages these attention outputs and adds the input state back. Adding the state back is a residual connection, which lets the update build on information already present. The layer then uses normalization and a feed-forward transformation.
h̃ₜˡ = (1/2)(MHA(hₜˡ⁻¹, Hˡ⁻¹, Hˡ⁻¹) + MHAᴮ(hₜˡ⁻¹, B, B)) + hₜˡ⁻¹
Here, l is the encoder layer and t is the position in the augmented input. Hˡ⁻¹ is the sequence of encoder representations at the preceding layer, and hₜˡ⁻¹ is the state at position t in that sequence. MHA denotes multi-head attention with arguments in query, key and value order. MHAᴮ is the separate multi-head attention operation that uses the frozen contextual sequence B as keys and values. The factor 1/2 averages the two attention outputs. Adding hₜˡ⁻¹ produces the intermediate state h̃ₜˡ.
hₜˡ = LN(FFN(LN(h̃ₜˡ)) + h̃ₜˡ)
Here, hₜˡ is the completed state at position t of encoder layer l. h̃ₜˡ is the intermediate state from the attention update. LN applies layer normalization and FFN is the feed-forward network. The inner normalization prepares the intermediate state for the feed-forward transformation. The plus sign adds the intermediate state back before the outer normalization. Layer Normalization
The decoder follows a related design. Its self-attention reads only the target positions available at the step being computed. The resulting decoder state queries both the final translation encoder sequence and the frozen Korean sequence. This gives the decoder access to the augmented input, including the supplied English terms, as well as contextual evidence computed from the unaugmented source. The paper gives the decoder computation explicitly in the appendix.
ŝₜˡ = LN(MHA(sₜˡ⁻¹, S₁:ₜˡ⁻¹, S₁:ₜˡ⁻¹) + sₜˡ⁻¹)
Here, l is the decoder layer, t is the target position and sₜˡ⁻¹ is its state from the preceding layer. S₁:ₜˡ⁻¹ is the prefix of that layer’s decoder sequence through position t, with later positions masked. MHA uses the current position as its query and the available prefix as its keys and values. LN normalizes the sum of the attention output and the preceding state. ŝₜˡ is the resulting decoder state before attention to the source.
s̃ₜˡ = (1/2)(MHA(ŝₜˡ, Hᴸ, Hᴸ) + MHAᴮ(ŝₜˡ, B, B)) + ŝₜˡ
Here, s̃ₜˡ is the intermediate state after the decoder attends to the source. ŝₜˡ supplies the query to both operations. Hᴸ is the complete translation encoder output at the final layer L, while B is the frozen encoder output for the original Korean input. Ordinary MHA reads keys and values from Hᴸ, and MHAᴮ reads them from B. The factor 1/2 takes the average of the outputs, and the final addition retains ŝₜˡ. The paper uses L for the number of layers in each of the translation encoder and decoder stacks.
sₜˡ = LN(FFN(LN(s̃ₜˡ)) + s̃ₜˡ)
Here, sₜˡ is the completed decoder state at position t and layer l, and s̃ₜˡ is the intermediate attention state. LN denotes layer normalization and FFN denotes the feed-forward network within the decoder layer. The addition is the residual connection around the feed-forward update.
Each multi-head attention operation contains separate projections into multiple representations of its inputs. This lets different heads compute different weights for the same input positions. The paper specifies the following attention calculation and uses separate projection parameters for the extra attention to the frozen encoder. The translation stream has width 768 and uses 12 heads. The key and value width per head is 64. The frozen encoder’s representation has width 1024. Attention Is All You Need
MHA(Q, K, V) = concat(head₁, …, headᴴ) Wᵒ
Here, Q, K and V are the query, key and value inputs. head₁ through headᴴ are the individual head outputs, with H the number of heads and the ellipsis denoting the intervening outputs. concat joins those outputs along their feature dimension. Wᵒ is the learned output projection applied to the concatenation. In this attention formula, H counts heads. The layer-indexed sequence Hˡ in the encoder formulas denotes translation encoder states.
headᵢ = Attn(QWᵢᴼ, KWᵢᴷ, VWᵢⱽ)
Here, headᵢ is the output of attention head i. Wᵢᴼ denotes that head’s query projection, labeled with Q in the paper. Wᵢᴷ and Wᵢⱽ denote the key and value projections. Their products with Q, K and V provide the inputs to the scaled attention function Attn.
Attn(q, k, v) = softmax(qkᵀ / √dₖ) v
Here, q, k and v are the projected queries, keys and values for a head. kᵀ is the transpose of the key matrix. The product qkᵀ gives query–key comparison scores, and division by the square root of the key width dₖ scales them. softmax converts the resulting scores to weights over key positions for each query. Multiplication by v combines the corresponding values using those weights.
Learn when to copy from the input
The pointer uses attention to the translation encoder’s output at the current decoding step. This is the sequence that includes the attached English terms when a glossary constraint has been accepted. The attention weights give information about where to copy. The authors average the relevant copy heads and form a context vector from the weighted encoder states. The gate then combines that vector with the decoder state to estimate how much the next-token prediction should rely on copying.
cₜ = ∑ᵢ₌₁^|X̂| αₜ,ᵢ × hᵢᴸ
Here, cₜ is the attention context at target step t. i indexes positions in X̂, and |X̂| is the length of that sequence. αₜ,ᵢ is the attention weight for source position i, averaged over the copy heads at target step t. hᵢᴸ is the encoder state at that input position in the last translation layer L. The multiplication scales each state by its weight, and ∑ adds the weighted states over the input.
gₜᶜᵒᵖʸ = σ(Wᵍ [cₜ ; sₜᴸ] + bᵍ)
Here, gₜᶜᵒᵖʸ is the predicted copy gate at target step t, in [0, 1]. The bracketed expression joins cₜ, the attention context, with sₜᴸ, the decoder state at that step in the final layer L. The semicolon inside the brackets denotes vector concatenation. Wᵍ and bᵍ are learned weights and a bias for the gate, and σ is the sigmoid function.
p(yₜ ∣ y₍<t₎, X̂; θ) = (1 − gₜᶜᵒᵖʸ) × pₜʷᵒʳᵈ + gₜᶜᵒᵖʸ × pₜᶜᵒᵖʸ
Here, yₜ is the candidate next token, y₍<t₎ the target prefix, X̂ the augmented input and θ the translation parameters. pₜʷᵒʳᵈ is the vocabulary generator’s probability for that token, and pₜᶜᵒᵖʸ is its probability through the copy route. The predicted copying strength is gₜᶜᵒᵖʸ, and 1 − gₜᶜᵒᵖʸ is the complementary vocabulary weight. The multiplication and addition mix the two contributions into a single next-token probability.
A useful copy location is only part of a successful prediction. If the pointer assigns high probability to the requested English token but the gate gives little weight to copying, the token can still have low overall probability. PLUMCOT therefore receives a training signal on the gate itself. The attached terms come from the training reference, so the training procedure can mark target positions that belong to those terms and positions that belong to the rest of the sentence.
J(θ) = α ∑ₜ∉C₁:ₙ,ₜ (1 − gₜ) × log(1 − gₜᶜᵒᵖʸ) + β ∑ₜ∈C₁:ₙ,ₜ gₜ × log(gₜᶜᵒᵖʸ)
Here, J(θ) is the weighted copy-gate log-likelihood for translation parameters θ. In the sum subscripts, membership in C₁:ₙ,ₜ refers to whether target position t belongs to the supplied target terms. The T side of a constraint in the paper’s notation means target. gₜ is the gold gate label, set to 1 at positions belonging to those terms and to 0 elsewhere. gₜᶜᵒᵖʸ is the predicted gate. log takes a logarithm. α weights the non-copy positions and β weights the copy positions. The paper sets these weights using the respective class lengths and the total target length to address the imbalance between the two groups. The bare α here is a loss weight, while indexed αₜ,ᵢ in the pointer formula is an attention weight.
ℒ(θ) = −∑ₜ₌₁^|Y| log p(yₜ ∣ y₍<t₎, X̂; θ) − λJ(θ)
Here, ℒ(θ) is the training loss. The negative sum penalizes low probability for the reference token yₜ at each position t through target length |Y|, given the earlier reference tokens y₍<t₎, augmented input X̂ and parameters θ. J(θ) is the gate objective and λ controls its contribution. Subtracting the gate log-likelihood makes agreement with the copying labels reduce the loss. The main configuration uses λ = 0.2. This training signal biases the gate toward copying where a supplied term occurs, while the translation term in the loss still rewards predicting the whole reference sequence.
Experiments and results
How the evaluation separates the two decisions
The paper evaluates the classifier on HOLLY, then examines translation in conditions that isolate different parts of the pipeline. On positive examples, the entry is semantically appropriate and the main system comparison supplies it directly. This establishes how well the translators use a valid instruction. On negative examples, the entry is wrong for the context. The authors compare translation with the candidate supplied against translation after the classifier has had a chance to remove it. They also apply the classifier to positive examples to measure the cost of removing entries that should have passed.
The classifier’s training partition covers 434 homographs and contains 48,836 triplets. The labels are imbalanced in that partition, with 13,128 same-sense examples and 35,708 examples containing a change of sense. The validation set covers 39 homographs and has 3,000 triplets, with 1,500 examples in each class. The HOLLY test set brings in held-out homographs. Its positive and negative examples ask for opposite decisions about the same spelling and glossary entry, so success requires using the change of context.
On HOLLY, the classifier with klue/roberta-base achieved 88.7% accuracy and the one with klue/roberta-large achieved 92.3%. For the larger encoder, class 1 denotes acceptance of an entry that fits the context. Its precision was 0.924, its recall was 0.933 and its F1 was 0.929. For class 0, the corresponding scores were 0.933, 0.923 and 0.928. Precision measures how often a prediction of the class was correct. Recall measures how many actual examples of that class were found. F1 combines precision and recall. The scores are close across the two classes in spite of the imbalance in classifier training.
For translation, the authors start from 1.83M Korean-English sentence pairs. The HOLLY translation runs use data filtered to remove about 160K pairs in which the Korean and English terms of a test constraint co-occur. The matching of terms across the two sides is the criterion for exclusion. Training still teaches the general task of integrating attached English terms, using terms sampled from the remaining parallel sentences. The filter targets prior exposure to the particular test association whose successful reproduction is being measured.
What counts as using a term
The translation evaluation reports BLEU and copy success rate, abbreviated CSR. BLEU scores the output against reference translations using matching sequences of tokens. CSR measures the proportion of imposed terminology constraints fulfilled in the generated translations. Their roles differ in a concrete way. An output can use the exact requested term and have problems elsewhere. A reasonably close translation can also miss the user’s stipulated wording. Measuring both makes these outcomes distinguishable.
Under soft matching, the authors accept specified morphological variations of a requested term. Their illustration uses a Korean word pronounced so-hwa, with an English constraint of digest. The accepted list includes digest, digestion and digestive. The list allows the output to satisfy the terminology check in more than one surface form. For hard matching, the English term is taken from the professional reference and that form is required. In the example, the requested form is digestion. Hard matching is used on positive examples, where the target term can be recovered from the reference. The negative references express another sense, so they do not provide an exact form of the rejected glossary wording for a corresponding hard-matching test.
Soft matching and hard matching differ both in the terms supplied and in what counts as success. Hard matching imposes a narrower output criterion while supplying wording chosen for the particular reference sentence. The paper observes higher BLEU under hard matching on the positive examples and attributes it to supplying reference-derived terms. A reader interpreting that difference should therefore consider what the systems knew about the target sentence under each protocol.
The authors compute the BLEU scores with sacreBLEU and use compare-mt for bootstrap significance testing, with p = 0.05 and 1,000 bootstrap samples. They mark significant BLEU results in the main positive-example comparison. These tests concern differences in output scores on the evaluated examples. The paper’s account of the computational experiments identifies the main results as coming from a single run. A Call for Clarity in Reporting BLEU Scores · compare-mt
How much of compliance can ordinary translation explain?
The authors compare an ordinary Transformer trained on the full parallel data with an ordinary Transformer trained on the filtered data. This translator gives a reading of how frequently a term can appear through ordinary source-to-target learning. In HOLLY soft matching on positive examples, the full-data Transformer attained 21.65 BLEU and 66.67% CSR. The filtered Transformer attained 18.44 BLEU and 11.97% CSR. Under hard matching, the full-data run had 21.65 BLEU and 58.90% CSR, while the filtered run had 18.44 BLEU and 9.06% CSR.
The contrast gives a reason to inspect term overlap even when a benchmark already uses held-out sentences. Without a special terminology mechanism, the full-data translator frequently produces the wording that the glossary requests. A success in that condition could arise through ordinary learning of which source and target expressions correspond. After filtering, ordinary translation is much less likely to meet the same lexical check. This is consistent with the authors’ account of exposure to the pairs, although filtering also reduces and changes the training corpus. The experiment compares whole training conditions, so it cannot assign every difference to isolated memorization events.
How PLUMCOT compares with terminology baselines
The main positive-example experiment compares PLUMCOT with CS, LeCA and Cdalign using the filtered training data. CS stands for Code-Switching. It replaces an aligned source span with the requested target wording and trains a pointer to reuse it. LeCA retains the original sentence, appends target terms and uses a pointer, making it the closest comparison for PLUMCOT’s input format. Cdalign uses alignment guidance for constrained decoding. The paper selects its ATT-INPUT approach, which the authors describe as relatively costly in time and designed for high compliance.
Soft-matching BLEU on HOLLY positive examples
PLUMCOT scores above the input-based and alignment-guided baselines on translation quality.
The numbers
| System or setting | BLEU |
|---|---|
| CS | 18.52 |
| LeCA | 19.33 |
| Cdalign | 17.02 |
| PLUMCOT (this paper) | 20.91 |
Soft-matching copy success on HOLLY positive examples
PLUMCOT fulfills the most constraints when specified variants are accepted.
The numbers
| System or setting | CSR % |
|---|---|
| CS | 93.20 |
| LeCA | 94.17 |
| Cdalign | 95.47 |
| PLUMCOT (this paper) | 98.06 |
The soft-matching comparison gives different rankings for the baselines depending on the metric. Cdalign has the highest CSR among them, while LeCA has the highest BLEU. PLUMCOT leads both measures. Under hard matching, CS records 20.21 BLEU and 92.56% CSR, and LeCA records 20.53 BLEU and 93.85% CSR. Cdalign achieves 17.52 BLEU and 94.82% CSR. PLUMCOT achieves 22.07 BLEU and 98.71% CSR. The paper reports significant BLEU gains for PLUMCOT over the baselines in both matching conditions.
The authors’ qualitative example involving se-je shows how glossary compliance can matter even when the other outputs concern the right general topic. In a sentence about real estate taxation, the required wording is tax system. The ordinary Transformer and LeCA express the tax topic but leave out that exact phrase. PLUMCOT uses it in its account of the relationship between transaction and holding taxes. The example illustrates the distinction between translating the subject matter recognizably and adhering to the wording chosen for an applicable term.
What happens when the suggested term is wrong?
For HOLLY negative examples, a high rate of reproducing the nominated English term indicates that the translator is using misleading instructions. The authors therefore apply the classifier before translation and remove entries it rejects. Under soft matching, CSR falls across the compared systems. The paper reports statistically significant BLEU improvements across those systems after correction. In this split, the decline in copying has a favorable interpretation because the removed wording refers to a different sense.
The negative se-je example concerns a promotion in which customers can receive kitchen detergent. The glossary entry is the same tax system entry used in the real estate sentence. With the entry supplied, PLUMCOT produces a sentence in which the prize is a kitchen tax system. With the entry rejected, it translates the gift as kitchen detergent. That English wording comes from translating the source in context. The classifier’s contribution is to stop the unrelated tax terminology from competing for a place in the output.
The paper also shows cases where avoiding the wrong constraint repairs a particular meaning while leaving awkward English elsewhere. In an example where the sentence explains someone’s quietness through an introverted personality, supplying resistance leads to an interpretation involving resistance to introverts. Filtering the entry recovers the intended personality description, although the resulting expression for the person’s quietness remains awkward. In another example, rejecting an entry for reason lets the translation describe private property and the will of its owner. These outputs show the local nature of the intervention. The glossary filter can prevent an unrelated meaning from being copied into a sentence. The surrounding translation still depends on the translator.
What the ablations show
Contextual representations and supervised copying serve different roles
The main component test removes either access to the pretrained contextual representation or direct supervision of the copying gate. The comparison uses HOLLY positive examples, with valid constraints supplied to the translator. This setup avoids conflating translation changes with a classifier decision to drop an entry. The complete system gives the reference point for interpreting what each removal changes.
Soft-matching BLEU by component on HOLLY positive examples
The complete configuration scores highest, and removing contextual representations has the largest observed cost.
The numbers
| System or setting | BLEU |
|---|---|
| Without pretrained contextual representations | 18.51 |
| Without direct copy supervision | 19.22 |
| PLUMCOT with both components (this paper) | 20.91 |
Removing the pretrained contextual representations leaves soft-matching CSR at 98.06%, the same value as in the complete configuration. The reduction in BLEU therefore occurs alongside the same aggregate level of term compliance. That makes it plausible that the contextual stream contributes to how the rest of the sentence is translated, or to how the term is integrated into it. Equal aggregate CSR does not identify which individual sentences succeeded or which other translations improved. The comparison supports a role for the contextual stream in overall translation quality under this test.
Removing direct copy supervision, while keeping the pointer and pretrained contextual information, changes soft-matching CSR to 93.85%. BLEU also falls to 19.22. This experiment isolates the added training signal more closely than a comparison against a translator without a pointer. Both variants can copy. The full version receives explicit feedback on when that route should be used. The authors note that better reproduction of the stipulated wording could itself explain part of the BLEU gain, since the positive references were translated using that wording.
The hard-matching ablation gives the same ordering in BLEU. The complete configuration scores 22.07, the version without pretrained contextual information scores 19.58, and the version without direct copy supervision scores 20.54. Their respective CSRs are 98.71%, 98.38% and 93.20%. In both protocols, the removal of gate supervision has the larger effect on copying. The pretrained context has a larger observed effect on BLEU than on the rate of reproducing the requested phrase. The paper compares each removal with the complete system. These comparisons describe the effect of removing a component when the other is present, instead of measuring every combination of their contributions.
Putting more weight on copying changes the balance
The authors compare two weights for the auxiliary gate objective. On HOLLY positive examples with soft matching, λ = 1 yields 19.00 BLEU and 99.68% CSR. The configuration using λ = 0.2 yields 20.91 BLEU and 98.06% CSR. In hard matching, λ = 1 gives 20.49 BLEU and 99.35% CSR, compared with 22.07 BLEU and 98.71% CSR at λ = 0.2.
Increasing the emphasis on gate supervision improves compliance in this comparison while reducing agreement with the reference at the level of the full translation. This result helps explain the authors’ choice of λ = 0.2 for the main experiments. The complete translation objective places value on both the requested term and its surrounding sentence. The higher CSR setting would be chosen if the decision depended solely on whether the required term appeared. The paper instead selects a reported setting with higher BLEU and still high compliance under both protocols. The comparison shows the tradeoff at the reported weights, without establishing a general relationship for every possible weight.
More examples of a sense help classification in the reported test
The classifier was also tested with different numbers of monolingual usage examples. With n = 1 reference, test accuracy is 91.33%. With n = 2, it is 92.33%. With n = 3, it is 92.67%. The authors interpret the progression as a benefit from richer evidence about the sense. Multiple examples can show how a word is used in different sentences while preserving what those uses have in common.
The strongest reported point uses three examples, and the main setup uses two. The authors call attention to the cost of obtaining examples whenever the glossary user needs to supply them. The comparison concerns the number of reference sentences available for the decision. It gives limited evidence about how differences in example quality, variety or relevance would affect a new glossary. In particular, adding a sentence that clearly demonstrates the intended sense and adding a nearly redundant one both increase the count, while the information they carry could differ.
Randomly sampled terms produce a different comparison
The authors also use a previous test protocol in which constraints are sampled from aligned terms in parallel sentence pairs. The translators are trained with the full data for this experiment because overlap with the randomly sampled test constraints cannot be removed in advance under the procedure described. This changes the source of the constraints and the amount of control over whether they were seen during translation training. The experiment therefore complements the HOLLY results instead of repeating the same test with a new set of sentences.
Under this protocol, PLUMCOT records average BLEU of 22.50, with a standard deviation of 0.07, and an average CSR of 97.84%. LeCA records 22.10 average BLEU and 96.33% average CSR. Cdalign records 21.45 average BLEU and 98.03% average CSR. The ordinary Transformer records 19.14 average BLEU and 81.67% average CSR. PLUMCOT has the highest reported average BLEU, while Cdalign has the highest average constraint compliance. The ordinary translator’s high CSR also illustrates why this setup is less diagnostic of copying previously unpaired terminology.
The appendix describes ten constructed test sets in the discussion of the setup, while the table caption attributes its statistics to five randomly constructed datasets. The scores have an explicit interpretation as reported averages for randomly sampled constraints. The paper is internally inconsistent about the number of datasets behind those averages. The distinction also matters for reproducibility because variation across sampled test sets concerns the evaluation sample, whereas variation across translation training runs would concern the stability of the learned system.
Filtering also removes valid constraints
Applying the classifier to positive examples provides a control for interpreting its negative-example gains. In that split, the translator should receive the proposed wording. Whenever the classifier rejects a valid entry, the corresponding English term disappears from the augmented source input. The translator can still produce that word or phrase through ordinary generation, but it loses the explicit wording that would support doing so.
Under soft matching on positive examples, PLUMCOT’s CSR is 98.06% without classifier correction and 91.59% with it. Its BLEU scores in those conditions are 20.91 and 20.80. LeCA goes from 94.17% CSR to 88.03%, and Cdalign goes from 95.47% to 89.97%. CS goes from 93.20% to 85.44%. The paper finds no statistically significant BLEU change for any of the systems on this positive split. That result coexists with a decline in explicit terminology compliance in every comparison.
The effect of filtering therefore depends on whether the matched entry is appropriate. A rejected negative entry removes a source of mistranslation. A rejected positive entry removes useful guidance. BLEU on the positive split is relatively insensitive to the observed losses of required wording, while the terminology metric records them directly. An evaluation that used only sentence-level similarity would miss part of the cost that matters to a user who specified a glossary.
Limitations
Limits the authors identify
The authors explicitly identify mistaken rejections of valid entries as a weakness. The classifier has to turn evidence about meaning into a decision before translation begins. If it rejects a valid entry, the downstream translator proceeds without the appended term. The positive-example control captures the resulting decline in compliance. A reader concerned with terminology consistency should consider that decline even though the authors found no significant BLEU change on the positive split. The two measurements track different consequences of the same decision.
The authors also describe the classifier as a stand-alone component and suggest that an end-to-end system could be beneficial. In the reported pipeline, the classifier and translator have separate training signals. The classifier judges a Korean occurrence against examples of the intended sense. The translator receives the approved wording and learns to place it in English. An incorrect decision at the first stage changes what the second stage sees. The paper evaluates this design as implemented and leaves joint training as a future direction.
Reference collection has a separate cost that the authors discuss when varying the number of examples. HOLLY supplies sentences that illustrate the intended meaning. A user who supplies only a pair of terms would have to obtain that evidence before using the classifier in the same way. The reported reference-count experiment shows that the choice affects accuracy. It cannot establish the performance of the same procedure for a glossary whose entries arrive without usage examples.
The paper provides a sense of the computational scale of its implementation. According to the report, the experiments used just one A100 GPU. Training took about 84 hours for PLUMCOT and 5 hours for the classifier. PLUMCOT has 156M trainable parameters out of 493M total, and the classifier has 6M trainable parameters out of 343M total. The difference between trainable and total parameters is relevant because frozen representations contribute to the method while remaining outside the parameter updates. These figures characterize the reported training setup. The main results do not give a matching comparison of deployment latency for every complete pipeline.
Limits that follow from the evaluation design
HOLLY is a focused Korean-to-English test built around curated homographs and senses. The set pairs examples where terminology applies with examples where the same spelling is misleading. That is valuable for studying the behavior of a glossary filter. It cannot establish how frequently such conflicts arise in an ordinary stream of translations. The frequency of invalid candidates affects how frequently the benefits on negative examples and the costs on positive examples would be encountered. A test designed to include both cases deliberately gives information about their consequences under the benchmark conditions.
The selected terminology represents a less frequent sense of each homograph, and the positive reference translations were commissioned to use that wording. This lets the researchers score a clear user preference for a chosen sense. It also gives the task a particular interpretation. A translation that uses a defensible synonym can be judged noncompliant, because the test asks whether a specific preference was followed. Conversely, a successful terminology match can coexist with awkward or inaccurate language elsewhere. BLEU and CSR address parts of this distinction, while the examples in the paper illustrate individual outputs. The paper does not report a separate human evaluation of the generated translations that could establish the quality of all their term placements in context.
The paper’s use of unseen is operational. For translation, the filter removes training sentence pairs where the Korean and English sides of the test constraint co-occur. It allows either side to appear independently. It also leaves intact the Korean pretraining that gives the system knowledge of source contexts. The classifier’s disjoint homograph split concerns its labeled examples. These controls answer important questions about the evidence used by each component, with different meanings of training exposure. They leave open whether particular terms or senses had been encountered in pretraining and how performance would change if all such exposure were excluded.
Filtering also changes the size and composition of the parallel corpus. The vanilla Transformer experiment demonstrates what happens when the training condition changes from full to filtered data. It gives evidence that lexical overlap can inflate compliance, and it does not match the size of the removed portion with a separate control that preserves the tested term occurrences. The exact contribution of reduced data volume or changes in the retained contexts therefore remains uncertain. The positive-example comparison between PLUMCOT and its terminology baselines is more directly comparable on that point, because all of them use the filtered condition.
Each HOLLY example centers on a particular matched constraint, whereas the translation augmentation procedure can supply several. The reported design consequently gives direct evidence about individual homograph decisions under curated conditions. It leaves open how frequently several competing requirements interact in the same real translation, especially if a source expression occurs repeatedly with different senses. Similarly, hard matching supplies English wording from the reference. Its results describe use of an exact term when that form is available. A user-supplied glossary in a new domain may provide a dictionary form or an expression that needs to be adapted to the sentence. The soft-matching protocol covers specified variants and leaves broader questions about linguistic appropriateness outside its lexical score.
The reported single-run setup also limits what can be inferred about variation between training runs. The bootstrap comparison estimates the reliability of differences across evaluation samples made from the observed outputs. It does not show how much those differences would vary if the systems were trained again. The appendix’s averages on sampled constraints address variation in test construction. The paper therefore gives several comparisons with well-defined evaluation conditions, while the stability of the full set of findings across independently trained runs remains open.
What came after
There are no identified later works to trace from this paper. The follow-up direction the authors name is an end-to-end approach to glossary selection and translation. Their experiments show why a joint evaluation would need to retain both kinds of test example. It would have to measure whether a valid entry survives the decision and appears in the translation, and whether an entry for the wrong sense is kept out. The paper leaves the effect of joint training on those outcomes open.
Cite
Cite as Yujin Baek, Koanho Lee, Dayeon Ki, Cheonbok Park, Hyoung-Gyu Lee and Jaegul Choo. 2023. Towards Accurate Translation via Semantically Appropriate Application of Lexical Constraints. Findings of the Association for Computational Linguistics: ACL 2023.
@inproceedings{baek2023accurate,
title = {{Towards Accurate Translation via Semantically Appropriate Application of Lexical Constraints}},
author = {Yujin Baek, Koanho Lee, Dayeon Ki, Cheonbok Park, Hyoung-Gyu Lee and Jaegul Choo},
booktitle = {Findings of the Association for Computational Linguistics: ACL 2023},
year = {2023},
doi = {10.18653/v1/2023.findings-acl.298},
url = {https://doi.org/10.18653/v1/2023.findings-acl.298}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/baek-2023-accurate-translation-semantically-appropriate-application/