Published
Jun 27, 2024
Updated
Oct 2, 2024

Unlocking Long-Form Storytelling with AI: The Suri Project

Suri: Multi-constraint Instruction Following for Long-form Text Generation
By
Chau Minh Pham|Simeng Sun|Mohit Iyyer

Summary

Imagine an AI that can write not just a paragraph, but a whole novel, following your detailed instructions. That's the promise of Suri, a new research project pushing the boundaries of long-form text generation. Creating compelling narratives or technical documents often involves juggling multiple constraints—character development, plot points, tone, style, and specific factual details. Traditional AI models struggle with these complex, multi-constraint instructions, especially for extended texts. Researchers have developed Suri, a dataset of 20,000 long-form texts, like novel chapters and blog posts, each paired with AI-generated instructions. These instructions outline around ten semantic and stylistic constraints, guiding the model on how the text unfolds. But training an AI to handle these complexities isn't straightforward. Getting human feedback on long texts is time-consuming and expensive, making it impractical for refining AI models. So, the team developed a clever workaround: Instructional ORPO (I-ORPO). Instead of human feedback, I-ORPO uses slightly altered instructions. By comparing the AI's output on the original and altered instructions, the model learns to fine-tune its responses to complex constraints. The results are promising. Models trained on Suri generate texts up to 5,000 words long, a significant leap from previous models. Even more impressive, these longer texts maintain coherence and avoid repetitive patterns that often plague AI-generated narratives. Human evaluations confirm the effectiveness of the approach. While both supervised fine-tuning and I-ORPO improved constraint satisfaction, I-ORPO generates texts that are judged more coherent, informative, and enjoyable. This means AI narratives that are not just long but also engaging and faithful to the creator's vision. Suri's innovative approach to AI training opens doors to exciting possibilities. Imagine crafting intricate narratives with detailed instructions or generating long reports with precise specifications. While challenges remain, including fine-tuning different AI models and understanding the impact of input variations, Suri represents a significant step towards more sophisticated and powerful AI storytellers.
🍰 Interesting in building your own agents?
PromptLayer provides the tools to manage and monitor prompts with your whole team. Get started for free.

Question & Answers

How does the I-ORPO training method work in the Suri project?
I-ORPO (Instructional ORPO) is a novel training approach that uses altered instructions instead of human feedback to improve AI text generation. The process works by creating slight variations of original writing instructions and comparing the AI's output between original and modified versions. This enables the model to learn optimal responses to complex constraints through automated comparison rather than costly human evaluation. For example, if the original instruction asks for a 'suspenseful mystery story set in Victorian London,' I-ORPO might create variations like 'gothic mystery in 1880s London' or 'dark detective tale in Victorian England' to help the model understand acceptable variations while maintaining core requirements.
What are the main benefits of AI-powered long-form content generation for content creators?
AI-powered long-form content generation offers several key advantages for content creators. It primarily saves time by automating the writing of lengthy pieces while maintaining consistency throughout the text. Content creators can focus on high-level strategy and creative direction rather than writing every word manually. For example, a marketing team could quickly generate multiple blog post variations from a single set of instructions, or an author could use AI to create initial draft chapters following specific plot points and character descriptions. This technology also helps maintain consistent tone and style across large documents, making it particularly valuable for businesses producing regular content at scale.
How can AI storytelling tools improve creative writing workflows?
AI storytelling tools can streamline creative writing workflows by providing intelligent assistance throughout the writing process. These tools can help generate initial drafts based on specific parameters, suggest plot developments, maintain character consistency, and even ensure adherence to particular writing styles or genres. For instance, a novelist could use AI to quickly generate different scene variations, explore alternative plot directions, or maintain consistent character voices across a long manuscript. This allows writers to focus more on creative decision-making and refinement rather than getting stuck in the initial draft phase, ultimately leading to more efficient and potentially more innovative storytelling processes.

PromptLayer Features

  1. Testing & Evaluation
  2. The paper's I-ORPO methodology of comparing outputs between original and altered instructions aligns with systematic prompt testing needs
Implementation Details
Set up automated A/B testing pipelines comparing outputs from original vs modified constraint sets, implement scoring metrics for coherence and constraint satisfaction, track performance across iterations
Key Benefits
• Systematic evaluation of constraint satisfaction • Automated comparison of prompt variations • Quantifiable quality metrics tracking
Potential Improvements
• Integration with human evaluation workflows • Custom scoring metrics for long-form content • Cross-model performance comparison tools
Business Value
Efficiency Gains
Reduces manual evaluation time by 70% through automated testing
Cost Savings
Minimizes need for expensive human feedback loops
Quality Improvement
More consistent and objective quality assessment
  1. Prompt Management
  2. Managing complex multi-constraint instructions requires sophisticated prompt versioning and organization
Implementation Details
Create structured templates for constraint sets, implement version control for instruction variations, establish collaborative prompt refinement workflow
Key Benefits
• Organized management of complex constraints • Traceable instruction modifications • Collaborative prompt improvement
Potential Improvements
• Enhanced constraint visualization tools • Semantic search across instruction sets • Automated constraint validation
Business Value
Efficiency Gains
50% faster prompt iteration cycles
Cost Savings
Reduced redundancy in prompt development
Quality Improvement
Better consistency in constraint application

The first platform built for prompt engineering