Abstract: Large language models often struggle to adhere to specific content constraints, leading to "hallucinations" or drifting narratives. This paper introduces Facts2Story, a framework that utilizes a "plan-and-cloze" approach with XLNet to ensure generated stories strictly follow a sequence of input facts. By predicting the spacing between fact tokens and filling the gaps, the model achieves significantly higher fact adherence than standard auto-regressive models like GPT-2 and BART.
Introduction
While modern Transformer-based models excel at generating fluent, human-like text, they are notoriously difficult to "steer." Given a prompt, a model might start strong but eventually drift off-topic or ignore specific details—a phenomenon often linked to the "hallucination" problem. Existing methods for controlled generation usually focus on high-level attributes like sentiment or style but lack fine-grained control over specific plot points.
Researchers from Bar Ilan University and the Allen Institute for AI have introduced Facts2Story to address this gap. The goal is to generate a coherent narrative that incorporates a specific set of facts in a predetermined order.
The Plan-and-Cloze Framework
The authors propose a two-stage process to ensure that key facts are not just mentioned, but correctly positioned within the narrative structure.
- The Planning Stage: Instead of generating text from scratch, the model first predicts the "spacing" between the words of the provided facts. Given a sequence of key facts, an XLNet-based model predicts how many tokens should exist between each word to form a full story. This creates a "cloze" (fill-in-the-blank) template where the key facts are locked into specific positions.
- The Cloze Stage: The model then fills in these blanks. Because the facts are hard-coded into the structure, the model cannot ignore them. The authors fine-tuned XLNet for this task, leveraging its bi-directionality to ensure the generated "filler" text connects the facts logically.
Experimental Setup
The models were trained using a large corpus of Wikipedia movie plots. To create the training pairs, the researchers used an Open Information Extraction (OpenIE) system called SalIE to identify the most salient facts in each text. They extracted the top five facts from approximately 17,000 movie plots.
To ensure the models were not simply memorizing training data, they were evaluated on a "clean" test set of 100 movie plots published after June 2019, which was the cutoff for the models' pre-training data.
Results and Analysis
The researchers compared Facts2Story against two strong baselines: a modified GPT-2 with pseudo self-attention and BART. Human raters evaluated the outputs on a scale of 1-5 for Grammar and Common Sense, alongside a raw count for Fact Adherence.
| Model | Grammar | Common Sense | # Facts Found (out of 5) |
|---|---|---|---|
| GPT-2 + Pseudo-Attention | 3.77 | 3.31 | 0.75 |
| BART | 2.68 | 2.58 | 1.61 |
| XLNet Plan + Cloze | 3.48 | 3.25 | 4.39 |
The results highlight a significant trade-off. While GPT-2 produced slightly more fluent prose, it almost entirely ignored the requested facts. In contrast, the XLNet Plan+Cloze model maintained high fluency while successfully incorporating nearly all required facts (4.39 out of 5).
Key Insights
- Unidirectionality as a Hindrance: Auto-regressive models like GPT-2 generate text left-to-right, making it difficult to "plan" for a fact that must appear much later in the sequence. They often get "distracted" by their own generated content.
- Hard Constraints: By fixing fact-tokens in place before generation, the model bypasses the struggle of "convincing" the generator to mention specific keywords.
- The Gap Problem: BART and GPT-2 struggled with the high "corruption rate" of this task. In Facts2Story, facts make up only about 16% of the final story, requiring the model to generate 84% of the content while staying tethered to the input.
Limitations and Future Work
Despite its success in fact adherence, the XLNet model occasionally struggled with entity consistency, such as swapping a character's gender mid-story or confusing subjects and objects. Additionally, while facts appear in the correct order, the "filler" events can sometimes feel disconnected. Future research may explore combining unidirectional training with these structural constraints to improve narrative consistency while maintaining high adherence.
Summary updated