Abstract
Large Language Models (LLMs) are increasingly deployed as agents capable of using external tools. However, the synthetic data used to train these models often suffers from quality issues. This paper investigates the impact of data quality on tool-using LLMs, proposing two automated evaluation methods: Intrinsic Quality Evaluation and In-Context Evaluation (ICE). Our results demonstrate that filtering for high-quality data allows models trained on significantly smaller subsets to outperform those trained on massive, unvalidated datasets, highlighting that in synthetic data generation, quality often outweighs quantity.
Introduction
As LLMs evolve into autonomous agents, their ability to interact with external APIs is paramount. Due to the high cost of human annotation, synthetic data generated by teacher models (like GPT-4) has become the standard for training. Yet, this reliance introduces a "garbage in, garbage out" risk. Current benchmarks often contain unsolvable instructions or logically flawed API calls. This research addresses this gap by quantifying data quality and its direct effect on model performance.
Methodology: Evaluating Synthetic Data
The authors introduce two distinct strategies for assessing the quality of synthetic tool-use data:
1. Intrinsic Quality Evaluation
This method applies human-defined logic to evaluate instances across six dimensions. Instruction properties include specificity, coherence, and solvability. API-call properties focus on parameter alignment, sufficiency, and minimality. To scale this process, GPT-3.5 is utilized as an automated judge to categorize these complex traits.
2. In-Context Evaluation (ICE)
ICE is a novel approach that measures the "educational value" of a training instance. By using a specific data point as a one-shot example in a prompt, researchers observe how much it improves the target LLM's performance on a controlled test set. Instances that lead to higher performance are deemed high-quality.
Datasets and Findings
The study examines two major benchmarks: ToolBench (~125,000 instances) and ToolAlpaca (~4,200 instances). Analysis revealed a significant quality gap: 84% of ToolBench instances and 45% of ToolAlpaca instances contained at least one error. A common issue was "parameter alignment" errors, where models were inadvertently trained to hallucinate values not present in the user prompt.
Key Results: The "Less is More" Phenomenon
The most striking finding is the efficiency of high-quality data. By filtering the ToolBench dataset, a model trained on only 10,000 high-quality samples achieved a pass rate of 0.54, significantly higher than the 0.35 pass rate of a model trained on 10,000 random samples.
Furthermore, this 10k high-quality subset outperformed the model trained on the entire original 73,000-instance dataset (0.54 vs. 0.45). This suggests that low-quality data acts as noise that actively degrades model performance.
Conclusion and Future Work
This research underscores that data quality is a critical bottleneck for tool-using LLMs. While automated filtering via LLM-as-a-judge or ICE is effective, it remains computationally intensive. Future work should focus on "quality-by-design" generation techniques and exploring how these findings scale to larger model architectures. Ultimately, the path to more capable agents lies not just in more data, but in better data.
Summary updated