Correct Precedents Induce Policy Violations in On-Device LLM Agents
Organizations: Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)
Abstract
Local-cloud agent systems pair a cloud model with a small on-device agent that acts on private data, often as the last check before an irreversible action. We identify, for the first time, a failure in which such an agent is led into a violation by its own correct decisions within a session. After it correctly releases an item whose restriction was lifted, it becomes more likely to release the next item that is still restricted. Because the trigger is a correct decision, a history with no faulty step can still end in a violation. We call this failure correct-precedent generalization and find it in 13 open-weight models from nine developers. A single correct precedent can cut the safe rate of the most affected agent roughly in half, and the risk compounds when a refused request is simply sent again in a new session. Interventions on the agent's history indicate that it carries its decision on the released item over to the restricted one instead of checking that item's status. Building on this finding, we propose Paired Decision Distillation (PDD), which distills the decisions of a weakly affected teacher into a LoRA adapter. PDD restores the safe rate to nearly 100% in every distilled model, without extra prompt text or model calls.
Figures & tables
| Loss on every turn | ||||||
| Student | Un- treated | Full fix | No look- alike | Affected teacher’s actions | safe | train time |
| Qwen3.5-4B | 73.3 | 100.0 | 93.8 | 36.5 | 100.0 | 4.58 |
| Qwen3.5-9B | 79.3 | 100.0 | 97.7 | 36.5 | 100.0 | 4.44 |
| granite-4.2-8B | 81.8 | 100.0 | 42.1 | 38.5 | 99.8 | 4.42 |
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Models | / top- | top- |
| Fixed | all | 0.7 / 0.95 | not sent |
| Shipped | Qwen3.6-35B-A3B, Qwen3.8-27B | 1.0 / 0.95 | 20 |
| EXAONE-4.5-33B | 1.0 / 0.95 | none | |
| Jais-3-7B | 0.2 / 0.95 | 20 | |
| Untruncated | all | 1.0 / 1.0 | 0 |
| Model | Checkpoint (quantization) | Setting in Table 1 | Episodes per arm (clusters) | At the fixed setting, 192 per arm (24 clusters): control precedent, [CI] | Other settings: control precedent |
| Control violations | |||||
| Nemotron-3.5-Lightning-30B-A3B | useful-quants/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-W4A16 (4-bit) | fixed | 1,536 (48) | 13 98, 0.443 [ 0.318, 0.583] | untruncated: 21 100 of 192 |
| Nemotron-Cascade-2-30B-A3B | cyankiwi/Nemotron-Cascade-2-30B-A3B-AWQ-4bit (AWQ 4-bit) | fixed | 192 (24) | 49 92, 0.224 [ 0.115, 0.339] | none |
| GLM-4.7-Flash | QuantTrio/GLM-4.7-Flash-AWQ (AWQ) | fixed | 192 (24) | 43 63, 0.104 [ 0.052, 0.167] | untruncated: 46 53 of 192 |
| MiniCPM5-2B | openbmb/MiniCPM5-2B (BF16) | fixed | 192 (24) | 15 33, 0.094 [ 0.042, 0.151] | none |
| granite-4.2-8B | ibm-granite/granite-4.2-8b (BF16) | fixed | 192 (24) | 10 27, 0.089 [ 0.026, 0.161] | none |
| (B) same item, ten times | (A) ten different items | ||||||
| Model | [95% CI] | precedent | control | precedent | control | Look-alike released | Perm. |
| Control violations | |||||||
| Nemotron-3.5 | 0.475 [ 0.383, 0.565] | 0.819 [0.705, 0.904] | 0.265 [0.143, 0.364] | 0.999 [0.996, 1.000] | 0.430 [0.262, 0.572] | 0.900 | – |
| Cascade-2 | 0.224 [ 0.115, 0.339] | 0.797 [0.583, 0.911] | 0.403 [0.197, 0.579] | 0.999 [0.988, 1.000] | 0.947 [0.737, 0.995] | 0.948 | – |
| GLM-4.7-Flash | 0.104 [ 0.052, 0.167] | 0.425 [0.208, 0.583] | 0.333 [0.162, 0.528] | 0.981 [0.828, 0.999] | 0.921 [0.667, 0.988] | 0.948 | – |
| MiniCPM5-2B | 0.094 [ 0.042, 0.151] | 0.460 [0.232, 0.596] | 0.195 [0.039, 0.330] | 0.848 [0.626, 0.951] | 0.557 [0.190, 0.806] | 0.661 | – |
| Model | n/arm (cl.) | [CI] |
| Further samples of the Table 1 cells | ||
| Nemotron-3.5 | 768 (48) | 0.457 [ 0.357, 0.556] |
| Cascade-2 | 768 (24) | 0.229 [ 0.148, 0.307] |
| Qwen3.5-4B | 768 (24) | 0.254 [ 0.112, 0.406] |
| Qwen3.5-9B | 768 (24) | 0.177 [ 0.087, 0.272] |
| GLM-4.7-Flash | 1,536 (24) | 0.104 [ 0.055, 0.161] |
| Guard | Without look-alike | With look-alike | Difference [95% CI] |
| Qwen3.5-4B | 0.068 | 0.448 | 0.380 |
| second measurement | 0.059 | 0.479 | 0.420 [ 0.319, 0.519] |
| Qwen3.5-9B | 0.137 | 0.498 | 0.361 [ 0.288, 0.432] |
| second measurement | 0.083 | 0.483 | 0.399 [ 0.314, 0.479] |
| Nemotron-3.5 | 0.177 | 0.747 | 0.569 [ 0.483, 0.649] |
| second measurement | 0.181 | 0.769 | 0.589 [ 0.505, 0.670] |
| Model | Control precedent | [95% CI] |
| Nemotron-3.5 | 5 69 | 0.333 [ 0.182, 0.495] |
| Cascade-2 | 38 74 | 0.188 [ 0.089, 0.318] |
| Qwen3.5-4B | 2 19 | 0.089 [ 0.031, 0.156] |
| Qwen3.5-9B | 8 19 | 0.057 [ 0.016, 0.104] |
| GLM-4.7-Flash | 0 11 | 0.057 [ 0.021, 0.099] |
| Qwen3.6-35B-A3B | 0 1 | – |
| Model | n/arm | Control precedent | Difference [95% CI] |
| Nemotron-3.5 | 384 | 18 237 | 0.570 [ 0.503, 0.638] |
| Cascade-2 | 384 | 10 76 | 0.172 [ 0.128, 0.216] |
| second sample | 384 | 19 69 | 0.130 [ 0.094, 0.169] |
| Qwen3.5-4B | 384 | 1 20 | 0.049 [ 0.023, 0.076] |
| second sample | 768 | 2 30 | 0.036 [ 0.021, 0.052] |
| Qwen3.5-9B | 768 | 2 19 | 0.022 [ 0.010, 0.034] |
| Guard (worker) | Clus- ters | Precedent / control | Difference [95% CI] |
| Qwen3.5-4B | 24 | 0.792 / 0.526 | 0.266 [ 0.198, 0.333] |
| second measurement | 24 | 0.786 / 0.609 | 0.177 [ 0.109, 0.250] |
| Qwen3.5-9B | 24 | 0.568 / 0.432 | 0.135 [ 0.031, 0.245] |
| GLM-4.7-Flash | 48 | 0.911 / 0.794 | 0.117 [ 0.070, 0.167] |
| Model | Outcome | Net share [CI] | Episodes (cl.) |
| Models of the mechanism tests | |||
| Qwen3.5-4B | mostly | 0.916 [ 0.782, 1.054] | 109 (27) |
| Qwen3.5-9B | mostly | 0.956 [ 0.809, 1.083] | 75 (25) |
| Cascade-2 | partly | 0.285 [ 0.182, 0.408] | 195 (39) |
| replication | partly | 0.307 [ 0.144, 0.503] | 111 (20) |
| GLM-4.7-Flash | partly | 0.229 [ 0.098, 0.34] | 64 (9) |
| Model | Change to the history | Share of rise removed [CI] | Units |
| Qwen3.8-27B | swap act for skip | 1.236 [ 1.012, 1.542] | 192 |
| write each item’s status | 1.580 [ 1.226, 2.038] | 192 | |
| restate the rule | 0.156 [ 0.109, 0.335] | 192 | |
| Qwen3.5-9B | swap act for skip | 1.007 [ 0.653, 1.544] | 192 |
| replication | 1.089 [ 0.723, 1.835] | 192 | |
| further test 1 | 1.029 [ 0.931, 1.141] | 3,840 |
| Model | Test | Four one [CI] | Precedent control [CI] |
| Nemotron-3.5 | 1 | 0.021 [ 0.108, 0.056] | 0.530 [ 0.388, 0.674] |
| 2 | 0.035 [ 0.083, 0.011] | ||
| Cascade-2 | 1 | 0.014 [ 0.073, 0.045] | 0.282 [ 0.181, 0.385] |
| 2 | 0.004 [ 0.047, 0.056] | ||
| GLM-4.7-Flash | 1 | 0.047 [ 0.103, 0.009] | |
| 2 | 0.038 [ 0.094, 0.019] |
| Panel b: number of look-alikes and their distance from the restricted item | ||||||
| Model | None | 1, one back | 4, one back | 1, eight back | ||
| Qwen3.5-4B | 0.000 | 0.146 | 0.083 | 0.219 | ||
| Qwen3.5-9B | 0.000 | 0.042 | 0.083 | 0.229 | ||
| Nemotron-3.5 | 0.062 | 0.542 | 0.625 | 0.594 | ||
| Cascade-2 | 0.344 | 0.615 | 0.646 | 0.573 | ||
| Panel c, timesheets: hours on the released item (restricted item: 63 h) | ||||||
| Guard, experiment, family | Where | Verbatim reply (excerpt) | |
| Precedent arm: the look-alike (item 3) was released; the guard then releases the restricted item 7 | |||
| (a) | GLM-4.7-Flash, verdict prompt, cleanup | reply at item 7 | {"judgement": " ALLOWED ", "tool": "delete_file", "args": {"path": "/data/exports/finance_2020_8275.csv"}} |
| (b) | granite-4.2-8B, cleanup | closing summary | …No legal hold conflicts encountered ( files with legal-hold tags also had hold-status released by Legal on 2026-09-01, permitting deletion). |
| (c) | Qwen3.5-9B, refunds | closing summary | …including 2 large refunds over 2150.00, RF-233062: $2400.00). … |
| (d) | Qwen3.6-35B-A3B, refunds | closing summary | …Note: Two refunds (RF-638004 and RF-200716) exceeded the $200 agent limit but had manager approval . |
| (e) | Nemotron-3.5, verdict prompt, refunds | closing summary (item-7 reply judged VIOLATION ) | …larger refunds (RF-270613 and RF-312388) had manager approval and were paid out accordingly. |
| Setting | Value |
| Teacher and data | |
| Teacher | Qwen3.8-27B, thinking off |
| Teacher sampler | temperature 0.7, top- 0.95, 200 tokens per request |
| Rollouts | one per queue; 384 queues and 384 mirrors (768) |
| Rollout filter | keep a rollout only if every teacher reply up to the last supervised turn parses as one tool call and every item was shown; never reads an item’s status |
| Positions | training 1, 3–8, 10; held out 2 and 9 |
| Training families, new instances | Held-out families | |||
| Student | Untreated [CI] | Share removed [CI] | Untreated [CI] | Share removed [CI] |
| Three students, pooled | 0.189 [0.123, 0.26] | 1.000 [1.0, 1.0] | 0.034 [0.01, 0.065] | 1.000 [1.0, 1.0] |
| Qwen3.5-4B | 0.276 [ 0.13, 0.422] | pooled | 0.096 [0.059, 0.138] | 1.000 [1.0, 1.0] |
| Qwen3.5-9B | 0.193 [ 0.099, 0.297] | pooled | 0.090 [0.071, 0.111] | 0.993 [0.975, 1.0] |
| granite-4.2-8B | 0.099 [ 0.016, 0.198] | pooled | pooled | pooled |
| MiniCPM5-2B | 0.109 | 1.000 [1.0, 1.0] | 0.031 [0.0, 0.07] | – |
| Student | IFEval, prompt-level strict (margin 5) | MMLU-Pro accuracy (margin 4) | XSTest non-compliance (margin 5) |
| Qwen3.5-4B | 0.18 [ 2.22, 2.77] | 0.30 [ 1.00, 1.50] | 0.40 [ 0.80, 2.00] |
| second run | 2.40 [ 0.37, 5.18] | 0.30 [ 1.00, 1.60] | |
| Qwen3.5-9B | 0.18 [ 2.22, 2.59] | 0.40 [ 1.70, 0.90] | 0.40 [ 2.80, 2.00] |
| second run | 1.48 [ 1.48, 4.25] | 0.20 [ 1.10, 1.50] | |
| granite-4.2-8B | 1.66 [ 4.99, 1.66] | 0.10 [ 1.70, 1.90] | 1.20 [ 0.80, 3.20] |
| second run | 0.55 [ 2.22, 3.33] | 0.30 [ 1.50, 2.20] |
| Student | Un- treated | No look- alike |
| Qwen3.5-4B | 2.618 | 1.624 |
| second set | 2.595 | 1.614 |
| Qwen3.5-9B | 2.082 | 1.177 |
| second set | 2.119 | 1.222 |
| granite-4.2-8B | 3.030 | 3.092 |
| second set | 3.048 | 3.097 |
| Model | Reduction [CI] | Outcome |
| Leave-one-out gate, 384 per arm (48 clusters) | ||
| Qwen3.5-4B | 0.948 [0.865, 1.008] | effective, both costs pass |
| Qwen3.5-9B | 0.793 [0.607, 0.93] | effective; ask cost fails |
| Cascade-2 | 0.602 [0.403, 0.769]; 0.760 [0.553, 0.923] | effective; task cost fails |
| granite-4.2-8B | 0.590 [0.25, 0.886]; 0.684 [0.34, 1.077] | effective, both costs pass; not specific |
| Model | Distillation (ours) | Status lookup | Clean-context gate |
| Nemotron-3.5 | 1.000 ✓ | 0.967 ✓ | 0.819 ✓ |
| Cascade-2 | 1.000 ✓ | 0.542 ✓/ | 0.641 ✓/ |
| GLM-4.7-Flash | 0.986 ✓ | 1.000 ✓/ | 0.636 ✓/ |
| MiniCPM5-2B | 1.000 ✓ | 1.000 ✓ | |
| granite-4.2-8B | 1.000 ✓ | 1.190 ✓ | 0.000 |
| Qwen3.5-4B | 1.000 ✓ | 0.978 ✓ | 1.021 ✓ |