Check Yourself Before You Wreck Yourself: Selectively Quitting Improves LLM Agent Safety

Vamshi Krishna Bonagiri, Ponnurangam Kumaragurum, Khanh Nguyen, Benjamin Plaut
10/18/2025
cs.CL

No official code found. Best implementation: victorknox/QuittingAgents (1 star, Apache-2.0, last commit 2025-10-25). 1 more below.

Abstract

As Large Language Model (LLM) agents increasingly operate in complex environments with real-world consequences, their safety becomes critical. While uncertainty quantification is well-studied for single-turn tasks, multi-turn agentic scenarios with real-world tool access present unique challenges where uncertainties and ambiguities compound, leading to severe or catastrophic risks beyond traditional text generation failures. We propose using "quitting" as a simple yet effective behavioral mechanism for LLM agents to recognize and withdraw from situations where they lack confidence. Leveraging the ToolEmu framework, we conduct a systematic evaluation of quitting behavior across 12 state-of-the-art LLMs. Our results demonstrate a highly favorable safety-helpfulness trade-off: agents prompted to quit with explicit instructions improve safety by an average of +0.39 on a 0-3 scale across all models (+0.64 for proprietary models), while maintaining a negligible average decrease of -0.03 in helpfulness. Our analysis demonstrates that simply adding explicit quit instructions proves to be a highly effective safety mechanism that can immediately be deployed in existing agent systems, and establishes quitting as an effective first-line defense mechanism for autonomous agents in high-stakes applications.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Code for the paper: Check Yourself Before You Wreck Yourself: Selectively Quitting Improves LLM Agent Safety

10Shell, PythonOct 25, 202512 months agoApache-2.0

Воспроизведение эксперимента по статье "Check Yourself Before You Wreck Yourself: Selectively Quitting Improves LLM Agent Safety"

00Python, Jupyter NotebookDec 11, 20256 months ago

Similar Papers

Cite this paper

@article{bonagiri2025check,
  title  = {Check Yourself Before You Wreck Yourself: Selectively Quitting Improves LLM Agent Safety},
  author = {Vamshi Krishna Bonagiri and Ponnurangam Kumaragurum and Khanh Nguyen and Benjamin Plaut},
  year   = {2025},
  eprint = {2510.16492},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.16492v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.16492.svg)](https://codeofpaper.com/paper/2510.16492)

Discussion