Turnslide: Scalable Multi-Turn Data Synthesis by Walking a Finite-State Machine
cs.CL
Submitted: 2026-10-05
Updated: 2026-10-05
Comments: Accepted at the SLM-Agents Workshop, NeurIPS 2026 (non-archival)
Code: https://github.com/HuanzhiMao/BFCL-Result
License: http://creativecommons.org/licenses/by/4.0/
The gist: Small language models are inexpensive to serve and can run on private infrastructure, but base models are often not good enough at multi-turn tool calling, and fine-tuning them needs per-API data
Abstract
Small language models are inexpensive to serve and can run on private infrastructure, but base models are often not good enough at multi-turn tool calling, and fine-tuning them needs per-API data that rarely exists. Existing synthesis methods are too expensive for high-scale fine-tuning, as they often require mock operational environments for different domains and multiple LLM calls per generated conversation turn. We introduce a fully automated, lightweight synthesis framework that models each API as a finite-state machine, representing the system as abstract states that determine when each tool may be called, producing state-valid sequences of tools; sequences are translated into complete examples with a single LLM call. Rather than optimize diversity, we set a target distribution over the number of turns, the tool sequence and task complexity. We measure data quality by fine-tuning SLMs on generated trajectories, showing that our FSM-based generation significantly improves downstream accuracy over an unmutated baseline and, against existing works, reaches 70.7% full accuracy over 63.4% and 53.7% with 3.6-6.6 times fewer tokens.
Sources
- Small Language Models are the Future of Agentic AI
- Facilitating Multi-turn Function Calling for LLMs via Compositional Instruction Tuning
- TinyStories: How Small Can Language Models Be and Still Speak Coherent English?
- Scaling Synthetic Data Creation with 1,000,000,000 Personas
- GLM-5: from Vibe Coding to Agentic Engineering
- Textbooks Are All You Need
- Quality Matters: Evaluating Synthetic Data for Tool-Using LLMs
- OpenAI GPT-5 System Card
- Multi-Object Tracking with Camera-LiDAR Fusion for Autonomous Driving
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering