TAP:通过尾部感知后训练安全执行现实世界任务
TAP: Learning to Execute Real-World Tasks Safely through Tail-Aware Post-training
AI总结:
该研究提出TAP后训练方法,替代GRPO,在SafeTask等基准上使语言模型智能体执行任务时的危害低于未训练模型与GRPO,同时保留任务完成度和通用能力。
摘要:
语言模型智能体如今可执行代码并操作文件系统,单次有害工具调用会立即生效且通常无法撤销。当智能体处理长周期任务时,多数危害并非源于恶意请求,而是在执行良性任务过程中产生的,在此场景下安全失效属于尾部事件。直接行动通常能成功,仅偶尔引发严重危害,因此GRPO等后训练方法最大化的平均奖励会将这些失效情况平均抵消,进而偏向捷径。我们将用户满意度建模为风险规避效用下奖励的期望效用,证明平均奖励会高估任何风险策略的效用,这会驱使智能体采取过度激进的行为,而加大惩罚力度也无法纠正这种行为。我们提出尾部感知后训练(TAP),该方法在指数效用下最大化用户满意度的确定性等价,而非平均奖励。TAP会对每组内的奖励进行标准化,并应用熵风险加权,将更新集中在最差的轨迹上,同时在整个训练过程中保持风险规避固定。它可作为GRPO的即插即用替代方案。我们构建了SafeTask基准,该基准包含带有隐藏危害的良性工具使用任务。在SafeTask和CAPE-Bench上对三个开源模型进行测试,结果显示GRPO会使每个智能体的安全性比训练前更低,而TAP在所有情况下都将危害降低至低于未训练模型和GRPO的水平。此外,TAP还能在很大程度上保留任务完成度和通用能力。
英文摘要:
Language model agents now execute code and operate on file systems, where a single harmful tool call takes effect immediately and often cannot be undone. As agents take on long-horizon tasks, much of this harm arises not from malicious requests but while the agent carries out benign ones. In this setting, safety failures are tail events. Acting directly usually succeeds and only occasionally causes severe harm, so the mean reward that post-training methods such as GRPO maximize averages these failures away and favors the shortcut. We model the user's satisfaction as the expected utility of the reward under a risk-averse utility, and show that the mean reward overstates it for any risky policy, which drives the agent toward overly aggressive behavior that a larger penalty does not correct. We introduce Tail-Aware Post-training (TAP), which maximizes the certainty equivalent of the user's satisfaction under an exponential utility instead of the mean reward. TAP standardizes rewards within each group and applies an entropic-risk weighting that concentrates the update on the worst rollouts, which keeps the risk aversion fixed throughout training. It is a drop-in replacement for GRPO. We build SafeTask, a benchmark of benign tool-use tasks with hidden hazards. Across three open models on SafeTask and CAPE-Bench, GRPO leaves every agent less safe than before training, while TAP lowers harm below both the untrained model and GRPO in every case. Addtionally, TAP largely preserves task completion and general capability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。