Title: DISCRETE STRUCTURAL PLANNING FOR GENERATING DIVERSE TRANSLATIONS

Abstract: Planning is important for humans when producing complex languages, which is a missing part in current language generation models. In this work, we add a planning phase in neural machine translation to control the global sentence structure ahead of translation. Our approach learns discrete structural representations to encode syntactic information of target sentences. During translation, we can either let beam search to choose the structural codes automatically or specify the codes manually. The word generation is then conditioned on the selected discrete codes. Experiments show that the translation performance remains intact by learning the codes to capture pure structural variations. Through structural planning, we are able to control the global sentence structure by manipulating the codes. By evaluating with a proposed structural diversity metric, we found that the sentences sampled using different codes have much higher diversity scores. In qualitative analysis, we demonstrate that the sampled paraphrase translations have drastically different structures.

1. INTRODUCTION:

When humans speak, a planning phase exists when we want to say in a particular structure or style. Linguists have found particular speech errors or behaviors that indicate that speakers are sometimes planning ahead although they may not notice it (Redford, 2015) . This planning phase is considered important both at the sentence and discourse levels. For example, we may decide to use the "In order to ..., he ..., because ..." structure before telling a long story. Therefore, it is meaningful to explore the benefits for a neural language generation model to have a such a planning phase.

In this work, we are interested in letting the model plan the sentence structure before producing words. If this can be done, then we may be able to select a structure beforehand, or obtain multiple sentences with diverse structures. Such features are useful for language generation tasks such as machine translation, as users may desire to know how a sentence can be translated with different structures. Therefore, we focus on machine translation task when developing our models.

In contrast to human, a neural machine translation (NMT) model does not have a planning phase when it is asked to generate a sentence. One can argue that the planning is performed in the hidden layers. However, as a source sentence can have multiple valid translations with different structures. When we use the cross-entropy loss to train the model, it has to assign probabilities to all possible translations with different structures. Therefore, the structural information remains probabilistic but not deterministic in the neural network. In other words, the model is unaware of the "big picture" of the output sentence before translation. Consequently, we can not control the sentence structure beforehand.

To obtain diverse sentences, conventional NMT models allow one to sample translations from the Nbest list produced by beam search, but the sampled translation results usually share similar syntactic structures.

One naive approach to explicitly control the output structure is to prefix translations with their structural (e.g., part-of-speech) tags. In this case, the NMT model has to predict the tags before generating words according to these tags. Thus, we can obtain structural diverse translations by using different tags. This approach is referred to as tag planning. In our experiments, we found this approach results in significant degradation in translation quality because errors in the planning phase directly Figure 1 : Proposed approach for planning a sentence structure with discrete codes. A target sentence is parsed to obtain its structural tags. Then, based on the tags and source sentence, the coding model produces multiple codes containing information about the structural choice. Finally, an NMT model is trained based on the source and target sentences with the structural codes as prefixes.

affect the correctness of the translation. To overcome this problem, we propose learning a discrete structural representation (i.e., discrete codes) that capture structural variations without negatively affecting the translation quality.

Fig. 1 shows our proposed two-phase approach for training the NMT model. In the first phase, we parse target sentences to obtain their structural tags. In this work, we use simplified POS tags to represent the coarse structure of a sentence. Next, we design a coding model that encodes information about the structural variations into discrete codes. In the second phase, we prefix each target sentence in the training data with the structural codes produced by the coding model. As shown in Fig. 1 , we use a special token " eoc " to denote the end of the codes. Finally, we train an NMT model on the enhanced dataset; the model architecture does not require any modification.

To maintain translation performance, our coding model eliminates partial information from the structural tags that is unambiguous when the source sentence is given. For example, for the Spanish sentence shown in Fig. 1 , it is unambiguous that the translation will contain a noun, a pronoun, and a verb. Such obvious information does not require planning, and the translation quality may be impacted seriously if it is predicted wrongly. In this example, the structural choice between "he is hired by our company" or "our company hired him" is ambiguous. In this work, the coding model is designed to capture only the ambiguous part of the sentence structure when the source sentence is known. We call this approach discrete planning, as the planning component is actually the artificially created discrete codes.

Please note that the planning component can also be a continuous latent vector, which requires a discriminator to train the model in order that the latent captures disentangled structural information. However, such a discriminator is difficult to implement. A detailed discussion is given in related work. Our approach of learning discrete structural representation has the advantage of simplicity, and no modification to the NMT model is required.

The contributions of this work can be summarized as follows:

1. We propose a novel approach to plan the sentence structure with a discrete structural representation. By carefully learning the discrete codes to capture pure structural variation, the translation quality remains intact.

2. We are able to obtain drastically different translations by manipulating the codes. To qualitatively evaluate the diversity, we propose a structural diversity metric. The evaluation results show that our approach is capable of producing sentences with highly diverse structures.

2. LEARNING STRUCTURAL CODES:

This section discusses the motivation and methodology for learning discrete structural codes. First, we describe a naive approach that extracts the global sentence structure from part-of-speech (POS) tags. Then, we describe a coding model that learns discrete structural codes and the advantages of doing so. 

S 1 S 2 S 3 S 4 C h1 C h 0 S 1 S 2 S 3 S 4 S 1 S 2 S 3 
 X 1 X 2 X 3 s 1 +

2.1. EXTRACTING GLOBAL SENTENCE STRUCTURES:

To plan the structures of translations, we need to obtain the structural representation of a sentence. However, it is extremely difficult for a neural network to automatically realize and extract the sentence structure. Therefore, we consider utilizing the results of POS tagging or syntactic parsing. However, most parsing results including POS tags contain detailed structural information, which is not desirable. For example, "destroy" and "break down" are interchangeable, but they have different POS tags. Such minor differences do not affect the global structure of a sentence. Therefore, we need a structural representation that captures the sentence structure at a coarse level.

In this work, we extract such a global sentence structure through a simple two-step process that simplifies the POS tags:

1. Remove all tags other than "N", "V", "PRP", "," and ".". Note that all tags begin with "N" (e.g. NNS) are mapped to "N", and tags begin with "V" (e.g. VBD) are mapped to "V".

2. Remove duplicated consecutive tags.

The following list gives an example of the process:

Input: He found a fox behind the wall. POS Tags: PRP VBD DT NN IN DT NN .

Step 1: PRP V N N .

Step 2: PRP V N .

It should be noted that other parse results can also be potentially useful to represent the global structure; this is left for future works to explore. In our experiments, we found simplified POS tags to be effective and convenient for implementation.

2.2. CODE LEARNING:

Although we can directly condition the word prediction using the structural tags, we found that errors during structural prediction significantly degraded the translation performance. To mitigate their impact, we propose learning a set of discrete codes that capture only the ambiguous structural choice when the source sentence is given.

Code Encoder Given the sentence pair (X, Y ), let the structural tags of the target sentence be S 1 , ..., S T , the encoder computes the logits of N softmax vectors:

EQUATION

EQUATION

where the tag sequence S 1 , ..., S T is firstly encoded using a backward LSTM (Hochreiter & Schmidhuber, 1997 ). E(•) denotes an embedding function, and f (•) denotes a linear transformation. Then, we compute a set of continuous vectors C1 , ..., CN , which are latterly discretized into approximated one-hot vectors C 1 , ..., C N using Gumbel-Softmax reprarameterization trick (Jang et al., 2016; Mad-dison et al., 2016) as:

C i = g(S, ; φ) i (3) = softmax τ (log Ci + gumbel( )) . (4)

Here, τ is the temperature of the softmax. The computation of Gumbel-softmax relies on the Gumbel noise, which is defined as gumbel( ) = -log(-log( )). As both Ci and are vectors in Eq. 4, the log(•) here is an element-wise operation. The random variable is sampled from a uniform distribution U(0, 1). In Eq. 3, g(S, ; φ) represents the encoder function, which is used to produce the codes once its parameter φ is trained.

Decoder In the decoder, we combine the information from X and C to initialize a decoder LSTM that sequentially predicts the structural tags S 1 , ..., S T :

EQUATION

where [C 1 , ..., C N ] is a concatenation of N Gumbel-softmax code vectors. Note that only h t is computed with a forward LSTM. Finally, we predict the probability of emitting each tag S t with

EQUATION

)

Loss Function The architecture of the code learning model is depicted in Fig. 2 , which can be seen as a sequence auto-encoder with an extra context input X to the decoder. The loss function for optimizing the entire model has the following form given one training pair:

EQUATION

= E ∼U(0,1)

EQUATION

The codes are limited to have only a few bits of information capacity in our experiments. In order to minimize the loss function, the codes produced by the encoder g(•) has to capture the structural information contained in S that cannot be inferred by X.

2.3. NMT WITH STRUCTURAL PLANNING:

Once the coding model is trained, the Gumbel-softmax code vectors C 1 , ..., C N shall be very close to one-hot vectors. We can extract N discrete codes by applying argmax on the softmax vectors, and prefix the target sentences in the training data with the codes, resulting in (X, C; Y ) pairs. We connect the codes and target sentences with a " eoc " token.

To evaluate the performance of structural planning with discrete codes, we train a regular NMT model with the modified dataset. The codes are removed from the translation results after decoding. Similarly, we can evaluate the tag planning model using (X, S; Y ) pairs.

3. RELATED WORK:

Our work learns a discrete representation of structure and leverages it obtain diverse translations, which is related to topics including style transfer and diverse language generation. Though differing in purpose, our approach is also related to NMT models with syntactic constraint.

Style Transfer for Natural Language As our task learns the structural representation, the problem setting is closely related to style transfer for language generation tasks. The main difference between our task and previous works in style transfer is in the objectives. In the aforementioned works, the styles have finite categories. For example, the label for sentiment style can only be "positive" or "negative". In our task setting, the objective is to learn a representation that captures the global sentence structure, which has infinite variations.

Theoretically, we can still train a variational auto-encoder (VAE) that learns a categorical latent code or a continuous latent variable with a Gaussian prior to capture the structure. We can extend the VAE model described in Hu et al. (2017) with an enhanced discriminator q D (c|x) to map the global structure of a sentence x to the space of a latent variable c, and ensure that sentences with similar structures are mapped to same or close latent representations. However, as the structural information is highly entangled with the utterances, such a discriminator is fairly difficult to implement. Existing works on language generation care about using creative vocabulary. Both Li et al. (2016) and Xu et al. ( 2018) measure the diversity with corpus-level metrics. The former work evaluates the number of unique n-grams in the generated text, whereas the latter one measures the divergence of word distributions produced by different style-specific decoders. Our approach differs from these works by putting the focus on improving the structural diversity instead of choice of word.

Diverse Language Generation:

NMT with Syntactic Constraint To our knowledge, there are no existing works control the sentence structure ahead of translation. However, our approach is related to NMT models under syntactic constraint. Stahlberg et al. (2016) syntactically guides the NMT decoding using the lattice produced by Hiero, a statistical machine translation system allowing hierarchical phrase structure. Eriguchi et al. (2017) parse a dependency tree and combine the parsing loss with the original loss, which improves the syntactic trace of translations in a soft way.

Similar to our approach, the following works also enhance the target sentence with extra structural tags. 

4. EXPERIMENTS:



4.1. EXPERIMENTAL SETTINGS:

We evaluate our models on two machine translation datasets: IWSLT14 German-to-English dataset (Cettolo et al., 2014) and ASPEC Japanese-to-English dataset (Nakazawa et al., 2016) . These datasets contain 178K and 3M bilingual pairs, respectively. For the IWSLT14 De-En dataset, we apply the Moses toolkit (Koehn et al., 2007) to tokenize both sides of the corpus. For the ASPEC Ja-En dataset, we use the Moses toolkit to tokenize the English side and Kytea (Neubig et al., 2011) to tokenize the Japanese side.

After tokenization, we apply byte-pair encoding (Sennrich et al., 2016) to segment the texts into subwords, forcing the vocabulary size of each language to be 20K and 40K for the IWSLT dataset and ASPEC dataset, respectively.

For evaluation, we report tokenized BLEU with Moses script. We concatenate all five TED/TEDx development and test corpora to form a test set containing 6750 pairs in the IWSLT14 dataset. For the ASPEC dataset, as we truecase the English texts in the preprocessing phase, we detruecase the results before evaluating the scores. For planning models, we remove the structural codes (or tags) from the results before executing the evaluation script.

4.2. EVALUATION OF CODING MODEL:

Training Details: In the coding model, all hidden layers have 256 hidden units. The model is trained using Nesterov's accelerated gradient (NAG) (Nesterov, 1983) for a maximum of 50 epochs with a learning rate of 0.25. The parameters with the lowest validation loss are selected for evaluation. During training, the temperature τ in the Gumbel-Softmax is fixed to 1.0. We also tried to anneal the Softmax temperature; however, this did not result in any performance improvement.

When training the coding model, we test different settings of code length N and the number of code types K. Following the code setting, the coding model will learn N Gumbel-Softmax vectors, each having a size of K. In this case, the information capacity of the codes will be N log K bits.

Evaluation Results: We evaluate the code quality from two aspects. First, we measure the reconstruction accuracy that indicates how accurately we can recover the original tag sequence from the codes. Second, to determine the difficulty of predicting the correct codes given the input sentence, we add an extra Softmax layer after the last hidden vector of the X encoder to predict the generated codes. Although the additional Softmax layer is trained simultaneously with the coding model, we disconnect the backpropagation path to ensure that the code prediction loss does not affect other components.

code For each code setting, we report the accuracy of recovering the structural tag sequence using the codes (tag accuracy), and the accuracy of predicting the codes using the source sentence (code accuracy).

Table 1 shows the evaluation results for different code settings. We can see a clear trade-off between the reconstruction accuracy and code prediction accuracy, especially on IWSLT14 dataset. When the code has more capacity, it can recover structural tags more accurately; however, this results in lower predictability.

Generally, we want the codes to contain more accurate information about the sentence structure. However, the translation quality may be negatively impacted if it is too difficult for the NMT model to guess a good code. Therefore, we choose the code settings N = 1, K = 4 and N = 2, K = 4 for the following experiments as these provide a balanced trade-off.

4.3. EVALUATION OF NMT MODELS:

Model Architecture: To create a strong NMT baseline, we use two layers of bidirectional LSTM encoders with two layers of LSTM decoders in the NMT model. The hidden layers have 256 units for the IWSLT De-En task and 1000 units for the ASPEC Ja-En task. All parameters are initialized using the Xavier method (cite). We apply Key-Value Attention (Miller et al., 2016) to the first decoder layer, and we use residual connection (He et al., 2016) to combine the hidden states in two decoder layers. Dropout is applied everywhere outside of the recurrent function with a drop rate of 0.2 . Before the final Softmax layer, we insert another full-connected layer that has 600 hidden units. Training Details: To train the NMT models, we also use the NAG optimizer with an initial learning rate of 0.25, and it is annealed by a factor of 10 if no improvement of loss value is observed in 20K iterations. One batch contains 128 sentence pairs, and the computation is distributed to eight GPUs.

The best parameters are chosen on a validation set.

Note that all evaluated models share the same architecture, and they only differ in terms of the target side of training data. For the tag planning model and discrete planning model, the target sentences are prefixed by tags and codes, respectively.

Evaluation Results: Table 2 shows the resultant BLEU scores of different models, which indicates that our proposed planning approach does not degrade the translation performance in both translation tasks. In contrast, when we use the structural tags to directly control the sentence structure, a significant drop in BLEU scores is observed. Such a negative impact on translation quality is undesirable for structural planning.

In both De-En and Ja-En tasks, we can also observe a minor increase in performance over the strong baseline when using beam search (BS > 1). The improvement may result from being able to simultaneously explore drastically different candidates. A recent study (Li et al., 2016 ) also showed that beam search performance can be improved by increasing the diversity of candidates.

When we compare the resultant translation performance of different code settings, we found the translation scores are not worsen when using a longer code sequence (N = 2), comparing to planning with only one code (N = 1). This is benefited by avoiding encoding predictable structural information when learning the codes, thereby minimizing the influence of code prediction errors. 52.10 45.42

4.4. EVALUATION:

Table 3 : Evaluation of discrepancy scores (DP) for the baseline model and the discrete planning approach. We also report the discrepancy scores of the part-of-speech tags of candidates (POS-DP).

In our approach, the codes are learned to determine the target structure together with the input. A single code is not guaranteed to be aligned to a specific style. Therefore, we can not evaluate the diversity with the divergence between word distributions as Xu et al. ( 2018) does. In order to qualitatively evaluate the diversity of generated translations, we propose to use a simple BLEU Input damit sind wir zu viele . (German)

BS 1 so we're too many .

2 so we are too many . 3 that's where we are too many .

PL 1 <c4> <c1> <eoc> we're too many of them . 2 <c1> <c1> <eoc> that's where we are too many .

3 <c3> <c1> <eoc> so , we're too many .

Input AP NO KATEI NI TSUITE NOBETA . (Japanese) BS 1 process of the AP is described . 2 a process of AP is described .

3 reaction of AP is described .

PL 1 <c3> <c2> <eoc> the process of AP is described .

2 <c1> <c2> <eoc> this paper describes the process of AP .

3 <c4> <c2> <eoc> here was described on process of AP . 

EQUATION

where ∆(y, y ) computes the BLEU score of two candidates. The equation computes the mean value of 1 -BLEU between all candidate pairs. We get a high discrepancy score when all candidates are very different from each other. As Eq. 11 evaluates for one data point, we further average the discrepancy scores over the test dataset.

In order to see the structural diversity, we further propose a POS-DP metric, in which ∆(y, y ) computes the BLEU scores using the POS tags of two candidates. Therefore, lexical diversity is completely omitted in the scores. The POS-DP metric is expected to reflect the structural diversity.

We report the discrepancy scores in Table 3 . We first apply beam search on the baseline model with a beam size of 4 to obtain four candidate translations for each input, and then measure the baseline discrepancy scores. Then we sample candidate sentences from a discrete planning model trained with a code setting N = 1, K = 4. As there are only four possible codes, we sample four translations, each conditioned on a unique code. Then we measure the mean discrepancy on the sampled translations.

We can see that the proposed method achieves higher discrepancy scores, which means that the candidate translations are less similar to each other. A larger gap in diversity is observed when evaluating with the POS-DP metric. It indicates that the proposed method creates more diversity in sentence structures.

5. QUALITATIVE ANALYSIS:



5.1. SAMPLING TRANSLATIONS WITH HIGH DIVERSITY:

Instead of letting the beam search to decide the best structural codes, we can also choose the codes manually. Specifically, we use beam search to obtain three code sequences with highest scores. Then for each code, we sample the translation result conditioned on it. Table 4 gives some samples of the candidate translations produced by the model when conditioning on different structural codes, compared to the candidates produced by beam search.

We can see that in both tasks, the candidate translations produced by beam search algorithm has only minor difference in grammatical structure. In contrast, the translation results sampled with discrete

Input KAIHATSU JOUKYOU WO SHOUKAI SHI TA . (Japanese) Condition 1 the features of this program are explained .

Result 1 the development situation is introduced . Condition 2 they explained features of this program .

Result 2 they introduced the development situation . Condition 3 this paper explains the features of this program .

Result 3 this paper introduces the development situation .

Table 5 : Constraining structures of translations with condition sentences planning have drastically different structures. We can observe the diversity more significantly in Japanese-English task because the word order of translations is less relevant to source sentences in this task. We can also notice that as a result of learning from structural tags, the discrete codes control the sentence structure rather than the choice of word.

The results in Table 4 show that the proposed method can be useful for sampling paraphrased translations with high diversity. Such property can also benefit other language generation tasks such as conversation generation.

5.2. TRANSLATING UNDER STRUCTURAL CONSTRAINT:

Sometimes, we want the NMT model to generate a translation with a specific sentence structure. However, after we encode the structural information into discrete codes, it is difficult to clearly tell what sentence structure a specific code sequence indicates. This problem can be overcome by encoding a known sentence into codes in the hope that the NMT model can generate a translation with a similar structure when conditioned on the codes.

Table 5 shows some results obtained when using a known sentence to constrain the structure of translation in the Japanese-English translation task. The translation results are sampled using the discrete codes extracted from the conditional sentences. Each translation shows a global sentence structure similar to the condition sentence, although they have different utterances and local structures. The results confirm that our coding model captures the variations among different structures.

6. CONCLUSION:

In this paper, we add a planning phase to neural machine translation, which plans the global sentence structure before decoding words. The structural planning is achieved by using some discrete codes to control the structure of output sentences. The discrete codes are learned to capture the structural variation of a translation. We prefix all target sentences in the corpus and use the enhanced training data to train an NMT model. During translation, the model first generates the codes, then output the words conditioned on the structural constraint imposed by the codes.

To learn the codes, we design an end-to-end neural network with a discretization bottleneck to encode the information of structural tags into some one-hot vectors. Experiments show that the proposed method can avoid degrading the translation performance. We also confirm the effect of the structural codes, by being able to sample translations with drastically different structures using different codes. We can also constrain the structure of a translation by using the codes extracted from a known sentence.

Our approach can be used in other language generation tasks, such as conversation modeling. Also, the discrete coding model can be extended to learn discrete representations of other factors of sentences. For example, one can learn the discrete codes to capture the logical order of a paragraph. In this case, the results of discourse parsing can be used instead of structural tags. By manipulating the codes in the planning phase, we may control the logical flow of the output sentences. In Fig. 3 , we report the distribution of the structural codes learned for all target sentences in both tasks. In each plot, the Y-axis indicates the total number of sentences that correspond to a specific structural code. In general, the coding model is able to distribute available discrete codes to different sentences in the training data. However, we can still observe that four codes in IWSLT14 and one code in ASPEC task are not assigned to any sentence. Thus, there is room for further improving the coding model to exploit the full capacity of the codes, such as using an improved discretization method (Kaiser et al., 2018) .

:



Figures and Tables:

Figure 2: Architecture of code learning model. Discretization bottleneck is indicated by dashed lines.

Hu et al. (2017) simultaneously learns a disentangled representation along with entangled representations within the same latent vector. The disentangled representation is trained with a style-specific discriminator. Shen et al. (2017) learns a cross-aligned auto encoder to tackle the style transfer problem without parallel text data. Prabhumoye et al. (2018) utilizes back-translation to create a style agnostic representation of sentence. Then multiple style transfer decoders is trained to generate sentences in specific styles according to the latent representation. The parameters are optimized with style classifiers using adversarial loss.

Figure 3: Visualization of code distribution in IWSLT14 De-En task and ASPEC Ja-En task

As generating diverse text has its application in tasks such as conversation generation, several existing works are presented to improve the diversity of language generation. Similar toHu et al. (2017),Dai et al. (2017) generates diverse image captions with a conditional GAN, whereasJain et al. (2017) generates diverse questions with a VAE. Some creative approaches are also proposed on this topic.Li et al. (2016) improves the diversity of generation by modifying the scoring function in beam search. A hyperparameter that controls the diversity is optimized by reinforcement learning. Xu et al. (2018) learns K shared decoders, each is conditioned on a trainable pattern embedding. In each iteration, only the decoder with lowest cross-entropy receives training signal.

Table content: <table/>

Nadejde et al. (2017) interleaves CCG supertags with normal output words in the target side. Instead of predicting words,Aharoni & Goldberg (2017) trains an NMT model to generate linearized constituent parse trees.Wu et al. (2017)  proposed a model to generate words and parse actions simultaneously. The word prediction and action prediction are conditioned on each other. These works focus on improving the syntactic correctness, whereas our work focuses on structural diversity.

Table content: <table/>

A comparison of different code settings on IWSLT14 De-En and ASPEC Ja-En datset.

Table content: <table><tr><td colspan="2">setting capacity</td><td colspan="4">IWSLT14 De-En tag accuracy code accuracy tag accuracy code accuracy ASPEC Ja-En</td></tr><tr><td>N=1, K=4</td><td>2 bits</td><td>27%</td><td>63%</td><td>35%</td><td>40%</td></tr><tr><td>N=2, K=2</td><td>2 bits</td><td>23%</td><td>67%</td><td>27%</td><td>55%</td></tr><tr><td>N=2, K=4</td><td>4 bits</td><td>35%</td><td>41%</td><td>58%</td><td>25%</td></tr><tr><td>N=4, K=2</td><td>4 bits</td><td>22%</td><td>44%</td><td>18%</td><td>79%</td></tr><tr><td>N=4, K=4</td><td>8 bits</td><td>44%</td><td>27%</td><td>14%</td><td>58%</td></tr></table>

Performance evaluation for NMT models trained with different approaches. The BLEU scores are reported for various beam sizes (BS).

Table content: <table><tr><td>Dataset</td><td>Model</td><td colspan="2">BLEU(%) BS=1 BS=3 BS=5 BS=10</td></tr><tr><td/><td>baseline NMT</td><td>27.90 29.26 29.52</td><td>29.34</td></tr><tr><td>IWSLT14 De-En</td><td colspan="2">tag planning discrete plan (N=1, K=4) 28.02 29.23 29.51 19.62 20.44 20.55</td><td>20.66 29.60</td></tr><tr><td/><td colspan="2">discrete plan (N=2, K=4) 28.35 29.59 29.78</td><td>29.83</td></tr><tr><td/><td>baseline NMT</td><td>23.92 25.08 25.26</td><td>25.48</td></tr><tr><td>ASPEC Ja-En</td><td colspan="2">tag planning discrete plan (N=1, K=4) 23.42 25.29 25.32 17.55 18.54 18.73</td><td>19.02 25.59</td></tr><tr><td/><td colspan="2">discrete plan (N=2, K=4) 22.79 25.53 25.69</td><td>25.88</td></tr></table>

A comparison of translation candidates produced by beam search (BS) and discrete planning (PL) in IWSLT14 De-En and ASPEC Ja-En task discrepancy metric. Suppose Y is a list of candidate translations, we compute the discrepancy with

Table content: <table/>

Melissa A Redford. The handbook of speech production. pp.420-423, 2015.   Rico Sennrich, Barry Haddow, and  Alexandra Birch. Neural machine translation of rare words with subword units. CoRR, abs/1508.07909, 2016. Tianxiao Shen, Tao Lei, Regina Barzilay, and Tommi S. Jaakkola. Style transfer from non-parallel text by cross-alignment. In NIPS, 2017. Felix Stahlberg, Eva Hasler, Aurelien Waite, and Bill Byrne. Syntactically guided neural machine translation. CoRR, abs/1605.04569, 2016. Shuangzhi Wu, Dongdong Zhang, Nan Yang, Mu Li, and Ming Zhou. Sequence-to-dependency neural machine translation. In ACL, 2017. Qiongkai Xu, Juyan Zhang, Lizhen Qu, Lexing Xie, and Richard Nock. D-page: Diverse paraphrase generation. CoRR, abs/1808.04364, 2018.

Table content: <table><tr><td colspan="8">A ANALYSIS OF CODE EFFICIENCY</td><td/><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td/><td/><td/><td/><td/><td/><td/><td/><td colspan="2">IWSLT14 De-En</td><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>20000</td><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>10000</td><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>0</td><td>c2 c3</td><td>c2 c4</td><td>c2 c1</td><td>c3 c1</td><td>c4 c1</td><td>c1 c4</td><td>c3 c2</td><td>c4 c2</td><td>c1 c2</td><td>c4 c4</td><td>c1 c3</td><td>c2 c2</td><td>c1 c1</td><td>c3 c4</td><td>c3 c3</td><td>c4 c3</td></tr><tr><td/><td/><td/><td/><td/><td/><td/><td/><td colspan="2">ASPEC Ja-En</td><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>400000</td><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>300000</td><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>200000</td><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>100000</td><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>0</td><td>c1 c1</td><td>c1 c3</td><td>c1 c2</td><td>c1 c4</td><td>c4 c2</td><td>c4 c4</td><td>c2 c2</td><td>c3 c2</td><td>c4 c1</td><td>c2 c4</td><td>c2 c3</td><td>c3 c4</td><td>c3 c3</td><td>c2 c1</td><td>c3 c1</td><td>c4 c3</td></tr></table>

Peer review (iclr2019):
 The authors propose modeling structural diversity of translations by conditioning the generation on both the source sentence and a latent encoding of the overall structure (captured by simplified part-of-speech tags). Specifically, they first train a conditional autoencoder to learn a latent code optimized towards reconstructing the tag sequence. They then prefix the inferred latent code to the target sentence before generation. A diversity metric which measures pairwise BLEU scores between beam items is also proposed. Experiments show that the latent codes lead to greater structural diversity as well as marginally improved translation results when combined with beam search. Contributions ----------------- A simple method for improving structural diversity. The use of conditional autoencoding to capture structural ambiguity, while not in itself novel, could be interesting for other problems as well. Experiments suggest that the method is rather effective (albeit only improving translation quality marginally) I like the proposed discrepancy score based on pairwise BLEU scores. Issues --------- It is not clear if teacher forcing was used in the "tag planning" setting. If gold tag sequences were used during training there is a major train/test mismatch which would explain the dramatic drop in BLEU scores. If so, this is a major issue, since the authors claim that as the motivation for the use of discrete latent codes. To make the "tag planning" setting comparable to the latent code setting, you would need to train the tag prediction model first and then condition on predicted tags when training the translation model (potentially you would need to do jack-knifing to prevent overfitting as well). It is unfortunate that there is no empirical comparison with the most closely related prior work, in particular Li et al. (2016) and Xu et al. (2018), which are both appropriately cited. As it stands it is not possible to tell which of these approaches is most useful in practice. No details are provided on the tagset used and what system is used to predict it, or to what degree of accuracy. Having a fixed number of codes regardless of sentence length seems like a major shortcoming. I would urge the authors to consider a variable coding length scheme, e.g., by generating codes autoregressively instead of with a fixed number of softmaxes. It would also be interesting to break down the numbers in table 1 with respect to sentence length. Minor issues ----------------- Citation for the Xavier method is missing. Notation is somewhat hard to follow. Please add a few sentences describing it and make sure it is consistent. There are many grammatical errors. Please make sure to proofread! "Please note that the planning component can also be a continuous latent vector, which requires a discriminator to train the model in order that the latent cap." What does this mean?