arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.20401cs.LG
收藏

训练语言模型实现优雅失败

Training Language Models to Fail Gracefully

Carnegie Mellon University(卡内基梅隆大学);UC Berkeley(加州大学伯克利分校)

Daman Arora, Xuecheng Liu, Himanshu Gaurav Singh, Fahim Tajwar, Abitha Thankaraj, Ruslan Salakhutdinov, Haiwen Feng, Yuda Song, Andrea Zanette

AI总结:

该研究针对强化学习鼓励模型猜测导致的风险,提出GracefulRL方法训练语言模型,使其在保留任务能力的同时,能在行动不可靠时选择性弃权,实现优雅失败。

摘要:

强化学习能让语言模型更好地完成任务,但该机制也会鼓励模型猜测。当只有成功才能获得奖励时,选择安全的 fallback(回退)策略总是比冒险尝试更差。若错误操作可能损坏数据库或交付有缺陷的代码,这种激励就会带来高昂代价。因此,我们提出训练模型实现优雅失败:尽可能保留成功行为,同时在行动不可靠时学习执行安全的回退策略。然而,直接使用带中间奖励的策略梯度训练回退行为会因优化动态不佳而不稳定。我们用GracefulRL解决这一挑战,该方法重塑优化空间以促进优雅失败。重要的是,这种行为直接从结果级奖励信号中产生,无需指定何时回退的标注,也无需验证器等额外推理机制。在一系列任务和规模下,我们训练的模型在很大程度上保留了任务解决能力,同时在行动不可靠时选择性弃权(不执行)。更广泛地说,我们的结果表明,强化学习不仅能激励模型成功,还能让模型推理自身能力的局限,并在确定无法成功时调整方向。

英文摘要:

Reinforcement learning makes language models better at solving tasks, but the same mechanism also rewards guessing. When success is the only way to earn reward, opting for a safe fallback is always worse than a long-shot attempt. When a wrong action can corrupt a database or ship broken code, that incentive can be costly. Therefore, we propose training models to fail gracefully: to preserve successful behavior whenever possible while learning to execute a safe fallback policy when acting would be unreliable. However, naively using policy gradients with intermediate reward for fallback behavior is brittle due to unfavorable optimization dynamics. We address this challenge with GracefulRL, which reshapes the optimization landscape to promote graceful failure. Importantly, this behavior emerges directly from outcome-level reward signals, without annotations specifying when to fall back or additional inference-time machinery such as a verifier. Across a range of tasks and scales, we train models that largely preserve their task-solving capability while selectively falling back when acting would be unreliable. More broadly, our results show that reinforcement learning can not only incentivize models to succeed, but also to reason about the limits of their capabilities and change course when they determine that success is out of reach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑