Word Ordering Without Syntax

Allen Schmaltz, Alexander M. Rush, Stuart M. Shieber · DOI · OpenReview

Abstract

Recent work on word ordering has argued that syntactic structure is important, or even required, for effectively recovering the order of a sentence. We find that, in fact, an n-gram language model with a simple heuristic gives strong results on this task. Furthermore, we show that a long short-term memory (LSTM) language model is even more effective at recovering order, with our basic model outperforming a state-of-the-art syntactic model by 11.5 BLEU points. Additional data and larger beams yield further gains, at the expense of training and search time.

Introduction

The task of linearization—reconstructing a grammatically correct sentence from a shuffled "bag of words"—is a critical benchmark for text generation. Historically, the field has operated under the assumption that recovering word order requires a model to simultaneously recover explicit syntactic structure, such as a dependency parse tree. This paper challenges that consensus, investigating whether recurrent neural networks can learn the underlying abstract structure of language purely from surface-level strings.

Methodology

The authors treat linearization as a pure language modeling problem, evaluating two surface-level approaches: a Kneser-Ney smoothed n-gram model and a Long Short-Term Memory (LSTM) network. To manage the search space of permutations, they utilize a modified beam search incorporating two key features: multiple beams to handle internal word probabilities in base noun phrases and a unigram "future cost" heuristic to estimate the likelihood of remaining unordered words.

Models were primarily trained on the Penn Treebank (PTB), with some experiments utilizing the Annotated Gigaword Corpus (GW) to expand the training set and vocabulary.

Key Results

The experimental results demonstrate that surface-level neural models significantly outperform traditional syntax-based approaches. On the WORDS+BNPS task (where base noun phrases are kept intact), the basic LSTM-64 model achieved 60.9 BLEU, outperforming the state-of-the-art ZGEN-64 syntactic model by 11.5 points. Notably, even the simpler NGRAM-64 model surpassed the syntactic baseline.

Table 1: Comparison of BLEU scores across models on the WORDS and WORDS+BNPS tasks.

Scaling the model with larger beam sizes and additional data from Gigaword further improved performance, with the LSTM-512+GW configuration reaching a peak of 65.8 BLEU.

Discussion and Insights

A major argument for syntax-based models was their presumed superiority in handling long-distance relationships. However, the authors found that LSTMs effectively capture these dependencies without explicit syntactic guidance. Analysis shows that LSTM-based models maintain higher BLEU scores across all sentence lengths and actually generate fewer long-range distortions than the syntactic baseline.

Figure 1: Top: BLEU score vs sentence length. Bottom: Frequency of token distortions by rate.

Furthermore, when the LSTM's output was processed by an external parser, it yielded more accurate syntactic trees (73.1 UAS) than the model explicitly trained for syntax (65.2 UAS). This suggests that neural models organically learn underlying linguistic structures from surface data. These findings have significant implications for low-resource languages, as they suggest high-quality generation models can be developed without expensive, hand-annotated treebanks.

Conclusion

This research proves that surface-level neural language models are highly capable of learning complex word order constraints. While larger beam sizes increase computational demands, the resulting gains in fluency and syntactic accuracy are substantial. The work calls for a reevaluation of the necessity of explicit syntactic annotations in modern text generation pipelines.

Summary updated

BibTeX
@inproceedings{schmaltz2016word,
  author = {Allen Schmaltz and Alexander M. Rush and Stuart M. Shieber},
  title = {{Word Ordering Without Syntax}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1255},
}
Figure