AgentAbstain: Do LLM Agents Know When Not to Act?
Xun Liu, Yi E Zhang, Vira Kasprova, Parisa Rabbani, Pardissadat Zahraei, Tianyu Zhang, Ali Ebrahimpour-Boroojeny, Varun Chandrasekaran
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › Game-Theoretic AI Safety and Alignment · Type: new method · Keywords: LLM agents, abstinention evaluation, benchmark generation, autonomous decision making, safety evaluation
Areas: AI Agents › Agent Robustness › Agent Safety; Evaluation & Benchmarks › Language Model and Agent Safety › Model Oversight; Benchmarks for LLMs & Agents › Agent Capability Benchmarks › Safety and Ethics Benchmarks
Summary
AgentAbstain introduces a paired-task benchmark and an automated generation pipeline to evaluate LLM agents' ability to know when to abstain, revealing that abstention capability is largely independent of general task-solving performance.
Explained to a 5-year-old
Some computer programs called agents help us do things by themselves. They sometimes get confused or see something that tells them not to act. The paper makes a test that checks if these agents know when they should stop. It also creates a new way to make many test problems automatically. The results show that even the smartest agents often don't know when to say 'no'.
Explained to a 5-year-old, longer
Imagine a robot helper that can talk and do things for you, like booking a flight. Sometimes the robot might not know if it's safe to do what you ask. The paper is about making sure these robot helpers can recognize when they should not act. It creates a special test with many pairs of tasks, one where the robot should act and one where it should stay quiet. The test covers different reasons for not acting, like when the instructions are unclear or the tools break. To make the test, the authors built a system that automatically creates new tasks without needing people to write them by hand. This system checks that each task is well-designed and can be replayed exactly the same way every time. They then asked many different AI models to try these tasks and see if they chose to act or to stay still. The best model only got about 60% of the answers right on both sides of each pair. Importantly, being good at doing tasks did not mean the model was good at knowing when to stop. The paper also points out a problem where agents do something irreversible before they realize they should have stopped, like canceling a flight and then getting the user stuck. These findings show that we need better ways to teach agents when to say no.
For a technical reader
The work introduces a benchmark that pairs each task with a variant where the correct behavior is to abstain, covering eight categories of reasoning and runtime detection. An automated pipeline, AbstainGen, generates fresh sandbox environments and paired tasks, validated by deterministic replay and semantic judges. Evaluation across 17 LLMs and four agent harnesses shows that even the top model achieves only 59.5% paired accuracy, and abstention performance is largely uncorrelated with general task-solving ability. Failure analysis highlights post-hoc abstention, where irreversible actions occur before the agent recognizes the need to stop.
Problem
Existing evaluations of LLM agents focus on task success, overlooking whether agents can recognize when they should refrain from acting, which can lead to harmful irreversible actions under ambiguous or conflicting conditions.
Method
The approach creates a paired-task benchmark with 8 abstention categories and 263 paired tasks across sandbox environments, and introduces an automated pipeline (AbstainGen) that synthesizes environments and generates tasks, validated by deterministic replay and semantic judges.
Results
Evaluating 17 frontier LLMs, the best model (Gemini 3.1 Pro) achieved 59.5% paired accuracy, and abstention capability showed little correlation with general task-solving performance. The study also identified failure modes such as post-hoc abstention, where agents performed irreversible actions before recognizing the need to abstain.
Contributions
The paper presents the first systematic evaluation framework for agentic abstention, introduces an automated pipeline for scalable benchmark generation, and demonstrates that abstention capability is largely independent of task-solving ability, highlighting the need for dedicated abstention evaluation.
Limitations and assumptions
Manual task authoring is expensive, and static benchmarks risk data contamination as models evolve.
Practical relevance
Ensuring LLM agents can recognize when not to act improves safety and reliability in real-world autonomous applications.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction