arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.19626cs.AI
收藏

通过反馈实现约束强化学习(Constrained RL)中的安全性

Safety through feedback in Constrained RL

Singapore Management University(新加坡管理大学);IIIT Hyderabad(印度信息技术与管理大学海得拉巴分校)

Shashank Reddy Chirra, Pradeep Varakantham, Praveen Paruchuri

AI总结:

针对安全关键型强化学习中代价函数设计成本高、现有反馈学习方法扩展性差的问题,提出带噪声标签的状态级分类代理目标与基于新颖性的轨迹采样方法,在多个基准环境和自动驾驶场景中验证了效率。

摘要:

在安全关键型强化学习场景中,相较于修改奖励函数以确保智能体安全行为这一艰巨任务,引入额外的代价函数通常更受青睐。然而,设计或评估此类代价函数的成本可能高得令人望而却步。例如在自动驾驶领域,设计一个涵盖所有不安全行为(如激进变道)的代价函数本身就极为复杂。在这类场景中,可在训练轮次间隔期间离线收集反馈,据此学习代价函数。这类反馈既可以是系统生成的,也可以由观察训练过程的人类提供。\n此前的方法无法扩展到复杂环境,且仅限于接收状态级反馈,而这类反馈的收集成本很高。为此,我们提出了一种可扩展到更复杂领域、且不局限于状态级反馈的方法,从而减轻了评估者的负担。在这类场景下推断代价函数存在诸多挑战,尤其是如何基于轨迹级反馈为单个状态分配信用。为解决这一问题,我们提出了一种代理目标函数,将该问题转化为带噪声标签的状态级监督分类任务,可高效求解。\n此外,要收集智能体生成的每条轨迹的反馈通常并不可行,由此产生了两个基本问题:(1)应向人类展示哪些轨迹?(2)有效学习需要多少条轨迹?为解答这些问题,我们提出了“基于新颖性的采样(novelty-based sampling)”方法,仅在智能体遇到“新颖”轨迹时才选择性地让评估者参与。我们在多个基准Safety Gymnasium环境以及真实自动驾驶场景中开展了实验,验证了所提方法的效率。

英文摘要:

In safety-critical RL settings, the inclusion of an additional cost function is often favoured over the arduous task of modifying the reward function to ensure the agent's safe behaviour. However, designing or evaluating such a cost function can be prohibitively expensive. For instance, in the domain of self-driving, designing a cost function that encompasses all unsafe behaviours (e.g. aggressive lane changes) is inherently complex. In such scenarios, the cost function can be learned from feedback collected offline in between training rounds. This feedback can be system generated or elicited from a human observing the training process. Previous approaches have not been able to scale to complex environments and are constrained to receiving feedback at the state level which can be expensive to collect. To this end, we introduce an approach that scales to more complex domains and extends to beyond state-level feedback, thus, reducing the burden on the evaluator. Inferring the cost function in such settings poses challenges, particularly in assigning credit to individual states based on trajectory-level feedback. To address this, we propose a surrogate objective that transforms the problem into a state-level supervised classification task with noisy labels, which can be solved efficiently. Additionally, it is often infeasible to collect feedback on every trajectory generated by the agent, hence, two fundamental questions arise: (1) Which trajectories should be presented to the human? and (2) How many trajectories are necessary for effective learning? To address these questions, we introduce \textit{novelty-based sampling} that selectively involves the evaluator only when the the agent encounters a \textit{novel} trajectory. We showcase the efficiency of our method through experimentation on several benchmark Safety Gymnasium environments and realistic self-driving scenarios.

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

↑