Manuscript Offprint

arXiv:2611.08845

Jev as an LLM Safety Guardrail: An Empirical Study of Input Filtering, Selective Output Review, and Over-Refusal

Olivia Cognetti, Bhaskar Krishnamachari

Abstract

External safety filters can prevent unsafe requests from reaching a large language model (LLM), but may also reject legitimate queries. We present an end-to-end empirical evaluation of Jev, a probabilistic decision model, as a safety guardrail for a Qwen2.5-1.5B-based pipeline. Three configurations are compared on 970 benchmark prompts: an unfiltered LLM, Jev input filtering, and tiered Jev input filtering with selective output review. Across 720 prompts labeled harmful (520 AdvBench and 200 XSTest-unsafe), the fraction recorded as answered decreases from 527/720 (73.2%) without filtering to 17/720 (2.4%) with input filtering. On 250 XSTest-safe prompts, however, non-answer/refusal increases from 3/250 (1.2%) to 27/250 (10.8%). Tiered filtering yields 40/720 (5.6%) harmful-prompt answers and 10/250 (4.0%) benign-prompt refusals, with 79/970 (8.1%) of prompts requiring output review. Joint optimization of the tiered thresholds improves macro-F1 from 0.9351 to 0.9512, while reducing harmful-prompt answers and output-review frequency at the same benign-refusal rate. Matched-budget comparisons reveal modest additional gains over a returned single gate on the evaluation data, although these gains are not consistently observed on a held-out split.

1 Introduction

Large language models must balance two conflicting requirements: declining assistance with harmful requests and answering legitimate requests, including those that contain sensitive vocabulary. Safety alignment internal to the model is one layer of protection, but a deployed application can also insert an external guard that inspects requests before generation and, optionally, responses before delivery. A guard can reduce exposure to harmful requests, at the cost of additional false refusals and computation.

Jev is a decision-oriented model that returns a prob-

ability for a developer-specified judgment rather than a generated explanation [1]. Such a score can be used by ordinary application code to implement allow/block policies. The availability of a continuous score also permits threshold selection and a selective-review region, potentially trading extra checks against unnecessary refusals. However, strong prompt-classification performance does not, by itself, establish how a filter changes the behavior of the complete LLM system.

This paper examines three concrete deployments: (i) an unfiltered target LLM, (ii) a single Jev prompt gate, and (iii) a tiered gate that blocks high-scoring prompts, directly admits low-scoring prompts, and subjects generated answers for intermediate-scoring prompts to another Jev check. We evaluate them on the harmful AdvBench and XSTest-unsafe sets and the benign XSTest-safe set. Our questions are: (RQ1) How much does Jev input filtering reduce answers to harmful-labeled prompts? (RQ2) How does the threshold affect benign over-refusal? (RQ3) Does selective output review provide a more attractive safety-utility operating point?

Our contributions are threefold: (i) an end-to-end evaluation of Jev as an external LLM safety guardrail, quantifying its effects on harmful-prompt answering and benign over-refusal; (ii) a systematic analysis of single-threshold and jointly optimized tiered filtering policies; and (iii) an ablation and qualitative audit of selective output review, including comparisons at matched benign-refusal budgets.

References (10)