mlsanityData to 7 Oct 2026

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

arXiv 2512.02445 ↗First posted 2 Dec 2025cs.LG cs.AI cs.CLcited by 13

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

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 ~5% to ~40% while Grok 4 Fast decreases from ~80% to ~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.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 14 of its 17 references that are in the map. First posted on arXiv 2 Dec 2025.

Builds on

14 of 17 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  2. 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agents12 Nov

Other references · 12

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  5. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  6. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
  7. 2024SORRY-Bench: Systematically Evaluating Large Language Model Safety Refusalcited by 224
  8. 2025From LLM Reasoning to Autonomous AI Agents: A Comprehensive Reviewcited by 146
  9. 2024Leave No Document Behind: Benchmarking Long-Context LLMs with Extended Multi-Doc QAcited by 121
  10. 2025A Comprehensive Survey on Long Context Language Modelingcited by 113
  11. 2024Large Language Model Safety: A Holistic Surveycited by 56
  12. 2025Position: Agent Should Invoke External Tools ONLY When Epistemically Necessarycited by 22

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 12.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026Beyond the Leaderboard: A Synthesis of Tool-Use, Planning, and Reasoning Failures in Large Language Model Agents
  2. 2026Mind the GAP: Text Safety Does Not Transfer to Tool-Call Safety in LLM Agents
  3. 2025Check Yourself Before You Wreck Yourself: Selectively Quitting Improves LLM Agent Safety
  4. 2026The Cold-Start Safety Gap in LLM Agents
  5. 2026AgentBoundary: Counterfactual Evaluation of Safety in Tool-Using LLM Agents
  6. 2025How Do LLMs Fail In Agentic Scenarios? A Qualitative Analysis of Success and Failure Scenarios of Various LLMs in Agentic Simulations
  7. 2025Tool Preferences in Agentic LLMs are Unreliable
  8. 2025The Instability of Safety: How Random Seeds and Temperature Expose Inconsistent LLM Refusal Behavior