When Does Correction Become Repair? Mechanistic Auditing of Internal Interventions in Tool-Using LLMs
Organizations: University of the Chinese Academy of Sciences, China · School of Computer Science, University of Birmingham, UK
Abstract
Before invoking external tools, an agentic LLM must select among a K-way action space: executing a call, seeking clarification, answering directly, or declining. While internal activation steering can alter these pre-execution decisions, conventional aggregate metrics obscure where altered states land and what collateral damage they inflict. We present SAKIKO, an auditing framework that formalizes representation repair via directional error discovery, router-conditioned intervention, destination-resolved verification, and prospectively frozen statistical licensing. Across seven LLMs on When2Call and MetaTool, channel-keyed interventions induce direction-specific net gains in five models; across three sealed evaluations, none of 59 budget-matched random directions matches calibrated target gain. Crucially, destination auditing shows that behavioral movement does not equal repair: an intervention achieving +55 net gain corrupts over half of the baseline-correct decisions it touches, and promising point estimates on Qwen3-4B and Gemma-2-9B are formally declined due to finite-sample uncertainty. SAKIKO establishes the necessity of outcome-resolved adjudication before claiming internal repair. Code: https://github.com/ruizheliUOA/mechanistic-tool-use-llm.
Figures & tables
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Population | Outcome Class | Condition |
|---|---|---|
| Baseline Channel Errors ( , where ) | SOURCE RETAINED ( ) | |
| GOLD ARRIVAL ( ) | ||
| OTHER WRONG ( ) | ||
| Exposed Baseline Correct ( , where ) | CORRECT RETAINED | |
| BROKEN ( ) |
| Symbol | Quantity | Population (denominator) | Defined in |
|---|---|---|---|
| directional error channel | — | equation 1 | |
| channel errors | — | equation 2 | |
| routed channel errors | — | equation 3 | |
| baseline-correct decisions | — | equation 4 | |
| exposed correct decisions | — | equation 5 | |
| source retained | equation 6 |
| Methodology | Intervention Paradigm | Action Space | Dest. | Lic. |
|---|---|---|---|---|
| ToA Position ( Wang et al., 2026a ) | Conceptual framework | Epistemic boundary | × | × |
| Tool Hallucination Probes ( Healy et al., 2026 ) | Passive linear probing | Binary (error / valid) | × | × |
| Beyond the Black Box ( Tatsat and Shater, 2026 ) | Passive SAE probing | Binary / ternary risk | × | × |
| Action-Class Diagnostic ( Zhao et al., 2026 ) | Diagnostic decomposition (no intervention) | Four-class | × | × |
| CAST ( Lee et al., 2025 ) | Conditional steering | Binary (refuse / comply) | × | × |
| Tool Steering Probes ( Wu et al., 2026b ) | Additive steering | Pairwise (tool A B) | × | × |
| Stage | Phase | Requires labels | Data it may access |
|---|---|---|---|
| Discover | offline | yes | train split |
| Support | offline | yes | train, validation |
| Detect | offline (fit) / online (apply) | fit only | train, validation |
| Estimate | offline | yes | train only |
| Intervene | offline (calibrate) / online (apply) | calibrate only | development |
| Verify | offline | yes | evaluation |
| Model | Protocol | Effect | Controls | Specific | Verdict |
| Phi-3.5-mini | historical | net +55 | random +14, reversed +14, wrong layer +3, mismatched channel ; five seeds +53 to +67 | yes | not sealed |
| Qwen2.5-7B | historical | net +79 | reversed +16; ten random directions, mean +25.2, largest +50 | yes | not sealed |
| Llama-3.1-8B | historical | — † | as many as 5 of 20 random directions reach the real effect | no | not sealed |
| Mistral-7B | historical | net +12 | random mean +29, 17 of 20 reach the real effect; reversed +19 | no | not sealed |
| Qwen3-8B | sealed | 0.276 | 0 of 59 random directions reach it (largest 0.023) | yes | ADMIT |
| Qwen3-4B | sealed | 0.081 | 0 of 59 (largest 0.000) | yes | DECLINE |
| Property Level | Operational Criterion |
|---|---|
| Study Property | |
| ADJUDICABLE | Action space , with defined gold labels, baseline errors, and an exposed reference partition. |
| Representation Properties | |
| READABLE | Error channel is linearly separable from reference states at observation layer . |
| STEERABLE | Directional intervention outperforms zero-magnitude, matched-random, reversed and layer-transposed controls, with cross-channel substitution added where the protocol records it. |
| Intervention Properties (Necessary for Repair) | |
| # | Condition | Quantity | Population | Threshold | Layer |
|---|---|---|---|---|---|
| 1 | channel support | evaluation | integrity | ||
| 9 | zero arm exactness | all endpoints | routed | exact match | integrity |
| 10 | no structural failure | run integrity | — | none | integrity |
| 4 | specificity | add-one over | specificity | ||
| 2 | target gain, point | destination, point | |||
| 5 | target-hit, point | destination, point |
| Benchmark | Actions | Gold | Dest. | Interv. | Status |
|---|---|---|---|---|---|
| When2Call | 4 (3 gold) | yes | yes | yes | primary; all formal outcomes |
| MetaTool | 2 | yes | no | yes | historical; breadth of effect |
| ACEBench | 4 | yes | yes | no | framework transfer; support NO-GO |
| Model | Protocol | Estimator | Dose | Channels | ||
| Phi-3.5-mini | historical | 18 | 14 / 16 ‡ | DiffMean / PCA-1 | 3 | |
| Qwen2.5-7B | historical | 20 | 16 | DiffMean / PCA-1 | N/V | 3 |
| Llama-3.1-8B | historical | N/V | N/V | N/V | N/V | N/V |
| Mistral-7B-v0.3 | historical | N/V | N/V | N/V | N/V | N/V |
| Qwen3-8B | sealed | 26 | 21 | 1.0 | 1 | |
| Qwen3-4B | sealed | 26 | 21 | 0.25 | 1 |
| Baseline state | Final destination | Count | Population |
| channel error | source retained (routed) | 20 | routed, 72 |
| channel error | GOLD ARRIVAL | 38 | routed, 72 |
| channel error | OTHER WRONG | 14 | routed, 72 |
| channel error | unrouted, returned unchanged | 15 | |
| baseline correct | retained correct | 6 exposed, 0 broken | |
| baseline correct | not exposed | 205 |
| # | Condition | Layer | Threshold | Qwen3-8B | Qwen3-4B |
| 1 | channel support | integrity | pass | pass | |
| 9 | zero arm exactness | integrity | exact | pass | pass |
| 10 | no structural failure | integrity | — | pass | pass |
| 4 | specificity, | specificity | pass | pass | |
| 2 | target gain, point | destination | pass | pass | |
| 5 | target-hit, point | destination | pass | pass |
| Arm | Budget / site | Population | Alternative removed |
|---|---|---|---|
| baseline | none | all 548 rows | — defines both populations |
| zero | none | routed | that endpoints are computed on a mis-specified pipeline; must reproduce the baseline exactly before any endpoint is read |
| real | at | routed | — primary arm |
| fresh randoms | at | routed | that any perturbation of this magnitude would move the decision; this is the primary null |
| reverse | at | routed | that the axis matters but its sign does not |
| wrong layer | same at | routed | that the direction works anywhere in the stack; the budget is not renormalised to the other layer’s activation norm, which would change site and budget together |
| Quantity | Activation ( ) | Score-space |
|---|---|---|
| gold arrivals | 38 | 37 |
| other wrong | 14 | 21 |
| source exits | 52 | 58 |
| target-hit | 0.7308 | 0.6379 |
| target gain | 0.2759 | 0.1839 |
| Fixed / Broke (whole) | 40 / 0 | 41 / 2 |
| true target-hit | 0.73 | 0.68 | 0.63 | 0.60 | 0.58 | 0.55 |
|---|---|---|---|---|---|---|
| source exits needed | 30 | 49 | 93 | 158 | 245 | 620 |
| Quantity | Superseded | Authoritative | Reason |
|---|---|---|---|
| Qwen3-4B target-hit CI lower | 0.4561 | 0.4559 | index carried an independent recomputation; the frozen verdict artifact is authoritative |
| Qwen3-4B target-hit CI upper | 0.6984 | 0.6970 | same |
| Gemma target-hit CI lower | 0.4400 | 0.4444 | moved by , beyond the Monte-Carlo noise the captions had allowed |
| Phi collateral denominator | as the rate | as the estimand | arises from using the channel-assignment field as the firing decision; the firing rule is route none , giving |
| Qwen3-4B, Gemma rung label | “admitted at Level-1” | FORMAL DECLINE | falsified by the primary verdict artifacts |
| “Level-1 / Level-2” | used as licence tiers | post-hoc descriptive only | no prospectively frozen definition exists in any artifact |
| Result | Artifact | Row-level |
|---|---|---|
| Qwen3-8B formal | final/results/qwen3_stage2_formal/ | yes |
| Qwen3-4B formal | final/results/qwen3_4b_w2c_formal_v1/ | yes |
| Gemma-2-9B formal | .../gemma/formal_freeze/ | yes |
| Phi-3.5 multi-seed | final/results/clean/p1_multiseed_table.csv | seed 42 only |
| Mistral-7B | final/results/mistral7b_w2c_sakiko_ca/ | no |
| Llama-3.1-8B | final/results/phase8_prospective_llama/ | no |
LLM Auditing
Large language model auditing tests models and deployed systems for bias, safety, privacy, reliability, and provenance using behavioral and internal evidence.
See all 639 papers