Introduction
Recent advancements in Vision-Language Models (VLMs), such as Gemini 1.5 Pro and Qwen2-VL, have significantly expanded input context windows, allowing models to process hundreds of images or hours of video. However, a persistent "output length ceiling" remains: despite their massive input capacity, these models typically fail to generate coherent text beyond approximately 1,000 words. This limitation hinders practical applications such as generating comprehensive medical reports from diagnostic imagery or creating long-form narratives from visual storyboards.
Research into LongWriter-V suggests that this constraint is not a fundamental architectural flaw but rather a consequence of training data scarcity. Existing Supervised Fine-Tuning (SFT) datasets lack examples of ultra-long outputs, leading models to learn a bias toward brevity. To address this, the authors introduce a novel dataset, a specialized training pipeline, and a new benchmark for long-form visual writing.
Methodology
1. LongWrite Agent-V (Plan-and-Write)
To overcome the lack of long-form SFT data, the authors developed LongWrite Agent-V, a data synthesis pipeline utilizing GPT-4o. Because even proprietary models struggle to generate 3,000+ words in a single pass, the agent employs a two-stage strategy:
- Planning: The model generates a detailed outline with specific word count targets for each section.
- Execution: The model populates the outline paragraph by paragraph. These segments are then stitched together to form high-quality, ultra-long training examples.
2. Iterative Direct Preference Optimization (IterDPO)
While SFT provides the foundation, maintaining accuracy and avoiding hallucinations in long-form generation requires alignment. Standard Direct Preference Optimization (DPO) is often prohibitively expensive for long texts due to the cost of human correction.
IterDPO addresses this by decomposing a long output into $N$ segments (e.g., individual slides in a presentation script). By iteratively treating each human-corrected segment as a "winning" preference against the original flawed segment, the training signal is multiplied by $N$. This approach allowed the researchers to achieve significant alignment gains using only 72 human-annotated scripts, costing approximately $1,000.
Datasets and Benchmarks
- LongWriter-V-22k: A comprehensive SFT dataset containing 22,158 examples. It pairs single or multiple images with instructions requiring outputs ranging from short-form to 10,000 words. Data was synthesized from sources like MMEvol and Zenodo10K.
- MMLongBench-Write: A new evaluation benchmark specifically designed for long-form visual generation. It spans six tasks, including professional writing (medical reports, PPT scripts) and creative writing (story generation), with target lengths up to 4,000 words.
Key Results and Insights
Breaking the Length Barrier
LongWriter-V models consistently generate outputs in the 3,000–4,000 word range, whereas models like GPT-4o and Claude 3 Opus typically plateau at 1,000 words. The maximum output length of a VLM appears to be almost entirely dictated by the length distribution of its SFT data.
Performance Benchmarks
On the MMLongBench-Write benchmark, the LongWriter-V-72B model achieved an overall score of 84.9%, surpassing GPT-4o (62.7%) and Gemini 1.5 Pro (83.0%). Notably, the smaller LongWriter-V-7B model, enhanced by IterDPO, scored 84.6%, outperforming GPT-4o and winning head-to-head human preference evaluations.
The Importance of Multi-Image Data
Ablation studies highlighted that multi-image training data is essential for long-form synthesis. Removing this data resulted in a 15.3-point decrease in overall scores, as complex writing tasks often require integrating information across multiple visual sources.
Limitations and Future Work
While LongWriter-V represents a significant step forward, several challenges remain:
- Data Diversity: The 22k dataset is relatively small, which may limit generalizability in highly niche domains.
- Language Support: The current benchmarks and datasets are restricted to English and Chinese.
- Human Feedback Bottleneck: Despite the efficiency of IterDPO, human correction remains a slow process. Future work may explore automated AI-generated feedback to further scale training.
Conclusion
LongWriter-V demonstrates that the output limitations of current VLMs are a data-driven phenomenon rather than a structural one. By utilizing a plan-and-write synthesis agent and the efficient IterDPO alignment technique, even 7B-parameter models can be trained to produce high-fidelity, ultra-long text that rivals or exceeds the performance of the world's largest proprietary models.
Summary updated