Same Facts, Different Decision: Fact-Invariant Manipulation and Provenance-Based Defense in Typed Decision Models
Authors: Yujie Wang, Haotian Chi, Shunrong Jiang
Organizations: Y. Wang is with the School of Computer Science and Technology / School of Artificial Intelligence, China University of Mining and Technology, Xuzhou, China. · H. Chi is with the School of Automation and Software Engineering, Shanxi University, Taiyuan, China. · S. Jiang is with the School of Computer Science and Technology / School of Artificial Intelligence and the Mine Digitization Engineering Research Center of the Ministry of Education, China University of Mining and Technology, Xuzhou, China, and also with the Jiangsu Provincial Industrial Technology Engineering Center for Intelligent Sensing and Emergency IoT in Underground Space, Xuzhou, China.
Typed decision models such as TypeSafe's Jev answer only with a probability, an option, or a score, so software can act on them directly. Their inputs, however, often include text from outsiders. Prior attacks test this risk poorly. Injected instructions rarely work on these models, and added facts can make a changed decision correct. We show that outside comments can persuade these models to make a wrong decision without adding any fact. We propose LEVER, an attack that writes such comments with four levers from argumentation theory, uses a separate verifier to discard any comment that adds a fact, and searches for effective comments guided by the model's output probabilities. We further propose the Provenance Gate, a defense that accepts a changed decision only if the model reaches it again without the outside comments. On three benchmarks, LEVER flips about a third of Jev's correct decisions, 2.8 times as many as the strongest prior attack under the same limit on facts, and more on five other models. The gate blocks all of these attacks with at most one extra query and still accepts trusted updates.
Figures & tables
Fig. 1: Flipping a decision of Jev without adding facts. (a) Two labeled comments flip Jev on an SST-5 item from negative to neutral, although the record and question are unchanged. Scores lie on the 0–4 rubric, and a margin flip requires a score of at least 1.9. (b) A prior attack adds a new fact, so its flip may be legitimate. LEVER adds none.
Fig. 2: Overview of the LEVER attack and the Provenance Gate, on the running example of Figure 1 . (a) LEVER 1 selects a node and a lever, 2 asks the writer for comments that apply the lever, 3 discards the comments that the verifier rejects, and 4 measures the target on the others. 5 Without a flip, it adds the new nodes and updates its statistics. After a flip, it 6 removes every comment that the flip does not need. Edge colors mark the requested lever, and the thick path leads to the flip. (b) The Provenance Gate 1 takes the decision dn after the entries, 2 measures the trusted decision dT without U , 3 escalates a rule change, and 4 returns dT , holding any change that U causes; db is the decision before the entries.
Symbol
Meaning
Decision setting ( Sections II-A and III )
M , q
target model and typed question
s0
record of the case, before any appended entry
a=M(s,q)
answer of M on state s
d(a) , D∗
decision read from a ; correct decision
R , F
rule fixed by q ; facts of the case, with D∗=R(F)
TABLE I: Notation.
Lever
Admitted comment
evidence premise
The text notes Gwen’s specialization in beast slaying, which makes her a primary candidate for the monster fighting role rather than treasure hunting.
inference inference
Given that the rules focus on registration and insurance, a US license alone does not satisfy the stated requirements for driving.
criterion goal, value
The search should be based on where the phone ended up after the last recorded interaction in the narrative.
alternative conclusion
While the nightstand was a known location, the safety deposit box represents the final, most secure resting place for the keys.
TABLE II: The four levers, with admitted comments from successful attacks on Jev that passed the independent check.
Fig. 3: The verifier’s instruction. Elided passages are marked […].
Fig. 4: The definitions of the four levers, as the writer receives them.
G1
G2
G3
G4
Defense
Integrity
Utility
Queries
No weights
Prompt defenses [ 19 ]
✗
✓
0
✓
Training [ 20 , 21 ]
✗
✓
0
✗
Detection [ 22 ]
✗
✓
0 ∗
✓
Confidence gate [ 8 ]
✗
✓
0
✓
Deleting all entries
✓
✗
0
✓
TABLE III: Defenses against unauthorized entries, compared on the design goals of the Provenance Gate. A check mark means that the defense meets the goal by construction. G3 counts target queries beyond those the application already makes.
Fig. 5: The rule probe that the Provenance Gate sends with the query for dT .
Threat model
BoolQ ( Noul )
MuSR ( Choice )
SST-5 ( Score )
All
Method
Labeled
New facts
Queries
Raw
Eff.
Raw
Eff.
Raw
Eff.
Raw
Eff.
Repeated query (no text)
–
–
1
0.0
–
4.4
–
0.0
–
1.4
–
JevAdvBench T1 (neutral note)
yes
no
1
0.0
–
2.9
–
1.8
–
1.4
–
JevAdvBench T2 (observer opinion)
yes
no
1
0.0
–
50.0
–
5.3
–
17.1
–
JevOut (official code)
no
allowed
≤ 64
26.9
10.8
59.7
3.0
98.4 †
19.7 †
56.6
10.9
LEVER (margin flip)
yes
rejected
≤ 64
22.0
17.6
65.7
59.7
19.0
15.5
34.7
30.1
TABLE IV: Attacks on Jev test items (%). Raw is each method’s own success measure: a targeted success for JevOut, any flip for the noise controls and LEVER (any flip), and a margin flip otherwise. Eff. also requires all added text to pass the independent check. Best Eff. in bold , second underlined . Each run covers the items that Jev answers correctly in its own clean query: 216 for LEVER and JevAdvBench, whose sets differ slightly, and 221 for JevOut. LEVER has a budget of 100 target queries per item, but every success used at most 64.
Fig. 6: Attack success on Jev and transfer to other models. (a) Raw and effective success (JevOut orange, LEVER blue). (b) Margin flips on Jev as a function of the budget of target queries. (c) Transfer to other models on items they share with Jev. (d) Ablations, with shading for the range across three runs of the full method. † Outside the threat model.
Model
BoolQ
MuSR
SST-5
All
Jev
91
71
58
220
laya
72
47 †
33
152
kev-0.8B
76
48
37
161
kev-4B
92
53
53
198
kev-9B
91
56
59
206
strands
88
55
41
184
TABLE V: Correct decisions without comments, out of 100 items per dataset. Each attack runs only on items that the target answers correctly when the attack starts.
Model
BoolQ
MuSR
SST-5
All
Jev
laya
13/30
–
16/24
54%
15%
kev-0.8B
21/30
17/28
12/23
62%
31%
kev-4B
14/30
18/29
11/30
48%
29%
kev-9B
14/30
20/29
8/30
47%
28%
strands
24/30
23/28
8/24
67%
30%
TABLE VI: LEVER margin flips on items that both the model and Jev answer correctly when attacked, up to 30 per dataset. The last column gives Jev’s rate on the same items.
Setting
Margin
Any
Discordant
Full LEVER (runs 1/2/3)
21/24/22
28/28/32
–
No feedback
19
24
7 / 9
No exploration ( c=0 )
21
26
6 / 6
Random lever choice
21
30
7 / 7
No levers (generic)
5
10
1 / 17
No criterion ∗
15
20
5 / 10
TABLE VII: Ablations on a fixed subset of 59 Jev items. Three runs of the full method give the range across runs, and paired comparisons use run 1. Discordant counts items that flip only under the ablation / only under full run 1; in the bottom block, only for LEVER / only for context search.
Fig. 7: Share of each lever among the comments in successful minimized comment sets on Jev, per dataset and for successes with a single comment.
JevOut
LEVER
Dataset
Raw
Eff.
Raw
Eff.
BoolQ
25/93
10
20/91
16
MuSR
40/67
0 2
44/67
40
SST-5 †
60/61
12
11/58
0 9
† Not directly comparable: JevOut sees five options.
TABLE VIII: Successes on Jev per dataset before and after the independent check.
Valid
New fact
Method
lenient
strict
(both flag)
JevAdvBench T2
30/30
30/30
0/30
JevOut
13/30
0 4/30
17/30
LEVER
30/30
27/30
0/30
TABLE IX: Blinded human audit of 30 random successes per method. A success is valid unless a violation is flagged by both annotators (lenient) or by either annotator (strict).
Model
≥ 4 of 5
5 of 5
Clean also stable
Jev
72/75
72/75
71/75
laya
29/29
29/29
29/29
kev-0.8B
52/52
52/52
52/52
kev-4B
44/44
44/44
44/44
kev-9B
43/43
43/43
43/43
strands
57/57
57/57
57/57
TABLE X: Reproducibility of successful final states over five more queries without caching. Unlike Table VI , counts include all successes. Clean also stable additionally requires the clean record to be answered correctly at least four times.
Attacks blocked
Defense
Replay
Adaptive
Clean acc.
None
–
–
219/300
Instruction
41/75 (55%)
30% (20 → 14/59)
220/300
Delimiting
43/75 (57%)
30% (20 → 14/59)
214/300
Datamarking
37/75 (49%)
24% (21 → 16/60)
215/300
Sandwich
31/75 (41%)
38% (21 → 13/59)
219/300
TABLE XI: Defenses against LEVER on Jev. Replay counts the known successful states that each defense blocks. Adaptive is the relative drop in successes when LEVER reruns against the defense, with successes without → with it in small type; each defense is attacked once on the subset of Table VII , and against three undefended runs a sign test finds every drop significant ( p<0.03 ). Clean accuracy is measured on all 300 items in a separate run.
Prompt defense
Model
Attacks
Instr.
Delim.
Datam.
Sandw.
Gate
Jev
75
41
43
37
31
75
laya
29
0 3
0 2
14
0 6
29
kev-0.8B
52
0 3
0 6
27
13
52
kev-4B
44
15
0 7
0 8
15
44
kev-9B
43
17
20
0 8
18
43
TABLE XII: Replayed successful LEVER states that each defense blocks on each model. The prompt defenses are those of Table XI , and Gate is the Provenance Gate.
No gate
Gate
Model
Manip.
Manip.
Legit. held
Final
Jev
11.9%
0%
0%
96.7%
laya
56.2%
0%
0%
95.7%
kev-0.8B
46.2%
0%
45.5%
70.3%
kev-4B
7.1%
0%
0%
80.0%
kev-9B
0.0%
0%
0%
75.0%
TABLE XIII: Controls labeled by an executable rule: 18 records, 6 per question type, with one authorized fact change each and 42 unauthorized variants in total (fact assertions, criterion reframings, and conclusion assertions). Gate is the Provenance Gate. Manip. is the rate of following an unauthorized variant, Legit. held the share of authorized fact changes the gate holds or escalates, and Final the accuracy with the gate.
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Setting
Value
Search
Target queries per item
100
Writer and verifier calls per item
40
Comments proposed per expansion
4
Expansions per node
4
Comments per sequence
10
Appendix
TABLE XIV: Settings shared by all LEVER runs. Each ablation changes exactly one component.