NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PEER: A Collaborative Language Model

Timo Schick, Jane A. Yu, Zhengbao Jiang, Fabio Petroni, Patrick Lewis, Gautier Izacard, Qingfei You, Christoforos Nalmpantis, Edouard Grave, Sebastian Riedel

Standard Large Language Models (LLMs) are typically trained to predict the next token in a sequence, resulting in a "single-pass" generation style. This differs fundamentally from how humans write, which involves drafting, seeking feedback, and iterative revision. Because they aren't trained on the process of writing, current models struggle to update existing text, follow fine-grained instructions, and explain their reasoning or cite sources.

To address these shortcomings, researchers introduce PEER (Plan, Edit, Explain, Repeat), a collaborative language model that mimics the human writing process by iteratively refining text rather than generating it in a single pass.

The PEER Framework

The PEER framework breaks the writing process down into four distinct, iterative steps:

  1. Plan: Formulate an instruction (e.g., "add more info about the founding date").
  2. Edit: Realize the plan by modifying the text.
  3. Explain: Provide a textual comment or a citation to a reference document explaining the change.
  4. Repeat: Continue the cycle until the text is satisfactory.
The PEER cycle: Plan, Edit, Explain, Repeat

By breaking a complex writing task into multiple smaller edits, the task becomes easier for the model and more interpretable for the human collaborator. Iterative updating also helps the model stay more faithful to provided reference documents compared to models that try to incorporate all information at once.

Overcoming Data Scarcity with Self-Training

The technical core of PEER is an encoder-decoder model based on a 3B or 11B parameter architecture. However, training such a model requires high-quality "edit history" data, which is scarce outside of platforms like Wikipedia.

To overcome this, the authors use a novel infilling strategy. They train specialized versions of the model to synthesize missing data components, effectively allowing them to self-train on any plain text corpus:

PEER's infilling strategy for self-training
  • PEER-Undo: Takes a final text and "guesses" what it looked like before an edit. This powerful technique turns any plain text into a synthetic edit history, solving the data scarcity problem for non-Wikipedia domains.
  • PEER-Explain: Generates high-quality plans and explanations for existing edits, improving the model's ability to follow human-written instructions in a zero-shot setting.
  • PEER-Document: Generates synthetic background documents to help the model learn how to use citations.

Key Results and Performance

PEER was evaluated on a primary dataset of Wikipedia Edit Histories, as well as a newly introduced Natural Edits benchmark (including Wikinews and StackExchange subforums) to test domain adaptation. It was also tested on established downstream tasks for grammar (JFLEG), simplification (ASSET), intent-based editing (ITERATER), and factual updates (FRUIT).

  • Superior Editing: Despite its smaller size, PEER (3B) outperformed much larger models like GPT-3 (175B) and OPT (175B) on almost all editing benchmarks.
  • Domain Adaptation: Thanks to the synthetic data generated by PEER-Undo, the model achieved strong performance on domains like StackExchange, where natural edit histories were completely unavailable.
  • Human Preference: In a blind study, human evaluators preferred PEER-generated explanations for Wikipedia edits 59% of the time, compared to only 28% for the original human-written Wikipedia comments.
  • Accurate Citations: On the newly designed NE-Cite task, PEER correctly placed citations in the right position 74.1% of the time without explicit placement instructions.

Limitations and Future Work

While PEER represents a significant step forward in collaborative AI writing, it has a few limitations. Currently, the model assumes relevant background documents are already provided; real-world applications would require tight integration with a retrieval system. Additionally, PEER rewrites the entire paragraph for every edit, which can be computationally expensive for very long documents. Finally, like all LLMs, PEER can still hallucinate information, particularly if a user provides a "leading" plan containing false premises.

Summary updated

BibTeX
@inproceedings{schick2023peer,
  author = {Timo Schick and Jane A. Yu and Zhengbao Jiang and Fabio Petroni and Patrick Lewis and Gautier Izacard and Qingfei You and Christoforos Nalmpantis and Edouard Grave and Sebastian Riedel},
  title = {{PEER: A Collaborative Language Model}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=KbYevcLjnc},
}
Figure