Neural Transition-based Syntactic Linearization

Linfeng Song, Yue Zhang, Daniel Gildea

Abstract

Sentence linearization is the task of arranging an unordered set of words into a grammatical sentence. While neural language models like LSTMs have achieved state-of-the-art results by modeling local word sequences, they often struggle with global structural coherence, especially in longer sentences. This paper introduces a transition-based framework that explicitly incorporates syntactic dependency information to guide the linearization process. By combining a feed-forward neural network with a transition system, the authors demonstrate that syntactic guidance significantly improves performance, outperforming standard LSTM baselines by up to 11 BLEU points.

1. Introduction

Linearization serves as a critical component in Natural Language Generation (NLG) pipelines, such as dialogue systems and machine translation. The primary challenge is the search space: a sentence of $n$ words has $n!$ possible permutations. Traditional statistical models relied on hand-crafted features, while recent neural approaches have favored LSTMs. However, LSTMs primarily capture local context and often fail to maintain global coherence over long distances. This research investigates whether explicit syntactic structure can provide the necessary "global compass" to improve neural linearization.

2. Methodology

The authors adapt a transition-based framework, commonly used in dependency parsing, for the task of linearization.

2.1 The Transition System

The system maintains a state consisting of a stack ($\sigma$) for partially built dependency trees, an unordered set ($\rho$) of remaining words, and a set of arcs ($A$) representing syntactic relationships. At each step, the model selects from a set of actions including SHIFT-w (moving a word to the stack), POS-p (assigning a Part-of-Speech tag), LEFTARC / RIGHTARC (establishing dependency links), and END.

2.2 The Neural Architecture

The decision engine is a feed-forward neural network. It takes embeddings of the current words, POS tags, and arc labels on the stack as input to predict the probability of the next transition action.

Feed-forward neural network architecture for transition-based linearization.

2.3 LSTM Integration

The syntactic model is further enhanced by integrating it with a standard LSTM language model. The most effective method, "SYN $\times$ LSTM," involves feeding the LSTM's hidden state into the transition-based model as an additional feature, combining local fluency with global structural guidance.

3. Evaluation and Results

Models were evaluated on the Penn Treebank (WSJ sections) using gold-standard dependency trees.

3.1 Performance Metrics

In greedy search, the base syntactic model (SYN) achieved 20.97 BLEU, significantly higher than the LSTM baseline of 14.01 BLEU. The integrated SYN $\times$ LSTM model reached 24.91 BLEU. Even with large-scale beam search (512), the integrated model maintained a lead over the pure LSTM (37.99 vs 37.08 BLEU).

3.2 Impact of Sentence Length

A key finding is the robustness of the syntactic approach to sentence length. While LSTM performance degrades sharply as sentences grow longer, the transition-based model remains relatively stable, providing a game-changing advantage for sentences longer than 35 words.

BLEU score performance across varying sentence lengths.

4. Discussion and Insights

The results suggest that syntax acts as a vital guide for global structure, ensuring that distant dependencies (like a subject and its verb) are correctly handled. Interestingly, a "light" version of the model excluding POS tags and arc labels still performed well, suggesting the transition-based process itself provides substantial structural benefits. Furthermore, the model proved robust when trained on automatically parsed "noisy" data, indicating its practical utility in real-world applications where perfect trees are unavailable.

5. Conclusion and Future Work

Explicit syntactic information is a powerful tool for neural linearization. Future research may explore more sophisticated input encodings, such as Transformers or Graph Neural Networks, to better capture initial word relationships before the ordering process begins, or use LSTMs to model the sequence of actions themselves.

Summary updated

BibTeX
@inproceedings{song2018neural,
  author = {Linfeng Song and Yue Zhang and Daniel Gildea},
  title = {{Neural Transition-based Syntactic Linearization}},
  booktitle = {INLG},
  year = {2018},
  doi = {10.18653/v1/w18-6553},
}
Figure