Artificial Conversations, Real Results: Fostering Language Detection with Synthetic Data
Fatemeh Mohammadi, Tommaso Romano, Samira Maghool, Paolo Ceravolo
TL;DR
This work tackles data scarcity for language detection in Italian by proposing a synthetic data pipeline that enables fine-tuning of LLMs on synthetic annotations for inclusive language. It systematically analyzes how prompt strategies, text length, and target position influence synthetic data quality and downstream model performance. A Phi3-mini model fine-tuned on synthetic data achieves superior performance on both synthetic and real test data, outperforming several pre-trained baselines. The study demonstrates a cost-effective, scalable approach to language detection in resource-constrained settings, with implications for broader deployment across domains.
Abstract
Collecting high-quality training data is essential for fine-tuning Large Language Models (LLMs). However, acquiring such data is often costly and time-consuming, especially for non-English languages such as Italian. Recently, researchers have begun to explore the use of LLMs to generate synthetic datasets as a viable alternative. This study proposes a pipeline for generating synthetic data and a comprehensive approach for investigating the factors that influence the validity of synthetic data generated by LLMs by examining how model performance is affected by metrics such as prompt strategy, text length and target position in a specific task, i.e. inclusive language detection in Italian job advertisements. Our results show that, in most cases and across different metrics, the fine-tuned models trained on synthetic data consistently outperformed other models on both real and synthetic test datasets. The study discusses the practical implications and limitations of using synthetic data for language detection tasks with LLMs.
