Learning to Order Natural Language Texts

Jiwei Tan, Xiaojun Wan, Jianguo XiaoACL 2013

Abstract

Ordering texts is an important task for many NLP applications. Most previous works on summary sentence ordering rely on the contextual information (e.g. adjacent sentences) of each sentence in the source document. In this paper, we investigate a more challenging task of ordering a set of unordered sentences without any contextual information. We introduce a set of features to characterize the order and coherence of natural language texts, and use the learning to rank technique to determine the order of any two sentences. We also propose to use the genetic algorithm to determine the total order of all sentences. Evaluation results on a news corpus show the effectiveness of our proposed method.

Introduction

Arranging a shuffled set of sentences into a coherent paragraph is a fundamental challenge in natural language generation. While many NLP tasks, such as multi-document summarization, can leverage source document structure or timestamps, the general text ordering task requires determining coherence from the sentences alone. This problem is computationally NP-complete; as the number of sentences increases, the possible permutations grow factorially, making exhaustive search impractical.

Methodology

The proposed framework consists of two primary stages: pairwise relation learning and global order determination.

Pairwise Relation Learning

Instead of treating sentence ordering as a binary classification problem, the authors utilize a Ranking SVM. This approach learns the relative strength of preference between sentence pairs, which better captures the nuances of text flow compared to simple "before/after" labels. The model incorporates four categories of features to characterize coherence:

  • Similarity: Cosine similarity between sentence vectors.
  • Overlap: Lexical overlap of nouns, verbs, and adjectives, including a "half-sentence" heuristic that compares the latter half of one sentence with the former half of another.
  • Coreference: Tracking entity chains and pronouns to ensure referential integrity.
  • Probability Models: Statistical likelihoods of specific word patterns and dependencies appearing in certain sequences.
Table 1: Features used for characterizing text order and coherence.

Global Order Determination

To find the optimal sequence that maximizes pairwise agreement across the entire set, the authors employ a Genetic Algorithm (GA). GA effectively navigates the vast search space by evolving a population of candidate orders through crossover and mutation, avoiding the local optima that often plague greedy search methods.

Experimental Results

The model was evaluated on the North American News Text Corpus using Kendall’s $\tau$, which measures the correlation between the predicted and gold-standard orders.

Table 2: Performance comparison (Kendall’s $\tau$) of different methods and search strategies.

The results demonstrate that the Ranking SVM combined with the Genetic Algorithm significantly outperforms baseline methods. Specifically, the ranking approach achieved a $\tau$ of 0.5747, nearly matching the performance of an exhaustive search (0.5768) while being significantly more efficient. The study also confirmed that ranking-based models are superior to classification-based ones, likely because they provide a more granular signal for the global optimization step.

Conclusion

This research highlights the effectiveness of combining pairwise ranking with global heuristic search for sentence ordering. By moving beyond simple lexical overlap and incorporating structural probability models, the system achieves state-of-the-art performance on news text. Future work will focus on deeper semantic features to capture discourse logic and testing the model's generalizability across different domains such as creative or technical writing.

Summary updated

BibTeX
@inproceedings{tan2013learning,
  author = {Jiwei Tan and Xiaojun Wan and Jianguo Xiao},
  title = {{Learning to Order Natural Language Texts}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2013},
  url = {https://openreview.net/forum?id=rkb7DsgdZS},
}
Figure