[Paper Review] Contextual Augmentation: Data Augmentation by Words with Paradigmatic Relations
Introduces contextual augmentation that replaces words with contextually predicted substitutes from a bi-directional language model, with a label-conditioned variant to maintain label compatibility, improving text classification across CNN and RNN models.
We propose a novel data augmentation for labeled sentences called contextual augmentation. We assume an invariance that sentences are natural even if the words in the sentences are replaced with other words with paradigmatic relations. We stochastically replace words with other words that are predicted by a bi-directional language model at the word positions. Words predicted according to a context are numerous but appropriate for the augmentation of the original words. Furthermore, we retrofit a language model with a label-conditional architecture, which allows the model to augment sentences without breaking the label-compatibility. Through the experiments for six various different text classification tasks, we demonstrate that the proposed method improves classifiers based on the convolutional or recurrent neural networks.
Motivation & Objective
- Motivate data augmentation for NLP to improve generalization without task-specific rules.
- Propose replacing words with context-predicted substitutes to expand sentence patterns.
- Prevent label-incompatible augmentations by incorporating a label-conditioned LM.
- Demonstrate effectiveness on six text classification tasks with CNN and RNN models.
Proposed method
- Use a bi-directional LSTM language model to predict substitute words for each target position based on surrounding context.
- Sample substitutes from a temperature-adjusted distribution p_tau(·|S∖{wi}) to control augmentation strength.
- Introduce a label-conditional LM by concatenating the sentence context with the label to produce label-consistent substitutions.
- Pretrain the contextual LM on WikiText-103 and fine-tune with a label-conditional architecture on each labeled dataset.
- Compare augmentation methods: synonym-based, contextual augmentation, and contextual augmentation with label conditioning, across CNN and RNN classifiers.
- Evaluate on SST5, SST2, Subj, MPQA, RT, and TREC datasets.
Experimental results
Research questions
- RQ1Does contextual augmentation provide more diverse and label-consistent word substitutions than synonym-based augmentation?
- RQ2Does incorporating a label-conditional LM improve augmentation quality and classifier performance?
- RQ3How does contextual augmentation affect CNN and RNN classifiers across multiple text classification tasks?
Key findings
- Contextual augmentation improves performance over synonym-based augmentation across datasets and models.
- Label-conditioned augmentation yields the best accuracies on average.
- Both CNN and RNN classifiers benefit from contextual augmentation, with gains observed on SST5, SST2, Subj, MPQA, RT, and TREC.
- The top predictions from the conditional LM align with label semantics, showing positive- vs negative-label substitutions (e.g., fantastic → positive words under positive label; → negative words under negative label).
- Overall Avg accuracy improvements: CNN from 77.53 to 78.20 with +label; RNN from 77.43 to 77.83 with +label.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.