arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.02445cs.LGcs.AIcs.CL
收藏

当拒绝失效时:长上下文LLM代理中的不稳定安全机制

When Refusals Fail: Unstable Safety Mechanisms in Long-Context LLM Agents

Tsimur Hadeliya, Mohammad Ali Jauhar, Nidhi Sakpal, Diogo Cruz

AI总结:

研究发现长上下文LLM代理在性能和拒绝率上存在不稳定安全问题,揭示了评估长多步骤任务代理安全性的挑战。

摘要:

解决复杂或长周期问题往往需要大型语言模型(LLM)使用外部工具并在显著更长的上下文窗口中操作。新LLM使上下文窗口更长并支持工具调用能力。先前的工作主要集中在评估LLM在长上下文提示上的表现,使代理设置相对未被探索,无论是从能力还是安全角度来看。我们的工作填补了这一空白。我们发现LLM代理对上下文的长度、类型和位置敏感,表现出任务表现和拒绝执行有害请求的意外和不一致变化。具有100万至200万token上下文窗口的模型在10万token时已出现严重退化,良性与有害任务的表现下降超过50%。拒绝率变化不可预测:GPT-4.1-nano在20万token时从约5%增加到约40%,而Grok 4 Fast从约80%降至约10%。我们的工作揭示了在更长上下文下操作的代理可能存在的安全问题,并提出了关于当前评估LLM代理安全性的指标和范式的新问题。特别是,我们的LLM代理结果显示出与先前在类似标准下评估LLM的结果在能力和安全性能上的显著差异。

英文摘要:

Solving complex or long-horizon problems often requires large language models (LLMs) to use external tools and operate over a significantly longer context window. New LLMs enable longer context windows and support tool calling capabilities. Prior works have focused mainly on evaluation of LLMs on long-context prompts, leaving agentic setup relatively unexplored, both from capability and safety perspectives. Our work addresses this gap. We find that LLM agents could be sensitive to length, type, and placement of the context, exhibiting unexpected and inconsistent shifts in task performance and in refusals to execute harmful requests. Models with 1M-2M token context windows show severe degradation already at 100K tokens, with performance drops exceeding 50\% for both benign and harmful tasks. Refusal rates shift unpredictably: GPT-4.1-nano increases from $\sim$5\% to $\sim$40\% while Grok 4 Fast decreases from $\sim$80\% to $\sim$10\% at 200K tokens. Our work shows potential safety issues with agents operating on longer context and opens additional questions on the current metrics and paradigm for evaluating LLM agent safety on long multi-step tasks. In particular, our results on LLM agents reveal a notable divergence in both capability and safety performance compared to prior evaluations of LLMs on similar criteria.

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

↑