When small tool-using agents flag corrupted results but still use them: the knowledge–action gap on table and SQL toolsWhen Small Tool-Using Agents Flag a Corrupted Result Yet Act On It:A Knowledge--Action Gap on Tabular and SQL Tools
The authors measured the knowledge–action gap in small-model agents that use tool results despite knowing they are contaminated: 11 of 12 main test units rejected Acond≤0.10.
- Small tool agents may verbally point out that a tool result is wrong and then still act on it. Looking only at final task success rates or verbal judgments cannot distinguish identifying contamination, refusing to use it, and recovering afterward.
- The authors inject three types of contamination into tool results in databench, text2sql and gsm8k, obtain trust judgments and task actions separately for the same question, test whether Acond exceeds 0.10 conditional on correct flagging, and use linear probes on the residual stream to check for contamination signals.
- 11 of E1's 12 main test units reject Acond≤0.10; the only exception is Qwen2.5-7B/gsm8k. The held-out pool replicates at 10/12; the probe achieves 0.939–0.957 AUROC on the items that were flagged and still acted.
- The authors state that the probes are only correlational, with causal intervention left for future work; the 32B check is a single 4-bit, reduced-sample data point. The position control is missing due to a logging error, and Qwen2.5-7B did not pass the order and surface-form equivalence tests.
- Evaluated models
- Llama-3.2-3BLlama-3.1-8BMistral-7BQwen2.5-7BQwen2.5-0.5BQwen2.5-1.5BLlama-3.2-1BQwen2.5-32B-InstructDeepSeek-R1-Distill-7B
- Metrics
- Acondbalanced accuracyAUROCCohen κECEBrier
The researchers build a corrupted tool result injection framework that injects three types of corruption into tool outputs: fabricated success, wrong cell retrieval, and seemingly outdated, and measure the conditional probability that small tool-using agents (≤8B) still use the result as usual after correctly flagging it as problematic. Among 12 combinations of four models—Llama-3.2-3B, Llama-3.1-8B, Mistral-7B, and Qwen2.5-7B—and three task types—databench, text2sql, and gsm8k—11 combinations had conditional acceptance rates significantly exceeding the preset margin of 0.10, with a maximum of 0.642 (Llama-3.2-3B/databench). The gap was largest on the table question answering task databench, was present on text2sql after correction by an independent judge, and disappeared on gsm8k, where the model can recompute the values itself; a supplementary check on Qwen2.5-32B showed that the gap on databench and text2sql did not shrink with scale but instead increased. The authors call this a knowledge–action gap rather than a knowledge deficit, and state that evaluations measuring only verbal judgments will miss deployment risks.
Why it was selectedThe paper uses a paired design to measure verbal judgments and actual behavior separately, showing that agent safety evaluations that only assess verbal labels will miss deployment risks arising from the gap between knowing and doing.
Related events and news
1 events · 0 news mentions
- This event's paper
小模型智能体识别工具结果损坏后仍照常使用
Paper analysis
What problem does this paper attempt to solve?
Studies the conditional behavioral gap in which small-model agents have correctly pointed out that a tool result is wrong yet still act on it.
The core question is: after a small-model agent identifies that a tool result is corrupted, does it still use it on the same question? The authors measure verbal trust judgments separately from actual behavior.
- Application scenario: The authors focus on small (≤8B) language model agents acting as the execution layer of data pipelines, calling SQL engines, table readers and calculators; tools may return fabricated success, wrong cells, or stale but plausible values.
- Shortcomings of existing evaluations: The authors argue that end-to-end success rates in AgentBench, SWE-bench, etc., which assume tools work normally, mix together discovering bad results, refusing to use them, and recovering from errors, so a model may score even without noticing the problem.
- Core observation and hypothesis: What really needs measuring is the conditional acceptance rate Acond after correct flagging, not the overall flagging rate; if Acond is high, the authors interpret it as a knowledge–action gap, rather than not knowing the result is wrong.
- Subject of study rather than external attacker: The paper measures the model's own behavior under corrupted tool results, with no external attacker, access permissions or victim system set up; the three corruption types are injected by the experimental harness, with uncorrupted results as a clean control.
- Proposed approach: The authors build a paired harness, pre-registered exact binomial tests and a balanced-accuracy capability threshold, and add wording, order, parser, scale, sycophancy and calibration controls, as well as residual-stream linear probes.
What related research exists?
The authors position the work as a shift from tool reliability evaluation to paired measurement of "whether it still acts after correctly identifying."
Tool agents and contaminated context
- ReAct and Toolformer: Yao et al. (2023) and Schick et al. (2023) study interleaved reasoning and tool calls; AgentBench (Liu et al., 2024) and SWE-bench (Jimenez et al., 2024) evaluate end-to-end tasks. The authors argue that such success rates cannot by themselves measure refusal to use bad results.
- AgentDojo and knowledge conflict: The prompt injection suite of Debenedetti et al. (2024) and the knowledge conflict study of Xie et al. (2024) both contaminate context; the authors state that they measure whether contamination changes behavior, whereas this paper further conditions on correct flagging.
- Multi-agent failure taxonomy: Cemri et al. (2025) catalog how multi-agent systems fail; the authors argue that they do not test whether a model violates its own explicit judgment.
Sycophancy, honesty and reasoning faithfulness
- Sycophancy and reward tampering: Sharma et al. (2023) study deference to users' pre-existing beliefs, and Denison et al. (2024) study reward-tampering under training pressure; the authors point out that both involve external incentives, whereas this setting has none, and compare them directly in E4.
- Calibration and internal knowledge: Kadavath et al. (2022) study whether models know their own knowledge, and Guo et al. (2017) study calibration; Greenblatt et al. (2024) discuss the divergence between stated positions and actual behavior.
- Unfaithful chain of thought: Turpin et al. (2023) and Lanham et al. (2023) study inconsistency between reasoning and answers; the authors describe this paper as moving this problem from reasoning to "verbal judgment and action".
Representation probes and task sources
- Linear and internal-state studies: Zou et al. (2023) and Marks and Tegmark (2023) study linear structure in the residual stream, and Azaria and Mitchell (2023) study internal states and the truth value of statements; this paper uses probes only to check whether ignored contamination signals remain decodable.
- Task and model background: databench comes from SemEval-2025 table question answering, text2sql cites Yu et al. (2018), and gsm8k comes from Cobbe et al. (2021); these are task sources, not behavioral comparison baselines. The paper sets no separate method baseline; the main comparisons are the clean control, the difficulty-matched random contamination subset, and the sycophancy and calibration measurements in E4.
How does the paper address this problem?
Measures Acond with a same-question dual-channel paired design, then rules out alternative explanations with a capability threshold, confound controls and linear probes.
The overall framework is a corrupted-tool-result harness: the same contaminated question separately triggers a trust query and a task continuation, and the main analysis looks only at the correctly flagged subset; a parallel probe checks whether contamination information remains in the residual stream (Figure 1).
Contaminated tasks and paired measurements
- Three task types: databench is real table QA, text2sql is SQL query execution, and gsm8k is an arithmetic tool/evaluation; each question is originally a (task, tool call, tool result) triple.
- Three contamination types: fabricated_success changes a call that produced no valid answer into a successful result; wrong_cell returns a structurally valid result with the wrong field or row; plausible_stale returns an old value that is internally plausible but inconsistent with the current input. There is also an uncorrupted clean control to measure false refusals.
- Two outcome variables: the trust query yields F, with F=1 when contamination is correctly pointed out; the task continuation yields A, with A=1 when the contaminated value is used. Each model × contamination type unit has about 1,513–1,520 questions, shared pool n=6073.
Main test and capability threshold
- Core definition: Acond=P(A=1∣ F=1), i.e., the probability of still acting after having correctly flagged.
- Pre-registered test: one-sided exact binomial test of H0: Acond≤0.10 against H1: Acond>0.10, reporting Wilson 95% CI, with Holm correction at α=0.05 across the 12 model × dataset units.
- Capability threshold: E0 uses BA=1/2(TPR+TNR) to detect contamination-identification ability, requiring BA>0.5 and one-sided z>1.645; those that fail are classified as capability deficits and not counted as "knowing but still acting".
- Secondary description: McNemar exact test compares flagged-but-acted with not-flagged-but-refused, but the authors explicitly state that it is not an Acond test; I²=98–100% across datasets, so no single effect is pooled.
Confounders and scale analysis
- E2 perturbation: On Llama-3.2-3B, Llama-3.1-8B and Qwen2.5-7B, the trust/task wording, AB/BA presentation order and surface form are varied; order uses TOST with a ±0.05 bound rather than treating non-significance as equivalence.
- E3 scale model: A random-intercept logistic GLMM is fitted on 14,735 conditioned questions across seven models from 0.5–8B, including standardized scale, contamination type, difficulty and scale × contamination type interaction.
- E4 distinguishing mechanisms: On the same questions, the per-question correlation of the tool gap with sycophancy and honesty-probe calibration and their joint explained variance are measured; sycophancy flip rate and calibration metrics serve as background comparisons.
Residual-stream probes
- Input and search: ℓ2-regularized linear probes use the model's own residual-stream activations, scanning 12 layers and both last/decision token and mean positions, with nprobe=2000.
- Leakage-preventing split: StratifiedGroupKFold is used by base_id so that clean and corrupted versions of the same question do not cross training/test folds; the authors state that an earlier row-wise split had question-identity leakage.
- Reading and controls: The key reading is the AUROC on the "flagged but still acted" subset; controls include a difficulty-matched random contamination subset of the same size, a clean random-label specificity null hypothesis, and transfer from trust-query to task embedding. AUROC is pooled out-of-fold, and CIs use matched cluster bootstrap.
What experiments did the paper conduct?
E1 has 11/12 cells rejecting Acond≤0.10; the held-out reproduction, confound controls and probe results are not entirely in the same direction.
Experimental setup
- Main test models: Llama-3.2-3B, Llama-3.1-8B, Mistral-7B, Qwen2.5-7B; E0 additionally tests Qwen2.5-0.5B/1.5B and Llama-3.2-1B, and the scale check additionally tests Qwen2.5-32B-Instruct.
- Tasks and samples: databench, text2sql, gsm8k; shared pool n=6073, of which E0 has 4,553 corrupt and 1,520 clean. About 1,513–1,520 questions per model×corruption type.
- Main metrics: Acond and Wilson 95% CI, one-sided exact binomial tests, Holm correction across 12 cells; capability threshold is BA>0.5 and z>1.645.
- Parsing and judging: F and A are first classified by a text parser, then independently judged by Qwen2.5-7B-Instruct (greedy) on a stratified n=750; per-dataset Acond for ≤8B models uses judge-corrected values.
- Other experiments: E2 pool n=4874; E3 uses 14,735 conditional rows; E5 probe nprobe=2000; E6 tests A/B templates on Llama-3.1-8B and Qwen2.5-7B on a frozen held-out pool.
- Exclusions and repetition: DeepSeek-R1-Distill-7B's degenerate cells n=7/6/4 were excluded; the 32B is a 4-bit NF4, n=120 per dataset independent raw-parser check, not Holm-corrected together with the main 12 cells.
Main results
According to Table 1, 11 of the 12 cells for the four ≤8B models reject H0; values are judge-corrected Acond.
Swipe horizontally to read the table
Model databench Acond text2sql Acond gsm8k Acond Llama-3.2-3B 0.642 0.309 0.168 Llama-3.1-8B 0.547 0.400 0.138 Mistral-7B 0.517 0.295 0.526 Qwen2.5-7B 0.507 0.336 0.069 - The only main-test exception: Qwen2.5-7B/gsm8k's Wilson upper bound of 0.083 is below δ=0.10, Holm p=1.00; the authors state it is genuinely below the threshold, not that the test lacked power.
- Dataset differences: The authors state the gap exists in databench, exists in judge-corrected text2sql, and is absent in gsm8k; but they do not claim a strict monotonic ordering, because after judging text2sql is 0.474, higher than databench's 0.383 (Table 2).
- 32B external validity point: Qwen2.5-32B-Instruct's Acond on databench/text2sql/gsm8k is 0.681/0.362/0.099 respectively, with the first two rejecting and gsm8k not rejecting (p=0.098); the authors state this is only a single reduced-sample check.
Parser validity and capability threshold
- Capability threshold passed: All seven E0 models pass; BA ranges from 0.503 for Llama-3.2-1B to 0.636 for Mistral-7B. Although Llama-3.1-8B flags 84% of corrupt questions, it also flags 71% of clean questions, TNR=0.287.
- A parser is weaker: In Table 2, the F parser has overall accuracy 0.839, κ=0.667; the A parser is 0.673, κ=0.321. For text2sql, the acceptance rate is parser 0.26, judge 0.60.
- Key comparison retained: After judge relabeling, the databench−gsm8k Acond difference is 0.289, z=4.32, p=1.5×10−5; the authors therefore state this comparison is not a parsing artifact, but the strict dataset ordering is partly a parsing artifact.
Confounds, scale and mechanism distinction
- Wording and order: E2 three-model wording CoV is 0.055/0.105/0.123; Llama-3.2-3B and Llama-3.1-8B pass ±0.05 order equivalence, Qwen2.5-7B does not (difference −0.024, lower one-sided p=0.057).
- Surface form and missing control: matched-vs-mismatched |∆gap| is 0.018, 0.004, 0.049 in order; Qwen2.5-7B's CI [0.027,0.071] exceeds the 0.05 bound. The position experiment wrote all three groups to the same key due to a logging error, so the ANOVA is undefined.
- Scale and interaction: E3 scale main effect β̂=−0.085, z=−2.75, p=0.006; wrong_cell interaction β̂=+0.226, z=7.86. The authors state scale overall reduces acceptance, but wrong_cell is more persistent.
- Distinction from sycophancy and calibration: In Table 4, the tool gap's |r| with sycophancy is ≤0.308, and its correlation with miscalibration is ≤0.123; joint explained R² is 0.067/0.019/0.095, residual R² is 0.933/0.981/0.905.
Held-out reproduction and linear probes
- E6 reproduction: On the frozen held-out pool, 10/12 cells pass Holm under both templates; the failure is still Qwen2.5-7B/gsm8k, Acond=0.067/0.062. Llama-3.1-8B templates A/B are 0.317/0.458, Qwen2.5-7B is 0.269/0.318 (Table 6).
- Reproduction boundary: The authors state E6 reproduces the pattern and point estimates, not a formal equivalence test; template B raises Llama-3.1-8B's Acond, which is magnitude-sensitive.
- E5 probes: In Table 5, gap-subset AUROC is Llama-3.2-3B 0.937, Llama-3.1-8B 0.937, Qwen2.5-7B 0.948; the main text reports best-layer readings of 0.939/0.940/0.957, and the two sets of numbers use different conventions.
- Controls and limitations: The difficulty-matched random corruption control tracks the full set, the gap subset averages +0.096 higher AUROC, the specificity null is about 0.50, and transfer AUROC is 0.70–0.79; the authors explicitly state the probes are correlational evidence.
Other ablations and analyses
- E0 response bias: Llama-3.1-8B's flag rate is 84%, clean misflag rate 71%.
- E2 position control: A logging error resulted in F=0/0, which the authors leave for a rerun.
- E3 difficulty term: hard's β̂=−1.159, z=−48.35 (Table 3).
- E3 small-sample handling: Llama-3.2-1B has only 35 conditional rows and Qwen2.5-0.5B has 310, which enter the fit but are not interpreted separately.
- E5 leakage review: Early row-wise splits produced anomalies such as specificity control AUROC 1.0; these disappeared after switching to item-grouped CV.
What are some points that can be further explored?
The authors list causal intervention, the position rerun and larger-scale checks as future work; the current evidence also retains several exceptions.
Limitations and future directions noted by the authors
- Task and model scope: Limitations states that τ-bench, BFCL, Spider and Qwen3-8B were not run and no conclusions are drawn about them; the main test has only four interpretable models, plus one 32B external-validity point.
- The gap is not universal: Limitations notes that it is absent on gsm8k, that I²=98–100% across datasets, and that there is no single pooled effect.
- Parser construct validity: Limitations states that the A parser is weak and its error varies by dataset, so per-dataset values require judge correction, and that part of the strict monotonic ordering is a parsing artifact.
- Confound-control exceptions: Limitations states that order and surface-form equivalence hold only for the two Llama models and not for Qwen2.5-7B; the position control is missing due to a logging error, and E2 leaves a valid rerun as future work.
- Mechanistic evidence: Limitations states that the probe is correlational and, after correcting leakage, is only +0.096 above the difficulty-matched control; causal steering/ablation is future work.
- Scale extrapolation: Limitations states that the 32B is only a single 4-bit, reduced-n point; 70B+ and a full-n frontier sweep are future work.
Scope of experimental coverage
- Model coverage: The E0 threshold covers seven models; the E1 main table has four ≤8B models, plus a Qwen2.5-32B-Instruct check; the degenerate DeepSeek-R1-Distill-7B unit is excluded (Sec. 4.1, 4.2, 4.5).
- Task coverage: The experimental tasks are databench, text2sql and gsm8k, with about 1,513–1,520 questions per model × contamination type, shared pool n=6073 (Sec. 3.1).
- Independent review: Qwen2.5-7B-Instruct reviews the two parsers on a stratified n=750; the paper reports no human review or human agreement (Sec. 4.3, Table 2).
- Replication and perturbation: E2 covers wording, order and surface form for three models; E6 covers two models, two templates and a frozen held-out pool, but is not a formal equivalence test (Sec. 4.4, 4.8).
- Mechanism and scale: E5 is an item-grouped CV linear probe, and E3 is a 0.5–8B GLMM; the 32B check uses n=120 per dataset, 4-bit NF4, and the raw parser (Sec. 4.2, 4.5, 4.7).
Summarize the main content of the paper
The authors use paired behavioral measures and probes to study "knowing the tool is wrong but still using it," and retain dataset and model exceptions.
This is a study of the behavioral consistency of small tool agents themselves: verbally identifying contamination is not the same as refusing to use contaminated results.
- Problem: End-to-end agent benchmarks usually assume tools work correctly, and success rates mix detection, refusal and recovery; the authors separately measure action after correct flagging.
- Method: The harness injects three types of contamination into databench, text2sql and gsm8k, obtains trust judgments and task continuations separately for the same question, tests whether Acond exceeds 0.10 with an exact binomial test, and applies Holm correction.
- Main results: 11 of the 12 ≤8B model × dataset units in Table 1 reject the null hypothesis; Llama-3.2-3B/databench has Acond of 0.642, and Qwen2.5-7B/gsm8k has 0.069 and does not reject.
- Robustness and exceptions: Under E6's frozen held-out pool and two templates, 10/12 units pass; Qwen2.5-7B does not pass the order and surface-form equivalence checks, and the position control is missing due to a logging error.
- Mechanistic evidence: In E4, sycophancy and calibration jointly explain at most R²=0.095; the E5 main text reports a best AUROC of 0.939–0.957 on the gap subset, but the authors explicitly state that the probe provides only correlational evidence.
- Authors' conclusion: The authors argue that deployment evaluation cannot stop at verbal judgments and should directly measure the distance between "saying" and "doing"; at the same time, they do not give a cross-dataset pooled effect, nor do they treat the 32B single point or the probe results as general or causal conclusions.