Skip to main content
QUICK REVIEW

[Paper Review] LongForm: Effective Instruction Tuning with Reverse Instructions

Abdullatif Köksal, Timo Schick|arXiv (Cornell University)|Apr 17, 2023
Topic ModelingComputer Science11 citations
TL;DR

This paper introduces LongForm-C, an instruction-tuning dataset built via reverse instructions, and shows that LongForm models outperform prior instruction-tuned LMs on long-text generation and related tasks. It also releases data and models publicly.

ABSTRACT

Instruction tuning enables language models to more effectively generalize and better follow user intent. However, obtaining instruction data is costly and challenging. Prior work employs methods such as expensive human annotation, crowd-sourced datasets with alignment issues, and generating noisy examples via LLMs. We introduce the LongForm-C dataset, which is created by reverse instructions. We generate instructions via LLMs for human-written corpus examples using reverse instructions. First we select a diverse set of human-written documents from corpora such as C4 and Wikipedia; then we generate instructions for these documents via LLMs. This approach provides a cheaper and cleaner instruction-tuning dataset with natural output and one suitable for long text generation. Our models outperform 10x larger language models without instruction tuning on tasks such as story/recipe generation and long-form question answering. Moreover, LongForm models outperform prior instruction-tuned models such as FLAN-T5 and Alpaca by a large margin, and improve language understanding capabilities further. We publicly release our data and models: https://github.com/akoksal/LongForm.

Motivation & Objective

  • Motivate reducing cost and improving quality of instruction data for LM instruction tuning by leveraging reverse instructions.
  • Create a diverse long-text generation dataset (LongForm-C) combining corpora-derived outputs with LLM-generated instructions.
  • Demonstrate that LongForm-tuned models surpass prior instruction-tuned baselines across generation and some NLU tasks.
  • Show multilingual instruction-following capability and generalization to tasks outside the training distribution.

Proposed method

  • Construct LongForm-C by combining 15k corpus examples (via reverse instructions) with 12,739 examples from structured corpora and NLP tasks.
  • Use GPT-3 (text-davinci-003) in zero-shot prompts to generate instructions for each corpus example, with diverse styles (formal, informal, search-engine) and length controls.
  • Incorporate length control templates to modulate output length for a subset of data.
  • Fine-tune three LongForm models (LongForm-T5-3B, LongForm-OPT-6.7B, LongForm-LLaMA-7B) on LongForm-C with an added end-of-instruction token for autoregressive models.
  • Compare with baselines (T0++, Tk-Instruct, Flan-T5, Alpaca, OPT-30B) across long-text generation, NLP-style long outputs, and multilingual tasks.
  • Evaluate using METEOR primarily, with BLEU, ROUGE, and self-BLEU reported in Appendix, plus out-of-domain and multilingual benchmarks.

Experimental results

Research questions

  • RQ1Can reverse-instruction generated data provide cost-effective yet high-quality instruction-tuning material for long-text generation?
  • RQ2Do LongForm models improve over prior instruction-tuned models on long-form generation, long-form QA, stories, recipes, and multilingual tasks?
  • RQ3Does LongForm-C enhance language understanding (NLU) metrics like MMLU when combined with or compared to FLAN?
  • RQ4Are LongForm models capable of following multilingual instructions and generating text in target languages?
  • RQ5What is the composition and diversity of LongForm-C and how does it affect model performance?

Key findings

  • LongForm models outperform prior instruction-tuned LMs on long-text generation tasks across multiple architectures.
  • LongForm-OPT-6.7B and LongForm-LLaMA-7B achieve strong results, with LongForm-LLaMA-7B often superior to OPT-6.7B, consistent with prior findings about model families.
  • LongForm models show better out-of-domain generalization on recipe generation, ELI5, and Writing Prompts tasks compared to baselines.
  • In language understanding, LongForm-C improves NLG tasks and, when combined with FLAN, yields the best 5-shot MMLU performance among tested configurations.
  • Multilingual news generation experiments show LongForm models outperform baselines in German, Spanish, French, and Russian outputs, with LongForm-LLaMA-7B performing best in multilingual setups.
  • Human evaluation indicates 97/100 instructions are relevant to their corpus examples, suggesting high validity of the reverse-instructions approach.

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.