Abstract
Long-form narrative generation remains a significant challenge for Large Language Models (LLMs), which often struggle with long-range coherence and logical progression. This paper introduces EIPE-text, a framework that mimics the human "Plan-and-Write" process by iteratively extracting and refining high-quality plans from existing narratives. By employing a novel Question-Answering (QA) based evaluation loop to align plans with source texts, EIPE-text constructs a robust "planner" that significantly enhances the quality of generated stories and speeches.
Introduction
Generating cohesive long-form narratives, such as novels or scripts, is often considered the "final boss" for LLMs. While these models excel at short-form text, they frequently lose the narrative thread over extended lengths, leading to hallucinations or disjointed plots. A common mitigation strategy is the hierarchical "Plan-and-Write" approach, where an outline is generated before the full text. However, zero-shot plans produced by LLMs are often generic and shallow. Furthermore, adapting LLMs to specific planning styles (e.g., TED talks vs. mystery novels) is hindered by a lack of high-quality training data.
EIPE-text addresses these issues by introducing an iterative plan extraction and refinement process. Instead of relying on flawed initial plans, the system "mines" and polishes plans from existing high-quality narratives, creating a superior corpus for training specialized planners.
The EIPE-text Framework
The EIPE-text framework operates in three distinct stages: Plan Extraction, Learning, and Inference. This structured approach ensures that the final narrative is guided by a plan that is both detailed and faithful to the intended structure.
1. Iterative Plan Extraction
The core innovation of EIPE-text is its iterative refinement loop. Rather than a simple summarization, the system extracts a plan through a multi-step process:
- Sketching: An LLM generates an initial tree-structured plan from a source narrative.
- QA-based Evaluation: To verify the plan's fidelity, the system generates multiple-choice questions based on the source text. The LLM then attempts to answer these questions using only the extracted plan.
- Refinement: If the LLM fails a question, it indicates a gap in the plan. The system generates specific instructions—such as adding a node, modifying content, or adjusting the hierarchy—to rectify the omission. This loop continues until the plan accurately represents the source narrative.
2. Learning
The high-quality plans extracted in the first stage form a "Plan Corpus." This corpus is used to train a specialized planner through two primary methods:
- Fine-Tuning: Training a model (e.g., LLaMA-7B) directly on the extracted plans.
- In-Context Learning: Selecting representative plan examples via k-means clustering to prompt a powerful model like GPT-4.
3. Inference
During inference, the upgraded planner receives a new topic query and generates a detailed, hierarchical plan. This plan then guides the final narrative generation process, ensuring structural integrity and thematic relevance.
Evaluation and Results
The researchers evaluated EIPE-text across two domains: Novels (1,292 stories) and TED Talks (2,468 transcripts). Performance was benchmarked against state-of-the-art models like recurrentGPT.
The results demonstrate significant improvements:
- Coherence & Relevance: In the novel domain, EIPE-text achieved a 92.5% win ratio in relevance and an 84.2% win ratio in coherence compared to recurrentGPT (GPT-4 evaluation). Human evaluators also preferred EIPE-text for its faithfulness to initial premises.
- Planner Superiority: For TED talks, the fine-tuned EIPE-text planner achieved a 93.8% win ratio over a standard LLaMA planner.
- Efficiency: The refinement process is remarkably efficient, typically converging in fewer than three iterations (average 2.98).
Discussion and Future Directions
A key insight of this work is the use of reading comprehension (QA) as an objective alignment metric. This provides a more actionable signal for plan improvement than subjective prompts. Additionally, the iterative self-correction mechanism allows the system to converge on highly aligned plans without assuming perfect initial extraction.
However, the framework's performance is tied to the underlying LLM's reasoning capabilities. Weak base models may struggle with the refinement loop. Furthermore, while the planner excels within its training domains, out-of-distribution tasks remain a challenge. Future work may focus on tighter integration between the planning and text generation steps to ensure even stricter adherence to refined outlines.
Summary updated