Improving Low-Resource NMT through Relevance Based Linguistic Features Incorporation
Paper · 2020 · Abhisek Chakrabarty, Raj Dabre, Chenchen Ding et al.
Summary
When a translation system has few examples to learn from, an English word can be a poor guide to its own translation. The same spelling can serve different grammatical roles, and related forms of a word may appear too rarely for the system to learn what they have in common. Chakrabarty and colleagues investigate whether supplying grammatical annotations helps neural machine translation under those conditions. Their main question is how to use the annotations. A system can attach the same representation of a grammatical label wherever it appears, or it can learn which parts of that representation to retain before processing the source sentence.
The paper tests two ways to do this with a Transformer. Both start with English text split into subwords. Each sub-word is accompanied by the underlying word’s lemma, its part of speech, its relation to another word in a dependency parse, and a marker for its position within the word. Self relevance uses each component’s own representation to determine how much of it to pass on. Word-based relevance uses the current sub-word as additional evidence when weighting each annotation and passes the sub-word representation through directly. Both methods act on the input to the encoder, where the translation system first reads the source sentence.
The authors train on the Asian Language Treebank, using 18, 088 parallel sentences per direction to translate from English into eight Asian languages. A relevance method achieves the highest test BLEU score in every Transformer comparison. The largest reported gain over the plain Transformer is 3.09 BLEU points for English-to-Hindi, where word-based relevance raises the score from 18.54 to 21.63. Self relevance leads on five directions, including English-to-Indonesian, where it reaches 30.41. Validation perplexity, which reflects how well a system predicts the reference translation, also generally favors relevance weighting, although the weighting method with the best perplexity can differ from the one with the best BLEU.
The supporting experiments narrow the finding. Using the grammatical features together works better than the strongest single-feature setting in each direction, and the visualizations show that the same grammatical label can receive different weights when paired with different words. The gains are less consistent in an attention-based recurrent system, where direct concatenation of the annotations often wins. The study therefore provides evidence for learned feature weighting in a particular low-resource setting: a Transformer translating from English, with annotations supplied by a well-developed English parser.
Deep dive: Improving Low-Resource NMT through Relevance Based Linguistic Features Incorporation
This paper tests whether weighting grammatical features for each source token improves neural translation when parallel data is scarce. · about 33 minutes to read
The problem and its context
What a small parallel corpus asks the system to learn
A parallel corpus supplies examples of how sentences in one language correspond to sentences in another. From those examples, a neural translation system must learn which distinctions in the source sentence matter for producing the target sentence. Some distinctions are visible in the word itself. Others depend on how the word is used. A form that can belong to different roots can be ambiguous, and a word with several senses may require different translations across contexts. An abundance of examples gives a network more opportunities to encounter these uses. Under the conditions studied here, the authors ask whether linguistic analysis can supply some of the information that examples alone may leave sparse.
Each annotation in the paper captures a different aspect of a word. A lemma identifies a base form and lets a system associate an inflected form with that base. A part-of-speech tag describes the type of word in its current use. A dependency label identifies its grammatical relation in the sentence. These descriptions can differ in informativeness even when they are attached to the same token. A lemma may help bring together different forms of a word. A grammatical category may help distinguish uses of a spelling that would otherwise look alike. A dependency label gives information about the word’s role in the sentence that a category alone leaves open.
The paper places this question alongside other ways of dealing with scarce translations. It mentions transferring parameters learned in prior training and using additional monolingual text as ways to acquire translation knowledge when parallel corpora are limited. Its own experiments address a different source of information. An English annotation tool analyzes the source sentences, and the translation system receives the resulting labels alongside the text. The labels describe sentences already available to the system. Their value depends on whether the representation makes the resulting distinctions useful to translation.
The authors motivate the work partly through morphology, the structure and variation of word forms. Their experiments keep English as the source while varying the target language. This matters for interpreting what the linguistic features do. The lemma, part of speech and dependency label all describe English. They can help the system represent the English input before it predicts words in another language. The setup puts the extra effort into describing what a source token means or does in its sentence, while the decoder learns to produce the target forms from the parallel examples.
How earlier work supplied linguistic structure
The closest predecessor gives each kind of source feature its own embeddings. An embedding represents a discrete item, such as a part-of-speech label, as a vector of learned values. Sennrich and Haddow join the vectors for a token side by side. The encoder therefore receives a representation in which the word and each annotation have their own places. Chakrabarty and colleagues carry this construction into their Transformer experiments as the Concat baseline. It lets them compare direct attachment of the features with learned weighting of the same inputs. Linguistic Input Features Improve Neural Machine Translation
Other approaches discussed in the paper give the feature streams more independent processing. Hoang and colleagues use separate recurrent networks for different feature sequences and combine their outputs with an attention strategy that incorporates global and local information. A recurrent network processes a sequence through a state carried across positions. The work by Li and colleagues described in the introduction first runs a recurrent computation over the properties of an individual word, then runs another over the resulting sequence of word representations. Pan and colleagues instead use separate Transformer encoders for words and features. Their decoder attends to the two encoder outputs in successive sublayers. These proposals vary where the word and its features come together, from the construction of a word representation to attention during decoding.
Several other predecessors organize the source representation around sentence structure. Eriguchi and colleagues build an encoding recursively from lower to higher parts of a tree. Chen and colleagues use a tree encoder that processes structure in both directions, so the representation can draw on information moving from the top of the tree as well as from below. Bastings and colleagues encode syntactic connections through graph convolution. In these approaches, grammatical relationships affect how information moves between positions. In Chakrabarty and colleagues’ experiments, a dependency relation enters as a label on a token, and the Transformer handles interaction across positions after those labels have been embedded and combined. Tree-to-Sequence Attentional Neural Machine Translation · Improved Neural Machine Translation with a Syntax-Aware Encoder and Decoder · Graph Convolutional Encoders for Syntax-aware Neural Machine Translation
The paper also describes routes between an ordinary sequence encoder and a network built explicitly around trees. One earlier study learns a latent graph for the source under the translation objective. Another converts a parse into a sequence of labels and compares recurrent strategies for encoding it. Zhang and colleagues take representations from a supervised dependency parser and attach them to the translation system’s input embeddings. Bugliarello and Okazaki place dependency information inside Transformer self-attention by using distances from a word’s dependency parent to adjust the weights assigned to other positions. These approaches put the intervention at different stages, from creating the input representation to computing how source tokens attend to one another.
There was also a reason to question the need for explicit syntax. The paper cites Shi and colleagues’ finding that different layers of a recurrent translation encoder capture different syntactic properties through translation training. If the system already extracts a distinction from the source sentence, an annotation expressing the same distinction can be redundant. The question raised here is what happens when the training examples are scarce enough that providing the distinction may still help, and whether a token representation can give the network better control over that extra information. Does String-Based Neural MT Learn Source Syntax?
Finally, the paper distinguishes its source-side approach from work using features on the target side. The latter can make the system predict roots and morphological tags, followed by a separate step that reconstructs the inflected target form. That changes what the decoder learns to predict. Here, the intervention is earlier. The authors ask how the source word and its annotations should be represented before any target tokens are generated. Word Representations in Factored Neural Machine Translation
Why attach weights to the input
When a token’s embeddings are joined directly, every occurrence of a given annotation starts with the same vector for that annotation. The encoder can still interpret the vector differently in different sentences. The authors’ hypothesis concerns the opportunity to learn a weighting earlier, at the point where the representation of the source token is assembled. They test a weighting computed from the annotation itself and a weighting that also depends on the associated sub-word. The two designs separate the question of how to represent an annotation from the question of whether its representation should change with the lexical material it describes.
This placement also makes the comparison concrete. The paper keeps the same basic translation architecture and changes the way the annotated input reaches it. The test is whether a small learned transformation of each component improves translation over simpler ways to combine those components. It addresses a narrower question than whether adding a separate syntactic encoder, or supplying additional data, would give better translation overall.
The method, step by step
Prepare the text and carry word annotations to subwords
The procedure begins with paired source and target sentences. English supplies the source text in every direction. The authors prepare the text for segmentation, separating punctuation and delimiters and using the nova annotation system for Khmer, whose reference text arrives unsegmented. They annotate the English source with Stanford CoreNLP to obtain lemmas, parts of speech and dependency labels. These annotations belong to words, while the representations entering the translator belong to sub-word positions. The preprocessing therefore has to preserve the connection between a word and the pieces into which it is split. The Stanford CoreNLP Natural Language Processing Toolkit
The paper uses byte-pair encoding, or BPE, with 10, 000 merge operations for sub-word segmentation. BPE constructs units by successively merging pairs. A resulting unit can be a complete word or a piece of one. The authors use sub-words throughout the translation experiments to reduce cases where a word encountered at inference has no corresponding unit in the vocabulary. Each source piece inherits the annotations of its parent word. A boundary tag records whether the piece is at the beginning, inside, or at the end of a split word, or forms the entire word. The tags are B, I, E and S, respectively. Neural Machine Translation of Rare Words with Subword Units
The paper illustrates the alignment with the word winners. BPE divides it into win@@ and ners. Both pieces carry the lemma winner, the plural-noun tag NNS and the dependency label pobj. The boundary marker differs, with B for the first piece and E for the last. Elsewhere in the same sentence, is occupies an entire position and receives S, together with the lemma be. The example separates information about the whole word from information about the particular piece. Even though win@@ is the lexical item at its input position, its lemma and grammatical tags describe winners in the original sentence.
As a consequence, the encoder’s input at a source position comprises a lexical component and several descriptors. The vocabulary for each descriptor is independent. The paper reports 26, 414 lemma entries, 43 part-of-speech tags and 45 dependency labels. The distinction between vocabularies lets the system assign different space to each component and learn separate embeddings for items that play different roles. A tag such as NNS and the lemma winner enter through separate lookups before their representations are combined.
From an annotated English sentence to a translation
The steps in order.
Build the input representation
The encoder takes a sequence of source tokens, which the paper writes as follows.
s = (s₁, …, sₘ)
Here, s is the source sentence represented as a sequence. The s with a subscript denotes the token at that position, m is the sequence length, and the ellipsis stands for the intervening positions. In these experiments, a source token is centered on a sub-word and includes the components associated with that position.
sᵢ = (sᵢ₁, …, sᵢK)
Here, i identifies the source position and K counts its components. The first component, sᵢ₁, is the sub-word itself. The remaining components contain the associated annotation values, including the sub-word boundary tag. The ellipsis spans the component positions between those shown. The component index k identifies a kind of input, such as the lemma or part of speech, and the value at that index identifies an entry in its vocabulary.
Eₖ ∈ ℝ^(dₖ × |Vₖ|)
Eₖ is the embedding matrix for component k, Vₖ is its vocabulary, and the bars in |Vₖ| denote the number of vocabulary entries. The real-valued matrix has dₖ rows, where dₖ is the embedding dimension for that component, and one column for each entry. The membership symbol says that the matrix belongs to the indicated space of real-valued matrices, ℝ, and × separates the row and column dimensions.
eᵢₖ = Eₖ sᵢₖ
The vector eᵢₖ is the embedding of component k at source position i. Eₖ is the matrix for that component, and the product with sᵢₖ expresses the lookup of the entry for the observed value, as when a selection vector picks out one column of the matrix. The encoder can now receive numerical representations of a sub-word and its descriptors even though those items come from different vocabularies.
eᵢ = ∥ₖ₌₁ᴷ eᵢₖ
eᵢ denotes the resulting input vector for position i. The operator ∥ joins the component vectors end to end in order, with k running from 1 through K. It preserves a separate range of coordinates for each component. This construction is the Concat baseline and also the way the proposed methods assemble their final input after weighting.
dim(eᵢ) = ∑ₖ₌₁ᴷ dₖ
dim gives the vector length. The sum ∑ adds the lengths dₖ of the embeddings for all components, from 1 through K. Thus one component can occupy more coordinates than another, and a concatenated representation can preserve those unequal widths. In the paper, the sub-word and lemma each occupy 250 dimensions in the concatenated feature configurations. The boundary tag occupies 6, while the part-of-speech and dependency components each occupy 15.
Let each component determine its own weights
Self relevance applies a transformation to each embedding before concatenation. The transformation reads the entire component vector and produces a mask of the same length. A mask is a vector of weights that acts coordinate by coordinate. Each weight controls how much of the corresponding original value is carried into the modified embedding. The procedure applies to the sub-word itself as well as to every accompanying feature.
maskᵢₖ = sigmoid(Wₖ eᵢₖ)
maskᵢₖ is the vector of weights for component k at position i. Wₖ is a learned matrix specific to that component, and eᵢₖ is its input embedding. The matrix multiplication forms a new vector from the input coordinates. The sigmoid function then converts each coordinate to a weight between 0 and 1. A weight nearer 1 retains more of the corresponding original value, while a weight nearer 0 suppresses more of it.
Wₖ ∈ ℝ^(dₖ × dₖ)
For self relevance, Wₖ takes a vector of length dₖ and returns the same number of values. The matrix has dₖ rows and dₖ columns, as indicated by the dimensions separated by × in the real matrix space ℝ. Each row can combine information from across the embedding when computing a single mask coordinate. Separate feature types learn separate transformations.
e′ᵢₖ = maskᵢₖ ⊙ eᵢₖ
The prime in e′ᵢₖ marks the modified embedding. The symbol ⊙ means that corresponding coordinates of the mask and original embedding are multiplied. This matters for interpreting a mask. It can preserve or reduce the magnitude of an embedding coordinate, while the coordinate itself still supplies its sign and original value. A feature with several high mask weights need not make a large contribution if the embedding values at those coordinates are small.
e′ᵢ = ∥ₖ₌₁ᴷ e′ᵢₖ
e′ᵢ is the joined representation passed to the encoder for position i. The concatenation ∥ runs over the modified embeddings e′ᵢₖ for every component, with k ranging from 1 through K. Because the mask formulas use the component embedding as their sole input, every occurrence of a particular tag receives the same tag mask within a trained system. A different tag can receive a different pattern, and the same sub-word in a sentence can still be accompanied by different tags. The encoder can also interpret the assembled input in light of the other tokens in the sentence.
Let the current subword help weight its annotations
Word-based relevance changes the information used to compute the mask. It takes the embedding of the sub-word and that of the annotation being weighted, and places them side by side as the input to the mask calculation. For an annotation shared by two different sub-words, the annotation embedding stays the same, but the lexical part of the mask input can differ. The resulting weights can therefore preserve different dimensions of the shared annotation. The sub-word embedding itself is included directly in the final representation.
maskᵢₖ = sigmoid(Wₖ (eᵢ₁ ∥ eᵢₖ))
Here, maskᵢₖ again contains the weights for component k at position i, with k now starting at 2 because the lexical component is handled separately. eᵢ₁ is the current sub-word embedding, eᵢₖ is the annotation embedding, and ∥ concatenates them in that order. The learned matrix Wₖ maps the joined vector to one value for each coordinate of the annotation, and the element-wise sigmoid converts those values into weights.
Wₖ ∈ ℝ^(dₖ × (d₁ + dₖ))
d₁ is the length of the lexical embedding, and dₖ is the length of the annotation embedding. The + gives the total input width after joining the vectors, while × separates that column count from the dₖ rows. The real matrix space is denoted by ℝ. The mask output matches the length of the annotation component, because that is the vector to which it will be applied.
e′ᵢₖ = maskᵢₖ ⊙ eᵢₖ
As in self relevance, ⊙ multiplies the mask and the original annotation coordinate by coordinate, yielding the modified vector e′ᵢₖ. The annotation embedding eᵢₖ supplies the values being weighted. The sub-word helps determine the weights through the previous formula.
e′ᵢ = eᵢ₁ ∥ e′ᵢ₂ ∥ … ∥ e′ᵢK
e′ᵢ is the complete source input at position i, beginning with the original lexical vector eᵢ₁. The remaining vectors, beginning with e′ᵢ₂ and ending with e′ᵢK, are the weighted annotation embeddings. The ellipsis covers intermediate components, and each ∥ joins its neighboring vectors. Both the unmodified sub-word vector and the modified annotations are now available to the encoder.
The name “word-based” refers to the lexical component used in the calculation. When a word stays whole under BPE, that component represents the entire word. When BPE divides it, each position supplies the embedding of its own piece. Going back to winners, win@@ and ners can lead to different masks for their shared lemma and grammatical tags. A later occurrence of the same sub-word paired with the same feature value yields the same mask in that trained system, because the calculation depends on those embeddings. Broader sentence context enters later, through the encoder, and some context has already influenced the labels assigned by the parser.
Attention here means learning which coordinates of a component to retain. The mask is a set of independent sigmoid outputs, so a high value in one place does not require a low value elsewhere. It operates before the source tokens attend to one another. This is distinct from Transformer self-attention, which constructs a representation for a source position by using information from positions across the sequence. The two operations answer different questions: what to carry forward from each component, and how to use the sentence to interpret the resulting token representation.
Encode the sentence and train the translator
Before the encoder processes the source embeddings, the Transformer adds positional information so it can distinguish their order. Its self-attention produces a distribution over source positions for each position being represented. Multiple attention heads perform this operation in different learned spaces. The resulting representations are joined, and a feed-forward sublayer transforms each position using linear operations with a rectified linear activation between them. Residual connections carry the sublayer inputs forward, and layer normalization follows. Repeating these operations gives each final encoder vector access to sentence context. Attention Is All You Need
z = (z₁, …, zₘ)
z denotes the encoder output sequence, zᵢ is the contextual representation at the ith source position, and m is the length of the source sequence. The ellipsis marks the intervening vectors. Unlike the separate embeddings for a word or tag, each output position can reflect other positions in the source sentence.
The decoder uses self-attention over target positions and additional attention over the encoder outputs. It restricts target self-attention so a position can draw on preceding material without seeing the upcoming target tokens. That restriction supports autoregressive translation, where the system generates the target sequence in order. The relevance mechanism makes its changes on the source side before this process. The training supervision comes from the reference translation, and the relevance calculation has learned matrices with no separate labels specifying how much to weight each annotation.
The implementation uses OpenNMT’s PyTorch Transformer. The encoder and decoder have 6 layers each, with 8 attention heads and a feed-forward dimension of 2, 048. The authors set the training limit at 200, 000 steps and check validation performance every 10, 000 steps. Training stops early if validation accuracy fails to improve for 5 consecutive checks. This stopping rule uses validation accuracy, while the analysis separately reports the best validation perplexity. During inference the authors use beam size 5, so the decoder can consider competing partial translations as generation proceeds. The experiments run on a single GPU with 32 GB of memory. OpenNMT: Open-Source Toolkit for Neural Machine Translation
Experiments and results
What the experiment holds fixed
The Asian Language Treebank provides parallel material across several languages. The authors use its official split, with 18, 088 sentence pairs for training, 1, 000 for development and 1, 018 for testing. English is the source throughout. The targets are Bengali, Filipino, Hindi and Indonesian, along with Khmer, Malay, Myanmar and Vietnamese. This design puts each method in several translation directions with the same source language and the same split sizes. It also keeps the English annotation procedure consistent, so the comparisons tell us how the same kinds of features fare when the translation task changes on the target side.
The plain Transformer baseline receives sub-word embeddings without the extra input features. Concat receives the annotated input and joins all embeddings directly. It is the most direct test of whether the relevance mechanisms improve on simply supplying the additional information. The authors also test Add and Linear, which offer alternative ways to put the same kinds of embeddings together before encoding. These comparisons matter because a gain over the plain Transformer can reflect the availability of grammatical annotations, the way they are combined, or both.
eᵢ = ∑ₖ₌₁ᴷ eᵢₖ
This is the Add baseline. eᵢ is the final input at source position i, eᵢₖ is the original embedding of component k, and the sum ∑ adds corresponding coordinates from 1 through K. The vectors need equal lengths to be added, and the authors give each component 512 dimensions in this configuration. The plain Transformer also uses a 512-dimensional sub-word embedding. In Add, each annotation has an embedding at that width as well, which increases the total number of trainable parameters even though the resulting input is still a single vector of that width.
eᵢ = ReLU(W (∥ₖ₌₁ᴷ eᵢₖ))
This is the Linear baseline. The concatenation ∥ assembles the original component embeddings eᵢₖ, with k ranging from 1 through K. W is a learned matrix that transforms the assembled input, ReLU is the rectified linear activation applied to its output coordinates, and eᵢ is the resulting representation at source position i. This baseline allows learned interaction across the joined components. The relevance methods instead compute weights for individual components and multiply those weights back into the corresponding embeddings. Their comparison with Linear tests the specific structure of relevance weighting against a learned transformation of the combined input.
Translating the held-out sentences
The paper evaluates translation quality with BLEU after undoing BPE segmentation in the generated translations. This lets the evaluation compare translations against the reference at the text level used for scoring, without the internal markers that divide words into pieces. BLEU rewards correspondence with the wording of the reference, and higher values are better. The authors use the Moses BLEU script for scoring and its bootstrap significance script to assess improvements. They report statistical significance at p < 0.05. BLEU: A Method for Automatic Evaluation of Machine Translation
English-to-Hindi shows the largest gain over the plain Transformer. Both relevance methods also score higher than Concat on this direction. The baseline comparison matters because some of the advantage over the plain Transformer appears as soon as the annotations are supplied. Moving from the plain input to Concat changes the test BLEU from 18.54 to 20.69. The relevance configurations then improve on that result, reaching 21.27 with self relevance and 21.63 with word-based relevance.
Transformer input configurations on Asian Language Treebank English-to-Hindi test BLEU
Word-based relevance leads, and both relevance methods improve on direct concatenation.
The numbers
| System or setting | BLEU |
|---|---|
| Transformer-base | 18.54 |
| Concat | 20.69 |
| Add | 15.45 |
| Linear | 20.65 |
| Self relevance | 21.27 |
| Word-based relevance (this paper) | 21.63 |
Word-based relevance also leads for Bengali and Khmer. On the English-to-Bengali test set, the plain Transformer gets 4.97 BLEU, Concat gets 5.56, self relevance gets 6.10, and word-based relevance gets 6.25. The paper identifies Bengali as the direction with the smallest improvement over Concat when the best relevance setting is used. For English-to-Khmer, the main comparison reports 22.88 for the plain Transformer and 23.53 for Concat. Self relevance reaches 24.76 and word-based relevance leads at 25.13. In both directions the annotations help when joined directly, and the learned weights improve the result further.
The pattern in Filipino is different. Concat gets 23.75 BLEU, below the plain Transformer’s 25.59. Self relevance reaches 26.26 and word-based relevance reaches 26.01. The best relevance setting yields the paper’s smallest gain over the plain Transformer, yet its largest gain over Concat. Those comparisons answer different questions. The plain Transformer shows how much the best weighted feature setting adds to a system that sees text alone. Concat shows how much the design of the weighting matters once the system already receives the annotations. On Filipino, the choice of how to use the features has a much larger effect than the stronger comparison against the plain text system suggests.
English-to-Indonesian is the clearest case where the choice between the two weighting rules matters. Self relevance reaches 30.41 test BLEU. Word-based relevance gets 26.53, below both the plain Transformer and Concat. The richer lexical input to the mask therefore does not account for the Transformer gains as a whole. In Hindi it produces the best score. In Indonesian the winning method can compute each component’s weights from its own embedding, including a separate mask for the lexical component.
Transformer input configurations on Asian Language Treebank English-to-Indonesian test BLEU
Self relevance yields the strongest translation score, while word-based relevance trails the plain Transformer.
The numbers
| System or setting | BLEU |
|---|---|
| Transformer-base | 27.93 |
| Concat | 27.99 |
| Add | 24.78 |
| Linear | 27.17 |
| Self relevance (this paper) | 30.41 |
| Word-based relevance | 26.53 |
Self relevance also leads for Malay, Myanmar and Vietnamese. For English-to-Malay, it reaches 34.71 test BLEU, with word-based relevance at 33.20, Concat at 32.92 and the plain Transformer at 32.40. For English-to-Myanmar, the corresponding scores are 16.53 and 15.62 for the relevance methods, 14.92 for Concat and 13.93 for the plain Transformer. The English-to-Vietnamese test scores put the two relevance approaches closer together. Self relevance gets 27.74, word-based relevance gets 27.66, Concat gets 26.50 and the plain Transformer gets 24.99.
Across the Transformer test sets, the relevance methods occupy the leading two positions except for Indonesian. Direct addition scores below the plain Transformer for every target in the main comparison. Linear sometimes improves over the plain input, as in Hindi and Vietnamese, but trails Concat in every direction. The comparison supports the paper’s specific intervention. Given the same annotation types, the way the system represents them can determine whether adding them helps. The comparison also gives a reason to preserve the distinction between the two proposed designs, because they can give quite different results on the same data.
What validation perplexity adds
The authors also record each configuration’s best perplexity on the validation set. Perplexity reflects how much probability the system assigns to the reference translation given the source sentence. Lower values indicate better prediction of the reference under this measure. The BLEU score evaluates translations the system generates, whereas validation perplexity evaluates its predictions against held-out reference text during training. They describe related aspects of performance and can favor different systems.
For English-to-Bengali, word-based relevance achieves a validation perplexity of 268.32. Self relevance reaches 274.51, Concat reaches 287.32 and the plain Transformer reaches 410.33. The ordering of those systems agrees with their test BLEU ordering. For Hindi, self relevance achieves the best validation perplexity at 60.09, followed by word-based relevance at 60.91. Their BLEU order is reversed. On Khmer, self relevance also leads on validation perplexity, at 43.95 against 44.18 for word-based relevance, while word-based relevance leads in test BLEU.
Transformer input configurations on Asian Language Treebank English-to-Hindi best validation perplexity
Self relevance achieves the lowest perplexity even though word-based relevance leads on test BLEU.
The numbers
| System or setting | perplexity |
|---|---|
| Transformer-base | 74.44 |
| Concat | 64.56 |
| Add | 92.06 |
| Linear | 79.22 |
| Self relevance (this paper) | 60.09 |
| Word-based relevance | 60.91 |
Self relevance also yields the lowest validation perplexity for Malay, at 19.15, and Filipino, at 34.60. The Filipino plain Transformer is close at 34.62 and ranks ahead of word-based relevance, which reaches 35.92. Filipino is the exception to the pattern of the two relevance systems taking the leading two places on validation perplexity. The lower-perplexity relevance setting for Myanmar is word-based relevance at 97.63, followed by self relevance at 97.91. Word-based relevance also leads for Vietnamese at 33.84 and Indonesian at 28.52.
The Indonesian result makes the difference between the metrics especially clear. The configuration that assigns the strongest probabilities to validation references, as measured by best perplexity, is the weaker relevance configuration on test BLEU. The two measurements use different splits and assess different outcomes, since probability assignment to a reference and similarity of a decoded translation to a reference need not rank configurations identically. Perplexity supports the broader observation that weighted features can help the system predict target text, while BLEU supplies the paper’s evidence for improvements in the final translations.
What the ablations show
The effects of using the annotations separately
The authors rerun the feature comparisons with each of the linguistic annotations examined in isolation. They compare direct concatenation and both relevance methods against the plain Transformer, asking whether a lemma, a part-of-speech tag or a dependency label is sufficient on its own. This comparison isolates the types of linguistic information more directly than the main results, where they are supplied together. The boundary marker serves the separate purpose of identifying a position inside the word. The single-feature analysis is organized around the grammatical annotations.
For Filipino, every isolated feature setting scores below the plain Transformer’s 25.59 test BLEU. The strongest isolated setting reaches 25.44. With the combined features, self relevance reaches 26.26 and word-based relevance reaches 26.01. This is the most direct case in the paper of a benefit that emerges with the full feature configuration even though the single-feature configurations do not reach the plain system’s score. It shows why the result for an individual feature is an incomplete guide to whether that feature belongs in a collection. The experiment compares the whole collection with the individual annotations, so it establishes the performance of those settings without identifying which smaller combination would suffice.
The paper credits dependency labels with the strongest isolated results for Bengali, Hindi, Khmer and Myanmar. For Hindi, the strongest single-feature system reaches 20.40 test BLEU, below both relevance methods when the annotations are combined. On Myanmar, the best isolated score is 14.95, while both relevance methods with all the features go higher. Those outcomes are consistent with dependency information carrying useful evidence about the word’s role, and with other descriptors contributing information that the dependency label alone lacks. The evaluation compares their aggregate effects on translation and leaves the contributions of individual sentences open.
The authors identify the lemma as the strongest isolated feature for Indonesian, Malay and Vietnamese. For Indonesian, the best individual-feature setting reaches 28.89 test BLEU, while the best combined setting reaches 30.41. Vietnamese shows that an individual feature can already achieve a strong result. The highest single-feature score there is 26.83, above the plain Transformer’s 24.99. The full relevance configurations still go higher. Part-of-speech tags are useful in some comparisons even though the paper’s ranking gives the leading single-feature scores to lemmas and dependency labels. A tag’s performance on its own does not establish what happens when it is removed from an otherwise complete input.
The Khmer comparison contains a reporting discrepancy that affects a direct calculation against the plain baseline. The single-feature table lists the English-to-Khmer base score as 22.28, while the main Transformer comparison gives 22.88. The highest Khmer single-feature score shown is 23.48. The all-feature relevance results remain above that score regardless of the baseline entry. The evidence for a benefit from the combined features is thus clearer than the exact size of a Khmer single-feature gain over the plain Transformer.
Parameter counts and the training curves
The authors compare parameter counts to check whether larger configurations systematically translate better. The plain Transformer has the lowest count for every direction. Add has the highest, because the equal-width vector required for each feature makes the annotation embedding matrices larger. For Hindi, the counts are 59.34 million for the plain Transformer and 72.92 million for Add. Add also has the weakest Hindi test BLEU in the comparison. That combination of findings undermines a simple explanation in which more parameters give better results under these training conditions.
A more informative comparison is among the systems that use the same feature embedding dimensions. On English-to-Filipino, Concat has 66.91 million parameters, self relevance has 67.04 million, and word-based relevance has 67.05 million. Linear has 67.20 million and still scores below either relevance method. The same general ordering of parameter counts holds across directions, with small increases from Concat to the relevance methods and Linear slightly larger than both. Together, those comparisons tie the BLEU advantage to the form of the input computation more closely than the comparison against the smaller plain Transformer does.
The validation curves examine when performance begins to differ. The authors track perplexity through the initial 10, 000 training batches, measuring it at intervals of 100 batches. For each language pair they plot the relevance configuration with the highest test BLEU alongside Concat and the plain Transformer. This selection means that the plotted relevance configuration can differ from the one with the lowest perplexity in the table of validation minima. The curves trace the learning behavior of the strongest translator by the paper’s primary output metric.
During the first 2, 000 to 2, 500 batches, the curves are close for a given direction. The differences become more visible later. The authors describe a clearer advantage for the relevance configuration on Bengali, Hindi, Malay, Myanmar and Vietnamese. In Filipino, Indonesian and Khmer, baseline curves can be better at some points, though the authors report an overall advantage for the relevance systems across the plots. The curves provide a view of sustained trends across training checkpoints alongside the table of lowest observed perplexities. Because the horizontal axis counts processed batches, they give a comparison of learning progress by that measure, without a direct comparison of elapsed training time.
The parameter and curve analyses address different explanations. Parameter counts show that the ordering of system size does not parallel the ordering of translation quality. The curves show that some validation differences persist across checkpoints. Together with the comparisons to Concat and Linear, they clarify why the authors attribute the improvements to the way relevance is computed. They leave room for the additional parameters to play a role and for reruns to differ.
What the masks reveal
The paper plots sigmoid outputs from trained systems to see what the relevance computations have learned. In the self relevance analysis, it examines 12 common part-of-speech categories, including noun, proper noun, plural noun, adjective and several verb tags. The horizontal axis is the coordinate of the part-of-speech embedding, whose length is 15. The vertical axis is the sigmoid value used to weight that coordinate. A curve represents how a particular tag’s learned embedding is weighted.
The fixed pattern for a given tag follows from the design. The tag embedding and its weight matrix are fixed after training, so every occurrence of that tag produces the same mask, regardless of the accompanying sub-word. The useful observation is that different tags can have different patterns across their embedding dimensions. The authors use the plots to document the weighting that sits between the original tag embedding and the input passed to the encoder. Any individual coordinate may carry information the system has learned to encode, while the plot alone supplies no linguistic name for that coordinate.
The word-based plots keep the part-of-speech tag fixed at NNP, the proper-noun category, and change the associated lexical item. The authors compare names of days and names of countries. They choose these examples because BPE leaves them intact, so the mask calculation sees an embedding for each name as a whole. Since the tag is the same across examples, variation in the mask comes from the lexical embedding used along with it. This makes the visualization a direct illustration of lexical conditioning.
The days share a global minimum at the 7th dimension. Their curves also have local minima at the 1st, 9th and 11th dimensions and peaks at the 4th and 15th. The country curves share local minima at the 1st, 7th and 12th dimensions and peaks at the 2nd, 3rd and 15th. Some features of the curves recur in both groups, while others differ. The authors interpret similarities within a group as evidence that words of a similar kind can lead the system to weight the same grammatical feature in a similar way.
These plots expose a change that the BLEU comparisons by themselves cannot display. Self relevance can learn a separate weighting pattern for each label. Word-based relevance can vary the pattern within a single label, and the selected names show recurring patterns across related words. The plots measure the masks before multiplication by the embeddings. The full influence of a coordinate on a finished translation also depends on the original embedding value and all the computation that follows. The evidence supports an interpretation of how the representations are formed, with translation quality assessed separately by the output experiments.
What happens with recurrent translation
The paper repeats the feature comparison in a recurrent architecture using long short-term memory, or LSTM, layers. The encoder consists of 2 bidirectional layers, which process the source in both directions. The decoder has a single unidirectional layer and uses Luong attention over the source representation. The authors preserve the feature set and compare an unannotated baseline, Concat, self relevance and word-based relevance. This tests whether the same intervention on the source embeddings behaves similarly when the rest of the translation system processes those embeddings differently. Effective Approaches to Attention-based Neural Machine Translation
Word-based relevance achieves the strongest recurrent test BLEU for Hindi, Khmer and Malay. On Hindi it reaches 20.83, ahead of Concat at 20.72. For Khmer it reaches 23.96, with self relevance at 23.18 and Concat at 22.94. For Malay it reaches 32.62, compared with Concat at 32.25 and self relevance at 32.18. These results show that some of the word-based gains carry over under the recurrent configuration. The ordering differs across the other directions, and the advantage is less consistent than it is with the Transformer.
Concat is the best recurrent configuration for Bengali, Filipino, Indonesian, Myanmar and Vietnamese. English-to-Bengali is also the one direction in which the strongest recurrent system exceeds the strongest Transformer result: recurrent Concat reaches 6.85 test BLEU, compared with 6.25 for word-based relevance in the Transformer. The recurrent self relevance result for Myanmar is especially weak at 5.16, below the recurrent plain baseline at 13.42, word-based relevance at 13.94 and Concat at 15.69. This is a marked change from the Transformer experiment, where self relevance leads for the same direction with 16.53.
The architecture comparison changes how the paper’s main result should be read. Source features and their weights are computed before encoding in both systems, but they interact with the way each encoder and decoder use the resulting representation. Direct concatenation is frequently sufficient to obtain the strongest recurrent result in this test. The findings establish that switching to the tested recurrent setup changes the value of the proposed weighting rules. The comparison leaves open which part of the architecture or its training conditions accounts for that change.
Limitations
Limits the authors identify
The source-side annotations come from a robust English parser. The authors point out that comparable annotation quality may be unavailable for a low-resource source language. Their experiment therefore demonstrates what relevance weighting can do when the parallel corpus is small and source annotations can be obtained from a well-developed tool. The next question they identify is whether the same approach is effective with noisy annotations. The masks learn from the supplied features, but the experiments do not show when a system can detect or compensate for an unreliable lemma, part-of-speech tag or dependency label.
The authors also leave high-resource translation for future study. They suggest that a system trained on many contexts may learn distinctions that make explicit features redundant. The experiments here vary the translation direction while staying within the given low-resource split. They do not vary corpus size enough to establish where the benefit of annotation begins, peaks or fades. The proposed explanation for why the features might be less useful with more parallel examples remains a hypothesis about a different training regime.
The weaker recurrent results are a further limit the authors identify. The paper shows that the two relevance rules are sensitive to the system in which they are used and calls for further investigation. The recurrent experiment supplies a concrete example of that sensitivity, particularly for self relevance. Since it compares full architectures, it does not isolate a particular difference between recurrent encoders and Transformers as the cause. The conclusions about architecture are bounded by the configurations that were tested.
Limits visible in the experimental design
All directions start from English and use the same multilingual corpus. Variation across target languages gives the finding more scope than a single translation direction would, while leaving the source language, annotation tool and dataset family fixed. The paper consequently provides direct evidence about using English linguistic information to support low-resource translation into these targets. How the method fares when the translation direction is reversed, when a different source language is annotated, or when the parallel text comes from a different collection remains open.
The best relevance rule also depends on the direction. The paper can report a winning relevance setting for every Transformer task because it compares the systems after evaluation. That does not supply a general rule for choosing the winner on a new direction. Validation perplexity is an available signal, but its rankings diverge from test BLEU in some directions. The difference in Indonesian is particularly important for interpretation, because the relevance rule favored by validation perplexity trails both the strongest relevance system and the plain Transformer on test BLEU. A claim about how to choose a rule in advance would need evidence for the choice procedure itself.
The single-feature comparison shows that the full annotation set scores better than the isolated linguistic features, but it does not establish how the annotations interact. Removing a lemma from a full configuration would answer a different question from training with the lemma alone. Likewise, the contrast between self relevance and word-based relevance changes both what the annotation mask sees and whether the lexical embedding is masked. The paper compares the resulting strategies as packages. A more specific attribution of their differences to lexical conditioning alone would require a comparison that holds the treatment of the lexical component fixed.
The parameter counts are close for the main feature combinations, but the experiments do not match them exactly. The contrast with Add and Linear shows that added parameters alone are an incomplete explanation for the ordering. It does not isolate the effect of every increase in capacity. Likewise, the perplexity curves describe behavior across checkpoints, while the reported significance test addresses differences in translation scores. The paper does not report variation across independent training runs. These forms of evidence support the reported comparisons without measuring the full sensitivity to training randomness.
Finally, the evaluation measures correspondence to reference translations and the probability assigned to held-out references. It does not break down translation gains by linguistic difficulty. The results do not tell us, for example, how much of the BLEU improvement comes from translating ambiguous forms, handling inflection or choosing more appropriate wording for other reasons. The visualizations show what happens to selected embeddings, with the proper-noun analysis limited to examples that remain intact under BPE. Their patterns give the authors a basis for discussing how the masks vary, while a causal link between a particular mask coordinate and a particular successful translation remains to be demonstrated.
What came after
A later citing study, Finding the Optimal Byte-Pair Encoding Merge Operations for Neural Machine Translation in a Low-Resource Setting (2024), focuses on the choice of BPE merge count in low-resource translation. The connection is to a part of Chakrabarty and colleagues’ setup that stays fixed during their comparisons. They use 10, 000 merge operations and then investigate how to weight the annotations associated with the resulting sub-word positions. The later work makes the choice of merge operations itself the research question. Finding the Optimal Byte-Pair Encoding Merge Operations for Neural Machine Translation in a Low-Resource Setting
The two research questions meet at the input representation. When a word stays intact, the word-based relevance calculation takes the whole word’s embedding as its lexical input. When the word is split, the calculation sees a piece at each position, with a copied set of word-level features and a marker for that piece’s boundary status. Changing segmentation can therefore change which lexical vectors are paired with a given annotation, even when the annotation belongs to the same original word. This relationship follows from the weighting method. The citing study’s title establishes its focus on merge counts, but gives no basis for attributing a particular merge count, translation result or reuse of the relevance mechanisms to it.
Cite
Cite as Abhisek Chakrabarty, Raj Dabre, Chenchen Ding, Masao Utiyama and Eiichiro Sumita. 2020. Improving Low-Resource NMT through Relevance Based Linguistic Features Incorporation. Proceedings of the 28th International Conference on Computational Linguistics.
@inproceedings{chakrabarty2020improving,
title = {{Improving Low-Resource NMT through Relevance Based Linguistic Features Incorporation}},
author = {Abhisek Chakrabarty, Raj Dabre, Chenchen Ding, Masao Utiyama and Eiichiro Sumita},
booktitle = {Proceedings of the 28th International Conference on Computational Linguistics},
year = {2020},
doi = {10.18653/v1/2020.coling-main.376},
url = {https://doi.org/10.18653/v1/2020.coling-main.376}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chakrabarty-2020-improving-low-resource-nmt-through/