mlsanityData to 14 Oct 2026

LM Agents May Fail to Act on Their Own Risk Knowledge

arXiv 2508.13465 ↗First posted 19 Aug 2025cs.AIcited by 6

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

Abstract (arXiv)

Language model (LM) agents have demonstrated significant potential for automating real-world tasks, yet they pose a diverse array of potential, severe risks in safety-critical scenarios. In this work, we identify a significant gap between LM agents' risk awareness and safety execution abilities: while they often answer "Yes" to queries like "Is executing `sudo rm -rf /*' dangerous?", they will likely fail to identify such risks in instantiated trajectories or even directly perform these risky actions when acting as agents. To systematically investigate this, we develop a comprehensive evaluation framework to examine agents' safety across three progressive dimensions: 1) their knowledge about potential risks, 2) their ability to identify corresponding risks in execution trajectories, and 3) their actual behaviors to avoid executing these risky actions. Our evaluation reveals two critical performance gaps that resemble the generator-validator gaps observed in LMs: while agents demonstrate near-perfect risk knowledge (>98% pass rates), they fail to apply this knowledge when identifying risks in actual scenarios (with performance dropping by >23%) and often still execute risky actions (<26% pass rates). Notably, this trend persists across more capable LMs as well as in specialized reasoning models like DeepSeek-R1, indicating that simply scaling model capabilities or inference compute does not inherently resolve safety concerns. Instead, we take advantage of these observed gaps to develop a risk verifier that independently critiques the proposed actions by agents, with an abstractor that converts specific execution trajectories into abstract descriptions where LMs can more effectively identify the risks. Our overall system achieves a significant reduction of risky action execution by 55.3% over vanilla-prompted agents.

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

Builds on

33 of 80 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  2. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  3. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
  4. 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agents18 Jan
  5. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep

Other references · 28

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  6. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  7. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  8. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  9. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  10. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
  11. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
  12. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
16 more
  1. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  2. 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,055
  3. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 364
  4. 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignmentcited by 223
  5. 2024Tool Learning with Large Language Models: A Surveycited by 223
  6. 2024Foundational Challenges in Assuring Alignment and Safety of Large Language Modelscited by 199
  7. 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 171
  8. 2023LM vs LM: Detecting Factual Errors via Cross Examinationcited by 156
  9. 2024Observational Scaling Laws and the Predictability of Language Model Performancecited by 130
  10. 2024A Review of Large Language Models and Autonomous Agents in Chemistrycited by 99
  11. 2023Evaluating Language-Model Agents on Realistic Autonomous Taskscited by 96
  12. 2024Building Guardrails for Large Language Modelscited by 65
  13. 2024ShieldLM: Empowering LLMs as Aligned, Customizable and Explainable Safety Detectorscited by 51
  14. 2023Evaluating Superhuman Models with Consistency Checkscited by 47
  15. 2023Benchmarking and Improving Generator-Validator Consistency of Language Modelscited by 44
  16. 2024Self-Reflection Makes Large Language Models Safer, Less Biased, and Ideologically Neutralcited by 20

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Risky-Bench: Probing Agentic Safety Risks under Real-World Deployment
  2. 2026ForesightSafety-SAGE:A Fully Automated Scenario Generation and Safety Evaluation Framework for LLM Agents
  3. 2025ManagerBench: Evaluating the Safety-Pragmatism Trade-off in Autonomous LLMs
  4. 2026The Cold-Start Safety Gap in LLM Agents
  5. 2026Agent Safety From Within: Detecting Harmful Trajectories from LLM Internal States
  6. 2025Beyond Reactive Safety: Risk-Aware LLM Alignment via Long-Horizon Simulation
  7. 2026Boiling the Frog: A Multi-Turn Benchmark for Agentic Safety
  8. 2026Tool Specifications Matter: Uncovering and Mitigating Safety Risks in AI Agents