Tuna: Instruction Tuning using Feedback from Large Language Models

Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei
10/20/2023
cs.CLcs.LG

Official code: microsoft/LMOps (4,440 stars, MIT, last commit 2026-04-30).

Abstract

Instruction tuning of open-source large language models (LLMs) like LLaMA, using direct outputs from more powerful LLMs such as Instruct-GPT and GPT-4, has proven to be a cost-effective way to align model behaviors with human preferences. However, the instruction-tuned model has only seen one response per instruction, lacking the knowledge of potentially better responses. In this paper, we propose finetuning an instruction-tuned LLM using our novel \textit{probabilistic ranking} and \textit{contextual ranking} approaches to increase the likelihood of generating better responses. Probabilistic ranking enables the instruction-tuned model to inherit the relative rankings of high-quality and low-quality responses from the teacher LLM. On the other hand, learning with contextual ranking allows the model to refine its own response distribution using the contextual understanding ability of stronger LLMs. Furthermore, we apply probabilistic ranking and contextual ranking sequentially to the instruction-tuned LLM. The resulting model, which we call \textbf{Tuna}, consistently improves the performance on Super Natural Instructions (119 test tasks), LMentry (25 test tasks), Vicuna QA, and can even obtain better results than several strong reinforcement learning baselines. Our code and data are available at \url{ https://github.com/microsoft/LMOps}.

View on arXivView PDF

Code Implementations(1)

microsoft/LMOpsOfficial100%
MIT

General technology for enabling AI capabilities w/ LLMs and MLLMs

4,440377C, C++Dec 13, 20225 months agoMIT
agigptlanguage-modelllmlm+6 more

Similar Papers

Cite this paper

@article{li2023tuna,
  title  = {Tuna: Instruction Tuning using Feedback from Large Language Models},
  author = {Haoran Li and Yiran Liu and Xingxing Zhang and Wei Lu and Furu Wei},
  year   = {2023},
  eprint = {2310.13385},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.13385v1}
}

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/2310.13385.svg)](https://codeofpaper.com/paper/2310.13385)

Discussion