atlas

Research map / Large language models / Language, safety and interpretability

LongWriter: Unleashing 10,000+ Word Generation from Long Context LLMs

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Identifies SFT output-length caps as the cause of ~2k-word generation limits, proposes AgentWrite (plan-then-write agent pipeline) to build the LongWriter-6k dataset, and trains LongWriter models (9B/8B, plus DPO) that generate 10k+ word outputs.

Problem

Long-context LLMs can read 100k+ tokens but cannot generate outputs beyond roughly 2,000 words; the paper investigates why and how to extend output length.

Approach

The effective generation length is bounded by the maximum output length in SFT data. AgentWrite uses off-the-shelf LLMs to plan and then serially write paragraphs, producing long outputs that are used as SFT data (LongWriter-6k) to unlock 10k+ word generation in existing models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add LongWriter-6k long-output SFT data (ablation)GLM-4-9B · LongBench-Writeoverall score: 62.6 -> 80.5Helped
Add LongWriter-6k long-output SFT data (ablation)GLM-4-9B · LongBench-Writequality score: 77.1 -> 82.3Helped
Add LongWriter-6k long-output SFT data (ablation)GLM-4-9B · LongBench-Write, [2k, 4k) wordsquality score: 71.9 -> 80.2Helped
Add LongWriter-6k long-output SFT data (ablation)GLM-4-9B · LongBench-WriteBreadth and Depth: 18% absolute improvementHelped
Add DPO fine-tuningLongWriter-9B · LongBench-Writelength score: 78.6 -> 82.6; +4%Helped
Add DPO fine-tuningLongWriter-9B · LongBench-Writequality score: 82.3 -> 85.4; +3%Helped
Add DPO fine-tuningLongWriter-9B · LongBench-Write human pairwise evaluationhuman preference win rate: 58%Helped
Add writing plans to SFT outputs (ablation)LongWriter-9B · LongBench-Writeoverall score: 80.5 -> 81.4No clear effect
Add writing plans to SFT outputs (ablation)LongWriter-9B · LongBench-Writequality score: 82.3 -> 81.8Hurt
Replace LongWriter-6k with instruction-backtranslated examples (ablation)GLM-4-9B · LongBench-Writeoverall score: 80.5 -> 60.4Hurt
Generate paragraph subtasks in parallel instead of sequentially with prior contextGPT-4o + AgentWrite · LongBench-Writequality score: 91.6 -> 88.9Hurt
Generate paragraph subtasks in parallel instead of sequentially with prior contextGPT-4o + AgentWrite · LongBench-WriteCoherence: -6%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: LongWriter-6k GLM-4 chat SFT data WildChat-1M GLM-4 chat DPO data LongBench-Write LongWrite-Ruler

Benchmarks: LongBench-Write LongWrite-Ruler

Metrics: length score S_l quality score S_q overall score win rate (human pairwise) generation length

Baselines: Claude 3.5 Sonnet GPT-4 Turbo GPT-4o mini GPT-4o GLM-4-9B-chat Llama-3.1-8B-Instruct Llama-3.1-70B-Instruct Mistral-Large-Instruct Suri-I-ORPO

Builds on: AgentWrite-style plan-then-write DPO LLM-as-a-judge instruction backtranslation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy