Manuscript Offprint

arXiv:2610.26066

FinSafeGuard: A Quality-Driven Synthetic Dataset for Financial AI Safety

Joseph Thomas Thacil, Reetu Raj Harsh, Krati Saxena, Bhaskarjit Sarmah, Stefano Pasquali

Joseph Thomas Thacil 1^{1}, Reetu Raj Harsh 1^{1}, Krati Saxena 1^{1}, Bhaskarjit Sarmah 1∗^{1*}, and Stefano Pasquali 2^{2}

1^{1} Domyn, India

josephthomas.thachil@domyn.com, reeturaj.harsh@domyn.com, krati.saxena@domyn.com, bhaskarjit.sarmah@domyn.com

2^{2} Domyn, USA

stefano.pasquali@domyn.com

Abstract. Generating high-quality synthetic datasets at scale remains a fundamental challenge for training specialized AI systems in data-scarce domains. We present a comprehensive methodology that produces 14.3 million quality-filtered synthetic training examples from a structured taxonomy of 632,000 scenario specifications. Our four-stage pipeline addresses critical challenges in synthetic data quality, diversity, and realism through: (1) systematic pre-generation research establishing optimal generation parameters via diminishing returns analysis, (2) conditional auto-evolution mechanisms that remediate low-diversity batches during generation, (3) a two-layer semantic deduplication architecture combining lexical and embedding-based methods, and (4) LLM-as-Judge quality evaluation filtering samples based on behavioral correctness and tuple fidelity. Empirical analysis across three domains (Banking, Insurance, Financial Services) demonstrates domain-specific deduplication patterns ranging from 9.9% to 40.6%, with output generation modes exhibiting highest redundancy. Our batch size optimization reveals mode-specific diversity saturation thresholds, enabling principled allocation strategies. The complete pipeline reduces 26.4M raw samples to 14.3M high-confidence examples through merge (20.9% reduction), semantic deduplication (18.7% reduction), and quality-based filtering (15.9% reduction), providing a reproducible framework for domain-specific synthetic data generation with rigorous quality control.

Keywords: Synthetic data generation · Quality evaluation · Diversity metrics · Semantic deduplication · LLM-as-Judge · Financial AI safety

1 Introduction

Large language models have demonstrated remarkable capabilities across diverse tasks, yet their deployment in specialized domains requires training data that captures domain-specific risks, edge cases, and regulatory constraints. Financial institutions face unique challenges: real-world safety incidents are sparse,

Thacil et al.

sensitive customer data cannot be shared, and regulatory requirements demand comprehensive coverage of potential failure modes [3, 8].

Synthetic data generation offers a promising solution, enabling creation of large-scale training datasets without privacy concerns or data scarcity limitations [5,10][5, 10]. However, naive scaling—simply generating millions of synthetic examples—produces datasets plagued by redundancy, low diversity, and quality inconsistencies that degrade downstream model performance [6,11][6, 11].

This work addresses three fundamental questions in large-scale synthetic data generation:

  1. Batch Size Optimization: How many samples should be generated per scenario specification before diversity saturates and duplicates emerge?

  2. Quality-Diversity Tradeoff: How can we systematically measure and enforce both quality and diversity throughout the generation pipeline?

  3. Scalable Deduplication: How can we efficiently detect and remove semantic duplicates across millions of generated samples?