Saved in:
Bibliographic Details
Main Authors: Li, Zexuan, Dai, Hongliang, Li, Piji
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.23108
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916765551820800
author Li, Zexuan
Dai, Hongliang
Li, Piji
author_facet Li, Zexuan
Dai, Hongliang
Li, Piji
contents Using Large Language Models (LLMs) to generate training data can potentially be a preferable way to improve zero or few-shot NLP tasks. However, many problems remain to be investigated for this direction. For the task of Relation Extraction (RE), we find that samples generated by directly prompting LLMs may easily have high structural similarities with each other. They tend to use a limited variety of phrasing while expressing the relation between a pair of entities. Therefore, in this paper, we study how to effectively improve the diversity of the training samples generated with LLMs for RE, while also maintaining their correctness. We first try to make the LLMs produce dissimilar samples by directly giving instructions in In-Context Learning (ICL) prompts. Then, we propose an approach to fine-tune LLMs for diversity training sample generation through Direct Preference Optimization (DPO). Our experiments on commonly used RE datasets show that both attempts can improve the quality of the generated training data. We also find that comparing with directly performing RE with an LLM, training a non-LLM RE model with its generated samples may lead to better performance.
format Preprint
id arxiv_https___arxiv_org_abs_2505_23108
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Generating Diverse Training Samples for Relation Extraction with Large Language Models
Li, Zexuan
Dai, Hongliang
Li, Piji
Computation and Language
Using Large Language Models (LLMs) to generate training data can potentially be a preferable way to improve zero or few-shot NLP tasks. However, many problems remain to be investigated for this direction. For the task of Relation Extraction (RE), we find that samples generated by directly prompting LLMs may easily have high structural similarities with each other. They tend to use a limited variety of phrasing while expressing the relation between a pair of entities. Therefore, in this paper, we study how to effectively improve the diversity of the training samples generated with LLMs for RE, while also maintaining their correctness. We first try to make the LLMs produce dissimilar samples by directly giving instructions in In-Context Learning (ICL) prompts. Then, we propose an approach to fine-tune LLMs for diversity training sample generation through Direct Preference Optimization (DPO). Our experiments on commonly used RE datasets show that both attempts can improve the quality of the generated training data. We also find that comparing with directly performing RE with an LLM, training a non-LLM RE model with its generated samples may lead to better performance.
title Generating Diverse Training Samples for Relation Extraction with Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2505.23108