Abstract
Sentence ordering is the task of arranging a set of unordered sentences into a coherent text. Traditional methods using Recurrent Neural Networks (RNNs) suffer from order-dependency issues where the initial shuffled sequence biases the representation. This paper introduces ATTOrderNet, an end-to-end model that utilizes a self-attention mechanism to create an order-invariant paragraph representation. By treating the input as a set rather than a sequence, the model effectively captures global dependencies, achieving state-of-the-art performance across multiple benchmarks.
The Sentence Ordering Problem
Creating coherent text is a cornerstone of natural language processing, essential for tasks like multi-document summarization and retrieval-based Q&A. The sentence ordering task challenges a model to take a "bag of sentences" and find the one permutation that makes the most sense to a human reader.
The primary hurdle for previous state-of-the-art models (which typically used LSTMs) was a "chicken-and-egg" dilemma: to find the correct order, the model first needs a good representation of the whole paragraph. However, LSTMs process information sequentially. If the input sentences are in a nonsensical order, the LSTM’s internal state becomes "polluted" by that incorrect sequence, making it difficult for the decoder to reconstruct the truth.
Methodology: ATTOrderNet
The authors propose ATTOrderNet, which utilizes an encoder-decoder framework with a specific focus on order-invariance:
- Sentence Encoder: Each individual sentence is first transformed into a fixed-length vector using a bidirectional LSTM (Bi-LSTM). This captures the internal meaning of each sentence.
- Self-Attentive Paragraph Encoder: This is the core innovation. Instead of feeding sentence vectors into another LSTM, the authors use multi-head self-attention. Crucially, they omit positional encodings. This makes the encoder "order-invariant"—it treats the sentences as a set rather than a sequence. Every sentence can "attend" to every other sentence simultaneously to determine their relative importance and logical connections.
- Pointer Network Decoder: Finally, a pointer network (an RNN variant) predicts the sequence. At each step, it "points" to the sentence in the original set that most likely comes next, conditioned on the global paragraph representation and the sentences already selected.
Key Insights and Ideas
- Order Invariance as a Strength: In most NLP tasks, knowing the position of a word is vital. In sentence ordering, the input position is "noise." By removing positional encodings, ATTOrderNet forces the model to rely entirely on the semantic relationships between sentences to understand the document's structure.
- Global vs. Local Coherence: Traditional "window-based" models only looked at neighboring sentences. ATTOrderNet’s self-attention allows for "global" coherence, identifying how a sentence at the beginning of a paper might relate to one at the very end.
- The LSTM Trade-off: The authors demonstrate that while LSTMs are excellent for encoding the internal meaning of a sentence (where word order is known), they are a liability for encoding paragraphs where the sentence order is unknown.
Experimental Results
ATTOrderNet was evaluated on seven diverse public datasets, ranging from aviation reports (Accident) to scientific abstracts (arXiv). The model outperformed all previous baselines, including traditional linguistic feature-based models and earlier deep learning approaches:
- Perfect Match Ratio (PMR): On the large arXiv dataset, the model achieved a PMR of 42.19%. This means it could perfectly reconstruct the original order of more than 2 out of every 5 scrambled abstracts—a significant feat given the complexity of scientific writing.
- Kendall’s Tau ($τ$): The model showed superior rank correlation across all datasets, notably reaching 0.92 on the Earthquake dataset.
- Order Discrimination: In a secondary task—identifying which of two documents is more coherent—ATTOrderNet achieved 96.2% accuracy on the Accident dataset and 99.8% on Earthquake.
Limitations and Future Work
The authors noted a specific trade-off regarding the sentence encoder. A version of the model that used self-attention for both the sentence and paragraph levels performed slightly worse than the Bi-LSTM version on smaller datasets. This suggests that while self-attention is superior for high-level structural relationships, LSTMs might still be more efficient at learning fine-grained sentence semantics when training data is limited. Future work could involve exploring pre-trained language models like BERT to further enhance the initial sentence representations.
Summary updated