← Back to Reinforcement Learning Mind Map
🎮 Reinforcement LearningID: offline-to-online

Offline-to-Online Fine-Tuning

离线到在线微调
🎯Core Definition
Offline-to-online RL first trains a conservative policy on fixed offline data, then keeps optimizing through online interaction; two key mechanisms: (1) conservatism annealing — gradually decay the offline conservative coefficient (e.g., CQL's α\alpha toward 0) so 'conservative inertia' does not suppress online exploration; (2) replay mixing — sample online and offline data in a blended ratio, anchoring on old data to keep distribution shift from resurfacing and training stable.
💡Use Cases
systems that cold-start from logs then keep interacting — recommenders/ads pretrained on logs before self-adaptation, robots trained in simulation or on history before deployment, LLM alignment pipelines.
⚡Key Problems Solved
tackles the two failure modes of deploying a purely offline policy — suboptimality from residual conservatism (needs loosening as environment signals arrive) and policy collapse during early exploration (old-data replay acts as a safety anchor); it also maps naturally onto RLHF — the SFT/preference data of RLHF stage 1 is an offline dataset, and PPO/GRPO start from the reference policy with a KL anchor, i.e., 'offline data to online optimization' realized in LLMs.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Offline-to-Online Fine-Tuning.
Use Cases
In production engineering, what are the primary use cases for Offline-to-Online Fine-Tuning and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Why must conservatism be annealed in offline-to-online? What happens if you go online with a large penalty coefficient?
2
What is the role of replay mixing? How does the new/old data sampling ratio affect stability?
3
CQL or IQL for offline-to-online? Why is IQL often more stable?
4
How does RLHF relate to offline-to-online? How does the reference-policy KL constraint act as 'conservatism'?
5
How do you schedule the anneal from conservative to fully online? When can old-data replay be dropped?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Offline-to-Online Fine-Tuning"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardImplicit Q-LearningNext Card →World Model Learning

🔗 More Reinforcement Learning Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/RL/card/offline-to-online
中文速览与面试要点

离线到在线微调 (Offline-to-Online Fine-Tuning)

定义: 离线到在线微调 (Offline-to-Online RL) 指先用固定离线数据训练保守策略,再与环境交互继续优化;两大关键机制: (1) 保守惩罚退火 (Conservatism Annealing)——逐步降低离线阶段的保守系数 (如 CQL 的 退火到 0),避免『保守惯性』压住在线探索; (2) 回放混合 (Replay Mixing)——在线新数据与离线旧数据按比例混合采样回放,以旧数据为锚,防止分布偏移回潮、保持训练稳定。 使用场景: 先冷启动后可持续交互的系统——推荐/广告先用日志预训练再上线自适应、机器人先仿真或历史轨迹再真机部署、LLM 对齐流水线。 解决的问题: 解决纯离线策略直接上线的两大问题——保守正则残留导致的次优 (需在环境信号下逐步松绑) 与探索初期策略崩溃风险 (旧数据回放做安全锚点);并天然衔接 RLHF: RLHF 第一步收集的 SFT/偏好数据就是离线数据集,PPO/GRPO 从参考策略出发、用 KL 约束锚定分布,正是『从离线数据出发到在线优化』在 LLM 中的体现。

核心要点

  • 为什么 offline-to-online 需要保守惩罚退火?带着过大的保守系数直接上线会怎样?
  • 回放混合 (Replay Mixing) 的作用?新/旧数据采样比例如何影响训练稳定性?
  • CQL 与 IQL 谁更适合 offline-to-online?为什么 IQL 常表现更稳?
  • RLHF 与 offline-to-online 的联系?参考策略的 KL 约束如何充当『保守惩罚』?
  • 如何设计从保守到纯在线的退火判据?何时可以停止回放旧数据?