Text Smoothing: Enhance Various Data Augmentation Methods on Text Classification Tasks

Xing Wu, Chaochen Gao, Meng Lin, Liangjun Zang, Zhongyuan Wang +1 more
2/28/2022
cs.CL

Official code: caskcsg/TextSmoothing (36 stars, Python, last commit 2022-03-15).

Abstract

Before entering the neural network, a token is generally converted to the corresponding one-hot representation, which is a discrete distribution of the vocabulary. Smoothed representation is the probability of candidate tokens obtained from a pre-trained masked language model, which can be seen as a more informative substitution to the one-hot representation.

Show full abstract

We propose an efficient data augmentation method, termed text smoothing, by converting a sentence from its one-hot representation to a controllable smoothed representation. We evaluate text smoothing on different benchmarks in a low-resource regime. Experimental results show that text smoothing outperforms various mainstream data augmentation methods by a substantial margin. Moreover, text smoothing can be combined with those data augmentation methods to achieve better performance.

View on arXivView PDF

Code Implementations(1)

366Python, ShellMar 15, 20224 years ago

Similar Papers

Cite this paper

@article{wu2022text,
  title  = {Text Smoothing: Enhance Various Data Augmentation Methods on Text Classification Tasks},
  author = {Xing Wu and Chaochen Gao and Meng Lin and Liangjun Zang and Zhongyuan Wang and Songlin Hu},
  year   = {2022},
  eprint = {2202.13840},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13840}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.13840.svg)](https://codeofpaper.com/paper/2202.13840)

Discussion