Manuscript Offprint

arXiv:2610.05966

HuatuoGPT-3: RL-Only Domain Adaptation from Base Models

Junying Chen, Xinyuan Xie, Ziniu Li, Wenyuan Gu, Jianquan Li, Xiang Wan, Guangjun Yu, Ruoyu Sun, Haizhou Li, Benyou Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Domain adaptation aims to turn a general-purpose large language model (LLM) into an expert for a target domain. While the dominant SFT+RL pipeline offers a convenient cold start, it may reduce exploration diversity and introduces additional complexity through multi-stage optimization. These limitations motivate RL-only adaptation. However, pure on-policy RL suffers from a cold-start problem, while mixed-policy RL still falls short: informative tokens in teacher outputs are learned too slowly in early training, and stale teacher outputs can hinder later improvement. We identify these two failure modes as Gradient Starvation and Teacher-Distribution Anchoring. To address them, we propose One-stage Policy Optimization (OnePO), which treats teacher outputs as transient guidance for policy improvement. OnePO combines Adaptive Objective Evolution to strengthen learning on informative low-probability teacher tokens and Teacher Retirement to discard teacher outputs once the current policy can surpass them. On medical adaptation, OnePO achieves 67.2 on HealthBench (Total) with only 20K training samples, outperforming SFT+RL and pure RL by 2.7 and 7.4 points, respectively. We further scale OnePO to produce HuatuoGPT-3, an open-source medical LLM series whose 27B variant reaches 70.1 on HealthBench (Total) and 71.4 on HealthBench Professional, surpassing frontier models such as GPT-6 Astra. Models and code are available at https://github.com/FreedomIntelligence/HuatuoGPT-3.

1 Introduction

Turning a general-purpose Large Language Model (LLM) into an expert for a target domain is a common training goal, which we refer to as domain adaptation. In practice, the most common route begins with supervised fine-tuning (SFT), which provides a convenient cold start [1–4]. To further encourage more diverse outputs and improve generalization beyond imitation, reinforcement learning (RL) is often introduced afterward [5–11]. However, prior work suggests that SFT may reduce output diversity and restrict the exploration space available to subsequent RL [12–15]. Moreover, this multi-stage pipeline introduces shifts in objectives and data distributions, which increase optimization complexity and may exacerbate forgetting of previously acquired capabilities [16–18, 6].

These limitations motivate a one-stage, RL-only alternative. The most direct RL-only formulation is pure on-policy RL (e.g., DeepSeek-R1-Zero [19]), which updates the model using trajectories sampled from its current policy. However, it suffers from a cold-start problem: without external guidance, the model must acquire target-domain capability slowly through its own trial-and-error

∗^{*}Equal contribution. †\daggerCorresponding author.

Preprint.

exploration [19, 20]. A natural solution is therefore to introduce off-policy trajectories provided by other policies (referred to as teacher outputs hereafter) into on-policy training, leading to mixed-policy RL [21]. Yet we find that mixed-policy RL still falls short in two ways: 1) early in training, useful tokens from teacher outputs often receive only weak learning signals, so the model learns new target-domain capabilities too slowly; 2) later in training, stale teacher outputs still pull the policy toward weaker behaviors, even after it can generate better ones on its own. We refer to these two failure modes as Gradient Starvation and Teacher-Distribution Anchoring.

To address these weaknesses, we propose One-stage Policy Optimization (OnePO), an RL-only paradigm for domain adaptation. The key idea is to treat teacher outputs as transient guidance for policy improvement: strengthen their learning signals when the policy is weak, and retire them once the policy can match or surpass them. Concretely, OnePO is built on two mechanisms: 1) Adaptive Objective Evolution, which uses a corrected teacher-output objective with a probability floor and gradient rescaling to strengthen learning on informative low-probability teacher tokens, thereby counteracting Gradient Starvation; and 2) Teacher Retirement, which retains teacher outputs only when their rewards strictly exceed the maximum reward among the current on-policy outputs, thereby preventing Teacher-Distribution Anchoring.

We validate OnePO in the medical domain, a challenging setting of both practical importance and comprehensive evaluation. Using only 20K training samples, OnePO consistently outperforms both pure RL and SFT+RL on HealthBench and related medical benchmarks. We further scale the same paradigm to the HuatuoGPT-3 series, producing open-source 9B and 27B medical models that achieve up to 71.4 on HealthBench Professional. These results show that, with properly designed teacher-guidance mechanisms, RL-only training can be a practical and effective route for domain adaptation.

Our contributions are as follows:

• Diagnosis of Existing RL Paradigms. We analyze the limitations of existing routes for domain adaptation and identify two failure modes in standard mixed-policy RL: Gradient Starvation and Teacher-Distribution Anchoring. We validate this diagnosis through controlled pilot studies.

• A New RL-Only Paradigm: OnePO. We introduce OnePO, an RL-only paradigm that uses teacher outputs as transient guidance for acquiring target-domain capability, and then returns training to on-policy improvement through Adaptive Objective Evolution and Teacher Retirement.

• Validation in the Medical Domain. In medical domain adaptation with 20K training samples, OnePO outperforms both SFT+RL and pure RL on HealthBench. We further scale OnePO to HuatuoGPT-3, an open-source medical LLM series whose 27B variant reaches 71.4 on HealthBench Professional.

References (88)