Preprint
Reinforcement Learning

Synthetic Dataset Generation for RAG Evaluation with Multi-Agent Systems

Ilias Driouich, Hongliu Cao, Eoin Thomas
August 26, 20251 citations

1

Citations

0

Influential Citations

Venue

2025

Year

Abstract

Retrieval-augmented generation (RAG) systems improve large language model outputs by incorporating external knowledge, enabling more informed and context-aware responses. However, the effectiveness and trustworthiness of these systems critically depends on how they are evaluated, particularly on whether the evaluation process captures real-world constraints like protecting sensitive information. While current evaluation efforts for RAG systems have primarily focused on the development of performance metrics, far less attention has been given to the design and quality of the underlying evaluation datasets, despite their pivotal role in enabling meaningful, reliable assessments. In this work, we introduce a novel multi-agent framework for generating synthetic QA datasets for RAG evaluation that prioritize semantic diversity and privacy preservation. Our approach involves: (1) a Diversity agent leveraging clustering techniques to maximize topical coverage and semantic variability, (2) a Privacy Agent that detects and mask sensitive information across multiple domains and (3) a QA curation agent that synthesizes private and diverse QA pairs suitable as ground truth for RAG evaluation. Extensive experiments demonstrate that our evaluation sets outperform baseline methods in diversity and achieve robust privacy masking on domain-specific datasets. This work offers a practical and ethically aligned pathway toward safer, more comprehensive RAG system evaluation, laying the foundation for future enhancements aligned with evolving AI regulations and compliance standards.

Analysis

Why This Paper Matters

Retrieval-augmented generation (RAG) systems are increasingly deployed in real-world applications, yet their evaluation often relies on datasets that may not capture semantic diversity or privacy constraints. This paper highlights a critical oversight: while much research focuses on developing performance metrics, the underlying evaluation datasets are often neglected. The authors argue that the quality of these datasets is pivotal for meaningful and reliable assessments, especially when sensitive information is involved.

By introducing a multi-agent framework for synthetic dataset generation, this work directly addresses the need for evaluation sets that are both diverse and privacy-preserving. This is particularly relevant as AI regulations tighten, requiring systems to handle sensitive data responsibly. The paper offers a practical solution that aligns with ethical standards, making it a timely contribution to the field.

Technical Contributions

  • Multi-Agent Architecture: The framework consists of three specialized agents—Diversity, Privacy, and QA curation—each handling a distinct aspect of dataset generation.
  • Diversity Agent: Utilizes clustering techniques to ensure that generated QA pairs cover a wide range of topics and semantic variations, avoiding redundancy and bias.
  • Privacy Agent: Detects and masks sensitive information across multiple domains, ensuring that the generated datasets do not leak personal or confidential data.
  • QA Curation Agent: Synthesizes QA pairs that are both private and diverse, suitable as ground truth for RAG evaluation.
  • Ethical Alignment: The approach is designed with compliance in mind, considering evolving AI regulations and standards.

Results

The paper reports that the proposed evaluation sets outperform baseline methods in diversity and achieve robust privacy masking on domain-specific datasets. However, specific quantitative metrics (e.g., diversity scores, masking accuracy) are not detailed in the abstract. The experiments demonstrate the effectiveness of the multi-agent framework in generating high-quality synthetic datasets.

Significance

This work fills a crucial gap in RAG evaluation by shifting focus from metrics to dataset quality. It provides a practical, ethically aligned method for generating evaluation data that respects privacy, which is essential for deploying RAG systems in sensitive domains like healthcare or finance. The multi-agent approach is scalable and adaptable, potentially influencing future evaluation standards and regulatory compliance. By laying the groundwork for safer RAG evaluation, this paper contributes to the broader goal of trustworthy AI systems.