Exploring Format Consistency for Instruction Tuning

Shihao Liang, Runchu Tian, Kunlun Zhu, Yujia Qin, Huadong Wang +4 more
7/28/2023
17 citations
cs.CLcs.AI

Official code: thunlp/UnifiedInstructionTuning (5 stars, Python, last commit 2023-12-15).

Abstract

Instruction tuning has emerged as a promising approach to enhancing large language models in following human instructions. It is shown that increasing the diversity and number of instructions in the training data can consistently enhance generalization performance, which facilitates a recent endeavor to collect various instructions and integrate existing instruction tuning datasets into larger collections.

Show full abstract

However, different users have their unique ways of expressing instructions, and there often exist variations across different datasets in the instruction styles and formats, i.e., format inconsistency. In this work, we propose a framework named Unified Instruction Tuning (UIT), which calls OpenAI APIs for automatic format transfer among different instruction tuning datasets such as PromptSource, FLAN and CrossFit. With the framework, we (1) demonstrate the necessity of maintaining format consistency in instruction tuning; (2) improve the generalization performance on unseen instructions on T5-LM-xl; (3) provide a novel perplexity-based denoising method to reduce the noise of automatic format transfer to make the UIT framework more practical and a smaller offline model based on GPT-J that achieves comparable format transfer capability to OpenAI APIs to reduce costs in practice. Further analysis regarding variations of targeted formats and other effects is intended.

View on arXivView PDF

Code Implementations(1)

50Python, ShellJul 2, 20232 years ago

Similar Papers

Cite this paper

@article{liang2023exploring,
  title  = {Exploring Format Consistency for Instruction Tuning},
  author = {Shihao Liang and Runchu Tian and Kunlun Zhu and Yujia Qin and Huadong Wang and Xin Cong and Zhiyuan Liu and Xiaojiang Liu and Maosong Sun},
  year   = {2023},
  eprint = {2307.15504},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.15504v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.15504.svg)](https://codeofpaper.com/paper/2307.15504)

Discussion