Beyond Outlining: Heterogeneous Recursive Planning for Adaptive Long-form Writing with Language Models

Ruibin Xiong, Yimeng Chen, Dmitrii Khizbullin, Mingchen Zhuge, Jürgen Schmidhuber
3/11/2025
29 citations
cs.AIcs.CL

Official code: principia-ai/WriteHERE (976 stars, Python, last commit 2025-11-24).

Abstract

Long-form writing agents require flexible integration and interaction across information retrieval, reasoning, and composition. Current approaches rely on predefined workflows and rigid thinking patterns to generate outlines before writing, resulting in constrained adaptability during writing.

Show full abstract

In this paper we propose WriteHERE, a general agent framework that achieves human-like adaptive writing through recursive task decomposition and dynamic integration of three fundamental task types: retrieval, reasoning, and composition. Our methodology features: 1) a planning mechanism that interleaves recursive task decomposition and execution, eliminating artificial restrictions on writing workflow; and 2) integration of task types that facilitates heterogeneous task decomposition. Evaluations on both fiction writing and technical report generation show that our method consistently outperforms state-of-the-art approaches across all automatic evaluation metrics, demonstrating the effectiveness and broad applicability of our proposed framework. We have publicly released our code and prompts to facilitate further research.

View on arXivView PDF

Code Implementations(1)

An Open-Source AI Writing Project.

976144Python, JavaScriptMar 4, 20251 years ago
agentic-workflowai-agentsai-writingcreative-writing-aideep-research+1 more

Similar Papers

Cite this paper

@article{xiong2025beyond,
  title  = {Beyond Outlining: Heterogeneous Recursive Planning for Adaptive Long-form Writing with Language Models},
  author = {Ruibin Xiong and Yimeng Chen and Dmitrii Khizbullin and Mingchen Zhuge and Jürgen Schmidhuber},
  year   = {2025},
  eprint = {2503.08275},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08275v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08275.svg)](https://codeofpaper.com/paper/2503.08275)

Discussion