Abstract
Modeling the structure of coherent texts is a key NLP problem. The task of coherently organizing a given set of sentences has been commonly used to build and evaluate models that understand such structure. We propose an end-to-end unsupervised deep learning approach based on the set-to-sequence framework to address this problem. Our model strongly outperforms prior methods in the order discrimination task and a novel task of ordering abstracts from scientific articles. Furthermore, our work shows that useful text representations can be obtained by learning to order sentences. Visualizing the learned sentence representations shows that the model captures high-level logical structure in paragraphs. Our representations perform comparably to state-of-the-art pre-training methods on sentence similarity and paraphrase detection tasks.
Introduction
Coherence represents the high-level logical and topical structure of a document, serving as the "glue" that connects individual sentences into a meaningful whole. For machines, understanding this structure is challenging because coherence is often implicit. The authors address the sentence ordering problem: given a set of $n$ sentences in random order, can a model recover the original, most coherent sequence? This task is vital for applications such as multi-document summarization and natural language generation. Beyond the task itself, the authors investigate whether "learning to order" can serve as a powerful self-supervised signal for training general-purpose language models without human-labeled data.
Methodology: Set-to-Sequence Framework
The proposed model utilizes a Set-to-Sequence framework designed to transform an unordered set of inputs into an ordered sequence. The architecture consists of three primary components:
- Sentence Encoder: A word-level LSTM that converts each sentence into a fixed-length vector embedding.
- Set Encoder (Process Block): An order-invariant component that uses an attention mechanism to "read" all available sentence embeddings multiple times, constructing a global context representation of the entire paragraph.
- Pointer Network Decoder: A decoder that sequentially selects sentences from the input set using a pointer mechanism. At each step, it considers previously selected sentences and the global context to determine the next sentence in the sequence.
To enhance robustness, the authors introduced Contrastive Sentences—random "distractor" sentences added to memory during training—forcing the model to distinguish relevant context from noise.
Experimental Results
The model was evaluated across several benchmarks, including standard order discrimination datasets (Accidents and Earthquakes) and a more challenging task involving scientific abstracts from NIPS, ACL, and NSF.
Performance Metrics
The model achieved state-of-the-art performance on the order discrimination task, with 94.4% accuracy on the Accidents dataset and 99.7% on Earthquakes, significantly outperforming Entity-Grid and Seq2Seq baselines. On the complex task of ordering scientific abstracts, the model achieved a Kendall’s tau ($\tau$) of 0.72 on NIPS and 0.73 on ACL abstracts.
Visualizing Logical Structure
A key finding of this work is that the model naturally learns to capture document structure. Using t-SNE to visualize learned embeddings, the authors observed that sentences naturally cluster based on their relative position in a document (e.g., introductory vs. concluding sentences), despite no explicit positional labels during training.
Conclusion and Future Work
This research demonstrates that sentence ordering is an effective self-supervised task for learning discourse and logic. The resulting sentence embeddings perform comparably to state-of-the-art methods like Skip-Thought vectors on downstream tasks such as semantic similarity and paraphrase detection. Future work may address computational complexity for longer documents and the integration of linguistic features to better handle out-of-vocabulary entities.
Summary updated