HuatuoGPT-3:仅用强化学习从基础模型进行领域适应

·

研究论文 · 2026/10/07

领域适应旨在将通用大语言模型转变为特定领域的专家。主流的SFT+RL流程虽提供了便捷的冷启动,但可能降低探索多样性,并因多阶段优化引入额外复杂性。这些局限促使了仅用RL的适应方案。然而,纯在线策略RL存在冷启动问题,而混合策略RL仍有不足:教师输出中的信息性token在训练早期学习过慢,且过时的教师输出会阻碍后期提升。我们将这两种失败模式识别为梯度饥饿和教师分布锚定。为解决这些问题,我们提出单阶段策略优化(OnePO),将教师输出视为策略改进的临时指导。OnePO结合了自适应目标演化以加强对信息性低概率教师token的学习,以及教师退休机制,在当前策略能够超越教师输出后将其丢弃。在医学适应任务上,OnePO仅用2万训练样本即在HealthBench(总分)上达到67.2,分别超过SFT+RL和纯RL 2.7和7.4分。我们进一步扩展OnePO以产出HuatuoGPT-3,一个开源医学大语言模型系列,其27B变体在HealthBench(总分)上达到70.1,在HealthBench Professional上达到71.4,超越了GPT-6 Astra等前沿模型。模型和代码见https://github.com/FreedomIntelligence/HuatuoGPT-3。

该工作提出仅用强化学习的领域适应新范式,解决了现有RL方法的冷启动和教师依赖问题,并在医学基准上以少量数据超越前沿模型,具有重要的方法创新和实际应用价值。

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.

阅读原文

参与讨论