Skip to main content
QUICK REVIEW

[Paper Review] RewriteLM: An Instruction-Tuned Large Language Model for Text Rewriting

Lei Shu, Liangchen Luo|arXiv (Cornell University)|May 25, 2023
Topic ModelingComputer Science4 citations
TL;DR

This paper introduces RewriteLM, an instruction-tuned large language model specifically optimized for cross-sentence text rewriting using minimal human-annotated data. By leveraging Wiki edit mining, chain-of-thought prompting, and a novel ranking function for reward modeling, RewriteLM achieves state-of-the-art performance on the new OpenRewriteEval benchmark, significantly outperforming both base LLMs and instruction-tuned baselines across multiple rewriting types.

ABSTRACT

Large Language Models (LLMs) have demonstrated impressive capabilities in creative tasks such as storytelling and E-mail generation. However, as LLMs are primarily trained on final text results rather than intermediate revisions, it might be challenging for them to perform text rewriting tasks. Most studies in the rewriting tasks focus on a particular transformation type within the boundaries of single sentences. In this work, we develop new strategies for instruction tuning and reinforcement learning to better align LLMs for cross-sentence rewriting tasks using diverse wording and structures expressed through natural languages including 1) generating rewriting instruction data from Wiki edits and public corpus through instruction generation and chain-of-thought prompting; 2) collecting comparison data for reward model training through a new ranking function. To facilitate this research, we introduce OpenRewriteEval, a novel benchmark covers a wide variety of rewriting types expressed through natural language instructions. Our results show significant improvements over a variety of baselines. The public repository is available on GitHub under Google Research (https://github.com/google-research/google-research/tree/master/rewritelm).

Motivation & Objective

  • To address the challenge of training LLMs for cross-sentence text rewriting, where models often fail to preserve content or introduce hallucinations.
  • To reduce reliance on costly human-annotated data by developing automated data collection strategies for instruction tuning and reward modeling.
  • To create a comprehensive benchmark, OpenRewriteEval, that supports diverse rewriting types through natural language instructions.
  • To improve model controllability and output quality in rewriting tasks by integrating reinforcement learning with a multi-dimensional reward function.
  • To demonstrate that instruction-tuned and RL-fine-tuned LLMs can achieve superior performance on open-ended rewriting tasks compared to general-purpose instruction-tuned models.

Proposed method

  • Generated instruction data by extracting cross-sentence edits from Wikipedia revisions and applying instruction generation and chain-of-thought prompting to create diverse rewriting examples.
  • Created synthetic instruction-rewrite pairs from public corpora using chain-of-thought prompting and post-processing to enhance dataset diversity.
  • Designed a new ranking function to automatically collect comparison data for reward model training, evaluating rewrite quality across content preservation, hallucination, linguistic variability, and length change.
  • Trained a supervised fine-tuned model (Rewrite-PaLM) using the automatically generated instruction data to align the model with rewriting instructions.
  • Applied reinforcement learning on top of the supervised fine-tuned model using the ranking function to further optimize output quality.
  • Introduced OpenRewriteEval, a new benchmark with human-annotated rewrites and natural language instructions covering a wide range of rewriting types and cross-sentence transformations.

Experimental results

Research questions

  • RQ1Can large language models be effectively fine-tuned for cross-sentence text rewriting using minimal human-annotated data?
  • RQ2How effective are automated data generation techniques—such as Wiki edit mining and chain-of-thought prompting—in creating high-quality instruction-tuning data for rewriting tasks?
  • RQ3Can a learned ranking function replace human-annotated comparison data for training reward models in text rewriting?
  • RQ4To what extent does reinforcement learning improve rewriting quality when applied to instruction-tuned LLMs?
  • RQ5How does RewriteLM compare to state-of-the-art instruction-tuned and base LLMs on a diverse, open-ended rewriting benchmark?

Key findings

  • Rewrite-RL${}_{\text{r/w}}$-PaLM 2-S achieved the highest performance on OpenRewriteEval, with a SARI score of 20.15 on the 'elaborate' category and 26.32 on the 'updated' category.
  • Rewrite-PaLM 2-S outperformed its base model PaLM 2-S by a large margin, achieving a SARI score of 18.13 on the 'elaborate' category and 25.55 on the 'updated' category.
  • Instruction-tuned models like Rewrite-Flan-PaLM-62B and Rewrite-PaLM-62B significantly outperformed their corresponding base models, with SARI scores of 17.92 and 16.44 on the 'elaborate' category, respectively.
  • The proposed reward model training strategy using the ranking function led to consistent improvements across all evaluation categories, with the best model showing a 30% relative gain in SARI over baseline instruction-tuned models.
  • Even state-of-the-art instruction-tuned models like Flan-PaLM and Alpaca showed limited performance on open-ended rewriting tasks, highlighting the need for specialized fine-tuning.
  • The OpenRewriteEval benchmark revealed that current LLMs struggle with cross-sentence rewriting, especially in preserving content and avoiding hallucinations, validating the need for targeted training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.