arXiv(opens in a new tab)cs.AIOct 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2610.08082

POLAR: Ontology-Guided Risk Prevention for Tool-Calling LLM Agents

Yunju Kang, Seonghyeon Cho, Irene Li, Yeo-Chan Yoon, Chanjun Park

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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\tau^{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.

1 Introduction

The capabilities of Large Language Models (Xi et al., 2025; Wang et al., 2024) have rapidly evolved from dialogue generation through tool-augmented language modeling (Schick et al., 2023) to autonomous agentic behaviors (Yao et al., 2022; Shinn et al., 2023) that orchestrate multi-tool workflows (Qin et al., 2024). As these agents gain direct write-access to live external systems (initiating payments, finalizing bookings, modifying customer records), a single mistaken tool call can produce irreversible consequences. The hazard is asymmetric: hours of correct execution can be undone by

Figure

(a) Unguarded Tool Use

Figure

(b) Post-Hoc Risk Detection

Figure

(c) Proactive Agent with LLM-as-a-Judge

Figure

(d) POLAR (Ours)

Figure 1: Four safety patterns for tool-calling LLM agents. (a) Unguarded: the agent simply calls the tool. (b) Post-Hoc Risk Detection: the tool executes and a registered compensator may undo it after observation. (c) Proactive Agent with LLM-as-a-Judge: an LLM gates the call with an allow-or-block label and no structural basis. (d) POLAR (Ours): a structural reverse search over the typed action ontology (Layer A) and the actual state (Layer B) produces an inverse sequence π\pi and an auditable score, which a pluggable DecisionPolicy converts into the verdict.

one irreversible mistake, while no amount of subsequent reasoning can repair such a mistake once it has reached the environment. The most hazardous failure mode for a tool-using agent is therefore not an incorrect answer but an unrecoverable action, a harm class catalogued by recent work (Ruan et al., 2024; Andriushchenko et al., 2025) alongside benchmarks for agent safety (Yuan et al., 2024; Xia et al., 2025a; Debenedetti et al., 2024; Men et al., 2025).

Despite the centrality of irreversibility, existing safety mechanisms rarely verify it before execution, and the few that do reason textually rather than structurally. SAND (Xia et al., 2025b) fine-tunes the agent to deliberate in natural-language chain-of-thought, InferAct (Fang et al., 2025) runs pre-emptive Theory-of-Mind belief reasoning over intent, and GuardAgent (Xiang et al., 2024) acts

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

on natural-language guard requests supplied by an end user. These approaches motivate a complementary question: can a reversibility-specific verdict expose the typed relations and candidate recovery path underlying an intervention?

We propose POLAR, a pre-emptive reversibility gate over a two-layer ontology. Layer A is a static, hand-authored action ontology that encodes each mutating tool's typed reversibility relations. Layer B is a dynamic state ontology, rebuilt from the available environment state s. Given a candidate action, POLAR backward-derives over Layer A grounded in the current Layer B to assemble a candidate inverse sequence π\pi and a graded reversibility score ϕPOLAR∈[0,1]\phi_{\text{POLAR}} \in [0, 1]. The hypothetical post-action state s′s' denotes the intended effect; the evaluated wrapper does not simulate a complete s′s' before execution. The sequence is an auditable structural hypothesis, not proof that recovery will succeed. We keep Layer A hand-authored to make reversibility assumptions inspectable, although curation does not guarantee their correctness. Figure 1 situates POLAR against unguarded execution, post-hoc compensation, and pre-emptive LLM judging.

Our contributions are three-fold:

• A guardrail for small agents in invertible domains. POLAR performs relatively well on small-to-mid agents operating in simple, well-bounded domains such as airline, where a mistaken booking can be hard to reverse. In these settings, the gate vetoes calls lacking admissible inverse paths, with positive mean reward differences for four of the six evaluated airline agents.

• A training-free pipeline. POLAR runs as a pre-emptive gate over the existing tool-call interface, leaving agent weights and prompts untouched. Integrating the evaluated agents requires a configuration change; new tool ecosystems also require ontology curation.

• An ontology-grounded explanation for every refusal. POLAR grounds every block in a typed reversibility ontology, with a score or bottleneck exposing the structural reason for refusal. Consequently, each verdict provides an interpretable audit trail, enabling tool-level scrutiny rather than a system-wide assessment.

References (1)

  • Skip PROVISIONAL and REVOKED