Back to Feed
Agents / Training & Fine-Tuning

Improving AI Tool Use for Small Models

Original: Data Turnstile: A Scalable Open Framework for Function-Calling Data Generation

Listen to the summary

Uses a voice available on your device

Audio options
On this page

Key Takeaways

  • Small language models (those with fewer parameters) struggle with tool use because they cannot easily fix low quality training data like larger models do.
  • The Data Turnstile framework uses a structured step-by-step process to generate complex training interactions that are much more diverse than existing open source datasets.
  • Small models trained with this data achieve performance gains, with some models significantly outperforming much larger versions of themselves on standardized tests.
  • The process uses strict structural checks and error handling during training data creation to ensure the examples are accurate and reliable.

Summary & Methodology Analysis

The researchers addressed the core challenge of training small language models to call external digital tools (functions) by focusing on the creation of high quality training data. They designed a framework where interaction templates act as a blueprint. Each template defines a sequence of roles like user requests, tool calls, and model reasoning, which are connected by rules. The system generates these sequences one step at a time, using a validation step to catch errors like hallucinations (making up information) or logically impossible tool responses before the next step is created. This ensures the training data remains coherent and realistic throughout complex, multi-step tasks.

Interactive System Flowchart

Click diagram to expand and zoom

Cross-Examination & FAQs

A deeper dive clarifying mechanics, constraints, and baseline evaluations.

Q1. What is the main problem this paper tries to solve?

Small language models struggle with using digital tools because they require very clean training data, and existing datasets are often too noisy or low in quality for them to learn effectively.

Q2. How does the new framework work?

It uses a structured, role-based process to build training conversations. It includes automated checks at every step to ensure the data is logical and correct before using it for training.

Q3. Did the models improve after being trained with this data?

Yes. Models trained with this data showed significant performance gains, often performing better than much larger models that were not trained this way.

Q4. What is the role of the validation step during data generation?

The validation step acts as a quality filter, checking for errors like hallucinations or illogical tool outcomes. If a step fails, the system tries to fix the error using feedback or aborts the sequence if it cannot be recovered.

Q5. How does this method compare to standard single-shot generation?

Single-shot generation is unreliable for complex tasks, as it often suffers from leaking the final correct answer prematurely or falsely declaring success when the steps taken were incorrect.

Q6. Does training with this data always help small models?

While it significantly improves performance, very small models (like the 0.6 billion parameter model) still face limitations in long-term reasoning and can struggle if the task becomes too complex or if they encounter adversarial users.

Q7. What happens when you remove chain-of-thought from these models?

The performance of these models drops substantially, with some dropping by as much as 11 to 22 percentage points, demonstrating that step-by-step reasoning is critical for their success.

Q8. Are there any limitations regarding the generated data?

Yes, generating complex interactions with many parallel tool calls becomes harder, and the failure rate of the generation process increases as the complexity of the desired conversation grows.

Q9. Is the tool-call weighted training approach always effective?

It shows a consistent positive trend in improving performance, though the researchers noted that the specific gains observed in their tests fall within the margin of error, so they are not statistically significant in isolation.