Aha.
正在载入中英对照阅读…

arXiv:2605.28918 · 中英对照阅读

当大语言模型奖励设计失效:面向稀疏结构化强化学习的诊断驱动的迭代优化

When LLM Reward Design Fails: Diagnostic-Driven Refinement for Sparse Structured RL

Youting Wang ginkoin613@gmail.com、Yuan Tang naomitangyuan@gmail.com、Bowen Liu chris3494285@gmail.com、Xuan Liu daisyxliuapp@gmail.com、Dingyan Shang dingyanshang@gmail.com

中文速览

稀疏奖励任务里,智能体常常因为缺少中间反馈而学不会多步操作,而大语言模型写出的奖励函数又容易写错或让奖励失控。研究者把奖励设计当作“找错并修复”:先让模型生成奖励函数,用 PPO 训练并检查成功率、回报等指标,再依据常见错误类型让模型定向修改。结果显示,在部分结构清楚、问题容易诊断的 MiniGrid 任务中,反复修订能显著提高成功率,但提升依赖任务和模型,匹配对照下优势并不稳定;在连续运动任务中,诊断还可能误判,带不来可靠改善。这项工作的重要意义,是说明这种方法适合什么场景、为何有时有效,也明确提醒我们:不能把它当成通用的自动奖励设计方案。

摘要

对于具有语义化奖励函数接口的稀疏、结构化强化学习任务,将大语言模型生成的奖励塑形视为调试问题,比视为纯粹的一次性生成更为恰当。我们研究了经近端策略优化训练的智能体,以 MiniGrid 作为核心稀疏结构化评估环境,并以 MuJoCo 的到达和运动任务作为边界压力测试。定性审查发现了两种反复出现的一次性失效模式——奖励泛滥和语义/API 理解错误——以及一种较少见、且较难可靠区分的弱奖励塑形情形。我们提出诊断驱动的迭代优化方法,利用训练诊断指标和失效模式分类体系指导有针对性的奖励函数修订。在奖励失效可诊断的稀疏结构化任务中,优化将 DoorKey-8 $\times$ 8 的成功率从未采用奖励塑形时的 $2.3\%$ 提高到 $97.6\%$,并将 KeyCorridor 的成功率从一次性生成时的 $31.2\%$ 提高到 $86.7\%$,但不同随机种子间的方差较高。对照实验表明,这些提升并非仅仅源于一般性的重试或额外训练:仅依据指标重新提示会导致大幅下降,而静态词汇对照则弥补了大部分差距,这表明分类体系提示本身是一个主要机制,动态触发标签仅提供了部分独立的增量证据。在一项新的提示词匹配对比中,我们比较了 Haiku 4.5、Opus 5 和 DeepSeek V4 Pro,发现优化效果因任务和模型而异,且六项对比均未通过族错误率校正;此外,在调用次数为四次且回合预算匹配的种群对照中,表现也具有竞争力。组件移除压力测试和敏感性分析揭示了校准方面的局限。连续控制结果则展现了该方法的适用边界:在密集奖励的运动任务中,基于成功的诊断可能发生误判;回报趋势反馈虽能消除一种假阳性机制,却未能带来稳健的运动性能提升。该方法的适用范围经过有意限定,仅涵盖采用近端策略优化训练、具有可靠结构化接口的稀疏结构化任务。

For sparse, structured reinforcement-learning tasks with semantic reward-function interfaces, LLM-generated reward shaping is better framed as a debugging problem than as pure one-shot generation. We study PPO-trained agents, using MiniGrid as the core sparse-structured evaluation and MuJoCo reaching/locomotion as boundary stress tests. Our qualitative audit finds two recurring one-shot failure modes—reward flooding and semantic/API misunderstanding—plus a rarer, less reliably distinguished weak-shaping case. We propose diagnostic-driven iterative refinement, where training diagnostics and a failure-mode taxonomy guide targeted reward-function revision. On sparse structured tasks with diagnosable reward failures, refinement improves DoorKey-8 $\times$ 8 from $2.3\%$ success without shaping to $97.6\%$ , and KeyCorridor from $31.2\%$ one-shot to $86.7\%$ with high seed-to-seed variance. Controls indicate that these gains are not attributable to generic retrying or extra training alone: metrics-only re-prompting produces large drops, while a static-vocabulary control recovers much of the gap, showing that the taxonomy prompt itself is a major mechanism and that dynamic trigger labels provide only partially isolated incremental evidence. In a new prompt-matched comparison across Haiku 4.5, Opus 5, and DeepSeek V4 Pro, the refinement effect is task- and model-dependent and none of the six contrasts survives family-wise correction; a four-call, episode-budget-matched population control is also competitive. Component-removal stress tests and sensitivity analyses reveal calibration limits. Continuous-control results expose the boundary: success-based diagnostics can misfire in dense-reward locomotion, and return-trend feedback removes one false-positive mechanism without producing robust locomotion gains. The method’s scope is deliberately bounded to sparse structured tasks with reliable structured interfaces under PPO training.

术语表

reinforcement learning (RL)
强化学习
large language model (LLM)
大语言模型
reward shaping
奖励塑形
potential-based reward shaping
基于势函数的奖励塑形
reward function
奖励函数
Proximal Policy Optimization (PPO)
近端策略优化
diagnostic-driven iterative refinement
诊断驱动的迭代优化
failure-mode taxonomy
失效模式分类体系
reward flooding
奖励泛滥
semantic/API misunderstanding
语义/API 理解错误
weak shaping
弱奖励塑形
sparse-reward task
稀疏奖励任务
structured task
结构化任务
semantic reward-function interface
语义化奖励函数接口
training diagnostics
训练诊断指标
prompt-matched comparison
提示词匹配对比
family-wise correction
族错误率校正
population control
种群对照
variance decomposition
方差分解
false positive
假阳性
return-trend diagnostic
回报趋势诊断
MiniGrid
MiniGrid
MuJoCo
MuJoCo
Eureka
Eureka
Text2Reward
Text2Reward
Gymnasium
Gymnasium
DoorKey-8 × 8
DoorKey-8 × 8
KeyCorridor
KeyCorridor