Elamur Research

Enhancing the Transformer Decoder with Transition-based Syntax

Paper · 2022 · Leshem Choshen and Omri Abend

Summary

A translation can contain all the right words and still connect them in the wrong way. A verb and its particle, for example, may be separated by several words in English even though a single verb conveys their combined meaning in German. Choshen and colleagues ask whether a translation system can handle such cases more reliably by building a grammatical analysis of its own output while it writes. They focus on the part of the system that produces the translation, the decoder, and modify a standard Transformer.

The decoder predicts a mixture of written tokens and instructions for linking them. It can emit the next piece of a word or attach words it has already generated. Applying those instructions builds a partial dependency tree, which records which words govern others and what relationships hold between them. The tree goes back into the decoder before it makes another prediction. One version passes information along the graph with a gated graph convolutional network, or GCN. The other, Parent, redirects an existing attention head towards each token’s syntactic parent and the token itself, with no increase in parameters for that change. Both use bidirectional attention over the available output so that an earlier token’s representation can reflect a later token or a newly added edge. The syntax follows Universal Dependencies.

The authors test translation from English into German and Russian and from German into English. On the English–German challenge sets, which concentrate on words that depend on one another across a gap, medium Parent and GCN improve over the standard decoder in 18 and 20 of the 20 target-side settings, respectively. Both improve in 19 of the 20 source-side settings. On standard test sets, the medium syntax-aware systems improve on the baseline in all reported settings, with average gains of 0.7-1.1 BLEU and 1-2.4 chrF+. The larger Parent system, tested only from English into German because of the training cost, is comparable to the larger baseline on standard tests while retaining its challenge-set advantage.

The comparisons help explain where the gains arise. Revisiting the generated prefix with bidirectional attention helps on its own, and predicting syntax as a sequence of instructions helps further. Explicitly feeding the constructed graph back into the decoder performs better than leaving the graph implicit in those instructions. A separate assessment of German sentences with switched subjects and objects finds Parent more robust to changes in word order, although both systems struggle. The authors make their implementation available as a fork of Nematus. The design can accommodate other graph formalisms with suitable transition systems, with the reported experiments centered on dependency syntax in machine translation.

Deep dive: Enhancing the Transformer Decoder with Transition-based Syntax

The paper tests whether a Transformer decoder can improve translation by building and reusing a dependency tree as it generates text. · about 36 minutes to read

The problem and its context

What the decoder has to keep track of

The English expression built from put and out illustrates the difficulty. In the paper’s example, a person extinguishes coals. The verb comes before the noun phrase for the coals, and the particle comes after it. A reader who encounters the verb first can entertain a plausible interpretation involving placing something somewhere. The particle resolves that ambiguity. In the German source sentence, the sense of extinguishing is conveyed by the verb itself. A translation system must therefore learn a correspondence between a compact source expression and a target expression distributed across the sentence.

The source already offers a clue. A decoder that attends to the German verb may choose the right sense of the English verb before it reaches the particle. The authors’ question is what else the growing English output can contribute. Once the particle has appeared, it clarifies how the earlier verb is being used. A dependency edge can make the relationship explicit, and an updated representation of the verb can reflect that information when the decoder continues. This separates two jobs that are easy to conflate: producing the words that express the intended sense and representing the relationship once those words are present.

The example concerns syntactic generalization, the ability to handle a grammatical pattern across different sentences and contexts. Research discussed by the authors found that neural translation systems could translate words linked across a distance and still fail on apparently straightforward instances of the same pattern. The issue is consistency across cases. An overall translation score can be healthy even when performance varies substantially with a word’s position or with the material placed between linked words. The paper therefore treats performance on selected grammatical constructions as a distinct question from performance on general translation tests.

A standard decoder generates a continuation conditioned on what it has emitted and on the encoded source. Its attention rules also govern how each earlier target position is represented. Conventionally, a position can draw on positions before it. That rule serves a clear purpose when the task is to predict the next item, since the answer must depend on information available at the time. The paper identifies a separate design choice within that rule. By a later decoding step, several tokens may already exist to the right of an earlier token. The earlier representation can use those tokens while the next prediction remains conditional on the available prefix.

The distinction matters even when every word needed to make a connection is already present. The proposed decoder sometimes emits an attachment instruction after the words it connects. The new attachment changes the analysis of words that have already passed through the decoder. A design that can recompute those representations can give the new edge an immediate role. The paper treats generation as a sequence of decisions over an evolving description of the output, so a later decision can use a richer account of text produced earlier.

How earlier systems used syntax

The authors trace the use of linguistic structure in translation back to work predating neural sequence-to-sequence systems. With neural translation, a common approach was to treat translation as a mapping between strings. Researchers nonetheless found ways to add grammatical information. A large share of the work described in the paper focused on the source. A complete source sentence is already available when translation begins, so a system can parse it and make the resulting analysis available throughout decoding. A target-side approach has to assemble the information while the sentence itself is taking shape.

Several source-side approaches changed how the input was encoded. The paper describes recurrent encoders that incorporated syntactic relations, graph recurrent approaches that encoded a semantic representation, and Transformer approaches that used tree structure to guide attention. Another design included representations from the early layers of a parser alongside the usual source embeddings. Some work used syntactic information in preprocessing. These approaches gave translation access to structure by changing what the decoder received from the source encoder. The source can provide valuable evidence even when its grammatical organization differs from that of the translation.

The paper also describes work that represented a parse as a string. A constituency tree, which groups words into phrases, can be serialized so that a sequence system can emit its structure. Other work used information from Combinatory Categorial Grammar, or CCG. Serialization gives the decoder a familiar prediction problem because tree information can be written into the sequence of target symbols. Whether a decoder is then given the reconstructed tree is a separate question. A string can specify an attachment exactly, while an architecture trained on that string can still have to learn which words the attachment symbol refers to.

Earlier target-side research also explored recurrent systems that generated tree nodes, sometimes alternating translation and structural predictions through connected networks. Other work trained a decoder jointly for parsing and translation. As Choshen and colleagues explain it, joint training can encourage grammatical representations even when the predicted parse has no direct role in constraining the translation during decoding. The new proposal gives a partial parse a direct route back into the next prediction. Its precedent comes from a line of work that treats generation and parsing as interleaved decisions, including Recurrent Neural Network Grammars.

A related question is whether explicit syntax is needed when neural systems already acquire some grammatical information. The paper cites research finding indications of syntactic structure in representations learned from text or translation. It also discusses efforts to encourage tree-like organization through the architecture itself, including unsupervised tree induction and positional representations for trees. Such work motivates a distinction between finding grammatical information in a representation and showing that it is available in the right form when a difficult translation decision is made. The decoder experiments address that second question by making specific edges available as part of the input to the decision.

The gap identified by the authors is thus narrowly defined. They wanted a Transformer decoder that produces a target tree or graph, constructs it incrementally, and re-encodes the structure during generation. The tree should remain useful while unfinished. The next word can be predicted before the tree is complete, and a link can become useful before the sentence is complete. That design calls for a representation of partial structure, a predictable way to update it, and a way for the decoder to use the update.

The method, step by step

Predict words and attachments in the same sequence

The authors retain an ordinary Transformer encoder. It processes the source sentence and supplies a representation of it to the decoder. The decoder produces an action sequence that contains both text and instructions. The written pieces form the translation. The instructions assemble a graph over those pieces. Each new action alters what will be available for the next prediction, either by extending the surface text or by changing the analysis of text already present.

The graph uses dependencies. A dependency connects a governing word, frequently called the head or parent, to a dependent word. A label describes the relationship, such as a subject, an object, or a determiner. In the coals example, the verb governs the person doing the extinguishing, the noun for the coals, and the particle that completes the verbal expression. The noun for the coals governs its determiner. The resulting structure represents a connection between the verb and particle even though other words come between them. Building such connections from text is the task of dependency parsing.

The transition system is adapted from arc-standard parsing. A transition is an operation that takes the parser from its current configuration to an updated one. The configuration includes a stack of words and a set of connections already built. In the usual parsing setting, a shift operation reads the next word of an existing sentence onto the stack. Here, the target sentence is being written. The replacement action generates a sub-word, a piece that may be a whole word or only part of one. Successive pieces are generated until the word is complete. The attachment operations follow the logic of the arc-standard approach.

An attachment works at the top of the stack. The upper word is the more recently made available of the pair, and the word just below it is the other candidate for attachment. A left arc makes the lower word a dependent of the upper word. A right arc makes the upper word a dependent of the lower word. The operation adds the labeled connection and removes the dependent from the stack. The governing word remains available for further attachments. Removing a word from the active stack still leaves its text and its established connections available in the generated sequence and graph.

Take the paper’s running example. The person’s name is emitted in pieces, Jo@@ and hn. The continuation marker on the first piece indicates that another piece belongs to the same word. The decoder produces put and then uses a left arc labeled nsubj to attach the name as its subject. At this point the verb can stay on the stack and acquire more dependents. The decoder emits the determiner and coals, attaches the determiner to the noun with a left arc, and attaches the noun to the verb with a right arc marked as an object.

The particle out appears after the noun phrase and its attachments. Once it has been emitted, a right arc labeled compound:prt connects it to the verb. The action creates a direct syntactic link across the intervening text. At that point, a fresh representation can use both the wording of the particle and the fact that the graph explicitly connects it to the verb. The example illustrates why the paper schedules word generation and arc construction as separate decisions. Generating a word makes it available, and an arc decision says how to use it in the tree.

There are two levels of representation in this account. The stack operations refer to words, while the decoder positions are sub-word tokens and actions. In the authors’ notation, an edge referring to a word stands for edges involving its constituent sub-words. They also add edges involving the transition tokens themselves so that those positions have useful graph representations. As an example, a left-arc action creating a determiner relation has an edge labeled det to the determiner token. The intermediate graph therefore links positions that occur in the actual decoder input, including action positions.

Turn the action history into a graph

The paper names the transition operation as follows.

f(x; Σ)

Here f is the transition function, x is the action just chosen, and Σ is the word stack on which the action operates. The semicolon separates the action from the stack argument. The paper calls the top stack word a and the word beneath it b. An attachment selects a direction and a label for the edge between those words, updates the graph, and reduces the stack. Generating a sub-word extends the output being assembled into stack words.

Applying the actions in order gives the following relationship.

G = f(o₁ … oₙ)

G is the partial graph and f here denotes the accumulated application of the transition rules. The o symbols are emitted items, including text and attachment actions. The subscript 1 refers to the first position in the sequence, n is the length of the available sequence, and the ellipsis stands for the intervening positions. The equals sign expresses that the graph is determined by this action history.

Learning enters when the decoder chooses which action to emit. Once the action and stack are known, the graph update follows from the transition rules. An action sequence thus carries two kinds of usable information. Its embeddings preserve the identities and positions of the emitted items, and its reconstructed graph specifies which items are related. Feeding both back allows the network to use attachments directly, while retaining its ordinary ability to attend to text and to learn from the action symbols.

This also explains what the paper means by autoregression over structure. Ordinary autoregression uses earlier outputs to predict a continuation. Here, earlier outputs include instructions that can be interpreted to produce a structured state. A decoder step can then use that state as well as the sequence that produced it. The graph expands or acquires new edges as decisions are made. The source representation stays available throughout the process.

How the decoder generates and reuses a dependency graph

The steps in order.

How the decoder generates and reuses a dependency graphStep 1: Encode the source sentence1. Encode the source sentenceStep 2: Predict a subword or an attachment action2. Predict a subword or an attachment actionStep 3: Update the text, stack, and graph as applicable3. Update the text, stack, and graph as applicableStep 4: Encode the partial graph with GCN or Parent4. Encode the partial graph with GCN or ParentStep 5: Refresh representations across the available prefix5. Refresh representations across the available prefixStep 6: Use the updated prefix to predict again6. Use the updated prefix to predict again

Revisit the text that is already available

In the authors’ Bidirectional Transformer, called biTran, target representations can attend across the prefix that has already been produced. Suppose the decoder is about to make another prediction after emitting the particle in the coals example. Earlier positions can now draw on the particle, even though it lay to their right in generation order. If an attachment has been made, graph encoding can also alter the input or attention pattern for those positions. The next decision uses representations revised in light of the larger prefix.

The printed equations describe the change through an attention mask. The attention weights are obtained with the following operation.

softmax(L + M)

L is the matrix of attention logits, the scores before they are turned into weights. M is a mask of the same shape, and + adds its entries to the corresponding scores. softmax converts the resulting scores into normalized weights over the candidate positions for each query. The paper uses d for the maximum sentence length in this discussion, so each matrix has d rows and d columns. A mask entry of zero leaves its score unchanged, while negative infinity excludes the corresponding position from attention.

The paper writes the ordinary decoder mask as follows.

Mᵥ(i, j) = { 0    if j < i
           { −∞   otherwise

Mᵥ is the vanilla decoder mask. i denotes the position whose representation is being computed, and j denotes the candidate position it could attend to. The condition j < i selects positions earlier than i. The 0 entry admits the selected positions, and −∞ excludes the others. The braces group the cases used to assign each mask entry.

For the bidirectional decoder, the paper prints this formula.

Mᵦᵢ(i, j) = { 0    if n < j
            { −∞   otherwise

Mᵦᵢ names the bidirectional mask, n counts the items predicted so far, and i and j again denote the query and candidate positions. The 0 and −∞ entries have the same meanings as above. The printed inequality selects positions beyond the prefix, which conflicts with the authors’ verbal definition. Their described operation admits the available positions through n for queries in the prefix. That behavior is the one illustrated by the architecture and required for the use of already-generated context.

Bidirectionality here concerns the information used to represent existing output. The system still generates the next action in sequence. During generation, the particle can help represent the verb once the particle exists, and the new arc can help represent both endpoints once the arc exists. An earlier decision, such as which verb to emit, stays in the output. The change is to what the decoder can infer from that decision when it has more context.

This expanded access requires no new learned weights for the mask itself. It does affect computation. With a strictly directional mask, a representation that depended only on the earlier prefix can often be reused as further items arrive. If a new item can change representations to its left, that reuse becomes harder. The paper points out that some decoder speedups depend on the old directionality and are unavailable under the new rule. Thus the mask change is inexpensive in parameters while still changing the work done during generation.

Pass information along the graph with a GCN

The first graph encoder is a graph convolutional network, abbreviated GCN. A graph convolution updates a position by aggregating information from its neighbors in the graph. For the proposed decoder, this calculation takes place above the target embedding layer. A sub-word or action token first receives its usual initial vector, and graph convolution can then mix that vector with information associated with connected positions.

The authors distinguish 3 types of connection for propagation: a connection from a position to itself, one leading towards the parent, and one carrying information from the parent. These types allow messages to be transformed according to their direction. A word’s updated representation can consequently reflect its children as well as its parent, with different learned transformations for the two roles. The self-connection keeps the position’s own information in the calculation. The underlying technique comes from work on graph convolutional networks.

The update at a node is written as follows.

gcn(h, v, G) = ρ(∑ᵤ∈𝒩(v) gᵤᵥ · fᵤᵥ)

gcn(h, v, G) is the updated vector for node v in graph G, calculated from the input layer h. 𝒩(v) is the set of graph neighbors used for v, and u ∈ 𝒩(v) indicates that u ranges over members of that set. The symbol ∑ adds their contributions. For a neighbor u, fᵤᵥ is its vector message to v and gᵤᵥ is a scalar gate for that message. The multiplication dot scales the vector by the gate, and ρ is the activation applied to the resulting sum. The message symbol fᵤᵥ is distinct from the transition function f used to construct the graph.

Each message is calculated with a direction-specific transformation and a label-specific offset.

fᵤᵥ = Wdir(u,v) h⃗ᵤ + b⃗lab(u,v)

h⃗ᵤ is the input vector at neighbor u. The function dir(u,v) gives the direction type of the connection carrying information from u to v, and Wdir(u,v) selects the learned matrix for that type. Juxtaposing that matrix with h⃗ᵤ denotes matrix–vector multiplication. The function lab(u,v) returns the edge label, and b⃗lab(u,v) is the learned bias vector for that label. The addition combines the transformed input with this offset. In the graph equations, d denotes the width of a node vector, so the matrix is d by d and the input and bias vectors have width d.

The gate is computed separately for each message.

gᵤᵥ = σ(h⃗ᵤ · ŵ⃗dir(u,v) + b̂lab(u,v))

gᵤᵥ is the scalar weight for the message from u to v. The dot between h⃗ᵤ and ŵ⃗dir(u,v) is a dot product. The latter is a learned vector of width d selected by the direction type. b̂lab(u,v) is a learned scalar bias selected by the label. The addition gives the input to σ, the logistic sigmoid, which turns it into a gate between zero and one. The vector and scalar used in this gate are separate from the matrix and bias used to construct the message.

The gate gives the decoder a way to reduce the effect of a particular connection. That is especially relevant because the graph comes from earlier predictions, which may contain mistaken attachments. A low gate can lessen the influence of a neighbor’s transformed representation. The gate derives from learned weights, the incoming position’s representation, and a label bias. The architecture therefore permits selective use of edges without requiring a separate decision that an attachment is erroneous.

The GCN variant uses 2 layers with residual connections. A residual connection lets information pass from a layer’s input to its output alongside the layer’s transformation. Stacking graph layers means a later update can use vectors already influenced by a preceding graph update. The authors implemented a sparse, labeled, gated GCN in TensorFlow, with memory use a priority and runtime optimizations where possible. The whole graph and its relation labels have a direct route into the vectors supplied to the decoder.

Route an attention head to the parent

The Parent variant reuses the decoder’s existing multi-head attention. An attention head is one of the parallel computations that selects which positions to draw information from. Parent restricts one head so that a target position may attend only to itself and its parent positions in the current graph. For the position denoted oᵢ, the i identifies the item in the emitted sequence. The allowed parent positions come from the attachments the decoder has generated so far.

Self-attention at the current position gives that head an allowed input even before a parent has been created. Once a parent exists, the head can still assign weight to the position itself. Other heads retain access according to the decoder’s ordinary bidirectional rules for the available prefix. The parent relation therefore guides one channel within a broader attention computation. Restricting an existing head introduces no additional parameters or hyper-parameters for the graph encoding. The idea draws on earlier ways of guiding attention with grammatical structure, including linguistically informed self-attention.

Parent exposes a different subset of the graph than the GCN. Its mask uses the identity of the parent and leaves the edge label out of that masking decision. It also leaves child connections out of the dedicated head’s permitted positions. A label is still present in the attachment action, whose embedding remains available to the decoder. This distinction matters when interpreting comparisons involving labels. The same label can be absent from the graph operation and present in the sequence that the network receives.

The variants also put graph information in different places. The GCN modifies the input representations with a series of graph operations above the embedding layer. Parent changes which positions an attention head can draw from inside the decoder blocks. Both consume a graph that has been constructed from the same kind of action sequence. Their common feature is the feedback of explicit structure, while their differences affect which information reaches a position directly and how much additional computation is required.

Prepare structural supervision and train the decoder

Training requires a reference translation and an action sequence that builds its dependency analysis. The authors use UDPipe to obtain parses. For English and German the parser uses UD 2.0, while Russian uses the Syntagrus version of UD 2.5. The target text is truecased, tokenized with Moses, and split using byte pair encoding without tying. Byte pair encoding lets the action sequence generate words in pieces through subword tokenization.

The authors remove the dependency edge that leads to the artificial root because there is no corresponding word to translate. They also use only projective parses for structural training. Projectivity here is a constraint on the shape of the dependency tree with respect to the order of the words. In the familiar drawing of arcs above a sentence, crossing edges illustrate the kind of configuration that the chosen system cannot produce. Arc-standard covers projective trees, so filtering the parses aligns the training targets with the operations available to the decoder.

The structural actions extend the translation vocabulary. The paper reports 45 labels and 90 new tokens when the labels are paired with left and right attachment directions. Each direction–label pair is an action the decoder can predict directly. Lexical and structural actions are scored through the same prediction mechanism without a separate rescaling for the attachment scores. The authors describe an alternative of separating direction from label, for which they give 47 additional symbols. That alternative would lengthen the action sequences and was left untested.

The paper reports a training batch size of 128. The medium configuration has embedding size 256, with 4 blocks each in the encoder and decoder. The large configuration has embedding size 512 and 6 blocks on each side. The settings use 8 attention heads, with Parent redirecting one of them. The authors train the medium systems for 90K steps and the larger ones for 150K. They choose these schedules because performance had shown some saturation at the corresponding training durations.

For the medium setup, the appendix gives a learning rate of 1e⁻⁴ and 4K warm-up steps. The coefficients for the first and second moment estimates are 0.9 and 0.999, respectively, and epsilon is 1e⁻⁸. The authors use settings inherited from prior recommendations or tuned for the vanilla Transformer and carry those settings over to the proposed variants. The optimizer is Adam.

An unchanged source encoder makes the decoder comparison easier to interpret. The syntax-aware variants differ from the baseline in the target actions they predict and how they represent the resulting output. The implementation extends the Nematus codebase, which also supplied the baseline. The authors made the implementation available through their fork of Nematus.

Experiments and results

Training data and evaluation splits

The medium experiments cover English to German, German to English, and English to Russian, abbreviated En-De, De-En, and En-Ru. The larger runs cover En-De. For En-De the authors use WMT16 data. The appendix reports 4,468,840 training sentences before filtering and 4,066,323 afterward. En-Ru has a cleaner training condition using News Commentary and a noisier condition using the full WMT20 collection, much of which consists of crawled data. The full En-Ru collection contains 37,948,456 training sentences before filtering and 19,557,568 afterwards.

The general preprocessing drops examples with an empty source or target. The training limit on target length is 40 non-transition BPE tokens, so its count describes the text pieces instead of the combined length of text and structural actions. For the full En-Ru condition, the authors also filter examples that appear to be in the wrong language or have unlikely alignments. They use langID for language identification and FastAlign for the alignment filter. The paper specifies the latter cutoff as follows.

p < −180

Here p denotes the FastAlign quantity used for the filtering decision. The < symbol selects values below the reported threshold, −180. This is an alignment filter and is separate from the statistical significance test used in the results. The authors say that language, alignment, and length filters together remove about half the sentences from the full En-Ru collection. They report that filtering was important for obtaining reasonable baseline results on crawled data in preliminary trials.

Newstest 2012 is the development set. The ordinary test evaluation uses newstest 2013-15, with approximately 3K sentences in each WMT development or test set according to the appendix. These tests supply a measure over general news translation. The dedicated challenge sets ask a more specific question about the grammar of cases contained in news and books. The evaluations therefore differ both in what is sampled and in how narrowly a change in score can be interpreted.

The main baseline is a vanilla Transformer, meaning the standard encoder and decoder applied to the translation task. BiTran isolates the change to decoder attention. Linearized predicts the interleaved text and transition actions with a standard Transformer, leaving graph reconstruction outside its representation of the prefix. The fully syntax-aware comparisons are against GCN and Parent. For the larger En-De configuration, the paper concentrates on the comparison between Parent and the vanilla system.

What the metrics and challenges measure

The authors report detokenized BLEU through Moses. BLEU compares the generated translation with a reference and emphasizes precision over sequences of words. Detokenized scoring means it is applied after undoing the segmentation used for processing, so the mixed sequence of text and parse instructions is evaluated as a surface translation. The resulting score concerns overlap with the reference wording. It supplies no direct assessment of the accuracy of individual dependency labels or edges. BLEU score

The other measure, chrF+, combines character-level and word-level overlap and balances precision and recall. The implementation uses chrF++.py with 1 word and beta of 3. The authors include this measure because they cite evidence that it agrees more closely with human judgments for the translation technology considered. The two measures respond to related properties of the surface output, giving complementary views of changes that may affect words, parts of words, or the amount of reference material recovered. chrF

For the syntactic tests, the paper uses challenge sets previously assembled by Choshen and Abend. A parser identified sentences in books and news that contain lexical long-distance dependencies. The relevant cases have separated words on one side that correspond to a single word on the other. With the English particle construction, for example, the output can depend on producing the appropriate connection between a verb and a particle separated by intervening material. The challenge sets include reflexive and particle constructions in both languages and a preposition-stranding category in English.

The paper describes each challenge setting using this tuple.

(dir, p, dom)

dir specifies where the dependency occurs, either in the source sentence or in the reference translation. p identifies the grammatical phenomenon being tested. dom identifies the domain, books or news. The parentheses group the coordinates and the commas separate them. A target-side challenge gives a more direct test of producing the relevant construction in the translation. A source-side challenge asks whether the translation system can deal with a dependency in the input, even though the new architecture leaves the source encoder unchanged.

The domain and construction distinctions matter when reading the reported win counts. The English particle challenge has 3,953 book examples and 17 news examples. English preposition stranding has 191 book examples and 8 news examples. For German reflexives, the corresponding sizes are 2,628 in books and 261 in news. A count of challenge settings improved tells the reader how broadly gains appear across comparisons. The underlying sets vary in size, and the counts do not measure how many individual examples were fixed or give every setting the same precision of estimation.

The strongest gains are on the syntactic challenges

For the medium configuration, Parent improves over the vanilla decoder in 18 of the 20 target challenge settings. GCN improves in 20 of those settings. On the source challenges, each improves in 19 of 20. The pattern therefore extends across both locations for the difficult construction. A target-side representation can directly affect how the translation realizes a target dependency. The source-side result shows that the changed decoder can also improve translation of cases selected for an input dependency, without identifying which internal decisions account for that improvement.

Medium decoders on the English–German target challenges, settings improved over Vanilla

GCN improves in more target challenge settings than Parent.

Medium decoders on the English–German target challenges, settings improved over VanillaParent: 18Parent18GCN (this paper): 20GCN (this paper)20
The numbers
System or settingsettings improved
Parent18
GCN (this paper)20

The larger En-De Parent comparison records improvements in 18/20 challenges. The authors describe the margins as similar to or sometimes greater than in the medium experiments. That comparison matters because an advantage confined to the medium setting could have suggested that the ordinary decoder simply needed more capacity. The advantage on the challenge sets persists when the usual configuration is increased to the larger one tested here. That increase includes both more blocks and wider embeddings.

The source and target challenge comparisons capture a more specific aspect of translation than the aggregate news scores. A recurring advantage on the filtered sets is evidence that the conditions selected by the parser expose a weakness the variants address. Since selection is based on the sentence containing a construction and scoring uses the translation as a whole, the results do not establish that every score change comes from a repaired instance of the selected dependency. The pattern across the settings is the evidence the authors emphasize.

General translation and the larger configuration

On the standard benchmarks, the medium GCN and Parent systems outperform the vanilla decoder in all the reported settings, with average BLEU improvements of 0.7-1.1 and chrF+ improvements of 1-2.4. On De-En the paper describes a slight advantage for GCN. Parent has the advantage on En-De and En-Ru. This variation is consistent with the challenge results in showing that there is no single ranking of the two graph encoders that applies across every comparison.

The authors apply a sign test over the medium-size test sets and perform a separate test over the challenge sets. A sign test uses the direction of a change across comparisons. The paper reports that GCN and Parent are significantly better than BiTran, and that BiTran is significantly better than Vanilla. It gives the following threshold when reporting significance.

p < 0.01

Here p is the probability value for the statistical test, < means “less than,” and 0.01 is the threshold written in the results. The significance claim describes the consistency of the comparisons under the test. The reported metric gains give the size of the changes, which is a separate piece of information.

On standard En-De tests, large Parent is comparable to the large vanilla decoder. Its syntactic challenge gains coexist with that aggregate result. A broad test set mixes many kinds of examples, while the challenge sets increase the representation of the particular constructions the paper aims to handle. The findings show why the choice of test set matters for this intervention. An overall score can show that the system remains competitive while the targeted tests reveal a difference in where the systems succeed.

The full, noisy En-Ru condition gives a weaker relative advantage. The paper reports a chrF+ gain of 1 point there, compared with 1.5-2.5 in the settings used for comparison in its noise analysis. It also describes BLEU as somewhat worse in the noisy comparison. The authors interpret the pattern as a reduction in the gain from adding syntax. The larger stock of crawled training material changes the amount and the character of the data at the same time, a point that constrains the interpretation of this comparison.

What the ablations show

Re-encoding the prefix helps on its own

BiTran is the comparison that removes graph construction while preserving the new treatment of attention. Its translation outputs are ordinary text, with each available target representation allowed to draw on the whole generated prefix. The paper reports gains of up to .28 BLEU and .42 chrF+, an average improvement over Vanilla, and improvements in 10/12 scores in each pair in the comparison. BiTran also improves scores in 26/40 syntactic challenge sets.

The BiTran effect matters for interpreting the full decoder because refreshing earlier representations is itself a useful change. If the comparison consisted only of GCN or Parent against Vanilla, it would combine different attention access with structural supervision and graph feedback. The BiTran comparison shows how much can be obtained from wider access to text alone in the tested configurations. Its smaller gains on the challenges leave room for the additional structure-aware changes.

The attention intervention is also a direct test of the architectural motivation. Earlier positions can benefit from context that has since become available, even when the preferred connection is inferred from words instead of supplied by an edge. The results are consistent with a decoder making better use of its own prefix. The scores do not specify which earlier positions changed their representations or which later predictions benefited from each change.

Predicting the actions and feeding back the graph are different interventions

Linearized gives the standard decoder the same kind of action string used for structural generation. It predicts attachment symbols alongside text. A token can therefore have a learned association with a particular syntactic operation, and the sequence provides a record from which the graph can be recovered. The defining difference is that Linearized represents the history through its sequence of symbols without adding the GCN or Parent mechanism for reading the reconstructed graph.

The authors describe Linearized as consistently better than the structure-unaware systems and below the graph-aware variants, with small but consistent differences in the ablation comparisons. This ordering supports a role for structural supervision even when delivered as sequence prediction. It also supports a further contribution from explicit feedback. The network has an action symbol identifying the attachment in both cases. In the graph-aware versions, the stack interpretation of the action has already been carried out, so the next prediction can use a connection between the relevant positions directly.

The comparison also qualifies what can be attributed to graph convolution. Parent uses an existing head, and Linearized uses structural actions with ordinary sequence processing. Both offer evidence that useful changes can come from the way syntax is represented and supervised, even without additional graph convolutional layers. The paper relates this observation to earlier source-side results in which graph-shaped architectures sometimes helped with syntactically uninformative trees. Its own decoder experiments give several routes by which structure can help and leave the role of tree content versus architecture open to more directly matched comparisons.

Graph labels and gates contribute differently

The Unlabeled GCN retains the connections but drops the edge labels from the graph convolution. The labeled version shows some overall BLEU benefit, while Unlabeled often does better on the challenge comparisons. The paper calls the contribution of labels limited. The direct label pathway in these equations is modest: a label selects an additive term in the message and an additive term in the gate. The result concerns that particular use of labels.

There is a second route for labels in the experiment. The action inventory still contains label-specific transition tokens, and those tokens have embeddings. Unlabeled can consequently obtain information about labels from the action sequence while disregarding them in the graph convolution. Parent also has access to labels in the action history even though its special mask uses parent identity. These comparisons address the extra value of providing labels through graph encoding while the labels are already present in another part of the input.

Ungated goes a step further than Unlabeled by removing the message gate. It scores lower than Unlabeled in 34/40 challenges. Because both versions already omit graph labels, the comparison isolates the gate within that setting. The consistent ordering makes gating the more consequential GCN component in the authors’ challenge comparisons. It also gives some support to their interpretation that a gate can be helpful when the parser state is generated by the same system and can contain mistakes.

That last explanation is indirect. A learned gate can suppress information for several reasons, including because an otherwise valid neighbor is of little use at the current step. The experiment compares systems with and without gating and measures their translations. It does not pair individual gate values with judgments of whether the corresponding attachment was correct. The authors suggest that a related control could be useful for Parent, whose head can already give more weight to the current token when the parent offers little help.

Parent generally performs better than Unlabeled GCN, and the authors report a significant advantage in that comparison. They describe it as simpler to implement and lighter in memory, time, and hyper-parameters. Comparisons with the full GCN vary by direction and phenomenon. The combination of low overhead and persistent challenge gains makes Parent a useful demonstration of the feedback mechanism. The GCN experiments separately show what can be gained by letting the decoder combine information from a broader graph neighborhood and learn to regulate those messages.

Noise and a direct word-order check

The En-Ru comparison asks whether syntax remains useful when training includes noisy crawled material. The smaller relative gain on the full collection is consistent with the authors’ concern that a syntactic decoder may be more exposed to errors in automatic training parses. With such a decoder, an erroneous attachment can affect the target sequence the system is taught to emit and the graph available for conditioning. The authors also raise an alternative explanation: added training data could reduce the benefit of the architectural intervention even apart from its noisiness.

Their observation about data volume draws on the favorable En-De and De-En results, where they describe training on relatively large collections of 4.5M sentence pairs. This makes an immediate disappearance of the benefit with more data less plausible in their settings. It leaves open the rate at which the advantage changes as data volume increases. A comparison between the cleaner and full Russian conditions holds the direction fixed while allowing corpus composition, filtering, and training volume to vary.

The paper supplements overlap scores with an analysis of 99 simple German sentences in which the subject and object can switch positions without changing who acts on whom. The authors construct the sentences from lists of nouns and verbs. The sets differ in whether case marking unambiguously identifies the subject, the object, or both. In the scenario involving a father and a horse, for example, the form for the horse can initially fit either role. The form for the father then resolves the ambiguity, even when the horse appears first.

A German native speaker fluent in English evaluated the outputs from medium Parent and Vanilla. The scoring focuses on whether the translation preserves the roles when the German input takes the less usual object-first order. Other translation errors, such as a choice of English verb, are set aside for this check. Both decoders find the sentences difficult, particularly when a noun phrase has ambiguous case marking. Parent is more robust overall to the change in position.

Some outputs use the English passive. That lets the translation keep the prominent noun first and still attribute the action to the right participant. The annotator observes this strategy for both systems, more consistently in Parent. The analysis therefore tests meaning preservation at the level of participant roles while allowing a different grammatical construction in the translation. It complements the challenge sets by examining a concrete failure mode: treating the first noun phrase as the agent even after the case marking supplies evidence for a different interpretation.

Limitations

Limits the authors identify

The proposed framework requires a transition system capable of constructing the intended graph. The implementation studied here uses an arc-standard variant and trains on projective target analyses. The authors describe filtering nonprojective parses as a practical response to the lower reliability of available parsing for such examples. They also raise the possibility that the same choice could fit less well in languages where nonprojective structures are frequent. Broader applicability depends on the graph operations, the available analyses, and the resulting training examples.

Cost narrows the scale comparison. The authors train a larger configuration only for En-De, and the larger comparison concerns Parent and the standard decoder. The appendix describes medium training on 4 GPUs for approximately a week, or 2 weeks for the GCN architecture. Bidirectional representations can also prevent reuse optimizations that rely on strictly directional attention. A mechanism that adds no parameters can still change training and decoding cost, since previously computed representations can depend on newly available items.

The authors are careful about the interpretation of labels. The GCN’s explicit label contribution is confined to biases, while the transition vocabulary offers another channel for the same information. The ablation thus leaves open whether a different label representation could provide more benefit. They similarly describe the gate result as indirect support for robustness to erroneous attachments. Noisy target analyses provide a reason to learn selective weights, but the experiment measures the effect on translation scores rather than the diagnosis of individual graph errors.

The noise analysis likewise supports more than one interpretation. The full En-Ru data are both larger and noisier than the cleaner condition. The authors suggest the decrease in relative gain could come from parser errors, a reduced contribution from syntax with more data, or some combination of the two. Their experiments with other language directions establish that the technique can help on fairly large corpora. They leave the separate effects of corpus size and noise unresolved for En-Ru.

The proposed bidirectionality also has a temporal bound the authors explicitly acknowledge. At the start of generation, there is little target context available to revisit. At subsequent steps, refreshing a representation can affect following actions. Changing an already emitted word is a different capability. The paper identifies revision of past predictions as a possible extension, which would change the relationship between generating a token and committing to it.

Further limits of the evidence

The challenge sets operationalize syntactic generalization in a specific way. They select sentences in which separated expressions have a lexical correspondence across languages, concentrating on particular English and German phenomena. The results show a recurring improvement on that class of tests. They leave open how the same decoder behaves on constructions with other kinds of syntactic ambiguity or in languages with substantially different word-order patterns. The En-Ru experiments extend the general translation comparison, while the dedicated dependency challenges used for the main syntactic claim concern English and German.

Automatic evaluation compounds this limitation. The scores assess similarity to complete reference translations on examples chosen for containing a construction. They can improve because of changes to the construction, changes elsewhere in the sentence, or both. A parser used to select the examples can also influence which instances enter the set. The reported counts establish that improvements are widespread across the evaluated settings. They give limited information about the accuracy of any particular dependency edge or about how frequently a generated graph agrees with a human analysis.

The human assessment provides a more direct view of one kind of error, but its scope is also specific. The sentences are constructed from selected verbs and nouns. The judgment focuses on whether the roles survive a change in order, and a fluent annotator supplies the evaluation. That design is well suited to distinguishing agent and patient reversals in those examples. Its population of constructions and scoring criteria are narrower than a general assessment of translation quality. A passive output can pass the role test even when its voice differs from a reference an evaluator might otherwise prefer.

The medium-to-large comparison shows that the syntactic advantage survives the tested increase in capacity. The larger setup also uses a longer training schedule and wider embeddings, and it covers a single translation direction. The evidence therefore concerns a concrete configuration change. It cannot resolve how far the result extends with more capacity, training time, other language directions, or a different allocation of attention heads. Nor does comparability on general En-De tests tell us whether the same large systems would have separated on another domain.

Finally, the evidence for explicit syntax has different strengths at different levels. Linearized shows that predicting syntactic actions can help, and the full variants show a further benefit from exposing the constructed graph. These results support the usefulness of this representation against the baselines tested. They leave room for stronger controls in which the same feedback mechanisms are supplied with alternative graphs lacking the linguistic relations of UD. The paper’s discussion challenges the idea that architectural shape alone explains the gains, while its decoder experiments do not exhaust the comparisons needed to settle that question.

What came after

There are no later citing works available to trace for this paper. The identifiable extensions are the research directions set out by the authors, which distinguish the implemented decoder from broader possibilities for conditioning generation.

One direction is to vary how the available prefix is supplied during training. The experiments teach the decoder using text and actions derived from reference translations. The authors propose exploring deliberately noisy prefixes, masking spans in the prefix, or augmenting training around difficult words and phrases. These proposals build on the observation that the decoder can compute representations from a supplied prefix. They would change what the system learns to do when that prefix is incomplete, unreliable, or chosen to focus training on a particular part of the sentence. The paper connects the masking proposal to BERT.

A related direction is to let the decoder revise its own text. In the reported system, an earlier token can acquire a new representation as more words or edges become available. The token itself remains part of the emitted sequence. Allowing revision would give newly available evidence a direct effect on earlier wording as well as on future decisions. The example with the delayed particle makes the distinction concrete: information carried by that particle can already update the representation of the verb, while a revision mechanism could reconsider which verb the translation should contain.

The authors also propose going beyond dependency syntax to semantic graphs and considering source and target structures together to encourage preservation of meaning. The design suggests a general route for doing so: define the actions that build a graph, reconstruct the partial graph from the action history, and let the decoder use the result. The translation experiments establish that loop for the projective dependency structures tested here. The extensions would ask whether graphs with other relations can guide generation, and whether exposing comparable structure on both sides helps preserve what the source says.

Cite

Cite as Leshem Choshen and Omri Abend. 2022. Enhancing the Transformer Decoder with Transition-based Syntax. Proceedings of the 26th Conference on Computational Natural Language Learning (CoNLL).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.conll-1.27 · arXiv 2101.12640

@inproceedings{choshen2022enhancing,
  title = {{Enhancing the Transformer Decoder with Transition-based Syntax}},
  author = {Leshem Choshen and Omri Abend},
  booktitle = {Proceedings of the 26th Conference on Computational Natural Language Learning (CoNLL)},
  year = {2022},
  doi = {10.18653/v1/2022.conll-1.27},
  eprint = {2101.12640},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2022.conll-1.27}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/choshen-2022-enhancing-transformer-decoder-transition-based/

References

82 references, from the paper's own bibliography.

  1. Roee Aharoni and Yoav Goldberg. 2017a. Morphological inflection generation with hard monotonic attention. In Proc. of ACL, pages 2004–2015. our card
  2. Roee Aharoni and Yoav Goldberg. 2017b. Towards string-to-tree neural machine translation. In ACL. our card
  3. Eleftherios Avramidis, Vivien Macketanz, Ursula Strohriegel, Aljoscha Burchardt, and Sebastian Möller. 2020. Fine-grained linguistic evaluation for state-of-the-art machine translation. In Proceedings of the Fifth Conference on Machine Translation, pages 346–356. OpenAlex ↗ · Scholar ↗
  4. Loïc Barrault, Magdalena Biesialska, Ondrej Bojar, Marta R. Costa-jussà, C. Federmann, Yvette Graham, Roman Grundkiewicz, B. Haddow, Matthias Huck, E. Joanis, Tom Kocmi, Philipp Koehn, Chi kiu Lo, Nikola Ljubesic, Christof Monz, Makoto Morishita, M. Nagata, T. Nakazawa, Santanu Pal, Matt Post, and Marcos Zampieri. 2020. Findings of the 2020 conference on machine translation (wmt20). In WMT. our card
  5. Jasmijn Bastings, Ivan Titov, Wilker Aziz, Diego Marcheggiani, and Khalil Simaán. 2017. Graph convolutional encoders for syntax-aware neural machine translation. In Proc. of EMNLP. our card
  6. Yonatan Belinkov and Yonatan Bisk. 2017. Synthetic and natural noise both break neural machine translation. ICLR, abs/1711.02173. OpenAlex ↗ · Scholar ↗
  7. Arianna Bisazza, A. Ustun, and Stephan Sportel. 2021. On the difficulty of translating free-order case-marking languages. ArXiv, abs/2107.06055. our card
  8. Ben Bogin, Sanjay Subramanian, Matt Gardner, and Jonathan Berant. 2020. Latent compositional representations improve systematic generalization in grounded question answering. arXiv preprint arXiv:2007.00266. OpenAlex ↗ · Scholar ↗
  9. Ondřej Bojar, Rajen Chatterjee, Christian Federmann, Yvette Graham, Barry Haddow, Matthias Huck, Antonio Jimeno Yepes, Philipp Koehn, Varvara Logacheva, Christof Monz, et al. 2016. Findings of the 2016 conference on machine translation. In Proceedings of the First Conference on Machine Translation: Volume 2, Shared Task Papers, pages 131–198. our card
  10. Emanuele Bugliarello and N. Okazaki. 2020. Enhancing machine translation with dependency-aware self-attention. In ACL. OpenAlex ↗ · Scholar ↗
  11. Saikat Chakraborty, Miltiadis Allamanis, and Baishakhi Ray. 2018. Tree2tree neural translation model for learning source code changes. ArXiv, abs/1810.00314. OpenAlex ↗ · Scholar ↗
  12. Kehai Chen, Rui Wang, Masao Utiyama, Lemao Liu, Akihiro Tamura, Eiichiro Sumita, and Tiejun Zhao. 2017. Neural machine translation with source dependency representation. In Proc. of EMNLP. OpenAlex ↗ · Scholar ↗
  13. Kehai Chen, Rui Wang, Masao Utiyama, Eiichiro Sumita, and Tiejun Zhao. 2018. Syntax-directed attention for neural machine translation. In Proc. of AAAI. OpenAlex ↗ · Scholar ↗
  14. Leshem Choshen and Omri Abend. 2019. Automatically extracting challenge sets for non-local phenomena in neural machine translation (https://doi.org/10.18653/v1/K19-1028). In Proceedings of the 23rd Conference on Computational Natural Language Learning (CoNLL), pages 291–303, Hong Kong, China. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  15. Leshem Choshen, Lior Fox, Zohar Aizenbud, and Omri Abend. 2020. On the weaknesses of reinforcement learning for neural machine translation. ArXiv, abs/1907.01752. OpenAlex ↗ · Scholar ↗
  16. Róbert Csordás, Kazuki Irie, and Jürgen Schmidhuber. 2021. The devil is in the detail: Simple tricks improve systematic generalization of transformers. ArXiv, abs/2108.12284. OpenAlex ↗ · Scholar ↗
  17. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding (https://doi.org/10.18653/v1/N19-1423). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics. our card
  18. Shuoyang Ding, Adithya Renduchintala, and Kevin Duh. 2019. A call for prudent choice of subword merge operations in neural machine translation (https://www.aclweb.org/anthology/W19-6620). In Proceedings of Machine Translation Summit XVII Volume 1: Research Track, pages 204–213, Dublin, Ireland. European Association for Machine Translation. OpenAlex ↗ · Scholar ↗
  19. Shachar Don-Yehiya, Leshem Choshen, and Omri Abend. 2022. Prequel: Quality estimation of machine translation outputs in advance. arXiv preprint arXiv:2205.09178. OpenAlex ↗ · Scholar ↗
  20. Chris Dyer, Victor Chahuneau, and Noah A. Smith. 2013. A simple, fast, and effective reparameterization of ibm model 2. In HLT-NAACL. OpenAlex ↗ · Scholar ↗
  21. Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A. Smith. 2016. Recurrent neural network grammars. In HLT-NAACL. our card
  22. Akiko Eriguchi, Kazuma Hashimoto, and Yoshimasa Tsuruoka. 2016. Tree-to-sequence attentional neural machine translation (https://doi.org/10.18653/v1/P16-1078). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 823–833, Berlin, Germany. Association for Computational Linguistics. our card
  23. Akiko Eriguchi, Yoshimasa Tsuruoka, and Kyunghyun Cho. 2017. Learning to parse and translate improves neural machine translation. ArXiv, abs/1702.03525. our card
  24. Daniel Fernández-González and Carlos Gómez-Rodríguez. 2018. Non-projective dependency parsing with non-local transitions (https://doi.org/10.18653/v1/N18-2109). In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 693–700, New Orleans, Louisiana. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  25. Nicolas Gontier, Koustuv Sinha, Siva Reddy, and Christopher Pal. 2020. Measuring systematic generalization in neural proof generation with transformers. arXiv preprint arXiv:2009.14786. OpenAlex ↗ · Scholar ↗
  26. Jetic Gū, Hassan S. Shavarani, and Anoop Sarkar. 2018. Top-down tree structured decoding with syntactic connections for neural machine translation and parsing (https://doi.org/10.18653/v1/D18-1037). In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 401–413, Brussels, Belgium. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  27. Jie Hao, Xing Wang, Shuming Shi, Jinfeng Zhang, and Zhaopeng Tu. 2019. Multi-granularity self-attention for neural machine translation (https://doi.org/10.18653/v1/D19-1082). In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 887–897, Hong Kong, China. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  28. Jacob Harer, C. Reale, and P. Chin. 2019. Tree-transformer: A transformer-based method for correction of tree-structured data. ArXiv, abs/1908.00449. OpenAlex ↗ · Scholar ↗
  29. Daniel Hershcovich, Omri Abend, and Ari Rappoport. 2018. Multitask parsing across semantic representations. In Proc. of ACL, pages 373–385. our card
  30. Jennifer Hu, Jon Gauthier, Peng Qian, Ethan Wilcox, and Roger Levy. 2020. A systematic assessment of syntactic generalization in neural language models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 1725–1744. our card
  31. Ganesh Jawahar, Benoît Sagot, and Djamé Seddah. 2019. What does BERT learn about the structure of language? (https://doi.org/10.18653/v1/P19-1356) In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3651–3657, Florence, Italy. Association for Computational Linguistics. our card
  32. Diederik P. Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. CoRR, abs/1412.6980. our card
  33. Thomas N. Kipf and Max Welling. 2016. Semi-supervised classification with graph convolutional networks (http://arxiv.org/abs/1609.02907). CoRR, abs/1609.02907. our card
  34. Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, M. Federico, N. Bertoldi, B. Cowan, Wade Shen, C. Moran, R. Zens, Chris Dyer, Ondrej Bojar, A. Constantin, and E. Herbst. 2007. Moses: Open source toolkit for statistical machine translation. In ACL. OpenAlex ↗ · Scholar ↗
  35. Junhui Li, Deyi Xiong, Zhaopeng Tu, Muhua Zhu, Min Zhang, and Guodong Zhou. 2017. Modeling source syntax for neural machine translation. In Proc. of ACL. OpenAlex ↗ · Scholar ↗
  36. Tal Linzen and Marco Baroni. 2020. Syntactic structure from deep learning. Annual Review of Linguistics, 7. OpenAlex ↗ · Scholar ↗
  37. L. Liu, M. Utiyama, A. Finch, and Eiichiro Sumita. 2016. Agreement on target-bidirectional neural machine translation. In HLT-NAACL. OpenAlex ↗ · Scholar ↗
  38. Adam Lopez. 2008. Statistical machine translation. ACM Computing Surveys (CSUR), 40:8. OpenAlex ↗ · Scholar ↗
  39. Marco Lui and Timothy Baldwin. 2012. langid. py: An off-the-shelf language identification tool. In Proceedings of the ACL 2012 system demonstrations, pages 25–30. our card
  40. Qingsong Ma, Johnny Wei, Ondřej Bojar, and Yvette Graham. 2019. Results of the WMT19 metrics shared task: Segment-level and strong MT systems pose big challenges (https://doi.org/10.18653/v1/W19-5302). In Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1), pages 62–90, Florence, Italy. Association for Computational Linguistics. our card
  41. Christopher D. Manning, Kevin Clark, John Hewitt, Urvashi Khandelwal, and Omer Levy. 2020. Emergent linguistic structure in artificial neural networks trained by self-supervision (https://doi.org/10.1073/pnas.1907367117). PNAS. OpenAlex ↗ · Scholar ↗
  42. Diego Marcheggiani, Jasmijn Bastings, and Ivan Titov. 2018. Exploiting semantics in neural machine translation with graph convolutional networks. In Proc. of NAACL. OpenAlex ↗ · Scholar ↗
  43. Tom McCoy, Ellie Pavlick, and Tal Linzen. 2019. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3428–3448. our card
  44. Haitao Mi, B. Sankaran, Z. Wang, and Abe Ittycheriah. 2016. Coverage embedding models for neural machine translation. In EMNLP. OpenAlex ↗ · Scholar ↗
  45. Maria Nadejde, Siva Reddy, Rico Sennrich, Tomasz Dwojak, Marcin Junczys-Dowmunt, P. Koehn, and Alexandra Birch. 2017. Predicting target language ccg supertags improves neural machine translation. In WMT. OpenAlex ↗ · Scholar ↗
  46. Xuan-Phi Nguyen, Shafiq R. Joty, S. Hoi, and R. Socher. 2020. Tree-structured attention with hierarchical accumulation. ArXiv, abs/2002.08046. OpenAlex ↗ · Scholar ↗
  47. Joakim Nivre. 2003. An efficient algorithm for projective dependency parsing. In IWPT. our card
  48. Joakim Nivre, Marie-Catherine de Marneffe, Filip Ginter, Yoav Goldberg, Jan Hajic, Christopher D. Manning, Ryan McDonald, Slav Petrov, Sampo Pyysalo, Natalia Silveira, Reut Tsarfaty, and Daniel Zeman. 2016. Universal dependencies v1: A multilingual treebank collection. In Proc. of LREC, pages 1659–1666. our card
  49. Stephan Oepen, Omri Abend, Lasha Abzianidze, Johan Bos, Jan Hajic, Daniel Hershcovich, Bin Li, Tim O'Gorman, Nianwen Xue, and Daniel Zeman. 2020. MRP 2020: The second shared task on cross-framework and cross-lingual meaning representation parsing (https://doi.org/10.18653/v1/2020.conll-shared.1). In Proceedings of the CoNLL 2020 Shared Task: Cross-Framework Meaning Representation Parsing, pages 1–22, Online. Association for Computational Linguistics. our card
  50. Santiago Ontanón, Joshua Ainslie, V. Cvicek, and Zachary Kenneth Fisher. 2021. Making transformers solve compositional tasks. ArXiv, abs/2108.04378. OpenAlex ↗ · Scholar ↗
  51. Kishore Papineni, S. Roukos, T. Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In ACL. our card
  52. Thuong-Hai Pham, Dominik Machácek, and Ondrej Bojar. 2019. Promoting the knowledge of source syntax in transformer nmt is not needed. Computación y Sistemas, 23. OpenAlex ↗ · Scholar ↗
  53. Edoardo Maria Ponti, Roi Reichart, Anna Korhonen, and Ivan Vulić. 2018. Isomorphic transfer of syntactic structures in cross-lingual nlp. In Proc. of ACL, volume 1. OpenAlex ↗ · Scholar ↗
  54. Martin Popel and Ondřej Bojar. 2018. Training tips for the transformer model. The Prague Bulletin of Mathematical Linguistics, 110(1):43–70. our card
  55. Maja Popovic. 2017. chrf++: words helping character n-grams. In WMT. our card
  56. Shauli Ravfogel, Y. Goldberg, and Tal Linzen. 2019. Studying the inductive biases of rnns with synthetic variations of natural languages. ArXiv, abs/1903.06400. our card
  57. D. Sachan, Yuhao Zhang, Peng Qi, and W. Hamilton. 2020. Do syntax trees help pre-trained transformers extract information? ArXiv, abs/2008.09084. OpenAlex ↗ · Scholar ↗
  58. Rico Sennrich, Orhan Firat, K. Cho, Alexandra Birch, B. Haddow, Julian Hitschler, Marcin Junczys-Dowmunt, Samuel Läubli, A. Barone, Jozef Mokry, and Maria Nadejde. 2017. Nematus: a toolkit for neural machine translation. In EACL. our card
  59. Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units (https://doi.org/10.18653/v1/P16-1162). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715–1725, Berlin, Germany. Association for Computational Linguistics. our card
  60. Haoyue Shi, Hao Zhou, J. Chen, and Lei Li. 2018. On tree-based neural sentence modeling. In EMNLP. OpenAlex ↗ · Scholar ↗
  61. Vighnesh Leonardo Shiv and Chris Quirk. 2019. Novel positional encodings to enable tree-based transformers. In NeurIPS. OpenAlex ↗ · Scholar ↗
  62. Linfeng Song, Daniel Gildea, Yue Zhang, Zhiguo Wang, and Jinsong Su. 2019. Semantic neural machine translation using AMR. TACL, 7. our card
  63. Miloš Stanojević and Mark Steedman. 2020. Max-margin incremental CCG parsing (https://doi.org/10.18653/v1/2020.acl-main.378). In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4111–4122, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  64. Milan Straka. 2018. Udpipe 2.0 prototype at conll 2018 ud shared task. In Proceedings of the CoNLL 2018 Shared Task: Multilingual Parsing from Raw Text to Universal Dependencies, pages 197–207. our card
  65. Emma Strubell, Patrick Verga, Daniel Andor, David Weiss, and Andrew McCallum. 2018. Linguistically-informed self-attention for semantic role labeling (https://doi.org/10.18653/v1/D18-1548). In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 5027–5038, Brussels, Belgium. Association for Computational Linguistics. our card
  66. Kai Sheng Tai, R. Socher, and Christopher D. Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. In ACL. our card
  67. J. Tiedemann. 2012. Parallel data, tools and interfaces in opus. In LREC. our card
  68. Zhaopeng Tu, Z. Lu, Y. Liu, X. Liu, and Hang Li. 2016. Modeling coverage for neural machine translation. arXiv: Computation and Language. our card
  69. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need (https://papers.nips.cc/paper/7181-attention-is-all-you-need.pdf). In Advances in Neural Information Processing Systems, pages 5998–6008. our card
  70. Chaojun Wang and Rico Sennrich. 2020. On exposure bias, hallucination and domain shift in neural machine translation (https://doi.org/10.18653/v1/2020.acl-main.326). In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 3544–3552, Online. Association for Computational Linguistics. our card
  71. Xinyi Wang, Hieu Pham, Pengcheng Yin, and Graham Neubig. 2018. A tree-based decoder for neural machine translation. arXiv preprint arXiv:1808.09374. OpenAlex ↗ · Scholar ↗
  72. Yau-Shian Wang, Hung yi Lee, and Yun-Nung Chen. 2019. Tree transformer: Integrating tree structures into self-attention. In EMNLP/IJCNLP. our card
  73. Sean Welleck, Peter West, Jize Cao, and Yejin Choi. 2021. Symbolic brittleness in sequence models: on systematic generalization in symbolic mathematics. arXiv preprint arXiv:2109.13986. OpenAlex ↗ · Scholar ↗
  74. J. Wieting, Taylor Berg-Kirkpatrick, Kevin Gimpel, and Graham Neubig. 2019. Beyond bleu: Training neural machine translation with semantic similarity. In ACL. our card
  75. Ethan Wilcox, Peng Qian, Richard Futrell, Ryosuke Kohita, Roger Levy, and Miguel Ballesteros. 2020. Structural supervision improves few-shot learning and syntactic generalization in neural language models. arXiv preprint arXiv:2010.05725. OpenAlex ↗ · Scholar ↗
  76. Shuangzhi Wu, Dongdong Zhang, Nan Yang, Mu Li, and Ming Zhou. 2017. Sequence-to-dependency neural machine translation. In Proc. of ACL. OpenAlex ↗ · Scholar ↗
  77. Yingce Xia, Fei Tian, Lijun Wu, Jianxin Lin, T. Qin, N. Yu, and T. Liu. 2017. Deliberation networks: Sequence generation beyond one-pass decoding. In NIPS. OpenAlex ↗ · Scholar ↗
  78. Asaf Yehudai, Leshem Choshen, Lior Fox, and Omri Abend. 2022. Reinforcement learning with large action spaces for neural machine translation. In COLING. OpenAlex ↗ · Scholar ↗
  79. Meishan Zhang, Zhenghua Li, Guohong Fu, and Min Zhang. 2019. Syntax-enhanced neural machine translation with syntax-aware word representations (https://doi.org/10.18653/v1/N19-1118). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 1151–1161, Minneapolis, Minnesota. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  80. Xiangwen Zhang, Jinsong Su, Yue Qin, Y. Liu, R. Ji, and Hongji Wang. 2018. Asynchronous bidirectional decoding for neural machine translation. ArXiv, abs/1801.05122. OpenAlex ↗ · Scholar ↗
  81. Chunting Zhou, Xuezhe Ma, Junjie Hu, and Graham Neubig. 2019a. Handling syntactic divergence in low-resource machine translation. In Proc. of EMNLP-IJCNLP, pages 1388–1394. our card
  82. Long Zhou, Jiajun Zhang, and Chengqing Zong. 2019b. Synchronous bidirectional neural machine translation. Transactions of the Association for Computational Linguistics, 7:91–105. OpenAlex ↗ · Scholar ↗