TL;DR
OpenChat introduces Conditioned-RLFT (C-RLFT), a framework that enables large language models (LLMs) to learn effectively from mixed-quality data—such as a small set of expert GPT-4 samples mixed with a large volume of sub-optimal GPT-3.5 samples. By treating data sources as coarse reward signals, the authors achieve state-of-the-art performance for a 13B-parameter model using a simple, single-stage supervised learning objective, entirely bypassing the need for expensive human preference labels.
The Challenge: SFT vs. RLFT
Fine-tuning a base model (like LLaMA-2) typically follows one of two paths: Supervised Fine-Tuning (SFT) or Reinforcement Learning Fine-Tuning (RLFT/RLHF).
SFT is straightforward but flawed: it treats all training data as equally "correct." If a dataset contains 5% expert responses and 95% mediocre ones, SFT effectively averages them out, leading to sub-optimal performance. RLFT, on the other hand, can distinguish quality but requires massive amounts of pairwise preference data ("Response A is better than Response B") and relies on complex, unstable training loops like PPO.
The authors identify a practical middle ground: datasets where the source of the data is known (e.g., GPT-4 vs. GPT-3.5) but specific rankings are absent. The core challenge is leveraging these coarse quality labels to reach expert-level performance without the overhead of full reinforcement learning.
Introducing Conditioned-RLFT (C-RLFT)
To bridge this gap, the researchers propose Conditioned-RLFT (C-RLFT).
The approach is built on three main pillars:
- Coarse-Grained Rewards: Instead of training a complex reward model, C-RLFT assigns a simple scalar based on the data source. For instance, expert GPT-4 data receives a reward of $1.0$, while sub-optimal GPT-3.5 data receives a lower value like $0.1$.
- Class-Conditioned Policy: During training, a "quality token" is prepended to the input (e.g.,
GPT4 User:vs.GPT3 User:). This teaches the model to associate specific styles and quality levels with specific prompts. - RL-Free Optimization: Through mathematical derivation, the authors prove that the optimal policy for a KL-regularized RL objective with these coarse rewards is equivalent to reward-weighted regression. This allows them to solve the reinforcement learning problem using a modified version of standard supervised learning—making training lightweight, stable, and memory-efficient.
Datasets and Evaluation
The primary training dataset is ShareGPT, containing roughly 70k user-shared conversations. This was split into an "expert" pool (~6k GPT-4 conversations) and a "sub-optimal" pool (~64k GPT-3.5 conversations).
The model was evaluated on instruction-following benchmarks (AlpacaEval, MT-bench, Vicuna-bench) and generalization tasks via AGIEval, a collection of human-centric standardized exams like the SAT and LSAT.
Key Insights and Results
By training on both high- and low-quality data but labeling it during training, the model learns the distribution of both. At inference time, prompting the model with the expert template effectively filters out the sub-optimal behaviors it learned. Ablation studies demonstrated that C-RLFT outperformed training only on the small 6k GPT-4 dataset, proving that sub-optimal data still contains valuable information when properly conditioned.
- Top of its Class: OpenChat-13b achieved an average win rate of 77.3% across the three instruction benchmarks, the highest among all 13B open-source models at the time of publication.
- Beating the Giants: On MT-bench and Vicuna-bench, OpenChat-13b outperformed GPT-3.5-turbo, despite its significantly smaller parameter count.
- Mitigating Forgetting: Most fine-tuning methods incur an "alignment tax," degrading general logic and reasoning. OpenChat-13b was the only model in its class to improve upon the base LLaMA-2-13b's AGIEval scores, indicating that C-RLFT preserves base model reasoning better than standard SFT.
Limitations and Future Work
- Simplistic Reward Mapping: Assuming all GPT-4 data is a perfect "1.0" and GPT-3.5 is "0.1" is a heuristic. In reality, response quality varies within sources.
- Source Dependency: The method relies on knowing the data source. Its efficacy on a "blind" dataset where quality must be inferred remains an open question.
- Reasoning vs. Following: While the model excels at instruction following, improving deep reasoning abilities remains a primary area for future research.
Summary updated