Text Augmentation Using Dataset Reconstruction for Low-Resource Classification

Adir Rahamim, Guy Uziel, Esther Goldbraich, Ateret Anaby-TavorACL 2023

Abstract

Deep learning models for text classification often struggle in low-resource settings where labeled data is scarce. Traditional data augmentation techniques frequently produce ungrammatical or out-of-distribution samples. This paper presents TAU-DR (Text AUgmentation by Dataset Reconstruction), a parameter-efficient framework that leverages the internal representations of a pretrained classifier to generate high-quality synthetic data. By training a small MLP bridge to map classifier embeddings to "soft prompts" for a frozen language model, TAU-DR enables controlled generation through intra-class and inter-class interpolation. Experimental results across multiple benchmarks demonstrate significant performance gains, particularly in few-shot scenarios.

Introduction

In specialized domains such as medical records or technical support, obtaining large-scale labeled datasets is often prohibitively expensive. While data augmentation is a standard solution in computer vision, text augmentation remains challenging. Simple heuristic methods like synonym replacement or word deletion often disrupt the semantic coherence or grammatical structure of sentences.

Recent generative approaches have utilized large language models (LLMs) for data synthesis. However, full fine-tuning of LLMs is computationally intensive and prone to "distributional drift," where synthetic samples become repetitive or lose the nuances of the original training set. TAU-DR addresses these issues by treating augmentation as a reconstruction task, utilizing frozen models to maintain efficiency and data fidelity.

Methodology

The TAU-DR framework operates through a three-stage process: training the reconstruction bridge, generating novel samples via interpolation, and filtering for quality.

The Reconstruction Bridge

Instead of fine-tuning the entire generative pipeline, TAU-DR utilizes a frozen pretrained classifier (e.g., BERT) and a frozen auto-regressive LLM (e.g., T5). A small Multi-Layer Perceptron (MLP) is trained to map the hidden representation (the [CLS] token) of an input sentence to a sequence of continuous vectors, termed "soft prompts." These prompts guide the LLM to reconstruct the original input sentence.

The TAU-DR architecture: bridging a frozen classifier and a frozen LLM via an MLP to generate soft prompts.

Generation Strategies

To produce novel synthetic data, TAU-DR manipulates the learned soft prompts in the continuous vector space before feeding them to the LLM. Two primary strategies are employed:

  1. Intra-class generation: Prompts from two sentences within the same class are averaged. The resulting interpolated prompt generates a semantically similar but novel sentence that preserves the original label.
  2. Inter-class generation: Prompts from different classes are interpolated. The generated sentence is assigned the label of the closer parent prompt. This strategy is specifically designed to help the classifier learn decision boundaries between similar or confusing categories.
Visualization of intra-class and inter-class generation strategies in the embedding space.

Dynamic Consistency Filtering

To mitigate the risk of "hallucinations" or low-quality text, TAU-DR incorporates a filtering mechanism. Multiple classifiers are trained on different subsets of the generated data to identify and retain only the most reliable synthetic examples, ensuring high-quality training signals.

Experimental Setup and Results

The authors evaluated TAU-DR on four multi-class classification benchmarks: ATIS (airline travel), TREC (question classification), Banking77 (online banking intents), and T-Bot (telco support). The focus was on "few-shot" settings with 5 and 10 examples per class.

TAU-DR consistently outperformed state-of-the-art baselines, including EDA, C-BERT, LAMBADA, and PromDA. Notable results include:

  • ATIS (5-shot): Accuracy increased from a baseline of 73.9% to 90.6%.
  • TREC (5-shot): Accuracy improved from 49.5% to 64.1%.
  • Complex Datasets: Significant gains were observed even on high-cardinality datasets like Banking77 (77 classes) and T-Bot (87 classes).

Quality metrics such as MAUVE and F1-score confirmed that TAU-DR produces synthetic text that closely aligns with the actual data distribution compared to other generative methods.

Discussion and Conclusion

TAU-DR demonstrates that the internal state of a classifier contains sufficient "contextual DNA" to reconstruct and augment original sentences. By operating in the continuous prompt space, the method achieves high parameter efficiency, as only the MLP bridge requires training.

One observed challenge is "anisotropy," where learned prompts cluster into a narrow geometric space, potentially limiting diversity. The authors addressed this by applying Easy Data Augmentation (EDA) to the initial training set. Future work will explore more sophisticated sampling and interpolation techniques in the prompt space to further enhance the diversity and utility of generated data.

While computationally efficient in terms of parameters, the multi-stage generation and filtering process introduces some overhead. Nevertheless, TAU-DR represents a robust and effective approach for boosting performance in low-resource text classification tasks.

Summary updated

BibTeX
@inproceedings{rahamim2023text,
  author = {Adir Rahamim and Guy Uziel and Esther Goldbraich and Ateret Anaby-Tavor},
  title = {{Text Augmentation Using Dataset Reconstruction for Low-Resource Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.466},
}
Figure