arXiv:2509.25582cs.LG2025-09被引 4

让AI在不更新参数的情况下安全适应新任务

Safe In-Context Reinforcement Learning

  • 基于约束马尔可夫决策过程,实现无参数更新的安全适应
  • 在挑战性任务中保持安全预算,同时显著优于现有方法
  • 适合需要实时安全性的部署场景,如自动驾驶、医疗系统

上下文强化学习(ICRL)是一种新兴范式,代理在预训练后无需参数更新即可适应分布外测试任务,仅依赖不断扩展的交互历史。尽管ICRL展现出强大泛化能力,但其测试阶段的安全性尚未被探索,限制了其在真实场景中的应用。本文提出SCARED:一种基于精确惩罚对偶的安全上下文自适应强化学习方法,首次在约束马尔可夫决策过程框架下实现安全适应。在无需参数更新的适应过程中,代理不仅最大化奖励,还确保累积成本不超过用户设定的安全预算。实验表明,代理能主动响应安全预算变化:预算越高越激进,越低则越保守。在多个挑战性基准上,SCARED始终实现安全且鲁棒的上下文适应,显著优于现有ICRL与安全元强化学习基线。

原文摘要 · Abstract (English)

In-context reinforcement learning (ICRL) is an emerging RL paradigm where an agent, after pretraining, can adapt to out-of-distribution test tasks without any parameter updates, instead relying on an expanding context of interaction history. While ICRL has shown impressive generalization, safety during this adaptation process remains unexplored, limiting its applicability in real-world deployments where test-time behavior is expected to be safe. In this work, we propose SCARED: Safe Contextual Adaptive Reinforcement via Exact-penalty Dual, the first method that promotes safe adaptation of ICRL under the constrained Markov decision process framework. During the parameter-update-free adaptation process, our agent not only maximizes the reward but also keeps the accumulated cost within a user-specified safety budget. We also demonstrate that the agent actively reacts to the safety budget; with a higher safety budget, the agent behaves more aggressively, and with a lower safety budget the agent behaves more conservatively. Across challenging benchmarks, SCARED consistently enables safe and robust in-context adaptation, outperforming existing ICRL and safe meta-RL baselines.

强化学习安全控制上下文学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。