Source-linked AI summary
DARE: Data Augmented Relation Extraction with GPT-2
Yannis Papanikolaou, Andrea Pierleoni
TL;DR
Limited training data and class imbalance challenge relation extraction. DARE fine-tunes GPT-2 to generate examples for each relation type and combines them with gold data to train BERT-based classifiers. It improves on strong baselines and reports new state-of-the-art results on three biomedical benchmarks.
Problem
Relation extraction can be difficult when training data are limited or class-imbalanced, including datasets with very few examples for their rarest relation types.
Source: §1 · p. 1, §4.3 · p. 4Method
DARE fine-tunes GPT-2 separately for each relation type, then trains BERT-based relation classifiers using the gold data and selected generated examples.
Source: §3.2 · p. 3Results
DARE improves by up to 11 F1 score points over two strong baselines and achieves new state-of-the-art performance on three biomedical benchmarks.
Source: §5 · p. 7Takeaways & Limitations
The authors report that DARE is particularly suited to relation extraction with class imbalance or limited data.
Source: §5 · p. 7A shared GPT-2 model trained across relations with relation-prefix tokens performed worse than gold-only training, as frequent classes led to incorrectly labeled samples.
Source: §3.2 · p. 3
Abstract
from arXiv · showhide
Real-world Relation Extraction (RE) tasks are challenging to deal with, either due to limited training data or class imbalance issues. In this work, we present Data Augmented Relation Extraction(DARE), a simple method to augment training data by properly fine-tuning GPT-2 to generate examples for specific relation types. The generated training data is then used in combination with the gold dataset to train a BERT-based RE classifier. In a series of experiments we show the advantages of our method, which leads in improvements of up to 11 F1 score points against a strong base-line. Also, DARE achieves new state of the art in three widely used biomedical RE datasets surpassing the previous best results by 4.7 F1 points on average.
1 Introduction
The paper addresses limited training data and class imbalance in supervised relation extraction by using GPT-2 to generate relation-specific examples for BERT-based classification. It evaluates DARE against strong baselines and state-of-the-art methods on biomedical benchmarks.
1 Introduction
- DARE fine-tunes GPT-2 for each relation type, then combines generated samples with gold data to train a BERT-based relation extractor.The introduction presents this as an application of GPT-2 generation to limited-data and class-imbalance settings.Source: §1 · p. 1
- Experiments compare DARE with two strong baselines and state-of-the-art methods across three established biomedical relation-extraction benchmarks.The paper reports significant improvements, but this passage does not give the numerical results.Source: §1 · p. 1
- Table 1 presents generated examples from GPT-2 models fine-tuned on examples for specific relation types.The introduction directs readers to Section 4 for the experimental datasets.Source: §1 · p. 1, Table 1 · p. 2
2 Related Work
Prior work handles class imbalance through classifier adjustments or resampling, while text augmentation has used lexical, topic-based, and learned generation approaches. DARE applies text oversampling to relation extraction without requiring domain expertise or templates.
2 Related Work
- Class-imbalance methods include class-weighted errors or adjusted class priors, as well as majority-class undersampling and balanced bagging.Balanced bagging trains an ensemble using random majority undersampling.Source: §2 · p. 2
- Text augmentation approaches include synonym replacement, topic-model generation, and learned sequence generation, but text semantics depend on word order and structure.The paper describes textual oversampling as more limited than image augmentation.Source: §2 · p. 2
- Sun et al. (2019a) fine-tuned GPT-2 to generate training samples for earlier tasks in lifelong learning, then combined those samples with data for a new task.That approach was intended to avoid catastrophic forgetting.Source: §2 · p. 2
- DARE places relation extraction within text-oversampling work and does not require domain expertise, templates, a synonym thesaurus, or training a model from scratch.The authors characterize these properties as making the approach adaptable across domains with relatively low resource requirements.Source: §2 · p. 2
3 Methods
DARE uses relation-specific GPT-2 models to generate synthetic training examples, then trains an ensemble of BERT-based relation classifiers on selected synthetic samples and the gold data. The section also describes GPT-2’s next-token training objective and an ineffective shared-model alternative.
3.1 GPT-2
- GPT-2 is pretrained to predict the next word token from the preceding k tokens, and the experiments use its 774M-parameter version as a compromise between accuracy and hardware requirements.The language model is pretrained on large amounts of text using a standard language-modeling objective.Source: §3.1 · p. 3
3.2 Data Augmented Relation Extraction
- The BERT-based classifier uses a classification token and masks entity mentions with generic entity types; the method is not restricted to this classifier.The paper describes the classifier as pretrained BERT fine-tuned for relation extraction.Source: §3.2 · p. 3
- DARE splits training data by relation type, fine-tunes one GPT-2 per type, generates sentences, filters out samples missing entity masks or containing fewer than eight tokens, and combines the remaining samples.Each GPT-2 is fine-tuned for five epochs.Source: §3.2 · p. 3
- Each ensemble classifier trains on all gold data plus relation-specific synthetic subsets sized to the gold count for that relation multiplied by ratio r.The experiments set r = 1.0 and use majority voting for prediction.Source: §3.2 · p. 3
- An early shared GPT-2 model trained on all relations with relation-prefix tokens performed worse than using gold data alone, largely because frequent classes led to incorrectly labeled generations.The authors contrast this experiment with fine-tuning separate models by relation type.Source: §3.2 · p. 3
4 Experimental Evaluation
The evaluation tests DARE on three biomedical relation-extraction datasets, including experiments on sparse positives, generated-data size, and GPT-2 initialization. DARE outperforms the previous state of the art and two imbalance-oriented baselines in the reported benchmark comparisons.
4.1 Setup
- A BERT-large RE classifier is trained on gold data or gold plus generated data; DARE ensembles 20 classifiers trained on the full gold set and generated-data subsets.Source: §4.1 · p. 4
4.2 Datasets
- The evaluation covers CDR, DDI2013, and ChemProt; the rarest training classes have 153 instances in DDI2013 and 173 in ChemProt.Source: §4.2 · p. 4, §4.3 · p. 4
4.3 Baselines
- Balanced bagging and class weighting serve as baselines for datasets with class imbalance and few positive examples.Source: §4.3 · p. 4
4.4 Fine-tuning GPT-2 on In-domain Data
- On CDR, first fine-tuning GPT-2 on 500k PubMed abstracts proved significantly favorable before relation-specific fine-tuning and generation.Source: Table 3 · p. 5, §4.4 · p. 5
4.5 DARE on Imbalanced Datasets
- DARE’s advantage over balanced bagging reaches 11 F1 points when CDR has 250 or fewer positive samples.Source: Figure 1 · p. 5, §4.5 · p. 6
4.6 Effect of Generated Data Size
- More generated data does not necessarily improve performance; the authors choose ratio=1, adding generated instances equal to gold instances for each relation type.Source: Figure 2 · p. 6, §4.6 · p. 6
4.7 DARE against the SOTA and Baselines
- DARE beats the SOTA by 3 to 8 F1 points across datasets and the baselines by 2 to 5 F1 points, significantly in all baseline comparisons.Source: §4.7 · pp. 6–7, Table 4 · p. 7
5 Conclusions
DARE augments gold Relation Extraction data with GPT-2-generated samples and trains BERT-based classifiers on the combined data. Experiments report gains in limited-data or imbalanced settings and new state-of-the-art performance on three biomedical benchmarks.
- DARE fine-tunes a pretrained GPT-2 model per relation type, generates training data, and combines it with gold data to train BERT-based RE classifiers.Source: §5 · p. 7
- Up to 11 F1 score points over two strong baselines and new state-of-the-art performance on three biomedical RE benchmarks are reported.Source: §5 · p. 7
- The authors identify extending DARE to other Natural Language Understanding tasks as future work.Source: §5 · p. 7
A Supplemental Material
The supplemental material reports per-class results for ChemProt and DDI2013, comparing DARE with the state of the art and the class weighting baseline. Its tables present F1 results by relation type.
- The supplemental material gives per-class results for DARE against the state of the art and class weighting baseline on ChemProt and DDI2013.Source: A Supplemental Material · p. 9
- Table 5 presents ChemProt F1 results by relation type for DARE, the state of the art, and the best baseline.Source: Table 5 · p. 9
- Table 6 presents DDI2013 F1 results by relation type for DARE, the state of the art, and the best baseline.Source: Table 6 · p. 9