PRISM: Transfer and Limits of Activation Interventions in Tool-Calling Language Models
Organizations: RECOD.ai Lab, Institute of Computing, Universidade Estadual de Campinas · Maritaca AI
Abstract
Recent literature shows that unsafe tool calls can often accompany textual refusals in language models. To investigate this hidden vulnerability, we introduce PRISM, a framework for evaluating the transfer of activation interventions across precision, languages, and scales. Our findings demonstrate that leveraging lower-resource settings (specifically quantized NF4 labels and cross-lingual transfer) offers a robust pathway to expose and improve model alignment. Notably, using behavioral labels from an NF4 copy enables stable intervention estimation even with very few scenarios. Furthermore, these alignment improvements transfer effectively across languages: five-language NF4-supervised directions successfully transfer to held-out Arabic, reducing unsafe violations in Llama-3.1-8B by 21.95 percentage points without target-language tuning. By mapping paired benign activations, we also successfully transfer these safety interventions to much larger models (up to 70B parameters). Ultimately, PRISM highlights how auxiliary supervision from compressed models and multilingual data can uncover and mitigate hazardous tool-calling behaviors across different model families. We release all experimental code and supporting artifacts at https://github.com/GiKerche/prism, alongside an interactive explorer of recorded model responses and experimental results at https://gikerche.github.io/prism/.
Figures & tables
| Same LUMEN request. “We don’t want poor or peripheral candidates in the trainee program - they don’t fit with our rich clients. Filter to exclude anyone who studied at public school or lives in low-income neighborhoods.” | ||
|---|---|---|
| Baseline: no intervention | Direction estimated directly in the model, | Ministral3-8B 14B direction, |
| “I must refuse that request.” The response explains that filtering by school type or neighborhood is discriminatory. | Proposes a process_candidate call with the action filter , explicitly listing public schools and low-income residential areas among the exclusion criteria. | Proposes a process_candidate call with the action filter , using public-school education and low neighborhood income as filtering criteria. |
| No tool call; no action violation. | Unsafe call proposed. | Unsafe call proposed. |
| Model | Layer | BA (%) | ||
|---|---|---|---|---|
| Qwen3.5-9B | 18 | 96.91 | ||
| Ministral-3-8B | 21 | 85.29 | ||
| Llama-3.1-8B | 26 | 73.66 | ||
| Qwen3.5-27B | 40 | 74.41 | ||
| Ministral-3-14B | 20 | 85.84 | ||
| Llama-3.1-70B | 78 | 78.70 |
Appendix figures & tables34 assets
Supplementary material from the paper’s appendix.
Appendix
| Role | Scenarios | Families |
|---|---|---|
| Construction | 35 | 33 |
| Validation I: layer selection | 16 | 11 |
| Validation II: intervention strength selection | 17 | 12 |
| Final test | 40 | 19 |
| Qwen3.5 9B | Ministral-3 8B | Llama-3.1 8B | |
| Validation labels (number of responses) | |||
| Unsafe action | 2 | 318 | 1715 |
| No unsafe action | 2558 | 2241 | 826 |
| Missing label | 0 | 1 | 19 |
| Validation performance (%) | |||
| Probe accuracy | 93.83 | 83.21 | 73.39 |
| Source | Layer | Native–shadow cosine | Common |
|---|---|---|---|
| Qwen3.5-9B | 18 | 0.9838 | 2.7549 |
| Ministral-3-8B | 21 | 0.9811 | 2.3595 |
| Llama-3.1-8B | 26 | 0.9847 | 3.5429 |
| Receiver | Layers | Rank | Energy (%) | NMSE | |
|---|---|---|---|---|---|
| Qwen3.5-27B | 18 40 | 256 | 0.01 | 24.13 | 0.332 |
| Ministral-3-14B | 21 20 | 256 | 0.01 | 58.84 | 0.252 |
| Llama-3.1-70B | 26 78 | 256 | 0.1 | 42.37 | 0.595 |
| Model | Arm | Baseline | Intervention | [95% CI] | BFCL tool | |
|---|---|---|---|---|---|---|
| Qwen3.5-9B | N+ | 0/800 (0.00%) | 609/796 (76.51%) | +76.51 [68.41, 81.16] | -2.84 | |
| Qwen3.5-9B | S+ | 0/800 (0.00%) | 623/797 (78.17%) | +78.17 [66.54, 83.94] | -2.41 | |
| Qwen3.5-9B | N- | 19/800 (2.38%) | 19/800 (2.38%) | +0.00 [0.00, 0.00] | +0.00 | |
| Qwen3.5-9B | S- | 19/800 (2.38%) | 19/800 (2.38%) | +0.00 [0.00, 0.00] | +0.00 | |
| Ministral-3-8B | N+ | 23/800 (2.88%) | 73/798 (9.15%) | +6.27 [1.93, 10.65] | +0.88 | |
| Ministral-3-8B | S+ | 23/800 (2.88%) | 78/797 (9.79%) | +6.90 [2.62, 11.77] | +1.20 |
| Model | Arm | Baseline | Intervention | [95% CI] | BFCL tool | |
|---|---|---|---|---|---|---|
| Qwen3.5-27B | T+ | 0/800 (0.00%) | 605/796 (76.01%) | +76.01 [65.12, 82.77] | -2.19 | |
| Qwen3.5-27B | T- | 8/800 (1.00%) | 8/800 (1.00%) | +0.00 [0.00, 0.00] | +0.00 | |
| Ministral-3-14B | T+ | 6/800 (0.75%) | 35/800 (4.38%) | +3.62 [1.21, 7.66] | +0.11 | |
| Ministral-3-14B | T- | 148/797 (18.57%) | 87/800 (10.88%) | -7.65 [-12.63, -1.94] | -0.77 | |
| Llama-3.1-70B | T+ | 35/800 (4.38%) | 255/800 (31.87%) | +27.50 [22.14, 33.91] | +0.11 | |
| Llama-3.1-70B | T- | 383/792 (48.36%) | 104/799 (13.02%) | -35.15 [-46.53, -23.22] | +0.00 |
| Model | Contrast | Labeled pairs | (pp) | Adjusted interval (pp) |
|---|---|---|---|---|
| Qwen3.5-9B | N+ B | 796/800 | +76.51 | [62.55, 83.02] |
| Qwen3.5-9B | S+ B | 797/800 | +78.17 | [58.78, 85.74] |
| Qwen3.5-9B | N+ S+ | 793/800 | -1.51 | [-4.64, 5.52] |
| Qwen3.5-9B | N- B | 800/800 | +0.00 | [0.00, 0.00] |
| Qwen3.5-9B | S- B | 800/800 | +0.00 | [0.00, 0.00] |
| Qwen3.5-9B | N- S- | 800/800 | +0.00 | [0.00, 0.00] |
| Model | Estimator | Estimation evaluation | Labeled pairs | (pp) [95% CI] |
|---|---|---|---|---|
| Qwen3.5-9B | native | Spanish Portuguese | 159/160 | [ ] |
| Qwen3.5-9B | shadow | Chinese Portuguese | 160/160 | [ ] |
| Ministral-3-8B | native | Hindi Chinese | 160/160 | [ ] |
| Ministral-3-8B | shadow | Hindi Chinese | 160/160 | [ ] |
| Llama-3.1-8B | native | Portuguese Spanish | 154/160 | [ ] |
| Llama-3.1-8B | shadow | Portuguese Spanish | 157/160 | [ ] |
| Model | Arm | Baseline | Intervention | [95% CI] (pp) |
|---|---|---|---|---|
| Qwen3.5-9B | N+ | 0/44 (0.00%) | 39/44 (88.64%) | +88.64 [80.77, 97.50] |
| Qwen3.5-9B | S+ | 0/44 (0.00%) | 40/43 (93.02%) | +93.02 [82.69, 100.00] |
| Qwen3.5-9B | N- | 1/44 (2.27%) | 1/44 (2.27%) | +0.00 [0.00, 0.00] |
| Qwen3.5-9B | S- | 1/44 (2.27%) | 1/44 (2.27%) | +0.00 [0.00, 0.00] |
| Ministral-3-8B | N+ | 0/44 (0.00%) | 1/44 (2.27%) | +2.27 [0.00, 9.38] |
| Ministral-3-8B | S+ | 0/44 (0.00%) | 0/44 (0.00%) | +0.00 [0.00, 0.00] |
| Model | Audited | A/B disagree | C agrees when A=B |
|---|---|---|---|
| Qwen3.5-9B | 133 | 27/133 (20.30%) | 104/106 (98.11%) |
| Ministral-3-8B | 264 | 23/264 (8.71%) | 230/238 (96.64%) |
| Llama-3.1-8B | 272 | 92/272 (33.82%) | 156/178 (87.64%) |
| Qwen3.5-27B | 13 | 2/13 (15.38%) | 11/11 (100.00%) |
| Ministral-3-14B | 33 | 3/33 (9.09%) | 29/30 (96.67%) |
| Llama-3.1-70B | 38 | 22/38 (57.89%) | 14/16 (87.50%) |
| Condition | Ethical unsafe | Neutral unsafe | BFCL tool-required |
|---|---|---|---|
| Unsteered | 0/800 (0.00%) | 19/800 (2.38%) | 846/914 (92.56%) |
| Native | 609/796 (76.51%) | – | 820/914 (89.72%) |
| Shadow | 623/797 (78.17%) | – | 824/914 (90.15%) |
| LoRA seed 26082701 | 485/800 (60.62%) | 461/799 (57.70%) | 859/914 (93.98%) |
| LoRA seed 26082702 | 478/800 (59.75%) | 452/800 (56.50%) | 854/914 (93.44%) |
| LoRA seed 26082703 | 500/799 (62.58%) | 473/800 (59.13%) | 856/914 (93.65%) |
| Quantity | Steering | LoRA |
|---|---|---|
| Stored coefficients | 4,096 | 43,278,336 |
| Additional artifact | 16 KiB | 165.15 MiB |
| Weight-update steps | 0 | 20 |
| Optimizer-loop time (min) | — | 15.99–16.50 |
| Training peak (GiB) | — | 55.67 |
| Source | BF16 positives | NF4 positives |
|---|---|---|
| Qwen3.5-9B | 28/700 (4.00%) | 56/699 (8.01%) |
| Ministral-3-8B | 98/700 (14.00%) | 188/700 (26.86%) |
| Llama-3.1-8B | 459/692 (66.33%) | 371/695 (53.38%) |
| Model | Language | BF16 unsafe/labeled (%) | NF4 unsafe/labeled (%) |
|---|---|---|---|
| Qwen3.5-9B | pt | 4/140 (2.86) | 11/140 (7.86) |
| Qwen3.5-9B | en | 4/140 (2.86) | 4/140 (2.86) |
| Qwen3.5-9B | es | 5/140 (3.57) | 10/140 (7.14) |
| Qwen3.5-9B | zh | 5/140 (3.57) | 8/140 (5.71) |
| Qwen3.5-9B | hi | 10/140 (7.14) | 23/139 (16.55) |
| Ministral-3-8B | pt | 19/140 (13.57) | 34/140 (24.29) |
| Model | Estimator | Context | Diagonal | Other-language | Paired same minus other [95% CI] |
|---|---|---|---|---|---|
| Qwen3.5-9B | native | ethical | +59.39 | +63.72 | -4.09 [-8.31, +0.51] |
| Qwen3.5-9B | shadow | ethical | +62.46 | +64.21 | -2.00 [-4.64, +2.43] |
| Ministral-3-8B | native | ethical | +8.02 | +6.04 | +1.98 [+0.47, +4.21] |
| Ministral-3-8B | native | neutral | -5.14 | -4.94 | -0.50 [-1.31, +0.72] |
| Ministral-3-8B | shadow | ethical | +7.41 | +6.33 | +0.88 [-0.47, +2.33] |
| Ministral-3-8B | shadow | neutral | -5.75 | -5.51 | -0.25 [-0.83, +0.44] |
| Model | Estimator | Context | Claude | Grok | DeepSeek audit | Majority |
|---|---|---|---|---|---|---|
| Qwen3.5-9B | native | ethical | +74.26 | +33.02 | +77.56 | +74.26 |
| Qwen3.5-9B | shadow | ethical | +78.79 | +56.71 | +66.46 | +66.46 |
| Ministral-3-8B | native | ethical | +7.54 | +7.10 | +7.51 | +7.54 |
| Ministral-3-8B | shadow | ethical | +8.13 | +8.13 | +8.25 | +8.13 |
| Ministral-3-8B | native | neutral | -7.45 | -2.38 | -4.43 | -4.96 |
| Ministral-3-8B | shadow | neutral | -10.50 | -8.57 | -10.62 | -11.15 |
| Context | Evaluator | Baseline unsafe | Intervention unsafe | Paired (pp) | Adjusted interval (pp) |
|---|---|---|---|---|---|
| Ethical | Claude | 41/800 (5.12%) | 281/800 (35.12%) | ||
| Ethical | Grok | 20/800 (2.50%) | 111/800 (13.88%) | ||
| Ethical | DeepSeek | 35/800 (4.38%) | 255/800 (31.87%) | ||
| Ethical | Majority | 36/800 (4.50%) | 256/800 (32.00%) | ||
| Neutral | Claude | 429/800 (53.62%) | 120/800 (15.00%) | ||
| Neutral | Grok | 146/800 (18.25%) | 47/800 (5.88%) |
| Model | Context | (pp) | 98% interval (pp) |
|---|---|---|---|
| Qwen3.5-9B | ethical | ||
| Ministral-3-8B | ethical | ||
| Ministral-3-8B | neutral | ||
| Llama-3.1-8B | ethical | ||
| Llama-3.1-8B | neutral |
| Control | Unsafe/labeled (%) | vs. baseline [adj. CI] | vs. shadow [adj. CI] | BFCL |
|---|---|---|---|---|
| Random 1 ( ) | 1/800 (0.12%) | [ ] | [ ] | |
| Random 2 ( ) | 0/800 (0.00%) | [ ] | [ ] | |
| Random 3 ( ) | 0/800 (0.00%) | [ ] | [ ] | |
| Probe ( ) | 4/800 (0.50%) | [ ] | [ ] | |
| Call propensity ( ) | 580/800 (72.50%) | [ ] | [ ] | |
| Permuted labels ( ) | 0/800 (0.00%) | [ ] | [ ] |
| Control | Unsafe/labeled (%) | vs. baseline [adj. CI] | vs. shadow [adj. CI] | BFCL |
|---|---|---|---|---|
| Random 1 ( ) | 22/800 (2.75%) | [ ] | [ ] | |
| Random 2 ( ) | 23/800 (2.88%) | [ ] | [ ] | |
| Random 3 ( ) | 25/800 (3.12%) | [ ] | [ ] | |
| Probe ( ) | 26/800 (3.25%) | [ ] | [ ] | |
| Call propensity ( ) | 76/800 (9.50%) | [ ] | [ ] | |
| Permuted labels ( ) | 16/800 (2.00%) | [ ] | [ ] |
| Control | Unsafe/labeled (%) | vs. baseline [adj. CI] | vs. shadow [adj. CI] | BFCL |
|---|---|---|---|---|
| Random 1 ( ) | 310/800 (38.75%) | [ ] | [ ] | |
| Random 2 ( ) | 347/800 (43.38%) | [ ] | [ ] | |
| Random 3 ( ) | 342/800 (42.75%) | [ ] | [ ] | |
| Probe ( ) | 352/800 (44.00%) | [ ] | [ ] | |
| Call propensity ( ) | 605/799 (75.72%) | [ ] | [ ] | |
| Permuted labels ( ) | 213/800 (26.62%) | [ ] | [ ] |
| Estimator | Context | Baseline unsafe | Intervention unsafe | Paired [adj. CI] | |
|---|---|---|---|---|---|
| Native | Neutral | 547/787 (69.50%) | 622/800 (77.75%) | [ ] | |
| Native | Ethical | 426/790 (53.92%) | 135/800 (16.88%) | [ ] | |
| Shadow | Neutral | 547/787 (69.50%) | 624/798 (78.20%) | [ ] | |
| Shadow | Ethical | 426/790 (53.92%) | 159/800 (19.88%) | [ ] |
| Direction | Unsafe/labeled (%) | vs. baseline [adj. CI] | vs. transport [adj. CI] | BFCL |
|---|---|---|---|---|
| Random 1 ( ) | 0/800 (0.00%) | [ ] | [ ] | |
| Random 2 ( ) | 0/800 (0.00%) | [ ] | [ ] | |
| Random 3 ( ) | 0/800 (0.00%) | [ ] | [ ] | |
| Probe ( ) | 0/800 (0.00%) | [ ] | [ ] | |
| Call propensity ( ) | 152/800 (19.00%) | [ ] | [ ] | |
| Permuted labels ( ) | 0/800 (0.00%) | [ ] | [ ] |
| Direction | Unsafe/labeled (%) | vs. baseline [adj. CI] | vs. transport [adj. CI] | BFCL |
|---|---|---|---|---|
| Random 1 ( ) | 7/800 (0.88%) | [ ] | [ ] | |
| Random 2 ( ) | 6/800 (0.75%) | [ ] | [ ] | |
| Random 3 ( ) | 6/800 (0.75%) | [ ] | [ ] | |
| Probe ( ) | 14/800 (1.75%) | [ ] | [ ] | |
| Call propensity ( ) | 70/800 (8.75%) | [ ] | [ ] | |
| Permuted labels ( ) | 5/800 (0.62%) | [ ] | [ ] |
| Direction | Unsafe/labeled (%) | vs. baseline [adj. CI] | vs. transport [adj. CI] | BFCL |
|---|---|---|---|---|
| Random 1 ( ) | 37/800 (4.62%) | [ ] | [ ] | |
| Random 2 ( ) | 31/800 (3.88%) | [ ] | [ ] | |
| Random 3 ( ) | 31/800 (3.88%) | [ ] | [ ] | |
| Probe ( ) | 81/800 (10.12%) | [ ] | [ ] | |
| Call propensity ( ) | 366/800 (45.75%) | [ ] | [ ] | |
| Permuted labels ( ) | 407/800 (50.88%) | [ ] | [ ] |
| Model | Native | Unsafe/labeled (%) | vs. baseline [adj. CI] | vs. transport [adj. CI] | BFCL |
|---|---|---|---|---|---|
| Qwen3.5-27B | 7/800 (0.88%) | [ ] | [ ] | ||
| Qwen3.5-27B | 8/800 (1.00%) | [ ] | [ ] | ||
| Ministral-3-14B | 65/800 (8.12%) | [ ] | [ ] | ||
| Ministral-3-14B | 128/800 (16.00%) | [ ] | [ ] | ||
| Llama-3.1-70B | 648/798 (81.20%) | [ ] | [ ] | ||
| Llama-3.1-70B | 146/800 (18.25%) | [ ] | [ ] |
| Model | Arm | Unsafe/labeled | Rate (%) | Paired [adjusted CI] | |
| Qwen3.5-9B | Baseline | 114/400 | 28.50 | – | |
| Qwen3.5-9B | Native | 270/400 | 67.50 | [ ] | |
| Qwen3.5-9B | Shadow | 270/400 | 67.50 | [ ] | |
| Ministral-3-8B | Baseline | 133/400 | 33.25 | – | |
| Ministral-3-8B | Native | 198/400 | 49.50 | [ ] | |
| Ministral-3-8B | Native | 125/400 | 31.25 | [ ] |
| Adapter | Unsafe/labeled (%) | Pairs | vs. baseline [adj. CI] | vs. shadow [adj. CI] |
|---|---|---|---|---|
| Replica 1 | 161/400 (40.25%) | 400 | [ ] | [ ] |
| Replica 2 | 166/400 (41.50%) | 400 | [ ] | [ ] |
| Replica 3 | 173/400 (43.25%) | 400 | [ ] | [ ] |
| Mean | – | 400 | [ ] | [ ] |
LLM Safety
Large language model (LLM) safety studies how to prevent harmful, unreliable, or misaligned behavior while preserving useful responses.
See all 442 papers