数据增强在文本分类中被广泛使用,尤其是在低资源场景下,训练时每个类别只有少量样本可用。尽管取得了成功,但将数据增强生成为可能提高其效果的困难正样本这一问题尚未得到充分探索。本文提出了一种对抗性词语稀释(Adversarial Word Dilution,AWD)方法,该方法可以生成困难正样本作为文本数据增强,以高效训练低资源文本分类模型。我们增强文本数据的思路是:通过将强正样本词语的嵌入与未知词嵌入进行加权混合来稀释其嵌入,从而使增强后的输入难以被分类模型识别为正样本。我们在标签的指导下,通过一个带约束的极小极大优化过程对抗性地学习稀释权重。在三个基准数据集上的实证研究表明,AWD 能够生成更有效的数据增强,并优于当前最先进的文本数据增强方法。进一步的分析表明,AWD 生成的数据增强具有可解释性,并且无需进一步训练即可灵活扩展到新样本。
英文摘要:
Data augmentation is widely used in text classification, especially in the low-resource regime where a few examples for each class are available during training. Despite the success, generating data augmentations as hard positive examples that may increase their effectiveness is under-explored. This paper proposes an Adversarial Word Dilution (AWD) method that can generate hard positive examples as text data augmentations to train the low-resource text classification model efficiently. Our idea of augmenting the text data is to dilute the embedding of strong positive words by weighted mixing with unknown-word embedding, making the augmented inputs hard to be recognized as positive by the classification model. We adversarially learn the dilution weights through a constrained min-max optimization process with the guidance of the labels. Empirical studies on three benchmark datasets show that AWD can generate more effective data augmentations and outperform the state-of-the-art text data augmentation methods. The additional analysis demonstrates that the data augmentations generated by AWD are interpretable and can flexibly extend to new examples without further training.
Better Robustness by More Coverage: Adversarial Training with Mixup Augmentation for Robust Fine-tuning
University of Maryland, College Park(马里兰大学帕克分校);Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)
LaPA$^2$: Length-Aware Prefix and Prompt Attention Augmentation for Long-Form Controllable Text Generation
School of Artificial Intelligence(人工智能学院);New Laboratory of Pattern Recognition (NLPR)(模式识别新实验室);School of Computing(计算学院);School of Computer Science and Engineering(计算机科学与工程学院)
ToxiGAN: Toxic Data Augmentation via LLM-Guided Directional Adversarial Generation
Freie Universität Berlin(弗里德里希-莱布尼茨柏林大学);Fraunhofer-Institut für Offene Kommunikationssysteme(弗劳恩霍夫开放通信系统研究所);Institut für Angewandte Informatik(应用信息研究所);Stanford University(斯坦福大学)