Abstract
Determining the "arrow of time" in narrative text is a significant challenge for natural language processing. This paper introduces the ParagraphOrdering dataset, consisting of 300,000 paragraph pairs from classic literature, to evaluate a model's ability to identify chronological sequence. While traditional recurrent architectures struggle with this task, fine-tuned BERT models achieve over 84% accuracy, demonstrating the importance of deep relational context in understanding narrative flow.
Introduction
In physics, the "arrow of time" describes the unidirectional flow of events. While this concept has been explored in computer vision to determine if a video is playing forward or backward, its application to Natural Language Processing (NLP) remains a frontier. The core challenge is temporal coherence: given two isolated paragraphs from a story, can a machine determine their original order?
Solving this problem requires more than keyword matching; it demands an understanding of narrative flow, cause-and-effect, and the logical progression of events. This capability is a crucial step toward building AI systems capable of generating coherent long-form stories or accurately summarizing complex event sequences.
The ParagraphOrdering Dataset
To investigate this challenge, the researchers introduced ParagraphOrdering, a novel dataset curated from Project Gutenberg.
The dataset comprises approximately 300,000 paragraph pairs derived from nearly 240,000 unique paragraphs. Each example consists of two paragraphs: if the second paragraph originally followed the first, it is labeled "1"; otherwise, it is labeled "0". This self-supervised approach leverages the inherent structure of classic literature to generate labels without manual intervention. The final dataset includes 294,265 training samples and 32,697 test samples.
Experimental Methodology
The study compared two primary architectural approaches to determine the most effective way to capture temporal relationships:
- RNN-based Baselines: The authors utilized Long Short-Term Memory (LSTM) networks and Gated Convolutional Neural Networks (CNNs). These models encode paragraphs separately before concatenating the representations for classification.
- BERT (Bidirectional Encoder Representations from Transformers): BERT was evaluated both as a static feature extractor and through fine-tuning. The fine-tuning approach used "packed sequences," where both paragraphs are fed into the model simultaneously, separated by a special token. This allows the transformer's attention mechanism to directly model the relationship between the two text segments.
The researchers also varied the sequence lengths (30, 128, and 256 tokens) to assess how much context is required for accurate temporal judgment.
Results and Analysis
The results demonstrate a clear superiority of the Transformer architecture over traditional recurrent models.
As shown in the results, standard RNN and LSTM models performed poorly, achieving accuracies only slightly above random chance (approx. 52%). This suggests that sequential processing alone is insufficient for capturing the deep relational context required for temporal ordering.
In contrast, fine-tuning BERT provided a significant performance boost. A key insight was the impact of context: using only 30 tokens (the boundary sentences) yielded 68.1% accuracy, while increasing the context to 256 tokens boosted accuracy to 84.3%. This indicates that the "clues" for the arrow of time are often distributed throughout the paragraphs rather than being concentrated at the transition points.
Conclusion and Future Work
This research highlights that recognizing the arrow of time in text requires learning "narrative physics"—the logical way characters and events move through time. While the current study is limited to pairwise paragraph ordering in classic literature, it serves as a foundational step for neural story generation. Future work could involve extending this to multi-paragraph "threads" or applying the models as "critics" to ensure logical consistency in AI-generated prose.
Summary updated