Empowering Large Language Models for Textual Data Augmentation

Yichuan Li, Kaize Ding, Jianling Wang, Kyumin Lee

Abstract

Data augmentation (DA) is essential for training robust machine learning models, particularly in few-shot scenarios. While Large Language Models (LLMs) are powerful text rewriters, their effectiveness as data augmenters depends heavily on the specific instructions provided. This paper introduces Self-LLMDA, a framework that automates the generation and selection of task-specific augmentation instructions. By leveraging a diverse pool of self-generated instructions and a trained scoring model, Self-LLMDA consistently outperforms traditional heuristic methods and manually crafted prompts across 26 diverse NLP tasks.

Introduction: The Challenge of Task-Specific Augmentation

Data augmentation involves creating synthetic training examples to improve model performance. However, the "black art" of prompting LLMs for DA faces two primary hurdles: manual engineering effort and high task sensitivity. An instruction that improves performance for one task might degrade it for another. For instance, replacing pronouns with nouns can clarify entities in Question Answering but disrupt the logical flow required for Natural Language Inference (NLI).

Figure 1: Examples of task-sensitive augmentation instructions. Pronoun replacement helps clarity in QA but causes inconsistencies in NLI.

The Self-LLMDA Framework

To address these challenges, the authors propose Self-LLMDA, a dynamic three-stage pipeline designed to move beyond static, human-written prompts.

Figure 2: Overview of the Self-LLMDA framework, including instruction self-generation, task-informed selection, and LLM-based data augmentation.

1. Augmentation Instruction Self-Generation

The process begins with 13 "seed" instructions (e.g., synonym replacement, back-translation). An LLM then brainstorms a larger, more diverse pool of strategies. After filtering for redundancy using ROUGE-L scores, a final set of 51 unique instructions is established.

2. Task-Informed Instruction Selection

A scoring model based on FLAN-T5-Large acts as the system's "brain." It evaluates how well a specific instruction aligns with a target task by analyzing a few-shot set of examples. This allows the model to understand task requirements without needing exhaustive descriptions.

3. Data Augmentation

The highest-ranked instruction is passed to a backbone LLM (GPT-3.5 Turbo) to generate augmented data. This data is then used to train a smaller, more efficient target model, such as OPT.

Experimental Setup

The framework was evaluated on 26 few-shot learning tasks from benchmarks including CrossFit, UnifiedQA, and MetaICL. These tasks cover a wide range of domains, such as sentiment analysis, hate speech detection, and multiple-choice question answering.

Key Insights

  • No Universal Optimal Instruction: The "best" augmentation strategy varies significantly between classification and generative tasks, confirming the need for automated selection.
  • Pairwise Learning Efficiency: The selection model performed best when trained to compare pairs of instructions ($n=2$), learning relative merits rather than absolute scores.
  • Minimalist Task Representation: Using a small number of examples to represent a task proved more effective than using many, as excessive examples introduced noise.
  • The Power of Paraphrasing: Many automatically selected optimal instructions were variants of paraphrasing, suggesting its robustness as a general-purpose strategy.

Results and Performance

Self-LLMDA demonstrated consistent superiority over both traditional non-LLM methods and manual prompting. In classification-to-classification transfer settings, Self-LLMDA achieved a Macro-F1 of 51.72 on the OPT-125m model, a significant jump from the 44.80 baseline. Furthermore, the selection model proved robust across different target model sizes (125m to 1.3b parameters) and could generalize to instructions not seen during its training.

Conclusion and Future Directions

While Self-LLMDA effectively automates the DA pipeline, the reliance on proprietary models like GPT-3.5 Turbo presents cost challenges. Future research could explore high-performing open-source alternatives like Llama-3. Additionally, moving from selecting a single "best" instruction to an ensemble of top-tier strategies could provide further performance gains.

Summary updated

BibTeX
@inproceedings{li2024empowering,
  author = {Yichuan Li and Kaize Ding and Jianling Wang and Kyumin Lee},
  title = {{Empowering Large Language Models for Textual Data Augmentation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.756},
}
Figure