RAPID: Efficient Retrieval-Augmented Long Text Generation with Writing Planning and Information Discovery

Hongchao Gu, Dexun Li, Kuicai Dong, Hao Zhang, Hang Lv, Hao Wang, Defu Lian, Yong Liu, Enhong Chen

Introduction

Generating high-quality, long-form, and knowledge-intensive text—such as comprehensive encyclopedia entries—remains a significant challenge for Large Language Models (LLMs). While current models excel at short-form responses, they often struggle with "thematic coherence" and factual accuracy when tasked with writing thousands of words. Existing solutions generally fall into two categories: direct generation, which frequently results in hallucinations when models encounter facts outside their training data, and multi-agent discussion frameworks (e.g., STORM), which use iterative AI "debates" to gather information. While effective, multi-agent systems are often prohibitively slow, expensive due to high API usage, and prone to error propagation if early reasoning steps go astray.

To address these limitations, we present RAPID, a framework designed to generate Wikipedia-style long articles by treating the writing process as a dependency-aware, structured task rather than a linear or conversational one. RAPID significantly reduces hallucinations and improves coherence while operating with greater speed and cost-effectiveness than previous state-of-the-art methods.

The RAPID Framework

RAPID decomposes the complex task of long-form generation into three distinct, optimized modules: Retrieval-Augmented Outline Generation, Attribute-Constrained Search, and Plan-Guided Article Generation.

1. Retrieval-Augmented Outline Generation

Rather than relying on an LLM to hallucinate a structure for a given topic, RAPID utilizes a massive corpus of 2.6 million existing Wikipedia structures. By retrieving and synthesizing similar outlines, the system establishes a "proven" blueprint for the topic, ensuring that the resulting article follows standard organizational conventions for its specific domain.

To populate the outline with factual data, RAPID extracts "attributes"—distinct, indivisible concepts—from the generated structure. It then performs parallelized search queries for these specific attributes. This approach is significantly more efficient than broad, iterative searches; it ensures comprehensive coverage of the topic while allowing the system to gather information for multiple sections simultaneously, drastically reducing latency.

3. Plan-Guided Article Generation

The core innovation of RAPID is its use of a Writing Plan formatted as a Directed Acyclic Graph (DAG). Recognizing that long texts are webs of information rather than simple sequences, the system identifies which sections depend on others. For example, a section on the "Applications" of a new technology cannot be effectively written until the "Mechanism" or "How it Works" section is established. By following this topological order, the LLM generates the article section-by-section, maintaining a logical narrative flow and avoiding the redundancy or context gaps common in linear generation.

Experimental Setup: FreshWiki-2024

To evaluate RAPID, researchers introduced FreshWiki-2024, a new benchmark designed to mitigate the risk of data leakage. Because most LLMs have training cutoff dates in late 2023 or early 2024, the benchmark utilizes 100 high-quality Wikipedia topics that were either created or significantly revised in 2024. This ensures that the models must rely on their retrieval and planning capabilities rather than memorized training data. The dataset spans diverse domains, including Science, Culture, and Geography.

Key Results and Insights

RAPID was benchmarked against state-of-the-art systems like STORM and Co-STORM using various LLM backbones, including GPT-4o, DeepSeek-v3, and Qwen-Max. The results highlight three primary advantages:

  • Superior Factuality: RAPID achieved significantly higher F1@300 scores—a metric that balances the density of claims with their accuracy. In several tests, RAPID outperformed the STORM framework by nearly 10 points, demonstrating that structured planning is more effective for accuracy than multi-agent brainstorming.
  • Operational Efficiency: RAPID is substantially faster and cheaper than its peers. It requires approximately 3x fewer API calls than STORM and reduces average generation time from 163 seconds to 127 seconds.
  • Human Preference: In blind evaluations conducted by ten master’s-level evaluators, RAPID was preferred over STORM in 27 out of 40 cases. Evaluators specifically noted RAPID's superior organization and the relevance of the information provided.

Conclusion and Future Work

The success of RAPID suggests that for long-form generation, planning is more critical than discussion. By explicitly managing section dependencies through a DAG and parallelizing information discovery, RAPID solves the latency and coherence bottlenecks that plague current RAG systems.

Currently, RAPID focuses on text-only generation. Future iterations aim to incorporate multimodal elements, such as images, infoboxes, and tables, which are essential for professional-grade encyclopedia entries. Additionally, while RAPID excels at Wikipedia-style writing, further research is needed to adapt its dependency-aware planning to other structured formats, such as financial reports or academic papers.

Summary updated

BibTeX
@inproceedings{gu2025rapid,
  author = {Hongchao Gu and Dexun Li and Kuicai Dong and Hao Zhang and Hang Lv and Hao Wang and Defu Lian and Yong Liu and Enhong Chen},
  title = {{RAPID: Efficient Retrieval-Augmented Long Text Generation with Writing Planning and Information Discovery}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure