Automatically Generating Numerous Context-Driven SFT Data for LLMs Across Diverse Granularity
Abstract
Constructing high-quality query-response pairs from custom corpora is crucial for supervised fine-tuning (SFT) large language models (LLMs) in many applications, like creating domain-specific AI assistants or roleplaying agents. However, sourcing this data through human annotation is costly, and existing automated methods often fail to capture the diverse range of contextual granularity and tend to produce homogeneous data. To tackle these issues, we introduce a novel method named AUGCON, capable of automatically generating context-driven SFT data across multiple levels of granularity with high diversity, quality and fidelity. AUGCON begins by generating queries using the Context-SplitTree (CST), an innovative approach for recursively deriving queries and splitting context to cover full granularity. Then, we train a scorer through contrastive learning to collaborate with CST to rank and refine queries. Finally, a synergistic integration of self-alignment and self-improving is introduced to obtain high-fidelity responses. Extensive experiments are conducted incorporating both automatic and human evaluations, encompassing four widely-used benchmarks and a test scenario in English and Chinese. The results highlight the significant advantages of AUGCON in producing high diversity, quality, and fidelity SFT data against several state-of-the-art methods.
Cite
Text
Quan. "Automatically Generating Numerous Context-Driven SFT Data for LLMs Across Diverse Granularity." AAAI Conference on Artificial Intelligence, 2025. doi:10.1609/AAAI.V39I23.34692Markdown
[Quan. "Automatically Generating Numerous Context-Driven SFT Data for LLMs Across Diverse Granularity." AAAI Conference on Artificial Intelligence, 2025.](https://mlanthology.org/aaai/2025/quan2025aaai-automatically/) doi:10.1609/AAAI.V39I23.34692BibTeX
@inproceedings{quan2025aaai-automatically,
title = {{Automatically Generating Numerous Context-Driven SFT Data for LLMs Across Diverse Granularity}},
author = {Quan, Shanghaoran},
booktitle = {AAAI Conference on Artificial Intelligence},
year = {2025},
pages = {25074-25082},
doi = {10.1609/AAAI.V39I23.34692},
url = {https://mlanthology.org/aaai/2025/quan2025aaai-automatically/}
}