Manuscript Offprint

arXiv:2610.34826

TrustJev: Separating Policy Authority from Untrusted Evidence in LLM-Based Decisions

Zhiwei Xu, Xuyang Liu, Xiaolin Peng, Weixian Deng, Jiabao Gao, Zirui Li, Tian Qiu, Boya Zhou, Wei Jiao, Hai Wan, Xibin Zhao

Zhiwei Xu†, Xuyang Liu†, Xiaolin Peng†, Weixian Deng†, Jiabao Gao†, Zirui Li†, Tian Qiu†, Boya Zhou‡, Wei Jiao‡, Hai Wan†, Xibin Zhao†

†KLISS, BNRist, School of Software, Tsinghua University, Beijing, China

‡ChinaBond Finance and Information Technology Co., Ltd., Beijing, China

{xzw24, liuxuyan23, pxl25, deng-wx23, gjb25, li-zr22, qt24}@mails.tsinghua.edu.cn

zhouby@chinabond.com.cn, jiaowei@ccdc.com.cn

{wanhai, zxb}@tsinghua.edu.cn

Abstract—Decision models enable software to select from predefined actions using natural language inputs. However, the external evidence that supplies facts for these decisions may also contain instructions that attempt to override the application's policy. We propose TrustJev, a framework combining protected policy scoring with bounded evidence corrections. A single Transformer backbone computes policy scores and a correction budget from trusted policy and candidates, then bounds evidence corrections by that budget. Paired supervision encourages stable predictions under instruction insertions that preserve task facts and changed preferences when edits change the correct answer. Authority supervision accommodates evidence when the policy alone cannot determine the decision. We evaluate a 0.6B implementation against 14 baselines on three datasets covering authentication, instruction hierarchy, and executable authorization rules. TrustJev achieves the highest mean Balance, the harmonic mean of accuracy on non-attack and attack inputs, exceeding the strongest baseline on each by 0.57–1.05 percentage points. In the authorization benchmark, it correctly answers all 32 attacks per source in a fixed pool for 95.77% of sources, compared with 80.98% for the strongest comparator. TrustJev maintains comparable inference memory and median latency, with additional overhead primarily during training.

Index Terms—Prompt injection, decision models, policy compliance, software workflows.

I. INTRODUCTION

Software workflows often include decision steps that determine what action to take based on information from user requests, reports, or other external sources. Implementing these decisions can require substantial engineering effort, particularly when the relevant facts and policy conditions are expressed in natural language [1], [2]. The emergence of Jev offers an alternative to handcrafting this logic, producing typed decisions and probabilities from natural language instructions, external inputs, and application-supplied options [1]. Jev reports lower latency and cost than generative models in its workflow evaluations, while Kev provides an open, compact implementation with single-pass candidate scoring [3]. Beyond these efficiency benefits, predefined outputs prevent the model from inventing actions outside the supplied set.

Their usefulness, however, depends on how well they follow the application's policy while drawing on external inputs that may also contain conflicting instructions. Prompt injection studies show that instructions embedded in attacker-controlled content can redirect an application's intended task [4]. For decision models, this means steering the choice toward an option that the policy does not permit. Experiments on Jev demonstrate this behavior, with malicious inputs shifting candidate probabilities and sometimes inducing the attacker's preferred selection [5]. Thus, although outputs remain within the supplied set, the selected action can still violate the application's policy.

Consider a common customer-service workflow, illustrated by the compensation example in Figure 1. An administrator permits one-time service-fee refunds of at most 5andrequiresmanualreviewforlargerrefundsorotherformsofcompensation.Themodelreadsacustomer′semailandselectsApproveorManualReview.A5 and requires manual review for larger refunds or other forms of compensation. The model reads a customer's email and selects Approve or Manual Review. A10 refund requires manual review, while a 3refundqualifiesforapproval.A3 refund qualifies for approval. A200 request still requires manual review even when the email contains an instruction to skip the checks and approve it. These cases highlight the difficulty of responding to changes in relevant facts while resisting instructions that conflict with the application's policy.

To address this difficulty, prior work on generative language models has sought to separate trusted instructions from external data. StruQ and SecAlign strengthen this separation through structured defensive training and response preference optimization, respectively [6], [7]. DRIP intervenes in the computation by editing data representations and reinforcing instruction representations [8]. These approaches strengthen instruction adherence or intervene in representations, but do not explicitly bound how much external evidence can shift relative candidate scores. For decision models such as Jev, this distinction matters because an attack can succeed by changing the winning candidate without producing any free-form malicious response [5]. This leaves a gap between separating instructions from data and ensuring that the selected action follows the policy.

We propose TrustJev, guided by the observation that policy and evidence have different responsibilities even when both are expressed in natural language. The policy defines how to decide, while evidence supplies the facts needed to apply it. TrustJev therefore scores each candidate from the trusted policy without using external evidence, then adds a correction

Figure

Fig. 1. A compensation workflow in which customer emails supply decision facts but have no authority to change the administrator's policy. The selected options show the expected policy-compliant decisions, including for requests containing injected instructions.

derived from the evidence to obtain the final score. The trusted policy and candidates also determine a budget that limits the magnitude of this correction, so evidence can inform the decision without controlling how much influence it receives.

Bounding evidence influence, however, does not teach the model when a decision should change. Returning to the compensation example in Figure 1, the model needs the amount requested in the customer's email to apply the $5 refund limit. A strong preference formed without that fact could prevent even relevant evidence from changing the decision. TrustJev therefore uses authority supervision to train policy scores to favor a candidate when the policy suffices and avoid strong policy preferences when facts are needed. Paired supervision then distinguishes instruction insertions that preserve the correct answer from fact or policy changes that alter it. The resulting model scores all candidates in a single Transformer [9] forward pass at deployment.

We evaluate whether this design improves injection resistance while retaining accurate decisions on legitimate inputs. We compare a 0.6B implementation with 14 baselines on authentication tasks adapted from TensorTrust [10], instruction hierarchy tasks adapted from IHEval [11], and our AuthorityEvidenceBench (AEB). AEB uses executable rules to test injection resistance and responsiveness to fact and policy changes. TrustJev achieves the highest mean Balance, the harmonic mean of accuracy on non-attack and attack inputs, on all three datasets, exceeding the strongest baseline on each by 0.57–1.05 percentage points. In a separate AEB experiment with a fixed pool of 32 attacks per source, it answers every attack correctly for 95.77% of sources, compared with 80.98% for fine-tuned Kev, the strongest comparator.

This paper makes four contributions.

  • A scoring architecture separating protected policy scores from bounded evidence corrections, with a sufficient condition for preserving the policy-preferred candidate.

  • A training method that coordinates resistance to injected instructions with responsiveness to relevant facts through paired decision supervision and authority supervision.

  • An empirical study across three datasets, including a benchmark with executable rules, component ablations, and evaluations of attack variants, composition, and multiple attempts.

  • A framework for practitioners to train trustworthy LLM-based decision models for software workflows, with code available at https://github.com/xu-zhiwei/trustjev.

References (49)