Non-Monotonic Sequential Text Generation

Sean Welleck, Kianté Brantley, Hal Daumé Iii, Kyunghyun Cho

Introduction

Traditional autoregressive language models operate on a strict "one-way street," generating tokens sequentially from left to right. While effective, this monotonic approach is a constraint not shared by human cognition, where we often establish a core concept before filling in peripheral details. This paper introduces a novel framework for non-monotonic text generation, allowing models to learn their own generation order by recursively constructing a binary tree. By prioritizing "easy" or high-confidence words first, the model achieves competitive performance in machine translation and superior results in word reordering tasks.

Methodology: Generation as Tree Construction

The core innovation lies in treating sentence generation as the recursive construction of a binary tree. Instead of predicting the next word in a sequence, the model selects a word from the target vocabulary to serve as the root of a subtree.

  1. Root Selection: The model picks a word to be the root of the current segment.
  2. Recursive Partitioning: All words appearing to the left of the chosen word in the final sentence are assigned to the left subtree; words to the right are assigned to the right subtree.
  3. Termination: This process continues recursively until an <end> token is generated, signaling the completion of a branch.
Figure 1: An example of a non-monotonic generation tree for the phrase "how are you?". The green numbers indicate the order of generation, while blue numbers indicate final sentence positions.

Training via Annealed Coaching

A significant challenge in non-monotonic generation is that the "optimal" tree structure is unknown. To address this, the authors employ imitation learning with Annealed Coaching. Initially, a Uniform Oracle treats all valid words in a sentence as equally good candidates, encouraging broad exploration of possible generation orders. As training progresses, the strategy shifts toward Coaching, where the oracle favors words that the model itself prefers, provided they are valid. This annealing process allows the model to converge on a stable, self-discovered generation strategy.

Key Insights and Results

The researchers evaluated the framework on the Persona-Chat dialogue dataset and the IWSLT’16 German-to-English translation benchmark.

The "Easy-First" Strategy

A qualitative analysis of the learned generation orders reveals that the model naturally adopts an "easy-first" strategy. When using the annealed oracle, the model tends to place high-frequency "anchors"—such as punctuation or pronouns—at the root of the tree, where confidence is highest. More complex nouns and verbs are then filled in deeper within the tree structure.

Figure 4: Comparison of samples generated using different strategies. The annealed model produces more balanced trees and diverse, novel sentences compared to the strict left-to-right baseline.

Performance Metrics

  • Word Reordering: The non-monotonic approach significantly outperformed left-to-right baselines. On Persona-Chat, the annealed model achieved an F1 score of 0.960, compared to 0.910 for the monotonic model.
  • Machine Translation: While the left-to-right model maintained a slight lead in BLEU score (32.30 vs. 29.10), the non-monotonic model was highly competitive on semantic metrics like Meteor (31.00 vs. 31.96) and YiSi.
  • Novelty and Infilling: The model demonstrated a remarkable ability to generate novel sentences (93.1% vs. 17.8% for the baseline) and natively supports "infilling" tasks, where it can complete a sentence given a few seed words at specific positions.

Conclusion and Future Directions

This work demonstrates that fixed-order generation is not a requirement for high-quality text synthesis. By allowing models to discover their own generation paths, we can achieve greater diversity and flexibility. Future work may explore $n$-ary trees to capture more complex dependencies or relax the "projective constraint" that currently limits the variety of possible tree structures.

Summary updated

BibTeX
@inproceedings{welleck2019non,
  author = {Sean Welleck and Kianté Brantley and Hal Daumé III and Kyunghyun Cho},
  title = {{Non-Monotonic Sequential Text Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure