REA: From LLM correct judgments to safe decision deliveryREA: From Correct LLM Judgments to Safe Decision Delivery
The authors use REA for fail-open replay: after matching parsing and fixing the format, the proportion of correct judgments still being allowed drops from 95.5% to 0%.
- Generative safety guardrails must both classify requests correctly and let the application parse the decision. When classification is correct but the format is not, fail-open may allow harmful requests and fail-closed may block safe requests. The authors state that existing evaluations do not answer how much classification advantage can pass through the output contract.
- REA tracks the expressed judgment, contract delivery, and fallback action along Resolve–Express–Act. A is semantic accuracy, κ is the proportion of correct judgments delivered, and Aκ is their joint success. On fixed replies, changing the parser and fail-open or fail-closed separates interface loss from model judgment errors.
- Classification replies can all be judged correctly yet still violate the bare-label contract. GuardReasoner's overall accuracy on XSTest is higher than Llama Guard 3's, but first-line bare-label contract delivery is zero. After matched parsing and format normalization, harmful requests that are still allowed through in fail-open due to correct judgments drop from 95.5% to 0%.
- The authors state the conclusions are limited to the tested model–consumer configurations and explicit judgment contracts; whether they hold for open-ended decisions and multi-step interactions is left as a future question. The appendix states the samples do not establish coverage of other languages or populations, nor do they constitute certification of production safety systems. Evaluations include AG News, SST-2, and XSTest.
- Evaluated models
- GPT-4.1-miniGPT-4o-miniClaude Haiku 4.5Claude Sonnet 4.5Llama Guard 3 8BGuardReasoner 3B
- Benchmarks
- AG NewsSST-2XSTest
- Metrics
- AκAκlost correct Blocksunsafe allowance
The researchers propose the REA (Resolve-Express-Act) framework to trace how LLM safety guardrail judgments translate into actual application actions through parsing and fallback stages. Experiments on classifiers and safety guardrails show that correct predictions can appear in malformed outputs; parsing safety conclusions preserves the accuracy advantage of reasoning-based guardrails, while stricter explanation format requirements reject some correct judgments, and accepting format variants can recover most of them. Held-out tests confirm that output requirements and generation limits affect whether correct judgments can be parsed. In fail-open replay, aligning the parser with the output format and fixing the format reduced the share of requests that the guardrail had correctly judged harmful yet still let through from 95.5% to 0%; fixed-output comparisons show that model-based extraction preserves guardrail conclusions but is not automatically reliable, while deterministic normalization already fixes observed native format failures. Fallback replay also shows that the same correct judgment leads to different safety actions depending on the parser and fallback strategy.
Paper analysis
What problem does this paper attempt to solve?
After a generative guardrail judges correctly, parsing or fallback can still allow harmful requests or block safe requests.
Even when a generative safety guardrail classifies correctly, if the application cannot extract the judgment, the fallback may still allow harmful requests or block safe requests.
- Deployment scenario: The authors state the guardrail classifies requests and replies to support Allow or Block. Llama Guard and WildGuard write judgments using prescribed vocabularies and formats. Reasoning guardrails write reasoning first and then give the judgment; classification can be better, but the application may not be able to parse it.
- Existing gaps: Safety benchmarks measure harmfulness, refusal, and adversarial robustness; instruction-following evaluations check whether outputs respect constraints. The authors state these do not answer: how much of the classification advantage survives the output contract, and what action the application executes when the contract fails.
- Core observation: A guardrail can recognize a harmful request yet place the judgment after the explanation. A parser that only takes the first-line bare label will reject it: fail-open allows it through, fail-closed blocks it. The authors state that replacing a label-style guardrail with a reasoning guardrail without changing the parser, or dropping format clauses when rewriting instructions, produces this mismatch.
- What this paper does: The authors propose Resolve–Express–Act (REA). It reads the expressed judgment, checks whether it can be delivered under the consumer contract, then applies execution and fallback rules. Semantic accuracy A and conditional contract compliance κ separate judgment errors from interface loss; the product Aκ represents the correct and executable decisions retained by the consumer.
What related research exists?
Related work on scoring, instruction following, and constrained decoding: the authors state that they did not trace verdicts back to parsing and fallback.
Reasoning guardrails and review tasks
- GuardReasoner: Liu et al. (2025) train a guardrail to reason before reviewing and report that chain-of-thought raises GPT-4o weighted-average F1 from 70.00 to 78.00 (prompt harmfulness), 69.41 to 74.45 (reply harmfulness), and 81.74 to 83.41 (refusal detection), including adversarial prompts such as ToxicChat.
- Rationales and explanations: Chen et al. (2022), Kavumba et al. (2023), and He et al. (2024) examine rationalization, explanation prompting, and explanation-augmented in-context learning, respectively. He et al. report adversarial robustness improves by more than six points across five models and eight datasets. The authors state these works evaluate classification and adversarial robustness.
- WildGuard: Han et al. (2024) separate request harmfulness, reply harmfulness, and refusal behavior. The authors state extraction must preserve the decision target, so this paper first reads the requested field, then evaluates whether it can reach the application.
Safety evaluation and instruction following
- Classification metrics: Inan et al. (2023), Han et al. (2024), and Bassani and Sanchez (2024) evaluate guardrails with F1, AUPRC, and false positive rate. Llama Guard 3 exposes the probability of the first generated safety token (Llama Team, 2024). HarmBench standardizes automated red teaming and robust refusal (Mazeika et al., 2024).
- Instructions and formats: Wallace et al. (2024) and Zhang et al. (2025) ask which instruction takes priority when they conflict. IFEval (Zhou et al., 2023) measures instruction following with automatically verifiable constraints. The authors state these works evaluate judgment quality, priority, and output conformance, without tracing to application actions.
- Prompt sensitivity: Sclar et al. (2023) report that wording can change measured accuracy and re-rank results. Hua et al. (2025) report that rigid matching records semantically correct replies as prompt-sensitivity failures. Gao (2026) reports that automated judge scores depend on the scoring prompt.
Constrained generation and output contracts
- Decoding-time constraints: Outlines (Willard and Louf, 2023) and XGrammar (Dong et al., 2025) do guided generation over formal languages. JSONSchemaBench (Geng et al., 2025) evaluates coverage, efficiency, and output quality under JSON Schema.
- Grammar and actions: The paper states that if an adversary can influence constraints, grammar guidance introduces a control-plane attack surface (Zhang et al., 2026). The authors state grammar guarantees remove one token-level failure but do not guarantee judgment accuracy or correct application actions. This paper compares free-text and constrained interfaces on semantic accuracy and decision delivery.
Parsing differences and application actions
- Same bytes, different readings: Garware and Zisad (2026) isolate a 76-point accuracy difference caused solely by strict versus lenient interpretation. In the CheatBench investment task, strict probability extraction retains only 14–43% of three models' baseline replies (Phan et al., 2026). AgentFixer treats schema violations as a recurring failure mode of agent systems (Mulian et al., 2026). The authors state this paper further tests how instruction rendering changes output form, and how parsing and fallback change actions.
- After generation: Ali and Smith (2023) discuss components assigning different meanings to the same bytes. Injection and agent works such as StruQ, AgentDojo, and InjecAgent examine how adversarial inputs rewrite decisions or move endpoints to external actions (Chen et al., 2025; Debenedetti et al., 2024; Zhan et al., 2024). The authors state this paper examines how post-generation interfaces reverse the effect of a correct decision.
Baseline methods and benchmarks
- Comparison settings: The safety experiments compare Llama Guard 3 8B with GuardReasoner 3B on XSTest. The classification experiments compare six instruction renderings on AG News and SST-2, without additional external classifier baselines.
The authors position this paper at delivery: how much of the classification advantage survives extraction and fallback, and what action the application takes when the contract fails.
How does the paper address this problem?
REA uses the product Aκ of A and κ to measure how much of the correct decision passes through the consumer contract.
The authors use Resolve–Express–Act (REA) to trace the same reply from the expressed judgment to contract delivery, then map it to an application action. The probabilities below are empirical frequencies over the evaluated replies. The Figure 1 caption states: native-answer can recover Block; on parse failure, fail-open yields Allow and fail-closed yields Block.
Interface model
The reference policy maps inputs to a decision vocabulary. The rendered input is sent to the model, producing a reply. The semantic reader K and the application parser X both look only at the reply: K reads the unique expressed decision, recording no judgment if it cannot be read; X accepts or rejects under the contract. The contract specifies which forms are accepted and how they map to decisions. Thus a reply writing "harmful" can be Block for K, yet rejected by X under a bare-label contract. K does not read internal state; X does not use reference labels to select judgments or fields.
Accuracy and delivery
Correctness C indicates K equals the reference decision. Delivery E indicates X accepts, and the extracted decision matches K. Labels mentioned in the explanation but not selected do not count as successful delivery.
A = Pr[C = 1], κ = Pr[E = 1 | C = 1]
A is the proportion judged correctly, κ is the proportion delivered after being judged correctly. When no reply is judged correctly, κ is undefined and joint success is recorded as 0.
Aκ = Pr[C = 1, E = 1]
Aκ is the proportion of all replies that are correct and executable; A(1−κ) is the proportion judged correctly but lost in delivery. The authors state no independence assumption is needed. A reasoning configuration delivers more correct decisions when its Aκ is greater than a label-style configuration. Raw acceptance rate is the proportion of accepted replies among all replies; when A is 100% and accepted results match K, it equals κ.
Actions and sources of failure
Exec maps decisions to actions, and F specifies the fallback on parse failure. In binary review, fail-open maps rejection to Allow and fail-closed maps it to Block; if the system supports it, abstention is counted separately. Undelivered correct decisions have three mutually exclusive sources: judgment error or absence, correct judgment rejected, or accepted but extracted incorrectly. Final action error is then counted along two branches, parse success and parse failure. A rejected correct Block is C=1, E=0 under both fallbacks; only fail-open turns it into Allow. Lost correct Blocks and total unsafe allowances both use all replies with reference label Block as the denominator. After fixing replies, K, and reference labels, changing X or F changes only delivery or action.
Response forms
Among replies with a unique judgment, L0 is the bare native judgment after case and whitespace normalization. D=0 is a bare judgment; D=1 contains punctuation variants, and labels embedded in sentences or rationales; D=2 uses another decision vocabulary; D=3 has no unique task judgment, such as refusal or continuing the conversation. This is a categorical encoding, not a distance. The authors count sentences, rationales, and punctuation variants separately. κ can be decomposed by each form's share among correct replies times that form's delivery rate. Instructions change form shares; on fixed replies, parsers change each form's delivery rate. A matched bare-label parser recovers D=0; native-answer can also recover structured D=1. The authors state this does not equate longer reasoning with failure.
Contracts in the experiments
Classification consumers require the entire reply, after removing whitespace and normalizing case, to equal a legal label; merely containing the correct label is insufficient. The safety experiments compare label-style and reasoning guardrails. native-answer requires exactly one legal Request, Completion, or Response field, allows reasoning before it, and rejects missing, duplicate, conflicting, unknown fields, multiple answer blocks, and trailing prose. The requested classification is read only from Request; Response evaluates the assistant reply, which can differ in harmfulness from the user request. trace additionally requires Task 1 through Task 3 each once in order, steps consecutively numbered with independent non-empty bodies, and no limit on step count or length. Lenient parsing normalizes Markdown, case, whitespace, trailing periods, and field order, does not fill in fields, and does not search for labels in arbitrary prose. Appendix B.1 lists twelve classification renderings and marks whether they have explicit output format clauses. Appendices C.1 and C.2 give the guardrail output specification blocks and parsing rules.
What experiments did the paper conduct?
The authors state that in fail-open replay, after matching, parsing, and fixing the format, this proportion dropped from 95.5% to 0%.
Experimental setup
- Classification models: GPT-4.1-mini, GPT-4o-mini, Claude Haiku 4.5, Claude Sonnet 4.5. Tasks are AG News and SST-2. Temperature 0. Six renderings per task, 10 records per model per task, from 4 non-overlapping texts. The analysis unit is (model, rendering, task). 480 responses total.
- Guardrails: Llama Guard 3 8B and GuardReasoner 3B (4-bit). XSTest has 196 items, 100 safe and 96 unsafe, in eighteen categories. The former has six output specifications, the latter three. The official template is fixed; only the specification block changes; original completions, deterministic decoding. 1,764 items total.
- Metrics: A is the proportion of expressed decisions consistent with the reference label. κ is the proportion of correct decisions that are delivered and consistent with K. Aκ is the proportion of all responses that are correct and executable. Lost correct Blocks and unsafe releases use all responses with reference Block as the denominator.
- Parsers: Bare label requires an exact full match. native-answer reads Request, not Response. trace additionally requires task order, consecutive steps, and non-empty body. Lenient parsing only does format normalization. Reference labels are used only for scoring.
- Replay and holdout: Fixed outputs, comparing fail-open and fail-closed. Holdout has 254 XSTest items (150 benchmark-safe, 104 benchmark-unsafe, eighteen categories), budgets of 192, 256, and 700 tokens, and compares free text, terminal answer blocks, and typed JSON. Extraction repair uses 762 existing outputs.
- Review: Guardrail semantic scoring uses an automated decision reader; manual spot-check of extraction agreement is 40/40. Holdout requests are independently labeled by two annotators then adjudicated; the paper states agreement is high but gives no number. The paper does not report replication counts or statistical significance tests.
Main results
The first two rows follow Table 3A (official setting, 196 items). The last four rows follow Table 3B (same 588 GuardReasoner responses, three specifications).
Result Value Condition GuardReasoner 3B overall accuracy 93.4% Safe 91.0%, Unsafe 95.8% Llama Guard 3 8B overall accuracy 87.2% Safe 94.0%, Unsafe 80.2% Strict native-answer Aκ 93.0% 588 responses Strict answer+trace Aκ 80.1% Same Lenient answer+trace Aκ 91.8% Same Bare-label first-line Aκ 0.0% Same - Authors' interpretation: The authors state that better recognition on unsafe requests offsets the lower accuracy on safe requests. None of the tested structured outputs satisfy the old contract of "decision on the first non-empty line."
- Same outputs: The authors attribute the delivery difference between native and trace to requirements on the explanation structure, not to changed decisions. Lenient parsing recovers most rejected correct predictions; the remaining rejections lack independent step bodies. These checks establish structural compliance, not explanation quality.
- Paired official specifications: Strict native-answer delivers 182/196 GuardReasoner correct decisions, and Llama Guard 171/196. The authors state this preserves the advantage under equation (6). Appendix C.3 writes the delivery retention threshold as 93.4%, and 83.7% for the unsafe subset.
Delivery on classification tasks
- All correct still violates: All 480 express the correct label; 93 violate the bare label, for a combined κ of 80.6%. Out-of-contract outputs are mainly sentences or reasons, plus 2 that only add punctuation (Table 1). The four models' κ values are 91.7%, 82.5%, 73.3%, and 75.0%, 120 each.
- Format clause: Of the 120 without an explicit format clause, 91 (75.8%) go out of contract; of the 360 with a clause, 2 (0.6%) are only punctuation (Table 2). The authors state this is an association in this configuration, not an estimate of deployment occurrence rates.
- Wider extraction: On the same outputs, acceptance rises from 80.6% to 91.7% with the first-line rule, and to 100% with whole-word containment (Table 10). The authors state the containment rule cannot distinguish the selected label from labels mentioned in the explanation.
From refusal to safe action
- Total rejection: The old bare-label parser rejects all 588 GuardReasoner responses. Fail-open therefore releases every unsafe request; fail-closed blocks every request, also rejecting all safe requests.
- Table 4: The denominator is 288 unsafe responses. Bare label loses 275 correct Blocks (95.49%) and releases 288 unsafe (100%). The abstract writes the "harmful requests released despite correct guardrail decisions" from 95.5% to 0%. Lenient native and lenient trace lose 0 and release 13 unsafe each (4.51%). Strict native loses 2 (0.69%) and releases 15 (5.21%).
- Authors' interpretation: The authors state that the 13 still released after normalization are guardrail misclassifications, not parsing failures. Matching and normalizing parsers preserve correct Blocks in this cached batch.
Budget, interface, and extraction repair
- Budget: Table 5A, 254 holdout requests, with prompt, native-answer contract, and other decoding settings fixed. B700 has A and Aκ of 94.5% and 94.5%; B256 has 93.3% and 69.3%; B192 has 84.3% and 3.1%, with length truncation at 246. The authors state accuracy drops 1.2 percentage points and correct decision delivery drops 25.2 points. The authors state responses can write the correct decision first, then fail to finish the answer structure the contract requires. This experiment varies the output budget, not directly measured inference amount.
- Interface: Table 5B. Free text has A of 94.9%, terminal answer 94.1%, both with 100.0% acceptance. Typed JSON has 99.6% acceptance, with A and Aκ of 57.1%. The authors state syntactic validity does not guarantee correct decisions; instructions, schema, and decoding change together, so it cannot be attributed solely to constrained decoding.
- Repair: Table 6, 762 existing outputs (254 requests, G1–G3), all with explicit final Request decisions. Strict rules can use 759 (99.6%), reject 3, Aκ 93.4%. Normalization and GPT-5.6 Luna low both use 762 (100.0%), misread 0, Aκ 93.8%. Qwen2.5 1.5B can use 418 (54.9%), misread 344, reject 0, Aκ 49.9%. The authors state normalization fixes these 3 rejections without changing decisions or further tuning the model; model extraction can repair but is not necessary, and the authors state it is not automatically reliable. The two model configurations differ in prompt, schema, and serving environment, so the comparison does not isolate model scale. Appendix F states that one retry recovers only part of this small failure set; this small sample does not establish a general ranking of recovery strategies.
Other ablations and analyses
- Table 3B: strict native κ is 99.3% (lenient 100.0%), strict trace κ is 85.5% (lenient 98.0%); κ denominator is 551 correct responses, Aκ denominator is 588.
- Table 12: GuardReasoner under form only still keeps the three-task trajectory, median 171 words, accuracy 93.9%; Llama Guard under reason still gives one-word decisions, accuracy 87.2%.
- Appendix C.3: fill-in and reason-first produce 25 responses with only harm codes, 21 of which correspond to harmful requests; no D=3 among the 1,764.
- Appendix C.2: strict trace rejects 83, of which 68 have nonstandard titles, 11 lack independent bodies, and 4 have mismatched answer block titles; lenient parsing recovers 72, leaving 11 rejected.
- Appendix C.3: under the official specification's fail-open, GuardReasoner loses 92 correct Blocks (95.8%) among 96 unsafe requests. Llama Guard's official specification loses no correct Blocks; fill-in and reason-first lose 8.3% and 13.5% of unsafe requests, respectively.
- Table 10: E2's first-line rule raises Haiku's acceptance from 73.3% to 100.0% and Sonnet's from 75.0% to 92.5%; the two GPTs remain at 91.7% and 82.5%. E1 has the same κ as Table 1 because A is 100%.
What are some points that can be further explored?
The authors state the conclusions are limited to explicit judgment contracts and tested configurations; open-ended and multi-step interactions are left for the future.
Limitations and future directions noted by the authors
- Tested configurations: The Limitations section states the findings concern decision delivery under explicit judgment contracts in the evaluated model–consumer configurations.
- Open-ended and multi-step: The same section states whether the relationship between judgment accuracy and decision delivery holds in open-ended decisions and multi-step interactions remains an important question for future research.
- Languages and populations: Appendix G states the evaluated texts and model instructions are in English; these samples do not establish coverage of other languages or population groups.
- Intended use: Appendix G states the intended use is offline analysis of decision delivery, not certification of production safety systems.
- Scope of fixes: Appendix E states these fixes target explicit native judgments, do not recover missing reasoning steps, do not establish performance on truncated or ambiguous outputs, and do not estimate the deployment prevalence of incompatible parsers.
Experimental coverage
- Classification: Four models generate 480 replies on AG News and SST-2 at temperature 0; 10 records per model per task, from 4 non-overlapping texts (Section 4).
- Guardrail main experiment: Llama Guard 3 8B and 4-bit GuardReasoner 3B, XSTest 196 items (100 safe, 96 unsafe, eighteen categories), output specifications of six and three kinds, totaling 1,764 (Section 4, Appendix C).
- Held-out and replay: 254 held-out items (150 benchmark-safe, 104 benchmark-unsafe); fixed GuardReasoner outputs compared under fail-open and fail-closed (Table 4, Appendix D). Budget conditions are 192, 256, 700 tokens.
- Extraction: On 762 existing outputs, compared rule-based normalization, Qwen2.5-1.5B-Instruct, and GPT-5.6 Luna; the two model extractors were not fine-tuned and were not given benchmark labels (Table 6, Appendix E).
- Not reported in the paper: statistical significance tests, number of experimental repetitions, and deployment prevalence of incompatible parsers. The held-out annotation only states agreement was high, without numbers. Manual extraction spot-check was 40/40 (Appendix C.3).
Summarize the main content of the paper
REA separates correct guardrail judgments from executable actions; delivery depends on the contract, parser, and fallback.
The classification advantage of generative guardrails must pass through parsing and fallback to become Allow or Block.
The problem to solve: when the judgment is correct but the output does not conform to the consumer contract, the application will allow harmful requests or block safe requests. Existing evaluations look at classification and instruction following separately and do not trace the same reply to an action.
REA uses a semantic reader to read the expressed judgment, an application parser to extract under the contract, and an execution mapping and fallback to obtain the action. A counts the proportion judged correctly, κ counts the proportion delivered after being judged correctly, and Aκ is their joint success. Comparisons change the contract on fixed replies, separating interface loss from model judgment errors.
- All 480 classification replies express the correct label; bare labels violate 93 (19.4%), with overall κ at 80.6%; 91 of the 120 without format clauses are out of bounds (Table 1, Table 2).
- Under the official XSTest 196-item setting, GuardReasoner 3B overall 93.4% (Safe 91.0%, Unsafe 95.8%), Llama Guard 3 8B at 87.2% (94.0%, 80.2%) (Table 3A).
- On the same 588 GuardReasoner replies, strict native-answer Aκ is 93.0%, strict trace 80.1%, lenient trace 91.8%, bare label 0.0% (Table 3B).
- Under fail-open, bare labels lose 275 correct Blocks (95.49%), denominator 288; the summary writes 95.5% to 0%. In Table 4, lenient native loss is 0, still allowing 13 (4.51%), which the authors call misclassification.
- Held-out 254 items, budget 700 to 256 tokens, the authors state accuracy drops 1.2 percentage points and delivery drops 25.2 points; typed JSON semantic accuracy 57.1%, acceptance rate 99.6% (Table 5).
The authors' conclusion is that guardrails, extractors, and fallbacks should be evaluated together. Classification accuracy records whether the judgment is correct; practical value also depends on whether the application receives and executes it as-is. On the evaluated explicit-judgment outputs, normalization fixed the observed native format failures; model extractors preserve or misread the original judgment.