AIDE: Attribute-Guided MultI-Hop Data Expansion for Data Scarcity in Task-Specific Fine-tuning

Jiayu Li, Junzhen Zhu, Zhiyuan Liu, Yanjun Qi

Introduction

Fine-tuning Large Language Models (LLMs) for specialized domains—such as medical diagnostics, legal analysis, or financial forecasting—requires high-quality, task-specific datasets. However, the manual curation of such data is often prohibitively expensive and time-consuming. While synthetic data generation offers a potential solution, existing methods frequently struggle with a trade-off between diversity and task relevance. Low-diversity methods produce repetitive data, while high-diversity methods often suffer from "thematic drift," where generated samples lose sight of the original task.

To address these challenges, we present AIDE (Attribute-guided multI-hop Data Expansion). AIDE is a recursive framework capable of transforming as few as 10 seed examples into thousands of high-quality, diverse training samples. By integrating multi-hop synthesis with a novel residual connection mechanism, AIDE ensures that synthetic data remains both diverse and strictly relevant to the target task.

Methodology

The AIDE framework operates through a recursive four-step process designed to maximize both the breadth and depth of the generated data.

The AIDE workflow: from seed data to annotated synthetic samples.
  1. Extraction: The system begins by extracting the core topic and key knowledge attributes from a seed data point. These are represented as triplets (topic, relationship, attribute) to provide a structured foundation for expansion.
  2. Persona Integration: To enhance diversity, AIDE retrieves relevant "personas" from a Persona Hub. By prompting the LLM to adopt specific perspectives (e.g., a "technical expert" vs. a "general hobbyist"), the framework generates varied viewpoints on the same underlying topic.
  3. Multi-Hop Synthesis: Data expansion is performed recursively. A sample generated in one "hop" serves as the seed for the next. To prevent thematic drift during deep recursions, AIDE employs residual connections, re-injecting the original seed data into the prompt at every hop to anchor the generation process.
  4. Self-Reflection and Annotation: A "Grader" LLM filters the output for quality and relevance. Finally, an "Annotator" LLM generates high-fidelity labels or answers for the validated instructions.

Key Innovations

Residual Connections for Prompting

A primary contribution of AIDE is the adaptation of residual connections—a concept from deep learning architecture—to the domain of prompt engineering. In multi-hop generation, the "signal" of the original task often degrades. By feeding the original seed data back into deeper generation stages, AIDE maintains a strong task-specific anchor, preventing the model from drifting into unrelated topics.

Persona-Driven Diversity

Rather than relying on stochastic sampling alone, AIDE uses a structured Persona Hub to drive diversity. This ensures that the synthetic dataset covers a wide range of linguistic styles and conceptual angles, resulting in a dataset with diversity metrics (such as Self-BLEU) comparable to human-curated "gold" data.

Experimental Results

AIDE was evaluated across a broad spectrum of benchmarks, including BIG-Bench, MMLU, and specialized datasets like MedQA and FinBen. The results demonstrate that Mistral-7B models fine-tuned on AIDE-generated data consistently outperform those trained on human-curated datasets, showing a 7.0% relative improvement on average.

The framework proved particularly effective in specialized domains, yielding an 8.2% improvement on MedQA and a 15.0% boost on TruthfulQA compared to gold-data tuning. Furthermore, AIDE significantly outperformed state-of-the-art synthetic baselines like Evol-Instruct and DataTune.

Ablation Study

To understand the contribution of each component, we conducted an ablation study. The results, summarized below, confirm that the synergy between attribute extraction, persona integration, and residual connections is critical for achieving high accuracy.

Ablation study results showing the impact of core AIDE components on fine-tuned model performance.

Limitations and Future Work

While AIDE represents a significant step forward, challenges remain in complex reasoning tasks. For instance, zero-shot accuracy on mathematical benchmarks like GSM8K remains relatively low (~20%). Future iterations of AIDE will explore the integration of Chain-of-Thought (CoT) reasoning into the synthetic data generation process. Additionally, as with all synthetic methods, the framework is dependent on the quality of the "teacher" LLM and may inherit underlying biases.

Summary updated

BibTeX
@misc{li2024aide,
  author = {Jiayu Li and Junzhen Zhu and Zhiyuan Liu and Yanjun Qi},
  title = {{AIDE: Attribute-Guided MultI-Hop Data Expansion for Data Scarcity in Task-Specific Fine-tuning}},
  year = {2024},
  eprint = {2412.06136},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.06136},
}
Figure