Polarity framework improves action safety in tool-calling AI agents
POLAR: Ontology-Guided Risk Prevention for Tool-Calling LLM Agents
Artificial IntelligenceComputation and Language
Summary
Large language models (LLMs) that use external tools face risks when they take actions that might cause errors. The authors introduce POLAR, a new safety system that checks if an action can be undone before it happens, helping prevent mistakes. POLAR works by scoring how reversible each action is and stopping risky ones from running. Testing showed that POLAR improved task success in some cases but sometimes made performance worse, especially with stronger AI models or different tasks. POLAR also makes its safety decisions clear and reviewable.
What this means in practice
- •For software engineers: Integrate POLAR to reduce costly errors by preemptively halting irreversible actions in AI agents managing online services.
- •For automation specialists: Use POLAR’s reversibility scoring to design safer workflows where AI tools perform sequences of operations with fallback options.
Authors
Yunju Kang, Seonghyeon Cho, Irene Li, Yeo-Chan Yoon, Chanjun Park
Abstract
LLM tool-use agents operate in dynamic environments where many actions carry operational risk. However, most safety mechanisms react only after errors manifest. Existing pre-emptive approaches either fine-tune the agent on chain-of-thought deliberation or compile natural-language guardrails into runtime checks, but they do so without exposing a structural, auditable verdict. We propose POLAR, a guardrail framework for small tool-calling agents that assesses reversibility through a structured two-layer ontology. POLAR assigns each action a graded reversibility score by deriving a candidate inverse sequence; calls failing a threshold are pruned before execution. Evaluated on $τ^2$-bench across six agent models, POLAR improves mean task reward by 0.11 to 0.18 points on airline for four of six agents, but only eight of eighteen model--domain cells improve overall; retail and stronger agents often regress. POLAR provides an auditable structural check and characterizes its task-utility trade-offs. Reward is not a direct measure of prevented harm.