Reducing and Exploiting Data Augmentation Noise through Meta Reweighting Contrastive Learning for Text Classification

Guanyi Mou, Yichuan Li, Kyumin LeeIEEE BigData 2021 · DOI

Abstract

Data augmentation has shown its effectiveness in resolving the data-hungry problem and improving model's generalization ability. However, the quality of augmented data can be varied, especially compared with the raw/original data. To boost deep learning models' performance given augmented data/samples in text classification tasks, we propose a novel framework, which leverages both meta learning and contrastive learning techniques as parts of our design for reweighting the augmented samples and refining their feature representations based on their quality. As part of the framework, we propose novel weight-dependent enqueue and dequeue algorithms to utilize augmented samples' weight/quality information effectively. Through experiments, we show that our framework can reasonably cooperate with existing deep learning models (e.g., RoBERTa-base and Text-CNN) and augmentation techniques (e.g., Wordnet and Easydata) for specific supervised learning tasks. Experiment results show that our framework achieves an average of 1.6%, up to 4.3% absolute improvement on Text-CNN encoders and an average of 1.4%, up to 4.4% absolute improvement on RoBERTa-base encoders on seven GLUE benchmark datasets compared with the best baseline. We present an indepth analysis of our framework design, revealing the non-trivial contributions of our network components. Our code is publicly available for better reproducibility.

Introduction

Data augmentation (DA) is a critical technique for training deep learning models in domains like text classification where labeled data is often scarce. Heuristic methods such as synonym replacement or random deletion can significantly expand training sets. However, these techniques are "double-edged swords" because they frequently introduce noise. For instance, deleting a negation word can completely flip a sentence's sentiment, leading to label-flipping noise that degrades model performance.

Traditional approaches either manually tune DA methods or discard low-quality samples entirely. We propose the Meta Reweighting Contrastive (MRCO) framework, which argues that noisy samples should not be discarded but rather identified and strategically exploited as "hard negatives" to refine the model's decision boundaries.

Methodology

The MRCO framework integrates three core components into a unified pipeline to simultaneously reduce the impact of noise and exploit it for better representation learning.

The MRCO framework architecture, showing the integration of the Main Module, Meta Reweighting Module, and Contrastive Learning Module.

Meta Reweighting Module

To automatically assess the quality of augmented data, we employ a bilevel optimization strategy. In the inner loop, the main classifier is trained on augmented samples weighted by an importance factor. In the outer loop, the reweighting module is updated based on the model's performance on a small, clean "meta" dataset. This ensures that weights are assigned based on how much a sample actually contributes to generalization on clean data, preventing the model from collapsing by simply ignoring all augmented data.

Fine-Grained Contrastive Learning

A key innovation of MRCO is its use of intra-class contrastive learning. Instead of contrasting different classes, the model contrasts high-quality (high-weight) augmented samples against low-quality (low-weight) samples from the same class. By treating noisy augmentations as "hard negatives," the model learns to push away corrupted representations while pulling together "golden" raw data and high-quality augmentations.

Detailed architecture of the Contrastive Learning Module, featuring the Query/Key encoders and the Lifetime-Weight Priority Queue (LASW).

Lifetime Aware Smallest Weight (LASW) Algorithm

To manage the negative samples effectively, we introduce the LASW algorithm. Unlike standard FIFO queues, LASW uses a priority system based on both the sample's weight and its "lifetime" in the queue. This ensures that the contrastive learning process consistently utilizes the most relevant, low-quality samples as negatives, enhancing the robustness of the learned features.

Experimental Evaluation

We evaluated MRCO across seven tasks from the GLUE benchmark (CoLA, SST-2, MRPC, QQP, MNLI, QNLI, and RTE) using various augmentation techniques including Wordnet and EDA.

Performance Gains

MRCO consistently outperformed vanilla models and state-of-the-art contrastive baselines:

  • Text-CNN: Achieved an average improvement of 1.6%, with a peak gain of 4.3%.
  • RoBERTa-base: Achieved an average improvement of 1.4%, with a peak gain of 4.4% on the CoLA dataset.

Ablation and Convergence

Ablation studies confirmed the necessity of each component; notably, removing the Contrastive Learning module resulted in a 3.8% accuracy drop. Furthermore, MRCO demonstrated faster convergence, reaching peak performance in fewer epochs compared to standard augmentation baselines.

Conclusion

The MRCO framework effectively addresses the noise problem in text data augmentation by combining meta-learning for reweighting and contrastive learning for representation refinement. By treating noise as a useful feature rather than a nuisance, MRCO achieves significant performance improvements on benchmark tasks. Future work will explore the application of this framework to computer vision tasks, where similar augmentation noise challenges exist.

Summary updated

BibTeX
@inproceedings{mou2021reducing,
  author = {Guanyi Mou and Yichuan Li and Kyumin Lee},
  title = {{Reducing and Exploiting Data Augmentation Noise through Meta Reweighting Contrastive Learning for Text Classification}},
  booktitle = {IEEE BigData},
  year = {2021},
  doi = {10.1109/bigdata52589.2021.9671510},
}
Figure