I-WAS: a Data Augmentation Method with GPT-2 for Simile Detection

Yongzhu Chang, Rongsheng Zhang, Jiashu PuarXiv 2023 · DOI

TL;DR

The I-WAS method uses GPT-2 to augment training data for simile detection through an iterative process of word replacement and sentence completion. By generating more diverse and contextually rich examples, it significantly improves the ability of NLP models to identify complex similes in real-world literature.

What Problem Does This Paper Address?

Simile detection—identifying comparisons between a TOPIC (the subject) and a VEHICLE (the object of comparison)—is a cornerstone of understanding figurative language. However, current AI models suffer from a "diversity crisis." Most existing datasets are small and heavily biased toward simple "A is like B" structures.

In reality, similes are far more varied. The comparative word might be "resembles" or "as if," and the positions of the topic and vehicle can flip. Models trained on biased data often fail when they encounter these more sophisticated literary forms. Building a diverse, manually labeled dataset to fix this is incredibly labor-intensive.

Examples of the diverse ways similes can be structured in Chinese and English.

Methods

The authors propose I-WAS (Iterative Word replacement And Sentence completion), a generative data augmentation framework that doesn't require fine-tuning the generator.

  1. Word Replacement (WR): The system takes a standard simile (e.g., using "like") and replaces the comparative word with a random alternative from a predefined set (e.g., "seems to").
  2. Sentence Completion (SC): It then masks the rest of the sentence and uses a large-scale GPT-2 model (5 billion parameters) to complete it. This ensures the new sentence is fluent and contextually relevant.
  3. Iterative Filtering: To ensure the generated sentences are actually similes (label consistency), a base classifier ranks the outputs. The best samples are added to the training set, and the classifier is retrained. This cycle repeats, gradually shifting the model's understanding toward a broader distribution of simile forms.

Datasets

  • BTS (Biased Test Set): A standard benchmark containing ~2,200 examples, but limited almost exclusively to the comparative word "like."
  • DTS (Diverse Test Set): A new benchmark introduced by the authors. It contains 606 manually labeled similes covering seven different comparative words and varied sentence structures to better reflect real-world literature.

Key Insights and Ideas

  • The "Like" Bias is a Ceiling: Models that achieve nearly 90% accuracy on standard benchmarks often drop to the 60s when faced with diverse similes. This suggests we aren't building "simile detectors," but rather "keyword spotters."
  • Context Over Rules: Unlike simple augmentation (like swapping synonyms), using a generative model like GPT-2 preserves the "vividness" and logical connection between the topic and vehicle, which is essential for a sentence to remain a simile.
  • Distribution Drift: The authors observed a fascinating trade-off. As the model becomes better at detecting diverse similes (improving on the DTS), its performance on the original biased set (BTS) slightly decreases. This "drift" happens because the model is learning a more generalized, realistic representation of language rather than overfitting to a single pattern.

Key Results

The I-WAS method outperformed standard augmentation baselines like Easy Data Augmentation (EDA) and Back Translation (BT).

  • Accuracy Boost: On the Diverse Test Set (DTS), the I-WAS method improved the accuracy of a BERT-base classifier from 66.70% to 73.73% in just the first iteration.
  • Ablation Success: Removing either the word replacement or the sentence completion steps led to significant performance drops, proving that both variety in keywords and generative context are necessary.

Limitations and Future Work

The authors acknowledge the challenge of catastrophic forgetting: as the model learns new patterns, it may lose some precision on the specific patterns it was first trained on. They suggest that future work could involve "Mean Teacher" frameworks or temporal ensembling to stabilize learning across changing data distributions. Additionally, while GPT-2 is powerful, the filtering process still relies on the quality of the base classifier; if the initial model is too weak, it might "greenlight" poor-quality augmented data.

Summary updated

BibTeX
@misc{chang2023i,
  author = {Yongzhu Chang and Rongsheng Zhang and Jiashu Pu},
  title = {{I-WAS: a Data Augmentation Method with GPT-2 for Simile Detection}},
  year = {2023},
  eprint = {2308.04109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.04109},
}
Figure