[Paper Review] OpenChat: Advancing Open-source Language Models with Mixed-Quality Data
OpenChat introduces Conditioned-RLFT to fine-tune open-source LLMs with mixed-quality data without human preference labels, achieving state-of-the-art results among 13B Open-Source models on multiple benchmarks.
Nowadays, open-source large language models like LLaMA have emerged. Recent developments have incorporated supervised fine-tuning (SFT) and reinforcement learning fine-tuning (RLFT) to align these models with human goals. However, SFT methods treat all training data with mixed quality equally, while RLFT methods require high-quality pairwise or ranking-based preference data. In this study, we present a novel framework, named OpenChat, to advance open-source language models with mixed-quality data. Specifically, we consider the general SFT training data, consisting of a small amount of expert data mixed with a large proportion of sub-optimal data, without any preference labels. We propose the C(onditioned)-RLFT, which regards different data sources as coarse-grained reward labels and learns a class-conditioned policy to leverage complementary data quality information. Interestingly, the optimal policy in C-RLFT can be easily solved through single-stage, RL-free supervised learning, which is lightweight and avoids costly human preference labeling. Through extensive experiments on three standard benchmarks, our openchat-13b fine-tuned with C-RLFT achieves the highest average performance among all 13b open-source language models. Moreover, we use AGIEval to validate the model generalization performance, in which only openchat-13b surpasses the base model. Finally, we conduct a series of analyses to shed light on the effectiveness and robustness of OpenChat. Our code, data, and models are publicly available at https://github.com/imoneoi/openchat and https://huggingface.co/openchat.
Motivation & Objective
- Motivate leveraging mixed-quality SFT data (expert + sub-optimal) for open-source LLM fine-tuning without preference labels.
- Develop a lightweight RL-free training objective that exploits coarse-grained rewards from data sources.
- Introduce class-conditioned policy and reference policy to differentiate data quality during fine-tuning.
- Demonstrate that OpenChat with C-RLFT achieves superior instruction-following performance on standard benchmarks.
Proposed method
- Define class-conditioned dataset by labeling data sources (e.g., GPT-4 vs GPT-3.5).
- Propose C-RLFT: fine-tune as a class-conditioned policy πθ(y|x,c) with KL regularization toward a class-conditioned reference policy πc.
- Derive the optimal policy as a class-conditioned reward-weighted regression and implement via supervised learning (no RL loop required).
- Use coarse-grained rewards rc(x,y) that assign 1 for expert data and α (0<α<1) for sub-optimal data, with exponential weighting in the objective.
- Train openchat-13b (llama-2-13b base) on ShareGPT data for 5 epochs with AdamW, using a simple reward-weighted regression objective.
- Infer with class-conditioned prompts that reflect data-source quality to generate high-quality responses.
Experimental results
Research questions
- RQ1Can mixed-quality SFT data (expert + sub-optimal) be effectively leveraged to fine-tune open-source LLMs without expensive preference data?
- RQ2Does a class-conditioned policy plus a coarse-grained reward signal improve instruction-following over standard SFT or RLHF approaches?
- RQ3Is RL-free, reward-weighted supervision (C-RLFT) sufficient to surpass existing open-source models on standard benchmarks?
- RQ4How does data source quality (GPT-4 vs GPT-3.5) impact generalization and robustness of the fine-tuned model?
Key findings
- OpenChat with C-RLFT achieves the highest average win-rate among 13B open-source models across AlpacaEval, MT-bench, and Vicuna-bench.
- OpenChat-13b surpasses many larger models and can even outperform GPT-3.5-turbo on all three benchmarks.
- AGIEval results show OpenChat-13b achieves top-1 average accuracy among 13B open-source models, indicating good generalization.
- Ablation studies show removing coarse-grained rewards or the class-conditioned policy degrades performance, while only-SFT training yields lower scores.
- Visual analyses indicate the model learns to distinguish data-source quality in representations, reflecting the effectiveness of C-RLFT.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.