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

Letian Peng, Yuwei Zhang, Jingbo Shang

TL;DR

The authors introduce Chain-of-Thought Attribute Manipulation (CoTAM), a novel data augmentation method that uses Large Language Models (LLMs) to precisely edit specific text attributes (like sentiment or topic). By decomposing sentences into their constituent parts and only tweaking the task-relevant feature, CoTAM generates high-quality synthetic data that clearly defines decision boundaries, often outperforming even additional human-annotated examples in few-shot learning scenarios.

What Problem Does This Paper Address?

In few-shot learning, where models are trained on only a handful of examples, data augmentation is a lifesaver. Recently, researchers have turned to LLMs to generate new training data. However, standard LLM-based augmentation is often "uncontrolled"—the model might generate new examples that are too different from the original or introduce noisy, irrelevant features.

This lack of control can lead to "spurious correlations," where a model learns the wrong patterns because the generated data doesn't clearly show where the "line" (decision boundary) between classes actually lies. As shown in Figure 1, uncontrolled augmentation (left) creates a messy distribution, whereas controllable augmentation (right) provides clear, contrastive pairs that help the model learn more efficiently.

Figure 1: An illustrative comparison in case of bi- nary classification. Conventional data augmentation generates uncontrolled data, while CoTAM directly re- flects decision boundaries through task instructions. We present a real example in Figure 4.

Methods

CoTAM moves away from traditional "latent space" manipulation (common in computer vision) and instead uses Chain-of-Thought (CoT) prompting to edit text directly in three interpretable steps:

  1. Attribute Decomposition: The LLM identifies the target attribute (e.g., "Sentiment: Negative") and proposes other orthogonal attributes present in the text (e.g., "Topic: Movie," "Structure: Shift"). This effectively "maps" the sentence's features.
  2. Manipulation Proposal: The LLM creates a plan to change the target attribute while explicitly instructing itself to keep all other identified attributes constant.
  3. Sentence Reconstruction: The LLM executes the plan to rewrite the sentence.
Figure 2: An overview of the goal and implementation of our CoTAM.

By following this process, the model creates a "minimal pair": two sentences that are nearly identical in every way except for the one feature the researcher wants the model to learn.

Datasets

The authors evaluated CoTAM across a diverse range of NLP tasks using several well-known benchmarks:

  • Text Classification: SST-2 (sentiment), TweetEmo (fine-grained sentiment), AG-NEWS (topic), MNLI (inference), MRPC (semantics), and CSQA (common sense QA).
  • Aspect-Based Sentiment Analysis (ABSA): SemEval2014 Restaurant and Laptop datasets.
  • Conditional Text Generation: CommonGen.

Key Insights and Ideas

  • The Power of Contrast: The core "aha" moment is that data efficiency comes from minimal change. By keeping the "background" of a sentence the same and only flipping the label-relevant attribute, the model receives a much stronger signal about what actually defines a class.
  • LLMs as Latent Space Proxies: While we can't easily "math" our way into the latent space of a sentence like we can with images, CoTAM shows that LLMs can use natural language to perform a similar function through attribute decomposition.
  • Visualizing the Boundary: Using Principal Component Analysis (PCA), the authors visualized the embeddings of their generated data. In Figure 4, you can see that CoTAM's "manipulation tracks" (the lines connecting original and generated data) are highly consistent and directional, creating a human-recognizable decision boundary that uncontrolled methods lack.
Figure 4: Principal component analysis of text pairs generated by our CoTDA and CoTAM on the SST-2 dataset.

Key Results

  • Superior Performance: CoTAM consistently outperformed other LLM-based methods (like FlipDA++ and CoTDA) across all 7 classification tasks.
  • Beating Human Labels: Remarkably, in 6 out of 7 tasks, fine-tuning a model on CoTAM-augmented data yielded better results than using the same number of additional human-annotated examples. This suggests that targeted synthetic data can sometimes be more informative for a learner than random real-world data.
  • Robustness: CoTAM showed significant gains in out-of-domain scenarios, proving that the "clean" decision boundaries it creates help models generalize better to new types of text.

Limitations and Future Work

  • Generation Efficiency: Because CoTAM requires a multi-step Chain-of-Thought process, it is computationally slower and more expensive than "one-shot" augmentation methods.
  • Task Scope: The current framework is primarily designed for tasks where labels are tied to specific, manipulatable attributes. Extending this to more abstract reasoning tasks remains a challenge.
  • LLM Dependency: The quality of the augmentation is heavily dependent on the underlying LLM's ability to decompose and reconstruct text accurately. The authors noted that GPT-4 significantly outperformed GPT-3.5 in this regard.

Future work will focus on adapting these techniques for smaller, more efficient language models to reduce the reliance on massive, resource-intensive APIs.

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