Transition-Based Syntactic Linearization

Yijia Liu, Yue Zhang, Wanxiang Che, Bing Qin

Syntactic linearization is the dual task of generating a fluent sentence from an unordered "bag of words" while simultaneously constructing its underlying dependency structure. Traditional approaches often rely on best-first search methods that, while accurate for short sequences, suffer from exponential search spaces and significant performance degradation on longer sentences. This paper introduces a transition-based algorithm that achieves a 10x speedup and superior accuracy by adapting incremental parsing techniques.

The Linearization Problem

In Natural Language Generation (NLG), linearization involves finding the optimal permutation of $n$ words. Given that a bag of $n$ words has $n!$ possible orderings, the search space is vast. Syntax-based linearization attempts to mitigate this by building a dependency tree alongside the word sequence, using syntactic constraints to prune invalid permutations. However, standard bottom-up best-first search is NP-hard and often fails to produce complete sentences for large inputs, leading to "brevity" issues where the system outputs only partial fragments.

Example of a dependency tree used in syntactic linearization.

Transition-Based Methodology

The authors propose a transition system inspired by the "arc-standard" algorithm common in dependency parsing. Unlike standard parsing where the buffer is an ordered sequence, this system treats the buffer as an unordered multiset.

Modified Transition System

The system utilizes three primary actions to navigate the state space:

  • SHIFT: Selects a word from the unordered bag, assigns a Part-of-Speech (POS) tag, and pushes it onto the stack. This action effectively determines the word order.
  • LEFT-ARC / RIGHT-ARC: Establishes a head-modifier relationship between the top two elements on the stack.
Transition rules for the proposed linearization system, defining the logic for SHIFT, LEFTARC, and RIGHTARC operations.

By performing exactly $2n$ transitions for a sentence of length $n$, the algorithm ensures a quadratic time complexity of $O(n^2)$. To maintain high accuracy, the system employs beam search to track the $k$-best partial hypotheses.

Key Results and Performance

The transition-based approach was evaluated on the Penn Treebank (PTB) dataset, demonstrating significant improvements over the best-first baseline (Z13) across several metrics:

  • Efficiency: The system is dramatically faster, achieving up to a 200x speedup in specific configurations. On the development set, it averaged 22ms per sentence compared to the baseline's 4218ms.
  • Accuracy: In unconstrained "free word ordering" tasks, the system achieved a BLEU score of 49.4 (vs. 44.7 for the baseline). When provided with gold-standard tree constraints, accuracy rose to 82.3 BLEU.
  • Robustness: Unlike best-first search, which often "gives up" on long sentences and produces short fragments, the transition-based system maintains a brevity score of 1.0, ensuring full-length sentence generation regardless of input size.

Conclusion

By reframing linearization as an incremental transition-based task, the authors provide a computationally efficient and robust alternative to traditional search methods. The integration of syntactic construction as a pruning mechanism allows the system to navigate the $n!$ search space effectively, delivering state-of-the-art performance in both speed and fluency. Future work may involve integrating neural features or expanding the system to handle morphologically rich languages.

Summary updated

BibTeX
@inproceedings{liu2015transition,
  author = {Yijia Liu and Yue Zhang and Wanxiang Che and Bing Qin},
  title = {{Transition-Based Syntactic Linearization}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/n15-1012},
}
Figure