Controllable Data Augmentation for Few-Shot Text Mining with Chain-of-Thought Attribute Manipulation

Letian Peng, Yuwei Zhang, Jingbo Shang

Introduction

Few-shot text mining presents a significant challenge due to the scarcity of labeled data. While Large Language Models (LLMs) are frequently used to generate synthetic training data, traditional "uncontrolled" generation often introduces noise and spurious correlations. Researchers at UC San Diego have introduced CoTAM (Chain-of-Thought Attribute Manipulation), a novel framework that transforms LLMs into precision editors for data augmentation.

The Challenge: Uncontrolled Generation

In few-shot scenarios, a common approach is to prompt an LLM with a few examples and ask for more. However, this often results in redundant data or patterns that do not reflect the true underlying distribution. For instance, if synthetic positive reviews consistently mention a specific irrelevant keyword, a model might learn a false correlation.

Conceptual comparison between conventional augmentation and CoTAM. CoTAM generates data that more accurately reflects the true decision boundary by manipulating specific attributes.

Ideally, synthetic data should reside near the "decision boundary"—examples that are nearly identical except for the specific feature that determines the label. Conventional methods often fail to achieve this precision, leading to learned boundaries that deviate significantly from the ground truth.

Methodology: Chain-of-Thought Attribute Manipulation (CoTAM)

CoTAM addresses these issues through a three-step Chain-of-Thought (CoT) process designed for "text-space" attribute manipulation:

  1. Attribute Decomposition: The LLM analyzes a seed sentence to identify its dynamic attributes (e.g., topic, structure, sentiment). This per-example analysis allows the model to capture the unique context of every sentence.
  2. Manipulation Proposal: The model plans how to flip the target attribute (e.g., changing sentiment from Negative to Positive) while explicitly committing to keeping all other background attributes constant.
  3. Sentence Reconstruction: Finally, the LLM rewrites the sentence based on the proposal, ensuring the new label is accurately represented while preserving the original context.
The CoTAM workflow: (1) Attribute Decomposition, (2) Manipulation Proposal, and (3) Sentence Reconstruction.

Unlike latent-space manipulation methods common in computer vision, CoTAM operates entirely in natural language, making the augmentation process highly interpretable.

Experimental Evaluation

The researchers evaluated CoTAM across a diverse set of benchmarks, including sentiment analysis (SST-2), emotion detection (TweetEmo), topic classification (AG-News), and logical reasoning tasks (MNLI, MRPC, CSQA).

Key Results

  • Performance Gains: On the SST-2 sentiment task, CoTAM achieved 79.12% accuracy, a substantial improvement over the baseline (60.54%) and simple label-flipping without CoT (74.28%).
  • In-Context Learning (ICL): Augmented data from CoTAM served as superior demonstrations for LLMs, helping them understand task boundaries more effectively.
  • Robustness: CoTAM demonstrated strong performance even in out-of-domain scenarios, maintaining its gains where other methods faltered.

Insights and Implications

A critical insight from the study is the "Control Advantage." Visualized via Principal Component Analysis (PCA), CoTAM-generated data pairs clearly define human-recognizable decision boundaries, whereas standard augmentation creates a disorganized cloud of points. Furthermore, models trained on CoTAM data sometimes outperformed those trained on an equivalent amount of additional human-annotated data, suggesting that targeted synthetic data can be more informative for machine learning than random human samples.

Conclusion and Future Work

CoTAM represents a significant step toward controllable and high-quality data augmentation for NLP. While the method currently faces challenges regarding computational cost and reliance on high-reasoning LLMs like GPT-4, it provides a robust framework for improving few-shot performance. Future research will likely focus on adapting these techniques for smaller, open-source models to enhance accessibility and efficiency.

Summary updated

BibTeX
@inproceedings{peng2024controllable,
  author = {Letian Peng and Yuwei Zhang and Jingbo Shang},
  title = {{Controllable Data Augmentation for Few-Shot Text Mining with Chain-of-Thought Attribute Manipulation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.1},
}
Figure