Synthetic data generation is a common approach for obtaining supervised finetuning (SFT) data for multilingual language models (LMs). It typically involves prompting a teacher LM to generate data across a variety of topics and user instructions. However, this approach depends entirely on the teacher's own knowledge, which is sparse or unreliable for less-resourced languages, leading to low-quality data and underperforming student models. We introduce DataSmith, a framework that treats multilingual data generation as tool-augmented research: given a seed prompt, we instruct a teacher LM to research with tools, and then generate SFT data. We ground the LM's research in tools long used in multilingual dataset creation: web access, linguistic knowledge bases, and expert systems. Our experiments across 11 languages show that models trained on DataSmith's output outperform a classic synthetic data pipeline on downstream cultural knowledge, commonsense reasoning, and knowledge-based tasks. The largest gains are in low- to mid-resource languages (+5.5 pp over the base model and +4.0 pp over the baseline pipeline). Native speakers also prefer DataSmith-generated data, rating them higher on instruction following and coherence. In addition, analysis of tool-use trajectories reveals that DataSmith invokes more tool calls and leans more on linguistic resources for less-resourced languages. Overall, our findings suggest that bridging long-standing practices in multilingual dataset creation with the tool-use capabilities of modern LMs can lead to quality synthetic data for building inclusive language technologies.
翻译:暂无翻译