OpenChat: Advancing Open-source Language Models with Mixed-Quality Data

Guan Wang, Sijie Cheng, Xianyuan Zhan, Xiangang Li, Sen Song +1 more
2/12/2026

No official code found. Best implementation: imoneoi/openchat (5,484 stars, Apache-2.0, last commit 2024-09-13).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

imoneoi/openchatCommunity100%
Apache-2.0

OpenChat: Advancing Open-source Language Models with Imperfect Data

5,484432Shell, PythonMay 25, 20232 years agoApache-2.0
large-language-modelsopen-sourcetransformers

Similar Papers

Cite this paper

@article{wang2026openchat,
  title  = {OpenChat: Advancing Open-source Language Models with Mixed-Quality Data},
  author = {Guan Wang and Sijie Cheng and Xianyuan Zhan and Xiangang Li and Sen Song and Yang Liu},
  year   = {2026},
  eprint = {2309.11235},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.11235},
  journal = {ICLR 2023 2023}
}

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

Discussion