Grafy News
Try Grafy free

Small AI Agents Flag Corrupted Tool Data But Use It Anyway

Researchers have discovered a knowledge-action gap in small AI agents, where models correctly identify faulty tool outputs but proceed to use them regardless.

Illustration for the news story: Small AI Agents Flag Corrupted Tool Data But Use It AnywaySource: Grafy Research Lab

Small language model agents are increasingly used as the execution layer for automated data pipelines, yet a new study reveals they suffer from a critical reliability flaw. Researchers have identified a "knowledge-action gap" where models correctly verbalize that a tool's output is corrupted, but then proceed to use that exact data to complete their assigned tasks.

What is the knowledge-action gap in AI agents?

In the research conducted by Yuze Gao and Yu Yuan, the authors distinguish between an agent's verbalized judgment and its behavioral commitment. When an agent is presented with a tool result—such as data from a SQL engine or a calculator—it is first asked if the result is trustworthy. If the model correctly identifies the result as faulty, it has demonstrated "knowledge" of the error. However, the "action gap" occurs when the model ignores its own warning and continues the task using the bad data.

Figure 1 shows the framework used to measure this phenomenon. The researchers used a "corrupted-tool-result harness" to inject three specific types of errors into otherwise accurate tool outputs: fabricated_success (fake successful results), wrong_cell (incorrect data in a table), and plausible_stale (data that was correct but is now outdated). By comparing the model's verbalized trust judgment against its subsequent task continuation, the researchers could measure the probability of a model acting despite flagging an error correctly.

How do different models and tasks react to corrupted data?

According to the study, this failure is not uniform across all types of AI tasks. The gap was most pronounced in table-based Question Answering (Table-QA) using the DataBench dataset. It was also present in text-to-SQL tasks, specifically after a judge provided a correction. Interestingly, the gap was absent in arithmetic tasks using the GSM8K dataset, where models could recompute the values themselves to verify accuracy.

Testing across various model families, including Qwen2.5, Llama-3.x, and Mistral, the researchers found that the issue is widespread. In 11 out of 12 tested model-dataset combinations, the models failed the primary test, showing a significant tendency to act on corrupted data even after flagging it. The researchers noted that while increasing the scale of the model helps reduce the frequency of this behavior, it does not eliminate it entirely.

Is the error due to model ignorance or something else?

One of the most significant findings of the paper is that the models are not simply "clueless" about the error. The researchers used mechanistic probing to look inside the models' internal states. Figure 3 illustrates the results of a linear probe applied to the models' residual streams. The probe was able to decode the corruption signal with high accuracy (AUROC between 0.939 and 0.957) even on the specific items where the models had flagged the error but chosen to act on it anyway.

Figure 3: E5: leak-free probe AUROC across layers at the decision token (item-grouped CV). Gap-subset AUROC peaks at 0.94–0.96, full-set at 0.91–0.93, and a difficulty-ma…
Figure 3. E5: leak-free probe AUROC across layers at the decision token (item-grouped CV). Gap-subset AUROC peaks at 0.94–0.96, full-set at 0.91–0.93, and a difficulty-matched random-corrupt control tracks the full set; the specificity null sits at ≈0.50. The gap subset exceeds the matched control by +0.096. Figure 3 of “When Small Tool-Using Agents Flag a Corrupted Result Yet Act On It:A Knowledge--Action Gap on Tabular and SQL Tools” by Yuze Gao, Yu Yuan (arXiv.org), CC BY-SA 4.0.

This suggests that the corruption signal is internally encoded and known to the model, but the model's decision-making process fails to translate that internal knowledge into a refusal to act. The authors argue that this behavior is distinct from "sycophancy" (the tendency to agree with a user) and "miscalibration" (the inability to know how certain a model is), because the models are not being pressured by a user and they are explicitly stating their uncertainty.

Why does this matter for developers and researchers?

As developers move toward using smaller, more cost-effective models (typically ≤\leq 8B parameters) to run complex data pipelines, the reliability of these agents becomes paramount. If an agent can call a SQL engine or a calculator but cannot be trusted to stop when the engine returns a hallucinated or stale value, the entire pipeline becomes a liability.

The research highlights that current benchmarks, which often assume tools are perfectly reliable, may be overestimating the actual utility of agentic workflows. For researchers, this points toward a need for new training objectives or architectural changes that better align a model's verbalized reasoning with its physical actions in a tool-using environment.

How to explore AI research and model reliability

While this specific research highlights the vulnerabilities of small agents in automated pipelines, understanding the nuances of AI outputs is essential for any researcher. For those looking to analyze complex academic papers or technical documentation regarding model behaviors and failure modes, using Reader allows you to perform deep research over PDFs and papers. You can ask specific questions about research methodologies or data distributions to gain a better understanding of how these models are being tested and where their limitations lie.

Frequently asked questions

Does the model know the tool result is wrong?

Yes, the study demonstrates that models often correctly identify corrupted tool results during verbalized judgments. Mechanistic probing showed that the signal of the corruption is internally encoded in the models' residual streams, meaning the models possess the knowledge of the error even when they fail to act on it.

Is this problem more common in larger models?

No, the research suggests that while increasing the scale of a model can decrease the likelihood of acting on corrupted data, the gap does not vanish. The failure to align knowledge with action is a persistent issue that survives vertical scaling across different model sizes.

Does the type of tool affect the error rate?

Yes, the error rate varies significantly depending on the task. The gap was largest in table-based QA tasks and present in text-to-SQL tasks, but it was notably absent in arithmetic tasks like GSM8K, where the models could verify the results through their own reasoning capabilities.


Source: Grafy Research Lab — When Small Tool-Using Agents Flag a Corrupted Result Yet Act On It:A Knowledge--Action Gap on Tabular and SQL Tools