Forewarned is Forearmed: Leveraging LLMs for Data Synthesis through Failure-Inducing Exploration

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Qintong, Gao, Jiahui, Wang, Sheng, Pi, Renjie, Zhao, Xueliang, Wu, Chuan, Jiang, Xin, Li, Zhenguo, Kong, Lingpeng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910660334452736
author Li, Qintong
Gao, Jiahui
Wang, Sheng
Pi, Renjie
Zhao, Xueliang
Wu, Chuan
Jiang, Xin
Li, Zhenguo
Kong, Lingpeng
author_facet Li, Qintong
Gao, Jiahui
Wang, Sheng
Pi, Renjie
Zhao, Xueliang
Wu, Chuan
Jiang, Xin
Li, Zhenguo
Kong, Lingpeng
contents Large language models (LLMs) have significantly benefited from training on diverse, high-quality task-specific data, leading to impressive performance across a range of downstream applications. Current methods often rely on human-annotated data or predefined task templates to direct powerful LLMs in synthesizing task-relevant data for effective model training. However, this dependence on manually designed components may constrain the scope of generated data, potentially overlooking critical edge cases or novel scenarios that could challenge the model. In this paper, we present a novel approach, ReverseGen, designed to automatically generate effective training samples that expose the weaknesses of LLMs. Specifically, we introduce a dedicated proposer trained to produce queries that lead target models to generate unsatisfactory responses. These failure-inducing queries are then used to construct training data, helping to address the models' shortcomings and improve overall performance. Our approach is flexible and can be applied to models of various scales (3B, 7B, and 8B). We evaluate ReverseGen on three key applications (safety, honesty, and math), demonstrating that our generated data is both highly effective and diverse. Models fine-tuned with ReverseGen-generated data consistently outperform those trained on human-annotated or general model-generated data, offering a new perspective on data synthesis for task-specific LLM enhancement.
format Preprint
id arxiv_https___arxiv_org_abs_2410_16736
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Forewarned is Forearmed: Leveraging LLMs for Data Synthesis through Failure-Inducing Exploration
Li, Qintong
Gao, Jiahui
Wang, Sheng
Pi, Renjie
Zhao, Xueliang
Wu, Chuan
Jiang, Xin
Li, Zhenguo
Kong, Lingpeng
Computation and Language
Large language models (LLMs) have significantly benefited from training on diverse, high-quality task-specific data, leading to impressive performance across a range of downstream applications. Current methods often rely on human-annotated data or predefined task templates to direct powerful LLMs in synthesizing task-relevant data for effective model training. However, this dependence on manually designed components may constrain the scope of generated data, potentially overlooking critical edge cases or novel scenarios that could challenge the model. In this paper, we present a novel approach, ReverseGen, designed to automatically generate effective training samples that expose the weaknesses of LLMs. Specifically, we introduce a dedicated proposer trained to produce queries that lead target models to generate unsatisfactory responses. These failure-inducing queries are then used to construct training data, helping to address the models' shortcomings and improve overall performance. Our approach is flexible and can be applied to models of various scales (3B, 7B, and 8B). We evaluate ReverseGen on three key applications (safety, honesty, and math), demonstrating that our generated data is both highly effective and diverse. Models fine-tuned with ReverseGen-generated data consistently outperform those trained on human-annotated or general model-generated data, offering a new perspective on data synthesis for task-specific LLM enhancement.
title Forewarned is Forearmed: Leveraging LLMs for Data Synthesis through Failure-Inducing Exploration
topic Computation and Language
url https://arxiv.org/abs/2410.16736