Back to Blog返回博客

Your Critic May Learn to Give Up Before Your Robot Learns to Pick Up

训练 RL,课程太难,critic 可能比机器人更早学会放弃。反复失败之后,它对一大片状态的判断都变成了:没戏。最麻烦的不是分数低,而是快成功和差得远,看起来都差不多。

课程也在决定 critic 能看见什么

在稀疏奖励任务里,如果当前 policy 几乎从未成功,critic 看到的回报就缺少差异,许多尚未学会解决的状态可能被估成一片平坦的低值。这甚至未必是估错了:对当前 policy 来说,那些状态确实很难带来成功。问题在于,当奖励和 bootstrap target 都缺少区分度时,训练很难从中判断什么行为更值得尝试。

视频比较了「所有阶段一起练」与「先练能力边界」两种起始状态安排。在展示的运行中,到第 2,000 次训练迭代,完整任务成功率分别为 0% 和 92%。看机械臂,也看下方的 value map:左侧抓取前的一大片区域仍然很低,右侧已经出现更丰富的价值结构。这是一组运行的对比,不代表跨随机种子的统计结论;画面也没有单独测量从失败训练中恢复的成本。

让 agent 练下一步学得会的东西

有用的 curriculum 要把任务放在当前能力的边缘:有足够的成功,让 critic 看见哪些状态通向更好的结果;也有足够的失败,暴露下一处能力缺口。随着 policy 进步,再逐步扩大训练范围,并持续在完整任务上评估,避免只学会课程里的简化版本。

这也解释了为什么「先硬练,后面再调简单」可能要付额外的交互成本:agent 得探索到更好的结果,critic 才有新证据修正旧判断。具体恢复代价取决于算法、奖励、探索和数据分布,不能仅凭一张平坦的 value map 推算。

让 agent 学下一步学得会的东西。存在主义危机,留给研究员就够了。

参考资料

Reverse Curriculum Generation for Reinforcement Learning · Spinning Up: Policy Optimization

Your critic may learn to give up before your robot learns to pick up. Make an RL curriculum too hard, too early, and repeated failures can teach the critic the same answer across a broad region: nothing good happens here. The difficulty is the lack of distinction between “closer” and “nowhere near.”

The curriculum determines what the critic gets to see

In a sparse-reward task, a policy that almost never succeeds provides little contrast in observed returns. The critic can assign similarly low values to many states the policy cannot yet solve. Those estimates may be reasonable for the current policy. But when rewards and bootstrapped targets offer little contrast, the learner gets less useful evidence about what to do differently.

The video compares two start-state arrangements: “all stages at once” and “frontier first.” At training iteration 2,000, the displayed full-task success rates are 0% and 92% in the runs shown. Watch the value maps beneath the robot: a broad region before grasping stays low on the left, while richer value structure develops on the right. This is a comparison of the displayed runs, not a multi-seed statistical result; the video does not separately measure recovery from unsuccessful training.

Train the next thing the agent can learn

A useful curriculum stays near the edge of current competence: enough success to reveal what works, enough failure to expose the next gap. Expand the training distribution as the policy improves, and keep evaluating on the full task so that solving the curriculum does not become the endpoint.

Starting too hard and making things easier later can carry an extra interaction cost. The agent has to discover better outcomes while the critic revises its old expectations. How much recovery costs depends on the algorithm, rewards, exploration and data distribution; a flat value map alone cannot establish it.

Let the agent learn what it can learn next. Save the existential crisis for the researcher.

Further reading

Reverse Curriculum Generation for Reinforcement Learning · Spinning Up: Policy Optimization