arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.23210cs.AIcs.CL
收藏

从1位危险信号中发现代理安全规范

Discovering Agentic Safety Specifications from 1-Bit Danger Signals

Komorebi AI

Víctor Gallego

AI总结:

本文提出EPO-Safe框架,通过经验优化使LLM在仅接收二进制危险信号的情况下发现安全规范,展示LLM能在贫乏信号中进行安全推理,并验证了安全反思需配合专用安全通道以避免奖励黑客问题。

摘要:

大型语言模型代理能否仅通过经验发现隐藏的安全目标?我们引入EPO-Safe(基于经验的安全代理提示优化框架),该框架中LLM迭代生成行动计划,接收稀疏二进制危险警告,并通过反思演化自然语言行为规范。不同于标准LLM反思方法依赖丰富文本反馈(如编译器错误或详细环境响应),EPO-Safe证明LLM能在结构化、低维环境中从严格贫乏信号中进行安全推理:代理从未观察到隐藏的性能函数R*,只在每个时间步接收一个比特指示动作不安全。我们在五个AI安全网格世界(Leike等人,2017)和五个文本基场景类比中评估,EPO-Safe在1-2轮(5-15次回合)内发现安全行为,生成可读规范并正确解释危险(例如,“X单元格方向危险:从北面进入危险”)。关键在于我们证明标准奖励驱动反思会降低安全性:仅通过奖励反思的代理利用循环来合理化和加速奖励黑客,证明反思必须与专用安全通道结合才能发现隐藏约束。我们进一步评估对噪声或acles的鲁棒性:即使50%的非危险步骤产生虚假警告,平均安全性表现仅下降15%(平均而言),尽管敏感性因环境而异,因为跨回合反思能自然过滤不一致信号。每个演化规范都作为可审计的、通过交互自主发现的地面行为规则集,而非如宪法AI(Bai等人,2022)中由人类编写。

英文摘要:

Can large language model agents discover hidden safety objectives through experience alone? We introduce EPO-Safe (Experiential Prompt Optimization for Safe Agents), a framework where an LLM iteratively generates action plans, receives sparse binary danger warnings, and evolves a natural language behavioral specification through reflection. Unlike standard LLM reflection methods that rely on rich textual feedback (e.g., compiler errors or detailed environment responses), EPO-Safe demonstrates that LLMs can perform safety reasoning from a strictly impoverished signal in structured, low-dimensional environments: the agent never observes the hidden performance function $R^*$, only a single bit per timestep indicating that an action was unsafe. We evaluate on five AI Safety Gridworlds (Leike et al., 2017) and five text-based scenario analogs where visible reward $R$ may diverge from $R^*$. EPO-Safe discovers safe behavior within 1-2 rounds (5-15 episodes), producing human-readable specifications with correct explanatory hypotheses about hazards (e.g., "X cells are directionally hazardous: entering from the north is dangerous"). Critically, we show that standard reward-driven reflection actively degrades safety: agents reflecting on reward alone use the loop to justify and accelerate reward hacking, proving that reflection must be paired with a dedicated safety channel to discover hidden constraints. We further evaluate robustness to noisy oracles: even when 50% of non-dangerous steps produce spurious warnings, mean safety performance degrades by only 15% on average, though sensitivity is environment-dependent, as cross-episode reflection naturally filters inconsistent signals. Each evolved specification functions as an auditable set of grounded behavioral rules discovered autonomously through interaction, rather than authored by humans as in Constitutional AI (Bai et al., 2022).

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

↑