Turnslide: Scalable Multi-Turn Data Synthesis by Walking a Finite-State Machine

Aaron Fainman, Gabriela Kadlecová, Maciej Gryka, Bartosz Kruszczyński, Usman Zafar +5 more
10/5/2026
cs.CL

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fainman2026turnslide,
  title  = {Turnslide: Scalable Multi-Turn Data Synthesis by Walking a Finite-State Machine},
  author = {Aaron Fainman and Gabriela Kadlecová and Maciej Gryka and Bartosz Kruszczyński and Usman Zafar and Cédric Archambeau and Aaron Klein and David Salinas and Selim Nowicki and Jacek Golebiowski},
  year   = {2026},
  eprint = {2610.07070},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.07070v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.07070.svg)](https://codeofpaper.com/paper/2610.07070)

Discussion