Instruction Tuning with GPT-4
Written for the Research library (claude-opus-5-5) from the paper text, in our own words: the license "CC BY-NC-SA 4.0 (arXiv)" does not allow redistributing the text itself. Original — arxiv.org/pdf/2304.03277
Summary
Open models such as LLaMA are often taught to follow instructions through Self-Instruct tuning, where a stronger "teacher" model writes the training answers. Earlier projects like Stanford Alpaca relied on GPT-3.5 for this. The authors from Microsoft Research test whether GPT-4 makes a better teacher.
They kept Alpaca's 52K instructions and had GPT-4 produce fresh responses. They also built a Chinese version by translating the instructions with ChatGPT and having GPT-4 answer in Chinese. In addition, they collected GPT-4 ratings comparing outputs of several models, and GPT-4 answers on the Unnatural Instructions set.
Using this material, they fine-tuned LLaMA 7B models and trained an OPT-based reward model. They evaluated on unseen instructions with crowdsourced HHH judgments, GPT-4 scoring and ROUGE-L. Models trained on GPT-4 data beat Alpaca's GPT-3.5 data in zero-shot settings, most clearly in helpfulness, and come close to GPT-4 itself. The released data offers a cheap source of comparison data for RLHF research, which open projects had previously skipped because of labeling costs.
Key points
- Released datasets:
- 52K English and 52K Chinese instruction–response pairs generated by
gpt-4(temperature 1.0, max 512 tokens). - GPT-4 comparison scores on a 1–10 scale for GPT-4, GPT-3.5 and OPT-IML outputs.
- GPT-4 answers on the 68K-triplet core set of Unnatural Instructions.
- 52K English and 52K Chinese instruction–response pairs generated by
- Models:
- LLaMA-GPT4 and LLaMA-GPT4-CN, both built on LLaMA 7B and trained with Alpaca's schedule.
- A reward model on OPT 1.3B, trained with a pairwise ranking loss over all response pairs.
- Human evaluation (Amazon Mechanical Turk, HHH criteria) on helpfulness:
- Against Alpaca: LLaMA-GPT4 was preferred 54.12% of the time versus 19.74% (26.14% ties).
- Against GPT-4: preferences were nearly even, at 42.78% versus 44.11%.
- Benchmarks: User-Oriented-Instructions-252, Vicuna-Instructions-80 and Unnatural Instructions (68,478 samples).
- Data statistics: GPT-4 outputs are longer than GPT-3.5's and contain fewer unique verb–noun pairs (5,229 vs 6,133).
Cited by
- AlpaGasus: Training A Better Alpaca with Fewer Data
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving
- MiniLLM: On-Policy Distillation of Large Language Models
- HallusionBench: An Advanced Diagnostic Suite for Entangled Language Hallucination and Visual Illusion in Large Vision-Language Models
- The False Promise of Imitating Proprietary LLMs
- Lawyer LLaMA Technical Report
- A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions
- TrustLLM: Trustworthiness in Large Language Models
- Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2
- Prometheus: Inducing Fine-grained Evaluation Capability in Language Models
- Understanding the Effects of RLHF on LLM Generalisation and Diversity
- DistiLLM: Towards Streamlined Distillation for Large Language Models
- OpenAssistant Conversations -- Democratizing Large Language Model Alignment
- Self-Alignment with Instruction Backtranslation
- OCRBench: On the Hidden Mystery of OCR in Large Multimodal Models
- Visual Instruction Tuning
- Chameleon: Plug-and-Play Compositional Reasoning with Large Language Models
- A Comprehensive Overview of Large Language Models
- InFoBench: Evaluating Instruction Following Ability in Large Language Models
- Jais and Jais-chat: Arabic-Centric Foundation and Instruction-Tuned Open Generative Large Language Models
- Preference Ranking Optimization for Human Alignment
- SALMONN: Towards Generic Hearing Abilities for Large Language Models
- Aligning Large Language Models with Human: A Survey
- How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources
- MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning
- OpenChat: Advancing Open-source Language Models with Mixed-Quality Data
- PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization
- DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding
- Large Language Model as Attributed Training Data Generator: A Tale of Diversity and Bias
- MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilities
- MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning
- MAmmoTH2: Scaling Instructions from the Web
- Instruction Tuning for Large Language Models: A Survey
- LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attention
- Sentiment Analysis in the Era of Large Language Models: A Reality Check
- Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Models
- A Survey of Large Language Models
- Secrets of RLHF in Large Language Models Part I: PPO
- Instruction-Following Evaluation for Large Language Models
- JudgeLM: Fine-tuned Large Language Models are Scalable Judges
- Large Language Models for Information Retrieval: A Survey
Cite
@misc{peng2023instruction,
title = {{Instruction Tuning with GPT-4}},
author = {Peng, Baolin and Li, Chunyuan and He, Pengcheng and Galley, Michel and Gao, Jianfeng},
year = {2023},
doi = {10.48550/arxiv.2304.03277},
eprint = {2304.03277},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2304.03277}
}References
- Amanda Askell, Yuntao Bai, Anna Chen, Dawn Drain, Deep Ganguli, Tom Henighan, Andy Jones, Nicholas Joseph, Ben Mann, Nova DasSarma, et al. A general language assistant as a laboratory for alignment. arXiv preprint arXiv:2112.00861, 2021. find our card
- Anas Awadalla, Irena Gao, Joshua Gardner, Jack Hessel, Yusuf Hanafy, Wanrong Zhu, Kalyani Marathe, Yonatan Bitton, Samir Gadre, Jenia Jitsev, Simon Kornblith, Pang Wei Koh, Gabriel Ilharco, Mitchell Wortsman, and Ludwig Schmidt. Openflamingo, March 2023. URL https: //doi.org/10.5281/zenodo.7733589. — [doi:10.5281/zenodo.7733589](https://doi.org/10.5281/zenodo.7733589) find
- Stephen H. Bach, Victor Sanh, Zheng-Xin Yong, Albert Webson, Colin Raffel, Nihal V. Nayak, Abheesht Sharma, Taewoon Kim, M Saiful Bari, Thibault Fevry, Zaid Alyafeai, Manan Dey, Andrea Santilli, Zhiqing Sun, Srulik Ben-David, Canwen Xu, Gunjan Chhablani, Han Wang, Jason Alan Fries, Maged S. Al-shaib… find our card
- Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, et al. Constitutional ai: Harmlessness from ai feedback. arXiv preprint arXiv:2212.08073, 2022. find our card
- Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. GPT-Neo: Large scale autoregressive language modeling with mesh-tensorflow, March 2021. URL https://doi. org/10.5281/zenodo.5297715. — [doi:10.5281/zenodo.5297715](https://doi.org/10.5281/zenodo.5297715) find
- Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. find
- Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. Scaling instruction-finetuned language models. arXiv preprint arXiv:2210.11416, 2022. find
- Databricks. Dolly. https://github.com/databrickslabs/dolly, 2023. ↗
- Google. Bard. https://bard.google.com/, 2023. ↗
- Or Honovich, Thomas Scialom, Omer Levy, and Timo Schick. Unnatural instructions: Tuning language models with (almost) no human labor, 2022. URL https://arxiv.org/abs/2212.09689. ↗ our card
- Srinivasan Iyer, Xi Victoria Lin, Ramakanth Pasunuru, Todor Mihaylov, Dániel Simig, Ping Yu, Kurt Shuster, Tianlu Wang, Qing Liu, Punit Singh Koura, et al. Opt-iml: Scaling language model instruction meta learning through the lens of generalization. arXiv preprint arXiv:2212.12017, 2022. find our card
- Geunwoo Kim, Pierre Baldi, and Stephen McAleer. Language models can solve computer tasks. arXiv preprint arXiv:2303.17491, 2023. find our card
- LAION-AI. Open-assistant. https://github.com/LAION-AI/Open-Assistant, 2023. ↗
- Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Sean Welleck, Bodhisattwa Prasad Majumder, Shashank Gupta, Amir Yazdanbakhsh, and Peter Clark. Self-refine: Iterative refinement with self-feedback, 2023. find
- OpenAI. ChatGPT. https://openai.com/blog/chatgpt/, 2023a. ↗
- OpenAI. Gpt-4 technical report, 2023b. find our card
- Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35: 27730–27744, 2022. find
- Baolin Peng, Michel Galley, Pengcheng He, Hao Cheng, Yujia Xie, Yu Hu, Qiuyuan Huang, Lars Liden, Zhou Yu, Weizhu Chen, et al. Check your facts and try again: Improving large language models with external knowledge and automated feedback. arXiv preprint arXiv:2302.12813, 2023. find our card
- Victor Sanh, Albert Webson, Colin Raffel, Stephen H Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Teven Le Scao, Arun Raja, et al. Multitask prompted training enables zero-shot task generalization. arXiv preprint arXiv:2110.08207, 2021. find our card
- Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilić, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. Bloom: A 176b-parameter open-access multilingual language model. arXiv preprint arXiv:2211.05100, 2022. find
- ShareGPT. https://sharegpt.com/, 2023. ↗
- Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford\_alpaca, 2023. ↗
- Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023. find
- Vicuna. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality. https: //vicuna.lmsys.org/, 2023. find
- Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax, May 2021. ↗
- Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A Smith, Daniel Khashabi, and Hannaneh Hajishirzi. Self-instruct: Aligning language model with self generated instructions. arXiv preprint arXiv:2212.10560, 2022a. find
- Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Anjana Arunkumar, Arjun Ashok, Arut Selvan Dhanasekaran, Atharva Naik, David Stap, et al. Benchmarking generalization via in-context instructions on 1,600+ language tasks. arXiv preprint arXiv:2204.07705, 2022b. find
- Jason Wei, Maarten Bosma, Vincent Y Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. Finetuned language models are zero-shot learners. arXiv preprint arXiv:2109.01652, 2021. find
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022. find our card
- Tianbao Xie, Chen Henry Wu, Peng Shi, Ruiqi Zhong, Torsten Scholak, Michihiro Yasunaga, Chien-Sheng Wu, Ming Zhong, Pengcheng Yin, Sida I Wang, et al. UnifiedSKG: Unifying and multi-tasking structured knowledge grounding with text-to-text language models. arXiv preprint arXiv:2201.05966, 2022. find our card
- Renrui Zhang, Jiaming Han, Aojun Zhou, Xiangfei Hu, Shilin Yan, Pan Lu, Hongsheng Li, Peng Gao, and Yu Qiao. Llama-adapter: Efficient fine-tuning of language models with zero-init attention. arXiv preprint arXiv:2303.16199, 2023. find our card
- Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. OPT: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. find
- Ruiqi Zhong, Kristy Lee, Zheng Zhang, and Dan Klein. Adapting language models for zero-shot learning by meta-tuning on dataset and prompt collections. arXiv preprint arXiv:2104.04670, 2021. find