Skip to main content
QUICK REVIEW

[Paper Review] Baize: An Open-Source Chat Model with Parameter-Efficient Tuning on Self-Chat Data

Canwen Xu, Daya Guo|arXiv (Cornell University)|Apr 3, 2023
Topic ModelingComputer Science7 citations
TL;DR

Baize is an open-source LLaMA-based chat model trained with parameter-efficient tuning (LoRA) on self-generated ChatGPT dialogues, enhanced by Self-Distillation with Feedback, enabling multi-turn chat on a single GPU.

ABSTRACT

Chat models, such as ChatGPT, have shown impressive capabilities and have been rapidly adopted across numerous domains. However, these models are only accessible through a restricted API, creating barriers for new research and progress in the field. We propose a pipeline that can automatically generate a high-quality multi-turn chat corpus by leveraging ChatGPT to engage in a conversation with itself. Subsequently, we employ parameter-efficient tuning to enhance LLaMA, an open-source large language model. The resulting model, named Baize, demonstrates good performance in multi-turn dialogues with guardrails that minimize potential risks. Furthermore, we propose a new technique called Self-Distill with Feedback, to further improve the performance of the Baize models with feedback from ChatGPT. The Baize models and data are released for research purposes only at https://github.com/project-baize/baize-chatbot. An online demo is also available at https://huggingface.co/spaces/project-baize/chat-with-baize.

Motivation & Objective

  • Demonstrate a reproducible pipeline to automatically generate a high-quality multi-turn chat corpus via self-chat with ChatGPT.
  • Fine-tune open-source LLaMA models using parameter-efficient methods to create capable chat assistants.
  • Introduce Self-Distillation with Feedback (SDF) to further improve Baize without RLHF.
  • Show that Baize can run on a single GPU and provide guardrails to minimize risks.
  • Make Baize and its data available for research purposes while addressing safety and licensing considerations.

Proposed method

  • Generate a high-quality multi-turn chat corpus by having ChatGPT converse with itself using seed questions from public datasets.
  • Fine-tune LLaMA models with LoRA (low-rank adapters) across all linear layers to enable parameter-efficient learning.
  • Apply Self-Distillation with Feedback (SDF) where ChatGPT-ranked Baize v1.5 outputs are used to fine-tune Baize v2 with additional LoRA updates.
  • Incorporate an instruction prompt that enforces refusal to engage with unethical or sensitive topics during inference.
  • Evaluate using GPT-4-based ranking and LM Evaluation Harness metrics to compare Baize against open-source and proprietary baselines.

Experimental results

Research questions

  • RQ1How effective is self-chat data for training open-source chat models in multi-turn dialogues?
  • RQ2Can parameter-efficient tuning (LoRA) produce competitive open-source chat models on LLaMA with limited resources?
  • RQ3Does Self-Distillation with Feedback (SDF) improve Baize beyond supervised fine-tuning?
  • RQ4How does Baize compare to other open-source chat models (e.g., Vicuna, Alpaca) and to GPT-4-based evaluations?
  • RQ5What are the safety guardrails and licensing implications of releasing Baize weights and data for research?

Key findings

  • Baize demonstrates strong multi-turn dialogue capabilities with guardrails that limit sensitive topics.
  • Baize v2-13B is on par with Vicuna-13B in GPT-4-based evaluation, despite Vicuna being fully fine-tuned.
  • Baize v2-7B outperforms Vicuna-7B in GPT-4-based evaluation.
  • Self-Distillation with Feedback (SDF) is faster than RLHF and does not require reward-model training, while improving performance.
  • Baize models trained with LoRA on LLaMA weights can run on a single GPU, enabling broader researcher access.
  • The data and models are released for research purposes with CC-BY-NC 4.0 licensing for the fine-tuning corpus and LLaMA licensing considerations.

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.